apkfuckery/com.discord/smali_classes2/j0/t.smali

1096 lines
22 KiB
Smali
Raw Normal View History

2020-09-29 21:44:44 +00:00
.class public final Lj0/t;
2020-09-16 23:45:23 +00:00
.super Ljava/lang/Object;
.source "OkHttpCall.java"
# interfaces
2020-09-29 21:44:44 +00:00
.implements Lj0/d;
2020-09-16 23:45:23 +00:00
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2020-09-29 21:44:44 +00:00
Lj0/t$c;,
Lj0/t$b;
2020-09-16 23:45:23 +00:00
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
2020-09-29 21:44:44 +00:00
"Lj0/d<",
2020-09-16 23:45:23 +00:00
"TT;>;"
}
.end annotation
# instance fields
2020-09-29 21:44:44 +00:00
.field public final d:Lj0/a0;
2020-09-16 23:45:23 +00:00
.field public final e:[Ljava/lang/Object;
2020-09-29 21:44:44 +00:00
.field public final f:Lf0/f$a;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
.field public final g:Lj0/h;
2020-09-16 23:45:23 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-09-29 21:44:44 +00:00
"Lj0/h<",
2020-09-16 23:45:23 +00:00
"Lokhttp3/ResponseBody;",
"TT;>;"
}
.end annotation
.end field
.field public volatile h:Z
2020-09-29 21:44:44 +00:00
.field public i:Lf0/f;
2020-09-16 23:45:23 +00:00
.field public j:Ljava/lang/Throwable;
.field public k:Z
# direct methods
2020-09-29 21:44:44 +00:00
.method public constructor <init>(Lj0/a0;[Ljava/lang/Object;Lf0/f$a;Lj0/h;)V
2020-09-16 23:45:23 +00:00
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-09-29 21:44:44 +00:00
"Lj0/a0;",
2020-09-16 23:45:23 +00:00
"[",
"Ljava/lang/Object;",
2020-09-29 21:44:44 +00:00
"Lf0/f$a;",
"Lj0/h<",
2020-09-16 23:45:23 +00:00
"Lokhttp3/ResponseBody;",
"TT;>;)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-09-29 21:44:44 +00:00
iput-object p1, p0, Lj0/t;->d:Lj0/a0;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iput-object p2, p0, Lj0/t;->e:[Ljava/lang/Object;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iput-object p3, p0, Lj0/t;->f:Lf0/f$a;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iput-object p4, p0, Lj0/t;->g:Lj0/h;
2020-09-16 23:45:23 +00:00
return-void
.end method
# virtual methods
2020-09-29 21:44:44 +00:00
.method public final b()Lf0/f;
2020-09-16 23:45:23 +00:00
.locals 15
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2020-09-29 21:44:44 +00:00
iget-object v0, p0, Lj0/t;->f:Lf0/f$a;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v1, p0, Lj0/t;->d:Lj0/a0;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v2, p0, Lj0/t;->e:[Ljava/lang/Object;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v3, v1, Lj0/a0;->j:[Lj0/x;
2020-09-16 23:45:23 +00:00
array-length v4, v2
array-length v5, v3
if-ne v4, v5, :cond_c
2020-09-29 21:44:44 +00:00
new-instance v5, Lj0/z;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v7, v1, Lj0/a0;->c:Ljava/lang/String;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v8, v1, Lj0/a0;->b:Lf0/y;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v9, v1, Lj0/a0;->d:Ljava/lang/String;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v10, v1, Lj0/a0;->e:Lokhttp3/Headers;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v11, v1, Lj0/a0;->f:Lokhttp3/MediaType;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-boolean v12, v1, Lj0/a0;->g:Z
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-boolean v13, v1, Lj0/a0;->h:Z
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-boolean v14, v1, Lj0/a0;->i:Z
2020-09-16 23:45:23 +00:00
move-object v6, v5
2020-09-29 21:44:44 +00:00
invoke-direct/range {v6 .. v14}, Lj0/z;-><init>(Ljava/lang/String;Lf0/y;Ljava/lang/String;Lokhttp3/Headers;Lokhttp3/MediaType;ZZZ)V
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-boolean v6, v1, Lj0/a0;->k:Z
2020-09-16 23:45:23 +00:00
if-eqz v6, :cond_0
add-int/lit8 v4, v4, -0x1
:cond_0
new-instance v6, Ljava/util/ArrayList;
invoke-direct {v6, v4}, Ljava/util/ArrayList;-><init>(I)V
const/4 v7, 0x0
const/4 v8, 0x0
:goto_0
if-ge v8, v4, :cond_1
aget-object v9, v2, v8
invoke-virtual {v6, v9}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
aget-object v9, v3, v8
aget-object v10, v2, v8
2020-09-29 21:44:44 +00:00
invoke-virtual {v9, v5, v10}, Lj0/x;->a(Lj0/z;Ljava/lang/Object;)V
2020-09-16 23:45:23 +00:00
add-int/lit8 v8, v8, 0x1
goto :goto_0
:cond_1
2020-09-29 21:44:44 +00:00
iget-object v2, v5, Lj0/z;->d:Lf0/y$a;
2020-09-16 23:45:23 +00:00
const/4 v3, 0x0
if-eqz v2, :cond_2
2020-09-29 21:44:44 +00:00
invoke-virtual {v2}, Lf0/y$a;->b()Lf0/y;
2020-09-16 23:45:23 +00:00
move-result-object v2
goto :goto_2
:cond_2
2020-09-29 21:44:44 +00:00
iget-object v2, v5, Lj0/z;->b:Lf0/y;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v4, v5, Lj0/z;->c:Ljava/lang/String;
2020-09-16 23:45:23 +00:00
if-eqz v2, :cond_b
const-string v8, "link"
2020-09-29 21:44:44 +00:00
invoke-static {v4, v8}, Lb0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
invoke-virtual {v2, v4}, Lf0/y;->g(Ljava/lang/String;)Lf0/y$a;
2020-09-16 23:45:23 +00:00
move-result-object v2
if-eqz v2, :cond_3
2020-09-29 21:44:44 +00:00
invoke-virtual {v2}, Lf0/y$a;->b()Lf0/y;
2020-09-16 23:45:23 +00:00
move-result-object v2
goto :goto_1
:cond_3
move-object v2, v3
:goto_1
if-eqz v2, :cond_a
:goto_2
2020-09-29 21:44:44 +00:00
iget-object v4, v5, Lj0/z;->k:Lokhttp3/RequestBody;
2020-09-16 23:45:23 +00:00
if-nez v4, :cond_6
2020-09-29 21:44:44 +00:00
iget-object v8, v5, Lj0/z;->j:Lf0/v$a;
2020-09-16 23:45:23 +00:00
if-eqz v8, :cond_4
2020-09-29 21:44:44 +00:00
new-instance v4, Lf0/v;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v3, v8, Lf0/v$a;->a:Ljava/util/List;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v7, v8, Lf0/v$a;->b:Ljava/util/List;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
invoke-direct {v4, v3, v7}, Lf0/v;-><init>(Ljava/util/List;Ljava/util/List;)V
2020-09-16 23:45:23 +00:00
goto :goto_3
:cond_4
2020-09-29 21:44:44 +00:00
iget-object v8, v5, Lj0/z;->i:Lokhttp3/MultipartBody$a;
2020-09-16 23:45:23 +00:00
if-eqz v8, :cond_5
invoke-virtual {v8}, Lokhttp3/MultipartBody$a;->b()Lokhttp3/MultipartBody;
move-result-object v4
goto :goto_3
:cond_5
2020-09-29 21:44:44 +00:00
iget-boolean v8, v5, Lj0/z;->h:Z
2020-09-16 23:45:23 +00:00
if-eqz v8, :cond_6
new-array v4, v7, [B
invoke-static {v3, v4}, Lokhttp3/RequestBody;->create(Lokhttp3/MediaType;[B)Lokhttp3/RequestBody;
move-result-object v4
:cond_6
:goto_3
2020-09-29 21:44:44 +00:00
iget-object v3, v5, Lj0/z;->g:Lokhttp3/MediaType;
2020-09-16 23:45:23 +00:00
if-eqz v3, :cond_8
if-eqz v4, :cond_7
2020-09-29 21:44:44 +00:00
new-instance v7, Lj0/z$a;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
invoke-direct {v7, v4, v3}, Lj0/z$a;-><init>(Lokhttp3/RequestBody;Lokhttp3/MediaType;)V
2020-09-16 23:45:23 +00:00
move-object v4, v7
goto :goto_4
:cond_7
2020-09-29 21:44:44 +00:00
iget-object v7, v5, Lj0/z;->f:Lokhttp3/Headers$a;
2020-09-16 23:45:23 +00:00
iget-object v3, v3, Lokhttp3/MediaType;->a:Ljava/lang/String;
const-string v8, "Content-Type"
invoke-virtual {v7, v8, v3}, Lokhttp3/Headers$a;->a(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
:cond_8
:goto_4
2020-09-29 21:44:44 +00:00
iget-object v3, v5, Lj0/z;->e:Lf0/b0$a;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
invoke-virtual {v3, v2}, Lf0/b0$a;->g(Lf0/y;)Lf0/b0$a;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v2, v5, Lj0/z;->f:Lokhttp3/Headers$a;
2020-09-16 23:45:23 +00:00
invoke-virtual {v2}, Lokhttp3/Headers$a;->c()Lokhttp3/Headers;
move-result-object v2
const-string v7, "headers"
2020-09-29 21:44:44 +00:00
invoke-static {v2, v7}, Lb0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-16 23:45:23 +00:00
invoke-virtual {v2}, Lokhttp3/Headers;->e()Lokhttp3/Headers$a;
move-result-object v2
2020-09-29 21:44:44 +00:00
iput-object v2, v3, Lf0/b0$a;->c:Lokhttp3/Headers$a;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v2, v5, Lj0/z;->a:Ljava/lang/String;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
invoke-virtual {v3, v2, v4}, Lf0/b0$a;->c(Ljava/lang/String;Lokhttp3/RequestBody;)Lf0/b0$a;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
const-class v2, Lj0/k;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
new-instance v4, Lj0/k;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v1, v1, Lj0/a0;->a:Ljava/lang/reflect/Method;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
invoke-direct {v4, v1, v6}, Lj0/k;-><init>(Ljava/lang/reflect/Method;Ljava/util/List;)V
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
invoke-virtual {v3, v2, v4}, Lf0/b0$a;->e(Ljava/lang/Class;Ljava/lang/Object;)Lf0/b0$a;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
invoke-virtual {v3}, Lf0/b0$a;->a()Lf0/b0;
2020-09-16 23:45:23 +00:00
move-result-object v1
2020-09-29 21:44:44 +00:00
invoke-interface {v0, v1}, Lf0/f$a;->b(Lf0/b0;)Lf0/f;
2020-09-16 23:45:23 +00:00
move-result-object v0
if-eqz v0, :cond_9
return-object v0
:cond_9
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
:cond_a
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Malformed URL. Base: "
2020-10-03 03:03:24 +00:00
invoke-static {v1}, Lf/e/c/a/a;->F(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-09-16 23:45:23 +00:00
move-result-object v1
2020-09-29 21:44:44 +00:00
iget-object v2, v5, Lj0/z;->b:Lf0/y;
2020-09-16 23:45:23 +00:00
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v2, ", Relative: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-09-29 21:44:44 +00:00
iget-object v2, v5, Lj0/z;->c:Ljava/lang/String;
2020-09-16 23:45:23 +00:00
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
:cond_b
throw v3
:cond_c
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Argument count ("
const-string v2, ") doesn\'t match expected count ("
2020-10-03 03:03:24 +00:00
invoke-static {v1, v4, v2}, Lf/e/c/a/a;->G(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/StringBuilder;
2020-09-16 23:45:23 +00:00
move-result-object v1
array-length v2, v3
const-string v3, ")"
2020-09-23 03:12:49 +00:00
invoke-static {v1, v2, v3}, Lf/e/c/a/a;->t(Ljava/lang/StringBuilder;ILjava/lang/String;)Ljava/lang/String;
2020-09-16 23:45:23 +00:00
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method
2020-09-29 21:44:44 +00:00
.method public b0(Lj0/f;)V
2020-09-16 23:45:23 +00:00
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-09-29 21:44:44 +00:00
"Lj0/f<",
2020-09-16 23:45:23 +00:00
"TT;>;)V"
}
.end annotation
const-string v0, "callback == null"
invoke-static {p1, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
monitor-enter p0
:try_start_0
2020-09-29 21:44:44 +00:00
iget-boolean v0, p0, Lj0/t;->k:Z
2020-09-16 23:45:23 +00:00
if-nez v0, :cond_3
const/4 v0, 0x1
2020-09-29 21:44:44 +00:00
iput-boolean v0, p0, Lj0/t;->k:Z
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v0, p0, Lj0/t;->i:Lf0/f;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v1, p0, Lj0/t;->j:Ljava/lang/Throwable;
2020-09-16 23:45:23 +00:00
: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
2020-09-29 21:44:44 +00:00
invoke-virtual {p0}, Lj0/t;->b()Lf0/f;
2020-09-16 23:45:23 +00:00
move-result-object v2
2020-09-29 21:44:44 +00:00
iput-object v2, p0, Lj0/t;->i:Lf0/f;
2020-09-16 23:45:23 +00:00
: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
2020-09-29 21:44:44 +00:00
invoke-static {v1}, Lj0/h0;->o(Ljava/lang/Throwable;)V
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iput-object v1, p0, Lj0/t;->j:Ljava/lang/Throwable;
2020-09-16 23:45:23 +00:00
:cond_0
:goto_0
monitor-exit p0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
if-eqz v1, :cond_1
2020-09-29 21:44:44 +00:00
invoke-interface {p1, p0, v1}, Lj0/f;->a(Lj0/d;Ljava/lang/Throwable;)V
2020-09-16 23:45:23 +00:00
return-void
:cond_1
2020-09-29 21:44:44 +00:00
iget-boolean v1, p0, Lj0/t;->h:Z
2020-09-16 23:45:23 +00:00
if-eqz v1, :cond_2
2020-09-29 21:44:44 +00:00
invoke-interface {v0}, Lf0/f;->cancel()V
2020-09-16 23:45:23 +00:00
:cond_2
2020-09-29 21:44:44 +00:00
new-instance v1, Lj0/t$a;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
invoke-direct {v1, p0, p1}, Lj0/t$a;-><init>(Lj0/t;Lj0/f;)V
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
invoke-interface {v0, v1}, Lf0/f;->I(Lf0/g;)V
2020-09-16 23:45:23 +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_1
move-exception p1
monitor-exit p0
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
throw p1
.end method
2020-09-29 21:44:44 +00:00
.method public final c()Lf0/f;
2020-09-16 23:45:23 +00:00
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2020-09-29 21:44:44 +00:00
iget-object v0, p0, Lj0/t;->i:Lf0/f;
2020-09-16 23:45:23 +00:00
if-eqz v0, :cond_0
return-object v0
:cond_0
2020-09-29 21:44:44 +00:00
iget-object v0, p0, Lj0/t;->j:Ljava/lang/Throwable;
2020-09-16 23:45:23 +00:00
if-eqz v0, :cond_3
instance-of v1, v0, Ljava/io/IOException;
if-nez v1, :cond_2
instance-of v1, v0, Ljava/lang/RuntimeException;
if-eqz v1, :cond_1
check-cast v0, Ljava/lang/RuntimeException;
throw v0
:cond_1
check-cast v0, Ljava/lang/Error;
throw v0
:cond_2
check-cast v0, Ljava/io/IOException;
throw v0
:cond_3
:try_start_0
2020-09-29 21:44:44 +00:00
invoke-virtual {p0}, Lj0/t;->b()Lf0/f;
2020-09-16 23:45:23 +00:00
move-result-object v0
2020-09-29 21:44:44 +00:00
iput-object v0, p0, Lj0/t;->i:Lf0/f;
2020-09-16 23:45:23 +00:00
:try_end_0
.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_2
.catch Ljava/lang/Error; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
return-object v0
:catch_0
move-exception v0
goto :goto_0
:catch_1
move-exception v0
goto :goto_0
:catch_2
move-exception v0
:goto_0
2020-09-29 21:44:44 +00:00
invoke-static {v0}, Lj0/h0;->o(Ljava/lang/Throwable;)V
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iput-object v0, p0, Lj0/t;->j:Ljava/lang/Throwable;
2020-09-16 23:45:23 +00:00
throw v0
.end method
.method public cancel()V
.locals 1
const/4 v0, 0x1
2020-09-29 21:44:44 +00:00
iput-boolean v0, p0, Lj0/t;->h:Z
2020-09-16 23:45:23 +00:00
monitor-enter p0
:try_start_0
2020-09-29 21:44:44 +00:00
iget-object v0, p0, Lj0/t;->i:Lf0/f;
2020-09-16 23:45:23 +00:00
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_0
2020-09-29 21:44:44 +00:00
invoke-interface {v0}, Lf0/f;->cancel()V
2020-09-16 23:45:23 +00:00
: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 clone()Ljava/lang/Object;
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/CloneNotSupportedException;
}
.end annotation
2020-09-29 21:44:44 +00:00
new-instance v0, Lj0/t;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v1, p0, Lj0/t;->d:Lj0/a0;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v2, p0, Lj0/t;->e:[Ljava/lang/Object;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v3, p0, Lj0/t;->f:Lf0/f$a;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v4, p0, Lj0/t;->g:Lj0/h;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
invoke-direct {v0, v1, v2, v3, v4}, Lj0/t;-><init>(Lj0/a0;[Ljava/lang/Object;Lf0/f$a;Lj0/h;)V
2020-09-16 23:45:23 +00:00
return-object v0
.end method
2020-09-29 21:44:44 +00:00
.method public d(Lokhttp3/Response;)Lj0/b0;
2020-09-16 23:45:23 +00:00
.locals 21
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lokhttp3/Response;",
")",
2020-09-29 21:44:44 +00:00
"Lj0/b0<",
2020-09-16 23:45:23 +00:00
"TT;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
move-object/from16 v0, p1
iget-object v1, v0, Lokhttp3/Response;->j:Lokhttp3/ResponseBody;
const-string v2, "response"
2020-09-29 21:44:44 +00:00
invoke-static {v0, v2}, Lb0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v4, v0, Lokhttp3/Response;->d:Lf0/b0;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v5, v0, Lokhttp3/Response;->e:Lf0/a0;
2020-09-16 23:45:23 +00:00
iget v7, v0, Lokhttp3/Response;->g:I
iget-object v6, v0, Lokhttp3/Response;->f:Ljava/lang/String;
2020-09-29 21:44:44 +00:00
iget-object v8, v0, Lokhttp3/Response;->h:Lf0/x;
2020-09-16 23:45:23 +00:00
iget-object v2, v0, Lokhttp3/Response;->i:Lokhttp3/Headers;
invoke-virtual {v2}, Lokhttp3/Headers;->e()Lokhttp3/Headers$a;
move-result-object v2
iget-object v3, v0, Lokhttp3/Response;->j:Lokhttp3/ResponseBody;
iget-object v11, v0, Lokhttp3/Response;->k:Lokhttp3/Response;
iget-object v12, v0, Lokhttp3/Response;->l:Lokhttp3/Response;
iget-object v13, v0, Lokhttp3/Response;->m:Lokhttp3/Response;
iget-wide v14, v0, Lokhttp3/Response;->n:J
iget-wide v9, v0, Lokhttp3/Response;->o:J
2020-09-29 21:44:44 +00:00
iget-object v0, v0, Lokhttp3/Response;->p:Lf0/h0/g/c;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
new-instance v3, Lj0/t$c;
2020-09-16 23:45:23 +00:00
move-wide/from16 v16, v9
invoke-virtual {v1}, Lokhttp3/ResponseBody;->b()Lokhttp3/MediaType;
move-result-object v9
move-wide/from16 v19, v14
invoke-virtual {v1}, Lokhttp3/ResponseBody;->a()J
move-result-wide v14
2020-09-29 21:44:44 +00:00
invoke-direct {v3, v9, v14, v15}, Lj0/t$c;-><init>(Lokhttp3/MediaType;J)V
2020-09-16 23:45:23 +00:00
if-ltz v7, :cond_0
const/4 v9, 0x1
goto :goto_0
:cond_0
const/4 v9, 0x0
:goto_0
if-eqz v9, :cond_a
if-eqz v4, :cond_9
if-eqz v5, :cond_8
if-eqz v6, :cond_7
invoke-virtual {v2}, Lokhttp3/Headers$a;->c()Lokhttp3/Headers;
move-result-object v9
new-instance v2, Lokhttp3/Response;
move-object v10, v3
move-object v3, v2
move-wide/from16 v14, v19
move-object/from16 v18, v0
2020-09-29 21:44:44 +00:00
invoke-direct/range {v3 .. v18}, Lokhttp3/Response;-><init>(Lf0/b0;Lf0/a0;Ljava/lang/String;ILf0/x;Lokhttp3/Headers;Lokhttp3/ResponseBody;Lokhttp3/Response;Lokhttp3/Response;Lokhttp3/Response;JJLf0/h0/g/c;)V
2020-09-16 23:45:23 +00:00
iget v0, v2, Lokhttp3/Response;->g:I
const/16 v3, 0xc8
const/4 v4, 0x0
if-lt v0, v3, :cond_5
const/16 v3, 0x12c
if-lt v0, v3, :cond_1
goto :goto_2
:cond_1
const/16 v3, 0xcc
if-eq v0, v3, :cond_4
const/16 v3, 0xcd
if-ne v0, v3, :cond_2
goto :goto_1
:cond_2
2020-09-29 21:44:44 +00:00
new-instance v3, Lj0/t$b;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
invoke-direct {v3, v1}, Lj0/t$b;-><init>(Lokhttp3/ResponseBody;)V
2020-09-16 23:45:23 +00:00
move-object/from16 v5, p0
:try_start_0
2020-09-29 21:44:44 +00:00
iget-object v0, v5, Lj0/t;->g:Lj0/h;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
invoke-interface {v0, v3}, Lj0/h;->a(Ljava/lang/Object;)Ljava/lang/Object;
2020-09-16 23:45:23 +00:00
move-result-object v0
2020-09-29 21:44:44 +00:00
invoke-static {v0, v2}, Lj0/b0;->b(Ljava/lang/Object;Lokhttp3/Response;)Lj0/b0;
2020-09-16 23:45:23 +00:00
move-result-object v0
:try_end_0
.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0
return-object v0
:catch_0
move-exception v0
2020-09-29 21:44:44 +00:00
iget-object v1, v3, Lj0/t$b;->h:Ljava/io/IOException;
2020-09-16 23:45:23 +00:00
if-nez v1, :cond_3
throw v0
:cond_3
throw v1
:cond_4
:goto_1
move-object/from16 v5, p0
invoke-virtual {v1}, Lokhttp3/ResponseBody;->close()V
2020-09-29 21:44:44 +00:00
invoke-static {v4, v2}, Lj0/b0;->b(Ljava/lang/Object;Lokhttp3/Response;)Lj0/b0;
2020-09-16 23:45:23 +00:00
move-result-object v0
return-object v0
:cond_5
:goto_2
move-object/from16 v5, p0
:try_start_1
2020-09-29 21:44:44 +00:00
invoke-static {v1}, Lj0/h0;->a(Lokhttp3/ResponseBody;)Lokhttp3/ResponseBody;
2020-09-16 23:45:23 +00:00
move-result-object v0
const-string v3, "body == null"
invoke-static {v0, v3}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
const-string v3, "rawResponse == null"
invoke-static {v2, v3}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
invoke-virtual {v2}, Lokhttp3/Response;->b()Z
move-result v3
if-nez v3, :cond_6
2020-09-29 21:44:44 +00:00
new-instance v3, Lj0/b0;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
invoke-direct {v3, v2, v4, v0}, Lj0/b0;-><init>(Lokhttp3/Response;Ljava/lang/Object;Lokhttp3/ResponseBody;)V
2020-09-16 23:45:23 +00:00
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
invoke-virtual {v1}, Lokhttp3/ResponseBody;->close()V
return-object v3
:cond_6
:try_start_2
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v2, "rawResponse should not be successful response"
invoke-direct {v0, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
:catchall_0
move-exception v0
invoke-virtual {v1}, Lokhttp3/ResponseBody;->close()V
throw v0
:cond_7
move-object/from16 v5, p0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "message == null"
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:cond_8
move-object/from16 v5, p0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "protocol == null"
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:cond_9
move-object/from16 v5, p0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "request == null"
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:cond_a
move-object/from16 v5, p0
const-string v0, "code < 0: "
2020-09-23 03:12:49 +00:00
invoke-static {v0, v7}, Lf/e/c/a/a;->i(Ljava/lang/String;I)Ljava/lang/String;
2020-09-16 23:45:23 +00:00
move-result-object v0
new-instance v1, Ljava/lang/IllegalStateException;
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v1
.end method
2020-09-29 21:44:44 +00:00
.method public execute()Lj0/b0;
2020-09-16 23:45:23 +00:00
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
2020-09-29 21:44:44 +00:00
"Lj0/b0<",
2020-09-16 23:45:23 +00:00
"TT;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
monitor-enter p0
:try_start_0
2020-09-29 21:44:44 +00:00
iget-boolean v0, p0, Lj0/t;->k:Z
2020-09-16 23:45:23 +00:00
if-nez v0, :cond_1
const/4 v0, 0x1
2020-09-29 21:44:44 +00:00
iput-boolean v0, p0, Lj0/t;->k:Z
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
invoke-virtual {p0}, Lj0/t;->c()Lf0/f;
2020-09-16 23:45:23 +00:00
move-result-object v0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2020-09-29 21:44:44 +00:00
iget-boolean v1, p0, Lj0/t;->h:Z
2020-09-16 23:45:23 +00:00
if-eqz v1, :cond_0
2020-09-29 21:44:44 +00:00
invoke-interface {v0}, Lf0/f;->cancel()V
2020-09-16 23:45:23 +00:00
:cond_0
2020-09-29 21:44:44 +00:00
invoke-interface {v0}, Lf0/f;->execute()Lokhttp3/Response;
2020-09-16 23:45:23 +00:00
move-result-object v0
2020-09-29 21:44:44 +00:00
invoke-virtual {p0, v0}, Lj0/t;->d(Lokhttp3/Response;)Lj0/b0;
2020-09-16 23:45:23 +00:00
move-result-object v0
return-object v0
:cond_1
:try_start_1
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_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v0
.end method
2020-09-29 21:44:44 +00:00
.method public declared-synchronized g()Lf0/b0;
2020-09-16 23:45:23 +00:00
.locals 3
monitor-enter p0
:try_start_0
2020-09-29 21:44:44 +00:00
invoke-virtual {p0}, Lj0/t;->c()Lf0/f;
2020-09-16 23:45:23 +00:00
move-result-object v0
2020-09-29 21:44:44 +00:00
invoke-interface {v0}, Lf0/f;->g()Lf0/b0;
2020-09-16 23:45:23 +00:00
move-result-object v0
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-object v0
:catchall_0
move-exception v0
goto :goto_0
:catch_0
move-exception v0
:try_start_1
new-instance v1, Ljava/lang/RuntimeException;
const-string v2, "Unable to create request."
invoke-direct {v1, v2, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:goto_0
monitor-exit p0
throw v0
.end method
2020-09-29 21:44:44 +00:00
.method public i0()Lj0/d;
2020-09-16 23:45:23 +00:00
.locals 5
2020-09-29 21:44:44 +00:00
new-instance v0, Lj0/t;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v1, p0, Lj0/t;->d:Lj0/a0;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v2, p0, Lj0/t;->e:[Ljava/lang/Object;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v3, p0, Lj0/t;->f:Lf0/f$a;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
iget-object v4, p0, Lj0/t;->g:Lj0/h;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
invoke-direct {v0, v1, v2, v3, v4}, Lj0/t;-><init>(Lj0/a0;[Ljava/lang/Object;Lf0/f$a;Lj0/h;)V
2020-09-16 23:45:23 +00:00
return-object v0
.end method
.method public l()Z
.locals 2
2020-09-29 21:44:44 +00:00
iget-boolean v0, p0, Lj0/t;->h:Z
2020-09-16 23:45:23 +00:00
const/4 v1, 0x1
if-eqz v0, :cond_0
return v1
:cond_0
monitor-enter p0
:try_start_0
2020-09-29 21:44:44 +00:00
iget-object v0, p0, Lj0/t;->i:Lf0/f;
2020-09-16 23:45:23 +00:00
if-eqz v0, :cond_1
2020-09-29 21:44:44 +00:00
iget-object v0, p0, Lj0/t;->i:Lf0/f;
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
invoke-interface {v0}, Lf0/f;->l()Z
2020-09-16 23:45:23 +00:00
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