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

618 lines
12 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class final Lb/i;
.super Ljava/lang/Object;
.source "OkHttpCall.java"
# 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-11-15 02:21:15 +00:00
.field private final bEw:Lb/o;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Lb/o<",
"TT;*>;"
}
.end annotation
.end field
2019-11-15 02:21:15 +00:00
.field private final bEx:[Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
2019-11-15 02:21:15 +00:00
.field private bEy:Lokhttp3/e;
2019-07-24 11:27:29 +00:00
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
2019-11-15 02:21:15 +00:00
.field private bEz:Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
2019-11-15 02:21:15 +00:00
.field private bsp:Z
2019-10-07 23:23:22 +00:00
2019-11-15 02:21:15 +00:00
.field private volatile bux:Z
2019-07-24 11:27:29 +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-11-15 02:21:15 +00:00
iput-object p1, p0, Lb/i;->bEw:Lb/o;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iput-object p2, p0, Lb/i;->bEx:[Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-11-15 02:21:15 +00:00
.method private Ix()Lb/i;
2019-07-24 11:27:29 +00:00
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lb/i<",
"TT;>;"
}
.end annotation
new-instance v0, Lb/i;
2019-11-15 02:21:15 +00:00
iget-object v1, p0, Lb/i;->bEw:Lb/o;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object v2, p0, Lb/i;->bEx:[Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
invoke-direct {v0, v1, v2}, Lb/i;-><init>(Lb/o;[Ljava/lang/Object;)V
return-object v0
.end method
2019-11-15 02:21:15 +00:00
.method private Iy()Lokhttp3/e;
2019-07-24 11:27:29 +00:00
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Lb/i;->bEw:Lb/o;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object v1, p0, Lb/i;->bEx:[Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
invoke-virtual {v0, v1}, Lb/o;->e([Ljava/lang/Object;)Lokhttp3/w;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-11-15 02:21:15 +00:00
iget-object v1, p0, Lb/i;->bEw:Lb/o;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object v1, v1, Lb/o;->bEX:Lokhttp3/e$a;
2019-07-24 11:27:29 +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-11-15 02:21:15 +00:00
.method public final It()Lb/m;
2019-07-24 11:27:29 +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-11-15 02:21:15 +00:00
iget-boolean v0, p0, Lb/i;->bsp:Z
2019-07-24 11:27:29 +00:00
if-nez v0, :cond_4
const/4 v0, 0x1
2019-11-15 02:21:15 +00:00
iput-boolean v0, p0, Lb/i;->bsp:Z
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Lb/i;->bEz:Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_1
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Lb/i;->bEz:Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
instance-of v0, v0, Ljava/io/IOException;
if-eqz v0, :cond_0
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Lb/i;->bEz:Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
check-cast v0, Ljava/io/IOException;
throw v0
:cond_0
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Lb/i;->bEz:Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
check-cast v0, Ljava/lang/RuntimeException;
throw v0
:cond_1
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Lb/i;->bEy:Lokhttp3/e;
2019-07-24 11:27:29 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-nez v0, :cond_2
:try_start_1
2019-11-15 02:21:15 +00:00
invoke-direct {p0}, Lb/i;->Iy()Lokhttp3/e;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-11-15 02:21:15 +00:00
iput-object v0, p0, Lb/i;->bEy:Lokhttp3/e;
2019-07-24 11:27:29 +00:00
: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
2019-11-15 02:21:15 +00:00
iput-object v0, p0, Lb/i;->bEz:Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
throw v0
:cond_2
:goto_1
monitor-exit p0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
2019-11-15 02:21:15 +00:00
iget-boolean v1, p0, Lb/i;->bux:Z
2019-07-24 11:27:29 +00:00
if-eqz v1, :cond_3
invoke-interface {v0}, Lokhttp3/e;->cancel()V
:cond_3
2019-11-15 02:21:15 +00:00
invoke-interface {v0}, Lokhttp3/e;->Fg()Lokhttp3/Response;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-08-17 08:22:04 +00:00
invoke-virtual {p0, v0}, Lb/i;->h(Lokhttp3/Response;)Lb/m;
2019-07-24 11:27:29 +00:00
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-11-15 02:21:15 +00:00
.method public final synthetic Iu()Lb/b;
2019-07-24 11:27:29 +00:00
.locals 1
2019-11-15 02:21:15 +00:00
invoke-direct {p0}, Lb/i;->Ix()Lb/i;
2019-07-24 11:27:29 +00:00
move-result-object v0
return-object v0
.end method
.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"
2019-10-09 23:16:36 +00:00
invoke-static {p1, v0}, Lb/p;->g(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
monitor-enter p0
:try_start_0
2019-11-15 02:21:15 +00:00
iget-boolean v0, p0, Lb/i;->bsp:Z
2019-07-24 11:27:29 +00:00
if-nez v0, :cond_3
const/4 v0, 0x1
2019-11-15 02:21:15 +00:00
iput-boolean v0, p0, Lb/i;->bsp:Z
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Lb/i;->bEy:Lokhttp3/e;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object v1, p0, Lb/i;->bEz:Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
:try_end_0
2019-08-30 20:04:20 +00:00
.catchall {:try_start_0 .. :try_end_0} :catchall_1
2019-07-24 11:27:29 +00:00
if-nez v0, :cond_0
if-nez v1, :cond_0
:try_start_1
2019-11-15 02:21:15 +00:00
invoke-direct {p0}, Lb/i;->Iy()Lokhttp3/e;
2019-07-24 11:27:29 +00:00
move-result-object v2
2019-11-15 02:21:15 +00:00
iput-object v2, p0, Lb/i;->bEy:Lokhttp3/e;
2019-07-24 11:27:29 +00:00
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
move-object v0, v2
goto :goto_0
2019-08-30 20:04:20 +00:00
:catchall_0
2019-07-24 11:27:29 +00:00
move-exception v1
:try_start_2
2019-11-15 02:21:15 +00:00
iput-object v1, p0, Lb/i;->bEz:Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
:cond_0
:goto_0
monitor-exit p0
:try_end_2
2019-08-30 20:04:20 +00:00
.catchall {:try_start_2 .. :try_end_2} :catchall_1
2019-07-24 11:27:29 +00:00
if-eqz v1, :cond_1
invoke-interface {p1, v1}, Lb/d;->C(Ljava/lang/Throwable;)V
return-void
:cond_1
2019-11-15 02:21:15 +00:00
iget-boolean v1, p0, Lb/i;->bux:Z
2019-07-24 11:27:29 +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
invoke-interface {v0, v1}, Lokhttp3/e;->a(Lokhttp3/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
2019-08-30 20:04:20 +00:00
:catchall_1
2019-07-24 11:27:29 +00:00
move-exception p1
monitor-exit p0
:try_end_3
2019-08-30 20:04:20 +00:00
.catchall {:try_start_3 .. :try_end_3} :catchall_1
2019-07-24 11:27:29 +00:00
throw p1
.end method
.method public final cancel()V
.locals 1
const/4 v0, 0x1
2019-11-15 02:21:15 +00:00
iput-boolean v0, p0, Lb/i;->bux:Z
2019-07-24 11:27:29 +00:00
monitor-enter p0
:try_start_0
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Lb/i;->bEy:Lokhttp3/e;
2019-07-24 11:27:29 +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-11-15 02:21:15 +00:00
invoke-direct {p0}, Lb/i;->Ix()Lb/i;
2019-07-24 11:27:29 +00:00
move-result-object v0
return-object v0
.end method
2019-08-17 08:22:04 +00:00
.method final h(Lokhttp3/Response;)Lb/m;
2019-07-24 11:27:29 +00:00
.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-11-15 02:21:15 +00:00
iget-object v0, p1, Lokhttp3/Response;->bsF:Lokhttp3/x;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual {p1}, Lokhttp3/Response;->FR()Lokhttp3/Response$a;
2019-07-24 11:27:29 +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-11-15 02:21:15 +00:00
iput-object v1, p1, Lokhttp3/Response$a;->bsF:Lokhttp3/x;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual {p1}, Lokhttp3/Response$a;->FS()Lokhttp3/Response;
2019-07-24 11:27:29 +00:00
move-result-object p1
iget v1, p1, Lokhttp3/Response;->code:I
const/16 v2, 0xc8
2019-10-09 23:16:36 +00:00
if-lt v1, v2, :cond_4
2019-07-24 11:27:29 +00:00
const/16 v2, 0x12c
if-lt v1, v2, :cond_0
goto :goto_1
:cond_0
const/16 v2, 0xcc
2019-10-09 23:16:36 +00:00
if-eq v1, v2, :cond_3
2019-07-24 11:27:29 +00:00
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-11-15 02:21:15 +00:00
iget-object v0, p0, Lb/i;->bEw:Lb/o;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object v0, v0, Lb/o;->bFh:Lb/e;
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
invoke-interface {v0, v1}, Lb/e;->bo(Ljava/lang/Object;)Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
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
2019-11-15 02:21:15 +00:00
iget-object v0, v1, Lb/i$a;->bEC:Ljava/io/IOException;
2019-10-09 23:16:36 +00:00
if-eqz v0, :cond_2
2019-11-15 02:21:15 +00:00
iget-object p1, v1, Lb/i$a;->bEC:Ljava/io/IOException;
2019-10-09 23:16:36 +00:00
2019-07-24 11:27:29 +00:00
throw p1
:cond_2
2019-10-09 23:16:36 +00:00
throw p1
:cond_3
2019-07-24 11:27:29 +00:00
: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
2019-10-09 23:16:36 +00:00
:cond_4
2019-07-24 11:27:29 +00:00
:goto_1
:try_start_1
invoke-static {v0}, Lb/p;->b(Lokhttp3/x;)Lokhttp3/x;
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-11-15 02:21:15 +00:00
iget-boolean v0, p0, Lb/i;->bux:Z
2019-07-24 11:27:29 +00:00
const/4 v1, 0x1
if-eqz v0, :cond_0
return v1
:cond_0
monitor-enter p0
:try_start_0
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Lb/i;->bEy:Lokhttp3/e;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_1
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Lb/i;->bEy:Lokhttp3/e;
2019-07-24 11:27:29 +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