apkfuckery/com.discord/smali_classes2/g0/t.smali
2020-11-09 19:03:49 +00:00

1095 lines
22 KiB
Smali

.class public final Lg0/t;
.super Ljava/lang/Object;
.source "OkHttpCall.java"
# interfaces
.implements Lg0/d;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lg0/t$c;,
Lg0/t$b;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lg0/d<",
"TT;>;"
}
.end annotation
# instance fields
.field public final d:Lg0/a0;
.field public final e:[Ljava/lang/Object;
.field public final f:Lc0/f$a;
.field public final g:Lg0/h;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lg0/h<",
"Lokhttp3/ResponseBody;",
"TT;>;"
}
.end annotation
.end field
.field public volatile h:Z
.field public i:Lc0/f;
.field public j:Ljava/lang/Throwable;
.field public k:Z
# direct methods
.method public constructor <init>(Lg0/a0;[Ljava/lang/Object;Lc0/f$a;Lg0/h;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lg0/a0;",
"[",
"Ljava/lang/Object;",
"Lc0/f$a;",
"Lg0/h<",
"Lokhttp3/ResponseBody;",
"TT;>;)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lg0/t;->d:Lg0/a0;
iput-object p2, p0, Lg0/t;->e:[Ljava/lang/Object;
iput-object p3, p0, Lg0/t;->f:Lc0/f$a;
iput-object p4, p0, Lg0/t;->g:Lg0/h;
return-void
.end method
# virtual methods
.method public Y(Lg0/f;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lg0/f<",
"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
iget-boolean v0, p0, Lg0/t;->k:Z
if-nez v0, :cond_3
const/4 v0, 0x1
iput-boolean v0, p0, Lg0/t;->k:Z
iget-object v0, p0, Lg0/t;->i:Lc0/f;
iget-object v1, p0, Lg0/t;->j: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}, Lg0/t;->b()Lc0/f;
move-result-object v2
iput-object v2, p0, Lg0/t;->i:Lc0/f;
: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
invoke-static {v1}, Lg0/h0;->o(Ljava/lang/Throwable;)V
iput-object v1, p0, Lg0/t;->j: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}, Lg0/f;->a(Lg0/d;Ljava/lang/Throwable;)V
return-void
:cond_1
iget-boolean v1, p0, Lg0/t;->h:Z
if-eqz v1, :cond_2
invoke-interface {v0}, Lc0/f;->cancel()V
:cond_2
new-instance v1, Lg0/t$a;
invoke-direct {v1, p0, p1}, Lg0/t$a;-><init>(Lg0/t;Lg0/f;)V
invoke-interface {v0, v1}, Lc0/f;->G(Lc0/g;)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 final b()Lc0/f;
.locals 15
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lg0/t;->f:Lc0/f$a;
iget-object v1, p0, Lg0/t;->d:Lg0/a0;
iget-object v2, p0, Lg0/t;->e:[Ljava/lang/Object;
iget-object v3, v1, Lg0/a0;->j:[Lg0/x;
array-length v4, v2
array-length v5, v3
if-ne v4, v5, :cond_c
new-instance v5, Lg0/z;
iget-object v7, v1, Lg0/a0;->c:Ljava/lang/String;
iget-object v8, v1, Lg0/a0;->b:Lc0/y;
iget-object v9, v1, Lg0/a0;->d:Ljava/lang/String;
iget-object v10, v1, Lg0/a0;->e:Lokhttp3/Headers;
iget-object v11, v1, Lg0/a0;->f:Lokhttp3/MediaType;
iget-boolean v12, v1, Lg0/a0;->g:Z
iget-boolean v13, v1, Lg0/a0;->h:Z
iget-boolean v14, v1, Lg0/a0;->i:Z
move-object v6, v5
invoke-direct/range {v6 .. v14}, Lg0/z;-><init>(Ljava/lang/String;Lc0/y;Ljava/lang/String;Lokhttp3/Headers;Lokhttp3/MediaType;ZZZ)V
iget-boolean v6, v1, Lg0/a0;->k:Z
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
invoke-virtual {v9, v5, v10}, Lg0/x;->a(Lg0/z;Ljava/lang/Object;)V
add-int/lit8 v8, v8, 0x1
goto :goto_0
:cond_1
iget-object v2, v5, Lg0/z;->d:Lc0/y$a;
const/4 v3, 0x0
if-eqz v2, :cond_2
invoke-virtual {v2}, Lc0/y$a;->b()Lc0/y;
move-result-object v2
goto :goto_2
:cond_2
iget-object v2, v5, Lg0/z;->b:Lc0/y;
iget-object v4, v5, Lg0/z;->c:Ljava/lang/String;
if-eqz v2, :cond_b
const-string v8, "link"
invoke-static {v4, v8}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v2, v4}, Lc0/y;->g(Ljava/lang/String;)Lc0/y$a;
move-result-object v2
if-eqz v2, :cond_3
invoke-virtual {v2}, Lc0/y$a;->b()Lc0/y;
move-result-object v2
goto :goto_1
:cond_3
move-object v2, v3
:goto_1
if-eqz v2, :cond_a
:goto_2
iget-object v4, v5, Lg0/z;->k:Lokhttp3/RequestBody;
if-nez v4, :cond_6
iget-object v8, v5, Lg0/z;->j:Lc0/v$a;
if-eqz v8, :cond_4
new-instance v4, Lc0/v;
iget-object v3, v8, Lc0/v$a;->a:Ljava/util/List;
iget-object v7, v8, Lc0/v$a;->b:Ljava/util/List;
invoke-direct {v4, v3, v7}, Lc0/v;-><init>(Ljava/util/List;Ljava/util/List;)V
goto :goto_3
:cond_4
iget-object v8, v5, Lg0/z;->i:Lokhttp3/MultipartBody$a;
if-eqz v8, :cond_5
invoke-virtual {v8}, Lokhttp3/MultipartBody$a;->b()Lokhttp3/MultipartBody;
move-result-object v4
goto :goto_3
:cond_5
iget-boolean v8, v5, Lg0/z;->h:Z
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
iget-object v3, v5, Lg0/z;->g:Lokhttp3/MediaType;
if-eqz v3, :cond_8
if-eqz v4, :cond_7
new-instance v7, Lg0/z$a;
invoke-direct {v7, v4, v3}, Lg0/z$a;-><init>(Lokhttp3/RequestBody;Lokhttp3/MediaType;)V
move-object v4, v7
goto :goto_4
:cond_7
iget-object v7, v5, Lg0/z;->f:Lokhttp3/Headers$a;
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
iget-object v3, v5, Lg0/z;->e:Lc0/b0$a;
invoke-virtual {v3, v2}, Lc0/b0$a;->g(Lc0/y;)Lc0/b0$a;
iget-object v2, v5, Lg0/z;->f:Lokhttp3/Headers$a;
invoke-virtual {v2}, Lokhttp3/Headers$a;->c()Lokhttp3/Headers;
move-result-object v2
const-string v7, "headers"
invoke-static {v2, v7}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v2}, Lokhttp3/Headers;->e()Lokhttp3/Headers$a;
move-result-object v2
iput-object v2, v3, Lc0/b0$a;->c:Lokhttp3/Headers$a;
iget-object v2, v5, Lg0/z;->a:Ljava/lang/String;
invoke-virtual {v3, v2, v4}, Lc0/b0$a;->c(Ljava/lang/String;Lokhttp3/RequestBody;)Lc0/b0$a;
const-class v2, Lg0/k;
new-instance v4, Lg0/k;
iget-object v1, v1, Lg0/a0;->a:Ljava/lang/reflect/Method;
invoke-direct {v4, v1, v6}, Lg0/k;-><init>(Ljava/lang/reflect/Method;Ljava/util/List;)V
invoke-virtual {v3, v2, v4}, Lc0/b0$a;->e(Ljava/lang/Class;Ljava/lang/Object;)Lc0/b0$a;
invoke-virtual {v3}, Lc0/b0$a;->a()Lc0/b0;
move-result-object v1
invoke-interface {v0, v1}, Lc0/f$a;->b(Lc0/b0;)Lc0/f;
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: "
invoke-static {v1}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-object v2, v5, Lg0/z;->b:Lc0/y;
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;
iget-object v2, v5, Lg0/z;->c:Ljava/lang/String;
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 ("
invoke-static {v1, v4, v2}, Lf/e/c/a/a;->F(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
array-length v2, v3
const-string v3, ")"
invoke-static {v1, v2, v3}, Lf/e/c/a/a;->t(Ljava/lang/StringBuilder;ILjava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public final c()Lc0/f;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lg0/t;->i:Lc0/f;
if-eqz v0, :cond_0
return-object v0
:cond_0
iget-object v0, p0, Lg0/t;->j:Ljava/lang/Throwable;
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
invoke-virtual {p0}, Lg0/t;->b()Lc0/f;
move-result-object v0
iput-object v0, p0, Lg0/t;->i:Lc0/f;
: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
invoke-static {v0}, Lg0/h0;->o(Ljava/lang/Throwable;)V
iput-object v0, p0, Lg0/t;->j:Ljava/lang/Throwable;
throw v0
.end method
.method public cancel()V
.locals 1
const/4 v0, 0x1
iput-boolean v0, p0, Lg0/t;->h:Z
monitor-enter p0
:try_start_0
iget-object v0, p0, Lg0/t;->i:Lc0/f;
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_0
invoke-interface {v0}, Lc0/f;->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 clone()Ljava/lang/Object;
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/CloneNotSupportedException;
}
.end annotation
new-instance v0, Lg0/t;
iget-object v1, p0, Lg0/t;->d:Lg0/a0;
iget-object v2, p0, Lg0/t;->e:[Ljava/lang/Object;
iget-object v3, p0, Lg0/t;->f:Lc0/f$a;
iget-object v4, p0, Lg0/t;->g:Lg0/h;
invoke-direct {v0, v1, v2, v3, v4}, Lg0/t;-><init>(Lg0/a0;[Ljava/lang/Object;Lc0/f$a;Lg0/h;)V
return-object v0
.end method
.method public d(Lokhttp3/Response;)Lg0/b0;
.locals 21
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lokhttp3/Response;",
")",
"Lg0/b0<",
"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"
invoke-static {v0, v2}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v4, v0, Lokhttp3/Response;->d:Lc0/b0;
iget-object v5, v0, Lokhttp3/Response;->e:Lc0/a0;
iget v7, v0, Lokhttp3/Response;->g:I
iget-object v6, v0, Lokhttp3/Response;->f:Ljava/lang/String;
iget-object v8, v0, Lokhttp3/Response;->h:Lc0/x;
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
iget-object v0, v0, Lokhttp3/Response;->p:Lc0/h0/g/c;
new-instance v3, Lg0/t$c;
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
invoke-direct {v3, v9, v14, v15}, Lg0/t$c;-><init>(Lokhttp3/MediaType;J)V
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
invoke-direct/range {v3 .. v18}, Lokhttp3/Response;-><init>(Lc0/b0;Lc0/a0;Ljava/lang/String;ILc0/x;Lokhttp3/Headers;Lokhttp3/ResponseBody;Lokhttp3/Response;Lokhttp3/Response;Lokhttp3/Response;JJLc0/h0/g/c;)V
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
new-instance v3, Lg0/t$b;
invoke-direct {v3, v1}, Lg0/t$b;-><init>(Lokhttp3/ResponseBody;)V
move-object/from16 v5, p0
:try_start_0
iget-object v0, v5, Lg0/t;->g:Lg0/h;
invoke-interface {v0, v3}, Lg0/h;->a(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
invoke-static {v0, v2}, Lg0/b0;->b(Ljava/lang/Object;Lokhttp3/Response;)Lg0/b0;
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
iget-object v1, v3, Lg0/t$b;->h:Ljava/io/IOException;
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
invoke-static {v4, v2}, Lg0/b0;->b(Ljava/lang/Object;Lokhttp3/Response;)Lg0/b0;
move-result-object v0
return-object v0
:cond_5
:goto_2
move-object/from16 v5, p0
:try_start_1
invoke-static {v1}, Lg0/h0;->a(Lokhttp3/ResponseBody;)Lokhttp3/ResponseBody;
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
new-instance v3, Lg0/b0;
invoke-direct {v3, v2, v4, v0}, Lg0/b0;-><init>(Lokhttp3/Response;Ljava/lang/Object;Lokhttp3/ResponseBody;)V
: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: "
invoke-static {v0, v7}, Lf/e/c/a/a;->i(Ljava/lang/String;I)Ljava/lang/String;
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
.method public d0()Lg0/d;
.locals 5
new-instance v0, Lg0/t;
iget-object v1, p0, Lg0/t;->d:Lg0/a0;
iget-object v2, p0, Lg0/t;->e:[Ljava/lang/Object;
iget-object v3, p0, Lg0/t;->f:Lc0/f$a;
iget-object v4, p0, Lg0/t;->g:Lg0/h;
invoke-direct {v0, v1, v2, v3, v4}, Lg0/t;-><init>(Lg0/a0;[Ljava/lang/Object;Lc0/f$a;Lg0/h;)V
return-object v0
.end method
.method public execute()Lg0/b0;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lg0/b0<",
"TT;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lg0/t;->k:Z
if-nez v0, :cond_1
const/4 v0, 0x1
iput-boolean v0, p0, Lg0/t;->k:Z
invoke-virtual {p0}, Lg0/t;->c()Lc0/f;
move-result-object v0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
iget-boolean v1, p0, Lg0/t;->h:Z
if-eqz v1, :cond_0
invoke-interface {v0}, Lc0/f;->cancel()V
:cond_0
invoke-interface {v0}, Lc0/f;->execute()Lokhttp3/Response;
move-result-object v0
invoke-virtual {p0, v0}, Lg0/t;->d(Lokhttp3/Response;)Lg0/b0;
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
.method public declared-synchronized g()Lc0/b0;
.locals 3
monitor-enter p0
:try_start_0
invoke-virtual {p0}, Lg0/t;->c()Lc0/f;
move-result-object v0
invoke-interface {v0}, Lc0/f;->g()Lc0/b0;
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
.method public l()Z
.locals 2
iget-boolean v0, p0, Lg0/t;->h:Z
const/4 v1, 0x1
if-eqz v0, :cond_0
return v1
:cond_0
monitor-enter p0
:try_start_0
iget-object v0, p0, Lg0/t;->i:Lc0/f;
if-eqz v0, :cond_1
iget-object v0, p0, Lg0/t;->i:Lc0/f;
invoke-interface {v0}, Lc0/f;->l()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