apkfuckery/com.discord/smali_classes2/t/i.smali
2019-12-12 09:58:10 +01:00

669 lines
12 KiB
Smali

.class public final Lt/i;
.super Ljava/lang/Object;
.source "OkHttpCall.java"
# interfaces
.implements Lt/b;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lt/i$b;,
Lt/i$c;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lt/b<",
"TT;>;"
}
.end annotation
# instance fields
.field public final d:Lt/r;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lt/r<",
"TT;*>;"
}
.end annotation
.end field
.field public final e:[Ljava/lang/Object;
.field public volatile f:Z
.field public g:Lq/e;
.field public h:Ljava/lang/Throwable;
.field public i:Z
# direct methods
.method public constructor <init>(Lt/r;[Ljava/lang/Object;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lt/r<",
"TT;*>;[",
"Ljava/lang/Object;",
")V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lt/i;->d:Lt/r;
iput-object p2, p0, Lt/i;->e:[Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public final a()Lq/e;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lt/i;->d:Lt/r;
iget-object v1, p0, Lt/i;->e:[Ljava/lang/Object;
invoke-virtual {v0, v1}, Lt/r;->a([Ljava/lang/Object;)Lq/y;
move-result-object v0
iget-object v1, p0, Lt/i;->d:Lt/r;
iget-object v1, v1, Lt/r;->a:Lq/e$a;
check-cast v1, Lq/v;
invoke-virtual {v1, v0}, Lq/v;->a(Lq/y;)Lq/e;
move-result-object v0
if-eqz v0, :cond_0
return-object v0
:cond_0
new-instance v0, Ljava/lang/NullPointerException;
const-string v1, "Call.Factory returned null."
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public a(Lokhttp3/Response;)Lt/o;
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lokhttp3/Response;",
")",
"Lt/o<",
"TT;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-virtual {p1}, Lokhttp3/Response;->a()Lq/z;
move-result-object v0
invoke-virtual {p1}, Lokhttp3/Response;->k()Lokhttp3/Response$a;
move-result-object p1
new-instance v1, Lt/i$c;
invoke-virtual {v0}, Lq/z;->c()Lokhttp3/MediaType;
move-result-object v2
invoke-virtual {v0}, Lq/z;->b()J
move-result-wide v3
invoke-direct {v1, v2, v3, v4}, Lt/i$c;-><init>(Lokhttp3/MediaType;J)V
iput-object v1, p1, Lokhttp3/Response$a;->g:Lq/z;
invoke-virtual {p1}, Lokhttp3/Response$a;->a()Lokhttp3/Response;
move-result-object p1
invoke-virtual {p1}, Lokhttp3/Response;->c()I
move-result v1
const/16 v2, 0xc8
const/4 v3, 0x0
if-lt v1, v2, :cond_4
const/16 v2, 0x12c
if-lt v1, v2, :cond_0
goto :goto_1
:cond_0
const/16 v2, 0xcc
if-eq v1, v2, :cond_3
const/16 v2, 0xcd
if-ne v1, v2, :cond_1
goto :goto_0
:cond_1
new-instance v1, Lt/i$b;
invoke-direct {v1, v0}, Lt/i$b;-><init>(Lq/z;)V
:try_start_0
iget-object v0, p0, Lt/i;->d:Lt/r;
iget-object v0, v0, Lt/r;->d:Lt/e;
invoke-interface {v0, v1}, Lt/e;->a(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
invoke-static {v0, p1}, Lt/o;->a(Ljava/lang/Object;Lokhttp3/Response;)Lt/o;
move-result-object p1
:try_end_0
.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0
return-object p1
:catch_0
move-exception p1
iget-object v0, v1, Lt/i$b;->g:Ljava/io/IOException;
if-nez v0, :cond_2
throw p1
:cond_2
throw v0
:cond_3
:goto_0
invoke-virtual {v0}, Lq/z;->close()V
invoke-static {v3, p1}, Lt/o;->a(Ljava/lang/Object;Lokhttp3/Response;)Lt/o;
move-result-object p1
return-object p1
:cond_4
:goto_1
:try_start_1
invoke-static {v0}, Lt/s;->a(Lq/z;)Lq/z;
move-result-object v1
const-string v2, "body == null"
invoke-static {v1, v2}, Lt/s;->a(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
const-string v2, "rawResponse == null"
invoke-static {p1, v2}, Lt/s;->a(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
invoke-virtual {p1}, Lokhttp3/Response;->h()Z
move-result v2
if-nez v2, :cond_5
new-instance v2, Lt/o;
invoke-direct {v2, p1, v3, v1}, Lt/o;-><init>(Lokhttp3/Response;Ljava/lang/Object;Lq/z;)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
invoke-virtual {v0}, Lq/z;->close()V
return-object v2
:cond_5
:try_start_2
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v1, "rawResponse should not be successful response"
invoke-direct {p1, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
:catchall_0
move-exception p1
invoke-virtual {v0}, Lq/z;->close()V
throw p1
.end method
.method public a(Lt/d;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lt/d<",
"TT;>;)V"
}
.end annotation
const-string v0, "callback == null"
invoke-static {p1, v0}, Lt/s;->a(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lt/i;->i:Z
if-nez v0, :cond_3
const/4 v0, 0x1
iput-boolean v0, p0, Lt/i;->i:Z
iget-object v0, p0, Lt/i;->g:Lq/e;
iget-object v1, p0, Lt/i;->h:Ljava/lang/Throwable;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
if-nez v0, :cond_0
if-nez v1, :cond_0
:try_start_1
invoke-virtual {p0}, Lt/i;->a()Lq/e;
move-result-object v2
iput-object v2, p0, Lt/i;->g:Lq/e;
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
move-object v0, v2
goto :goto_0
:catchall_0
move-exception v1
:try_start_2
iput-object v1, p0, Lt/i;->h:Ljava/lang/Throwable;
:cond_0
:goto_0
monitor-exit p0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
if-eqz v1, :cond_1
invoke-interface {p1, p0, v1}, Lt/d;->a(Lt/b;Ljava/lang/Throwable;)V
return-void
:cond_1
iget-boolean v1, p0, Lt/i;->f:Z
if-eqz v1, :cond_2
move-object v1, v0
check-cast v1, Lq/x;
invoke-virtual {v1}, Lq/x;->a()V
:cond_2
new-instance v1, Lt/i$a;
invoke-direct {v1, p0, p1}, Lt/i$a;-><init>(Lt/i;Lt/d;)V
check-cast v0, Lq/x;
invoke-virtual {v0, v1}, Lq/x;->a(Lq/f;)V
return-void
:cond_3
:try_start_3
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "Already executed."
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:catchall_1
move-exception p1
monitor-exit p0
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
throw p1
.end method
.method public cancel()V
.locals 1
const/4 v0, 0x1
iput-boolean v0, p0, Lt/i;->f:Z
monitor-enter p0
:try_start_0
iget-object v0, p0, Lt/i;->g:Lq/e;
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_0
check-cast v0, Lq/x;
invoke-virtual {v0}, Lq/x;->a()V
:cond_0
return-void
:catchall_0
move-exception v0
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v0
.end method
.method public bridge synthetic clone()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/CloneNotSupportedException;
}
.end annotation
invoke-virtual {p0}, Lt/i;->clone()Lt/i;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic clone()Lt/b;
.locals 1
invoke-virtual {p0}, Lt/i;->clone()Lt/i;
move-result-object v0
return-object v0
.end method
.method public clone()Lt/i;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lt/i<",
"TT;>;"
}
.end annotation
new-instance v0, Lt/i;
iget-object v1, p0, Lt/i;->d:Lt/r;
iget-object v2, p0, Lt/i;->e:[Ljava/lang/Object;
invoke-direct {v0, v1, v2}, Lt/i;-><init>(Lt/r;[Ljava/lang/Object;)V
return-object v0
.end method
.method public execute()Lt/o;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lt/o<",
"TT;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lt/i;->i:Z
if-nez v0, :cond_4
const/4 v0, 0x1
iput-boolean v0, p0, Lt/i;->i:Z
iget-object v0, p0, Lt/i;->h:Ljava/lang/Throwable;
if-eqz v0, :cond_1
iget-object v0, p0, Lt/i;->h:Ljava/lang/Throwable;
instance-of v0, v0, Ljava/io/IOException;
if-eqz v0, :cond_0
iget-object v0, p0, Lt/i;->h:Ljava/lang/Throwable;
check-cast v0, Ljava/io/IOException;
throw v0
:cond_0
iget-object v0, p0, Lt/i;->h:Ljava/lang/Throwable;
check-cast v0, Ljava/lang/RuntimeException;
throw v0
:cond_1
iget-object v0, p0, Lt/i;->g:Lq/e;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-nez v0, :cond_2
:try_start_1
invoke-virtual {p0}, Lt/i;->a()Lq/e;
move-result-object v0
iput-object v0, p0, Lt/i;->g:Lq/e;
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
.catch Ljava/lang/RuntimeException; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_1
:catch_0
move-exception v0
goto :goto_0
:catch_1
move-exception v0
:goto_0
:try_start_2
iput-object v0, p0, Lt/i;->h:Ljava/lang/Throwable;
throw v0
:cond_2
:goto_1
monitor-exit p0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
iget-boolean v1, p0, Lt/i;->f:Z
if-eqz v1, :cond_3
move-object v1, v0
check-cast v1, Lq/x;
invoke-virtual {v1}, Lq/x;->a()V
:cond_3
check-cast v0, Lq/x;
invoke-virtual {v0}, Lq/x;->b()Lokhttp3/Response;
move-result-object v0
invoke-virtual {p0, v0}, Lt/i;->a(Lokhttp3/Response;)Lt/o;
move-result-object v0
return-object v0
:cond_4
:try_start_3
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Already executed."
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:catchall_0
move-exception v0
monitor-exit p0
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
throw v0
.end method
.method public v()Z
.locals 2
iget-boolean v0, p0, Lt/i;->f:Z
const/4 v1, 0x1
if-eqz v0, :cond_0
return v1
:cond_0
monitor-enter p0
:try_start_0
iget-object v0, p0, Lt/i;->g:Lq/e;
if-eqz v0, :cond_2
iget-object v0, p0, Lt/i;->g:Lq/e;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
check-cast v0, Lq/x;
:try_start_1
iget-object v0, v0, Lq/x;->d:Lq/c0/c/n;
if-eqz v0, :cond_1
invoke-virtual {v0}, Lq/c0/c/n;->e()Z
move-result v0
if-eqz v0, :cond_2
goto :goto_0
:cond_1
const-string v0, "transmitter"
invoke-static {v0}, Lm/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
const/4 v0, 0x0
throw v0
:cond_2
const/4 v1, 0x0
:goto_0
:try_start_2
monitor-exit p0
return v1
:catchall_0
move-exception v0
monitor-exit p0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
throw v0
.end method