apkfuckery/com.discord/smali/b/i.smali

622 lines
12 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class final Lb/i;
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "OkHttpCall.java"
2019-02-04 20:08:30 +00:00
# interfaces
.implements Lb/b;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lb/i$a;,
Lb/i$b;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lb/b<",
"TT;>;"
}
.end annotation
# instance fields
2019-05-08 22:54:48 +00:00
.field private final bBM:Lb/o;
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Lb/o<",
"TT;*>;"
}
.end annotation
.end field
2019-05-08 22:54:48 +00:00
.field private final bBN:[Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
2019-05-08 22:54:48 +00:00
.field private bBO:Lokhttp3/e;
2019-02-27 21:13:14 +00:00
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.annotation build Ljavax/annotation/concurrent/GuardedBy;
value = "this"
.end annotation
.end field
2019-05-08 22:54:48 +00:00
.field private bBP:Ljava/lang/Throwable;
2019-02-04 20:08:30 +00:00
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.annotation build Ljavax/annotation/concurrent/GuardedBy;
value = "this"
.end annotation
.end field
2019-05-08 22:54:48 +00:00
.field private bpN:Z
2019-05-03 18:53:54 +00:00
.annotation build Ljavax/annotation/concurrent/GuardedBy;
value = "this"
.end annotation
.end field
2019-05-08 22:54:48 +00:00
.field private volatile brV:Z
2019-05-03 18:53:54 +00:00
2019-02-04 20:08:30 +00:00
# direct methods
.method constructor <init>(Lb/o;[Ljava/lang/Object;)V
.locals 0
.param p2 # [Ljava/lang/Object;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lb/o<",
"TT;*>;[",
"Ljava/lang/Object;",
")V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-05-08 22:54:48 +00:00
iput-object p1, p0, Lb/i;->bBM:Lb/o;
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iput-object p2, p0, Lb/i;->bBN:[Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
return-void
.end method
2019-05-04 02:59:52 +00:00
.method private EO()Lb/i;
2019-02-04 20:08:30 +00:00
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lb/i<",
"TT;>;"
}
.end annotation
new-instance v0, Lb/i;
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lb/i;->bBM:Lb/o;
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v2, p0, Lb/i;->bBN:[Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
invoke-direct {v0, v1, v2}, Lb/i;-><init>(Lb/o;[Ljava/lang/Object;)V
return-object v0
.end method
2019-05-04 02:59:52 +00:00
.method private EP()Lokhttp3/e;
2019-02-04 20:08:30 +00:00
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lb/i;->bBM:Lb/o;
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lb/i;->bBN:[Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, v1}, Lb/o;->o([Ljava/lang/Object;)Lokhttp3/w;
2019-02-04 20:08:30 +00:00
move-result-object v0
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lb/i;->bBM:Lb/o;
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v1, v1, Lb/o;->bCn:Lokhttp3/e$a;
2019-02-04 20:08:30 +00:00
invoke-interface {v1, v0}, Lokhttp3/e$a;->a(Lokhttp3/w;)Lokhttp3/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
# virtual methods
2019-05-04 02:59:52 +00:00
.method public final EK()Lb/m;
2019-02-04 20:08:30 +00:00
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lb/m<",
"TT;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
monitor-enter p0
:try_start_0
2019-05-08 22:54:48 +00:00
iget-boolean v0, p0, Lb/i;->bpN:Z
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_4
const/4 v0, 0x1
2019-05-08 22:54:48 +00:00
iput-boolean v0, p0, Lb/i;->bpN:Z
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lb/i;->bBP:Ljava/lang/Throwable;
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_1
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lb/i;->bBP:Ljava/lang/Throwable;
2019-02-04 20:08:30 +00:00
instance-of v0, v0, Ljava/io/IOException;
if-eqz v0, :cond_0
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lb/i;->bBP:Ljava/lang/Throwable;
2019-02-04 20:08:30 +00:00
check-cast v0, Ljava/io/IOException;
throw v0
:cond_0
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lb/i;->bBP:Ljava/lang/Throwable;
2019-02-04 20:08:30 +00:00
check-cast v0, Ljava/lang/RuntimeException;
throw v0
:cond_1
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lb/i;->bBO:Lokhttp3/e;
2019-02-04 20:08:30 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-nez v0, :cond_2
:try_start_1
2019-05-04 02:59:52 +00:00
invoke-direct {p0}, Lb/i;->EP()Lokhttp3/e;
2019-02-04 20:08:30 +00:00
move-result-object v0
2019-05-08 22:54:48 +00:00
iput-object v0, p0, Lb/i;->bBO:Lokhttp3/e;
2019-02-04 20:08:30 +00:00
:try_end_1
2019-02-17 02:24:41 +00:00
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
2019-02-04 20:08:30 +00:00
.catch Ljava/lang/RuntimeException; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
2019-02-17 02:24:41 +00:00
goto :goto_1
2019-02-08 08:21:44 +00:00
2019-02-17 00:24:05 +00:00
:catch_0
2019-02-08 08:21:44 +00:00
move-exception v0
2019-02-17 02:24:41 +00:00
goto :goto_0
:catch_1
move-exception v0
:goto_0
2019-02-04 20:08:30 +00:00
:try_start_2
2019-05-08 22:54:48 +00:00
iput-object v0, p0, Lb/i;->bBP:Ljava/lang/Throwable;
2019-02-04 20:08:30 +00:00
throw v0
:cond_2
2019-02-17 02:24:41 +00:00
:goto_1
2019-02-04 20:08:30 +00:00
monitor-exit p0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
2019-05-08 22:54:48 +00:00
iget-boolean v1, p0, Lb/i;->brV:Z
2019-02-04 20:08:30 +00:00
if-eqz v1, :cond_3
invoke-interface {v0}, Lokhttp3/e;->cancel()V
:cond_3
2019-05-04 02:59:52 +00:00
invoke-interface {v0}, Lokhttp3/e;->BI()Lokhttp3/Response;
2019-02-04 20:08:30 +00:00
move-result-object v0
invoke-virtual {p0, v0}, Lb/i;->g(Lokhttp3/Response;)Lb/m;
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
2019-05-04 02:59:52 +00:00
.method public final synthetic EL()Lb/b;
.locals 1
invoke-direct {p0}, Lb/i;->EO()Lb/i;
move-result-object v0
return-object v0
.end method
2019-02-04 20:08:30 +00:00
.method public final a(Lb/d;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lb/d<",
"TT;>;)V"
}
.end annotation
const-string v0, "callback == null"
invoke-static {p1, v0}, Lb/p;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
monitor-enter p0
:try_start_0
2019-05-08 22:54:48 +00:00
iget-boolean v0, p0, Lb/i;->bpN:Z
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_3
const/4 v0, 0x1
2019-05-08 22:54:48 +00:00
iput-boolean v0, p0, Lb/i;->bpN:Z
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lb/i;->bBO:Lokhttp3/e;
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lb/i;->bBP:Ljava/lang/Throwable;
2019-02-04 20:08:30 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-nez v0, :cond_0
if-nez v1, :cond_0
:try_start_1
2019-05-04 02:59:52 +00:00
invoke-direct {p0}, Lb/i;->EP()Lokhttp3/e;
2019-02-04 20:08:30 +00:00
move-result-object v2
2019-05-08 22:54:48 +00:00
iput-object v2, p0, Lb/i;->bBO:Lokhttp3/e;
2019-02-04 20:08:30 +00:00
:try_end_1
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
move-object v0, v2
goto :goto_0
:catch_0
move-exception v1
:try_start_2
2019-05-08 22:54:48 +00:00
iput-object v1, p0, Lb/i;->bBP:Ljava/lang/Throwable;
2019-02-04 20:08:30 +00:00
:cond_0
:goto_0
monitor-exit p0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
if-eqz v1, :cond_1
2019-05-04 02:59:52 +00:00
invoke-interface {p1, v1}, Lb/d;->B(Ljava/lang/Throwable;)V
2019-02-04 20:08:30 +00:00
return-void
:cond_1
2019-05-08 22:54:48 +00:00
iget-boolean v1, p0, Lb/i;->brV:Z
2019-02-04 20:08:30 +00:00
if-eqz v1, :cond_2
invoke-interface {v0}, Lokhttp3/e;->cancel()V
:cond_2
new-instance v1, Lb/i$1;
invoke-direct {v1, p0, p1}, Lb/i$1;-><init>(Lb/i;Lb/d;)V
2019-02-04 20:32:01 +00:00
invoke-interface {v0, v1}, Lokhttp3/e;->a(Lokhttp3/f;)V
2019-02-04 20:08:30 +00:00
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_0
move-exception p1
monitor-exit p0
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
throw p1
.end method
.method public final cancel()V
.locals 1
const/4 v0, 0x1
2019-05-08 22:54:48 +00:00
iput-boolean v0, p0, Lb/i;->brV:Z
2019-02-04 20:08:30 +00:00
monitor-enter p0
:try_start_0
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lb/i;->bBO:Lokhttp3/e;
2019-02-04 20:08:30 +00:00
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_0
invoke-interface {v0}, Lokhttp3/e;->cancel()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 final synthetic clone()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/CloneNotSupportedException;
}
.end annotation
2019-05-04 02:59:52 +00:00
invoke-direct {p0}, Lb/i;->EO()Lb/i;
2019-02-04 20:08:30 +00:00
move-result-object v0
return-object v0
.end method
.method final g(Lokhttp3/Response;)Lb/m;
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lokhttp3/Response;",
")",
"Lb/m<",
"TT;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-05-08 22:54:48 +00:00
iget-object v0, p1, Lokhttp3/Response;->bqc:Lokhttp3/x;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {p1}, Lokhttp3/Response;->Cs()Lokhttp3/Response$a;
2019-02-04 20:08:30 +00:00
move-result-object p1
new-instance v1, Lb/i$b;
invoke-virtual {v0}, Lokhttp3/x;->contentType()Lokhttp3/MediaType;
move-result-object v2
invoke-virtual {v0}, Lokhttp3/x;->contentLength()J
move-result-wide v3
invoke-direct {v1, v2, v3, v4}, Lb/i$b;-><init>(Lokhttp3/MediaType;J)V
2019-05-08 22:54:48 +00:00
iput-object v1, p1, Lokhttp3/Response$a;->bqc:Lokhttp3/x;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {p1}, Lokhttp3/Response$a;->Ct()Lokhttp3/Response;
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-02-27 21:13:14 +00:00
iget v1, p1, Lokhttp3/Response;->code:I
2019-02-04 20:08:30 +00:00
const/16 v2, 0xc8
if-lt v1, v2, :cond_3
const/16 v2, 0x12c
if-lt v1, v2, :cond_0
goto :goto_1
:cond_0
const/16 v2, 0xcc
if-eq v1, v2, :cond_2
const/16 v2, 0xcd
if-ne v1, v2, :cond_1
goto :goto_0
:cond_1
new-instance v1, Lb/i$a;
invoke-direct {v1, v0}, Lb/i$a;-><init>(Lokhttp3/x;)V
:try_start_0
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lb/i;->bBM:Lb/o;
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v0, v0, Lb/o;->bCx:Lb/e;
2019-02-04 20:08:30 +00:00
invoke-interface {v0, v1}, Lb/e;->convert(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
invoke-static {v0, p1}, Lb/m;->a(Ljava/lang/Object;Lokhttp3/Response;)Lb/m;
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
throw p1
:cond_2
:goto_0
invoke-virtual {v0}, Lokhttp3/x;->close()V
const/4 v0, 0x0
invoke-static {v0, p1}, Lb/m;->a(Ljava/lang/Object;Lokhttp3/Response;)Lb/m;
move-result-object p1
return-object p1
:cond_3
:goto_1
:try_start_1
2019-02-27 21:13:14 +00:00
invoke-static {v0}, Lb/p;->b(Lokhttp3/x;)Lokhttp3/x;
2019-02-04 20:08:30 +00:00
move-result-object v1
invoke-static {v1, p1}, Lb/m;->a(Lokhttp3/x;Lokhttp3/Response;)Lb/m;
move-result-object p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
invoke-virtual {v0}, Lokhttp3/x;->close()V
return-object p1
:catchall_0
move-exception p1
invoke-virtual {v0}, Lokhttp3/x;->close()V
throw p1
.end method
.method public final isCanceled()Z
.locals 2
2019-05-08 22:54:48 +00:00
iget-boolean v0, p0, Lb/i;->brV:Z
2019-02-04 20:08:30 +00:00
const/4 v1, 0x1
if-eqz v0, :cond_0
return v1
:cond_0
monitor-enter p0
:try_start_0
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lb/i;->bBO:Lokhttp3/e;
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_1
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lb/i;->bBO:Lokhttp3/e;
2019-02-04 20:08:30 +00:00
invoke-interface {v0}, Lokhttp3/e;->isCanceled()Z
move-result v0
if-eqz v0, :cond_1
goto :goto_0
:cond_1
const/4 v1, 0x0
:goto_0
monitor-exit p0
return v1
:catchall_0
move-exception v0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v0
.end method