apkfuckery/com.discord/smali_classes2/r0/h.smali

967 lines
19 KiB
Smali
Raw Normal View History

2020-09-02 04:07:20 +00:00
.class public final Lr0/h;
2020-07-23 01:06:17 +00:00
.super Ljava/lang/Object;
2020-09-02 04:07:20 +00:00
.source "OkHttpCall.java"
# interfaces
.implements Lr0/b;
2020-07-23 01:06:17 +00:00
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2020-09-02 04:07:20 +00:00
Lr0/h$b;,
Lr0/h$c;
2020-07-23 01:06:17 +00:00
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
2020-09-02 04:07:20 +00:00
"Ljava/lang/Object;",
"Lr0/b<",
"TT;>;"
2020-07-23 01:06:17 +00:00
}
.end annotation
2020-09-02 04:07:20 +00:00
# instance fields
.field public final d:Lr0/q;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lr0/q<",
"TT;*>;"
}
.end annotation
.end field
.field public final e:[Ljava/lang/Object;
.field public volatile f:Z
.field public g:Lo0/f;
.field public h:Ljava/lang/Throwable;
.field public i:Z
2020-07-23 01:06:17 +00:00
# direct methods
2020-09-02 04:07:20 +00:00
.method public constructor <init>(Lr0/q;[Ljava/lang/Object;)V
.locals 0
2020-07-23 01:06:17 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-09-02 04:07:20 +00:00
"Lr0/q<",
"TT;*>;[",
"Ljava/lang/Object;",
")V"
2020-07-23 01:06:17 +00:00
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-09-02 04:07:20 +00:00
iput-object p1, p0, Lr0/h;->d:Lr0/q;
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
iput-object p2, p0, Lr0/h;->e:[Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public Z(Lr0/d;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lr0/d<",
"TT;>;)V"
}
.end annotation
const-string v0, "callback == null"
invoke-static {p1, v0}, Lr0/r;->b(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lr0/h;->i:Z
if-nez v0, :cond_3
const/4 v0, 0x1
iput-boolean v0, p0, Lr0/h;->i:Z
iget-object v0, p0, Lr0/h;->g:Lo0/f;
iget-object v1, p0, Lr0/h;->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}, Lr0/h;->b()Lo0/f;
move-result-object v2
iput-object v2, p0, Lr0/h;->g:Lo0/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
iput-object v1, p0, Lr0/h;->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}, Lr0/d;->a(Lr0/b;Ljava/lang/Throwable;)V
return-void
:cond_1
iget-boolean v1, p0, Lr0/h;->f:Z
if-eqz v1, :cond_2
invoke-interface {v0}, Lo0/f;->cancel()V
:cond_2
new-instance v1, Lr0/h$a;
invoke-direct {v1, p0, p1}, Lr0/h$a;-><init>(Lr0/h;Lr0/d;)V
invoke-interface {v0, v1}, Lo0/f;->F(Lo0/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()Lo0/f;
.locals 12
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lr0/h;->d:Lr0/q;
iget-object v1, p0, Lr0/h;->e:[Ljava/lang/Object;
new-instance v11, Lr0/m;
iget-object v3, v0, Lr0/q;->e:Ljava/lang/String;
iget-object v4, v0, Lr0/q;->c:Lo0/w;
iget-object v5, v0, Lr0/q;->f:Ljava/lang/String;
iget-object v6, v0, Lr0/q;->g:Lokhttp3/Headers;
iget-object v7, v0, Lr0/q;->h:Lokhttp3/MediaType;
iget-boolean v8, v0, Lr0/q;->i:Z
iget-boolean v9, v0, Lr0/q;->j:Z
iget-boolean v10, v0, Lr0/q;->k:Z
move-object v2, v11
invoke-direct/range {v2 .. v10}, Lr0/m;-><init>(Ljava/lang/String;Lo0/w;Ljava/lang/String;Lokhttp3/Headers;Lokhttp3/MediaType;ZZZ)V
iget-object v0, v0, Lr0/q;->l:[Lr0/k;
const/4 v2, 0x0
if-eqz v1, :cond_0
array-length v3, v1
goto :goto_0
:cond_0
const/4 v3, 0x0
:goto_0
array-length v4, v0
2020-09-08 08:16:32 +00:00
if-ne v3, v4, :cond_a
2020-09-02 04:07:20 +00:00
const/4 v4, 0x0
:goto_1
if-ge v4, v3, :cond_1
aget-object v5, v0, v4
aget-object v6, v1, v4
invoke-virtual {v5, v11, v6}, Lr0/k;->a(Lr0/m;Ljava/lang/Object;)V
add-int/lit8 v4, v4, 0x1
goto :goto_1
:cond_1
iget-object v0, v11, Lr0/m;->d:Lo0/w$a;
if-eqz v0, :cond_2
invoke-virtual {v0}, Lo0/w$a;->b()Lo0/w;
move-result-object v0
2020-09-08 08:16:32 +00:00
goto :goto_2
2020-09-02 04:07:20 +00:00
:cond_2
iget-object v0, v11, Lr0/m;->b:Lo0/w;
2020-09-08 08:16:32 +00:00
iget-object v1, v11, Lr0/m;->c:Ljava/lang/String;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
invoke-virtual {v0, v1}, Lo0/w;->j(Ljava/lang/String;)Lo0/w;
2020-09-02 04:07:20 +00:00
move-result-object v0
2020-09-08 08:16:32 +00:00
if-eqz v0, :cond_9
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
:goto_2
iget-object v1, v11, Lr0/m;->j:Lokhttp3/RequestBody;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
if-nez v1, :cond_5
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
iget-object v3, v11, Lr0/m;->i:Lo0/u$a;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
const/4 v4, 0x0
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
if-eqz v3, :cond_3
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
new-instance v1, Lo0/u;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
iget-object v2, v3, Lo0/u$a;->a:Ljava/util/List;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
iget-object v3, v3, Lo0/u$a;->b:Ljava/util/List;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
invoke-direct {v1, v2, v3}, Lo0/u;-><init>(Ljava/util/List;Ljava/util/List;)V
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
goto :goto_3
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
:cond_3
iget-object v3, v11, Lr0/m;->h:Lokhttp3/MultipartBody$a;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
if-eqz v3, :cond_4
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
invoke-virtual {v3}, Lokhttp3/MultipartBody$a;->b()Lokhttp3/MultipartBody;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
move-result-object v1
goto :goto_3
2020-09-02 04:07:20 +00:00
:cond_4
2020-09-08 08:16:32 +00:00
iget-boolean v3, v11, Lr0/m;->g:Z
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
if-eqz v3, :cond_5
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
new-array v1, v2, [B
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
invoke-static {v4, v1}, Lokhttp3/RequestBody;->create(Lokhttp3/MediaType;[B)Lokhttp3/RequestBody;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
move-result-object v1
2020-09-02 04:07:20 +00:00
:cond_5
2020-09-08 08:16:32 +00:00
:goto_3
iget-object v2, v11, Lr0/m;->f:Lokhttp3/MediaType;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
if-eqz v2, :cond_7
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
if-eqz v1, :cond_6
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
new-instance v3, Lr0/m$a;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
invoke-direct {v3, v1, v2}, Lr0/m$a;-><init>(Lokhttp3/RequestBody;Lokhttp3/MediaType;)V
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
move-object v1, v3
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
goto :goto_4
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
:cond_6
iget-object v3, v11, Lr0/m;->e:Lo0/a0$a;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
iget-object v2, v2, Lokhttp3/MediaType;->a:Ljava/lang/String;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
const-string v4, "Content-Type"
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
invoke-virtual {v3, v4, v2}, Lo0/a0$a;->a(Ljava/lang/String;Ljava/lang/String;)Lo0/a0$a;
2020-09-02 04:07:20 +00:00
:cond_7
2020-09-08 08:16:32 +00:00
:goto_4
2020-09-02 04:07:20 +00:00
iget-object v2, v11, Lr0/m;->e:Lo0/a0$a;
2020-09-08 08:16:32 +00:00
iput-object v0, v2, Lo0/a0$a;->a:Lo0/w;
2020-09-02 04:07:20 +00:00
iget-object v0, v11, Lr0/m;->a:Ljava/lang/String;
2020-09-08 08:16:32 +00:00
invoke-virtual {v2, v0, v1}, Lo0/a0$a;->d(Ljava/lang/String;Lokhttp3/RequestBody;)Lo0/a0$a;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
invoke-virtual {v2}, Lo0/a0$a;->b()Lo0/a0;
2020-09-02 04:07:20 +00:00
move-result-object v0
iget-object v1, p0, Lr0/h;->d:Lr0/q;
iget-object v1, v1, Lr0/q;->a:Lo0/f$a;
invoke-interface {v1, v0}, Lo0/f$a;->b(Lo0/a0;)Lo0/f;
move-result-object v0
2020-09-08 08:16:32 +00:00
if-eqz v0, :cond_8
2020-09-02 04:07:20 +00:00
return-object v0
2020-09-08 08:16:32 +00:00
:cond_8
2020-09-02 04:07:20 +00:00
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
2020-09-08 08:16:32 +00:00
:cond_9
2020-09-02 04:07:20 +00:00
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Malformed URL. Base: "
invoke-static {v1}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-object v2, v11, Lr0/m;->b:Lo0/w;
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, v11, Lr0/m;->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
2020-09-08 08:16:32 +00:00
:cond_a
2020-09-02 04:07:20 +00:00
new-instance v1, Ljava/lang/IllegalArgumentException;
const-string v2, "Argument count ("
const-string v4, ") doesn\'t match expected count ("
invoke-static {v2, v3, v4}, Lf/e/b/a/a;->E(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
array-length v0, v0
const-string v3, ")"
invoke-static {v2, v0, v3}, Lf/e/b/a/a;->s(Ljava/lang/StringBuilder;ILjava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-direct {v1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v1
.end method
.method public c(Lokhttp3/Response;)Lr0/n;
2020-09-08 08:16:32 +00:00
.locals 20
2020-09-02 04:07:20 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lokhttp3/Response;",
")",
"Lr0/n<",
"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;
2020-09-08 08:16:32 +00:00
iget-object v3, v0, Lokhttp3/Response;->d:Lo0/a0;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
iget-object v4, v0, Lokhttp3/Response;->e:Lo0/y;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
iget v6, v0, Lokhttp3/Response;->g:I
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
iget-object v5, v0, Lokhttp3/Response;->f:Ljava/lang/String;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
iget-object v7, v0, Lokhttp3/Response;->h:Lo0/v;
2020-09-02 04:07:20 +00:00
iget-object v2, v0, Lokhttp3/Response;->i:Lokhttp3/Headers;
invoke-virtual {v2}, Lokhttp3/Headers;->j()Lokhttp3/Headers$a;
move-result-object v2
2020-09-08 08:16:32 +00:00
iget-object v8, v0, Lokhttp3/Response;->j:Lokhttp3/ResponseBody;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
iget-object v10, v0, Lokhttp3/Response;->k:Lokhttp3/Response;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
iget-object v11, v0, Lokhttp3/Response;->l:Lokhttp3/Response;
2020-07-23 01:06:17 +00:00
2020-09-08 08:16:32 +00:00
iget-object v12, v0, Lokhttp3/Response;->m:Lokhttp3/Response;
2020-07-23 01:06:17 +00:00
2020-09-08 08:16:32 +00:00
iget-wide v13, v0, Lokhttp3/Response;->n:J
2020-07-23 01:06:17 +00:00
2020-09-08 08:16:32 +00:00
iget-wide v8, v0, Lokhttp3/Response;->o:J
2020-09-02 04:07:20 +00:00
iget-object v0, v0, Lokhttp3/Response;->p:Lo0/g0/d/c;
2020-09-08 08:16:32 +00:00
new-instance v15, Lr0/h$c;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
move-wide/from16 v16, v8
2020-09-02 04:07:20 +00:00
invoke-virtual {v1}, Lokhttp3/ResponseBody;->b()Lokhttp3/MediaType;
2020-09-08 08:16:32 +00:00
move-result-object v8
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
move-wide/from16 v18, v13
2020-09-02 04:07:20 +00:00
invoke-virtual {v1}, Lokhttp3/ResponseBody;->a()J
2020-09-08 08:16:32 +00:00
move-result-wide v13
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
invoke-direct {v15, v8, v13, v14}, Lr0/h$c;-><init>(Lokhttp3/MediaType;J)V
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
if-ltz v6, :cond_0
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
const/4 v8, 0x1
2020-09-02 04:07:20 +00:00
goto :goto_0
:cond_0
2020-09-08 08:16:32 +00:00
const/4 v8, 0x0
2020-09-02 04:07:20 +00:00
:goto_0
2020-09-08 08:16:32 +00:00
if-eqz v8, :cond_a
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
if-eqz v3, :cond_9
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
if-eqz v4, :cond_8
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
if-eqz v5, :cond_7
2020-09-02 04:07:20 +00:00
invoke-virtual {v2}, Lokhttp3/Headers$a;->c()Lokhttp3/Headers;
2020-09-08 08:16:32 +00:00
move-result-object v8
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
new-instance v13, Lokhttp3/Response;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
move-object v2, v13
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
move-object v9, v15
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
move-object v15, v13
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
move-wide/from16 v13, v18
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
move-object/from16 v18, v1
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
move-object v1, v15
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
move-wide/from16 v15, v16
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
move-object/from16 v17, v0
invoke-direct/range {v2 .. v17}, Lokhttp3/Response;-><init>(Lo0/a0;Lo0/y;Ljava/lang/String;ILo0/v;Lokhttp3/Headers;Lokhttp3/ResponseBody;Lokhttp3/Response;Lokhttp3/Response;Lokhttp3/Response;JJLo0/g0/d/c;)V
iget v0, v1, Lokhttp3/Response;->g:I
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
const/16 v2, 0xc8
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
const/4 v3, 0x0
if-lt v0, v2, :cond_5
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
const/16 v2, 0x12c
if-lt v0, v2, :cond_1
2020-09-02 04:07:20 +00:00
goto :goto_2
:cond_1
2020-09-08 08:16:32 +00:00
const/16 v2, 0xcc
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
if-eq v0, v2, :cond_4
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
const/16 v2, 0xcd
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
if-ne v0, v2, :cond_2
2020-09-02 04:07:20 +00:00
goto :goto_1
:cond_2
2020-09-08 08:16:32 +00:00
new-instance v2, Lr0/h$b;
move-object/from16 v4, v18
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
invoke-direct {v2, v4}, Lr0/h$b;-><init>(Lokhttp3/ResponseBody;)V
2020-09-02 04:07:20 +00:00
move-object/from16 v5, p0
:try_start_0
iget-object v0, v5, Lr0/h;->d:Lr0/q;
iget-object v0, v0, Lr0/q;->d:Lr0/e;
2020-09-08 08:16:32 +00:00
invoke-interface {v0, v2}, Lr0/e;->a(Ljava/lang/Object;)Ljava/lang/Object;
2020-09-02 04:07:20 +00:00
move-result-object v0
2020-09-08 08:16:32 +00:00
invoke-static {v0, v1}, Lr0/n;->a(Ljava/lang/Object;Lokhttp3/Response;)Lr0/n;
2020-09-02 04:07:20 +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-08 08:16:32 +00:00
iget-object v1, v2, Lr0/h$b;->g:Ljava/io/IOException;
2020-09-02 04:07:20 +00:00
if-nez v1, :cond_3
throw v0
:cond_3
throw v1
:cond_4
:goto_1
move-object/from16 v5, p0
2020-09-08 08:16:32 +00:00
move-object/from16 v4, v18
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
invoke-virtual {v4}, Lokhttp3/ResponseBody;->close()V
invoke-static {v3, v1}, Lr0/n;->a(Ljava/lang/Object;Lokhttp3/Response;)Lr0/n;
2020-09-02 04:07:20 +00:00
move-result-object v0
return-object v0
:cond_5
:goto_2
move-object/from16 v5, p0
2020-09-08 08:16:32 +00:00
move-object/from16 v4, v18
2020-09-02 04:07:20 +00:00
:try_start_1
2020-09-08 08:16:32 +00:00
invoke-static {v4}, Lr0/r;->a(Lokhttp3/ResponseBody;)Lokhttp3/ResponseBody;
2020-09-02 04:07:20 +00:00
move-result-object v0
2020-09-08 08:16:32 +00:00
const-string v2, "body == null"
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
invoke-static {v0, v2}, Lr0/r;->b(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
const-string v2, "rawResponse == null"
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
invoke-static {v1, v2}, Lr0/r;->b(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
invoke-virtual {v1}, Lokhttp3/Response;->b()Z
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
move-result v2
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
if-nez v2, :cond_6
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
new-instance v2, Lr0/n;
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
invoke-direct {v2, v1, v3, v0}, Lr0/n;-><init>(Lokhttp3/Response;Ljava/lang/Object;Lokhttp3/ResponseBody;)V
2020-09-02 04:07:20 +00:00
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
2020-09-08 08:16:32 +00:00
invoke-virtual {v4}, Lokhttp3/ResponseBody;->close()V
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
return-object v2
2020-09-02 04:07:20 +00:00
:cond_6
:try_start_2
new-instance v0, Ljava/lang/IllegalArgumentException;
2020-09-08 08:16:32 +00:00
const-string v1, "rawResponse should not be successful response"
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2020-09-02 04:07:20 +00:00
throw v0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
:catchall_0
move-exception v0
2020-09-08 08:16:32 +00:00
invoke-virtual {v4}, Lokhttp3/ResponseBody;->close()V
2020-09-02 04:07:20 +00:00
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-08 08:16:32 +00:00
invoke-static {v0, v6}, Lf/e/b/a/a;->h(Ljava/lang/String;I)Ljava/lang/String;
2020-09-02 04:07:20 +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
.method public cancel()V
.locals 1
const/4 v0, 0x1
iput-boolean v0, p0, Lr0/h;->f:Z
monitor-enter p0
:try_start_0
iget-object v0, p0, Lr0/h;->g:Lo0/f;
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_0
invoke-interface {v0}, Lo0/f;->cancel()V
2020-07-23 01:06:17 +00:00
:cond_0
return-void
2020-09-02 04:07:20 +00:00
: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 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/CloneNotSupportedException;
}
.end annotation
new-instance v0, Lr0/h;
iget-object v1, p0, Lr0/h;->d:Lr0/q;
iget-object v2, p0, Lr0/h;->e:[Ljava/lang/Object;
invoke-direct {v0, v1, v2}, Lr0/h;-><init>(Lr0/q;[Ljava/lang/Object;)V
return-object v0
.end method
.method public e0()Lr0/b;
.locals 3
new-instance v0, Lr0/h;
iget-object v1, p0, Lr0/h;->d:Lr0/q;
iget-object v2, p0, Lr0/h;->e:[Ljava/lang/Object;
invoke-direct {v0, v1, v2}, Lr0/h;-><init>(Lr0/q;[Ljava/lang/Object;)V
return-object v0
.end method
.method public execute()Lr0/n;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lr0/n<",
"TT;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lr0/h;->i:Z
if-nez v0, :cond_4
const/4 v0, 0x1
iput-boolean v0, p0, Lr0/h;->i:Z
iget-object v0, p0, Lr0/h;->h:Ljava/lang/Throwable;
if-eqz v0, :cond_1
iget-object v0, p0, Lr0/h;->h:Ljava/lang/Throwable;
instance-of v0, v0, Ljava/io/IOException;
if-eqz v0, :cond_0
iget-object v0, p0, Lr0/h;->h:Ljava/lang/Throwable;
check-cast v0, Ljava/io/IOException;
throw v0
:cond_0
iget-object v0, p0, Lr0/h;->h:Ljava/lang/Throwable;
check-cast v0, Ljava/lang/RuntimeException;
throw v0
:cond_1
iget-object v0, p0, Lr0/h;->g:Lo0/f;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-nez v0, :cond_2
:try_start_1
invoke-virtual {p0}, Lr0/h;->b()Lo0/f;
move-result-object v0
iput-object v0, p0, Lr0/h;->g:Lo0/f;
: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, Lr0/h;->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, Lr0/h;->f:Z
if-eqz v1, :cond_3
invoke-interface {v0}, Lo0/f;->cancel()V
:cond_3
invoke-interface {v0}, Lo0/f;->execute()Lokhttp3/Response;
move-result-object v0
invoke-virtual {p0, v0}, Lr0/h;->c(Lokhttp3/Response;)Lr0/n;
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 k()Z
.locals 2
iget-boolean v0, p0, Lr0/h;->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, Lr0/h;->g:Lo0/f;
if-eqz v0, :cond_1
iget-object v0, p0, Lr0/h;->g:Lo0/f;
invoke-interface {v0}, Lo0/f;->k()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
2020-07-23 01:06:17 +00:00
.end method