apkfuckery/com.discord/smali_classes2/n0/h0/a.smali
2020-08-10 21:02:22 +00:00

1059 lines
25 KiB
Smali

.class public final Ln0/h0/a;
.super Ljava/lang/Object;
.source "HttpLoggingInterceptor.kt"
# interfaces
.implements Lokhttp3/Interceptor;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Ln0/h0/a$a;,
Ln0/h0/a$b;
}
.end annotation
# instance fields
.field public volatile b:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field public volatile c:Ln0/h0/a$a;
.field public final d:Ln0/h0/a$b;
# direct methods
.method public constructor <init>(Ln0/h0/a$b;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Ln0/h0/a;->d:Ln0/h0/a$b;
sget-object p1, Lj0/i/p;->d:Lj0/i/p;
iput-object p1, p0, Ln0/h0/a;->b:Ljava/util/Set;
sget-object p1, Ln0/h0/a$a;->d:Ln0/h0/a$a;
iput-object p1, p0, Ln0/h0/a;->c:Ln0/h0/a$a;
return-void
.end method
# virtual methods
.method public final a(Lokhttp3/Headers;)Z
.locals 3
const-string v0, "Content-Encoding"
invoke-virtual {p1, v0}, Lokhttp3/Headers;->c(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
const/4 v0, 0x0
if-eqz p1, :cond_0
const-string v1, "identity"
const/4 v2, 0x1
invoke-static {p1, v1, v2}, Lj0/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v1
if-nez v1, :cond_0
const-string v1, "gzip"
invoke-static {p1, v1, v2}, Lj0/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result p1
if-nez p1, :cond_0
const/4 v0, 0x1
:cond_0
return v0
.end method
.method public final b(Lokhttp3/Headers;I)V
.locals 3
iget-object v0, p0, Ln0/h0/a;->b:Ljava/util/Set;
iget-object v1, p1, Lokhttp3/Headers;->d:[Ljava/lang/String;
mul-int/lit8 p2, p2, 0x2
aget-object v1, v1, p2
invoke-interface {v0, v1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
const-string v0, "\u2588\u2588"
goto :goto_0
:cond_0
iget-object v0, p1, Lokhttp3/Headers;->d:[Ljava/lang/String;
add-int/lit8 v1, p2, 0x1
aget-object v0, v0, v1
:goto_0
iget-object v1, p0, Ln0/h0/a;->d:Ln0/h0/a$b;
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
iget-object p1, p1, Lokhttp3/Headers;->d:[Ljava/lang/String;
aget-object p1, p1, p2
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p1, ": "
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-interface {v1, p1}, Ln0/h0/a$b;->log(Ljava/lang/String;)V
return-void
.end method
.method public intercept(Lokhttp3/Interceptor$Chain;)Lokhttp3/Response;
.locals 21
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
move-object/from16 v1, p0
move-object/from16 v0, p1
iget-object v2, v1, Ln0/h0/a;->c:Ln0/h0/a$a;
invoke-interface/range {p1 .. p1}, Lokhttp3/Interceptor$Chain;->p()Ln0/a0;
move-result-object v3
sget-object v4, Ln0/h0/a$a;->d:Ln0/h0/a$a;
if-ne v2, v4, :cond_0
invoke-interface {v0, v3}, Lokhttp3/Interceptor$Chain;->d(Ln0/a0;)Lokhttp3/Response;
move-result-object v0
return-object v0
:cond_0
sget-object v4, Ln0/h0/a$a;->g:Ln0/h0/a$a;
if-ne v2, v4, :cond_1
const/4 v4, 0x1
goto :goto_0
:cond_1
const/4 v4, 0x0
:goto_0
if-nez v4, :cond_3
sget-object v5, Ln0/h0/a$a;->f:Ln0/h0/a$a;
if-ne v2, v5, :cond_2
goto :goto_1
:cond_2
const/4 v2, 0x0
goto :goto_2
:cond_3
:goto_1
const/4 v2, 0x1
:goto_2
iget-object v5, v3, Ln0/a0;->e:Lokhttp3/RequestBody;
invoke-interface/range {p1 .. p1}, Lokhttp3/Interceptor$Chain;->a()Ln0/k;
move-result-object v6
const-string v7, "--> "
invoke-static {v7}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v7
iget-object v8, v3, Ln0/a0;->c:Ljava/lang/String;
invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v8, 0x20
invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
iget-object v8, v3, Ln0/a0;->b:Ln0/w;
invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v8, ""
if-eqz v6, :cond_4
const-string v9, " "
invoke-static {v9}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v9
invoke-interface {v6}, Ln0/k;->a()Ln0/y;
move-result-object v6
invoke-virtual {v9, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v6
goto :goto_3
:cond_4
move-object v6, v8
:goto_3
invoke-virtual {v7, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v6
const-string v7, "-byte body)"
const-string v9, " ("
if-nez v2, :cond_5
if-eqz v5, :cond_5
invoke-static {v6, v9}, Lf/e/b/a/a;->H(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v6
invoke-virtual {v5}, Lokhttp3/RequestBody;->contentLength()J
move-result-wide v10
invoke-virtual {v6, v10, v11}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v6
:cond_5
iget-object v10, v1, Ln0/h0/a;->d:Ln0/h0/a$b;
invoke-interface {v10, v6}, Ln0/h0/a$b;->log(Ljava/lang/String;)V
const-string v6, "-byte body omitted)"
const-string v10, "UTF_8"
if-eqz v2, :cond_f
iget-object v11, v3, Ln0/a0;->d:Lokhttp3/Headers;
if-eqz v5, :cond_7
invoke-virtual {v5}, Lokhttp3/RequestBody;->contentType()Lokhttp3/MediaType;
move-result-object v12
if-eqz v12, :cond_6
const-string v13, "Content-Type"
invoke-virtual {v11, v13}, Lokhttp3/Headers;->c(Ljava/lang/String;)Ljava/lang/String;
move-result-object v13
if-nez v13, :cond_6
iget-object v13, v1, Ln0/h0/a;->d:Ln0/h0/a$b;
new-instance v14, Ljava/lang/StringBuilder;
invoke-direct {v14}, Ljava/lang/StringBuilder;-><init>()V
const-string v15, "Content-Type: "
invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v14, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v12
invoke-interface {v13, v12}, Ln0/h0/a$b;->log(Ljava/lang/String;)V
:cond_6
invoke-virtual {v5}, Lokhttp3/RequestBody;->contentLength()J
move-result-wide v12
const-wide/16 v14, -0x1
cmp-long v16, v12, v14
if-eqz v16, :cond_7
const-string v12, "Content-Length"
invoke-virtual {v11, v12}, Lokhttp3/Headers;->c(Ljava/lang/String;)Ljava/lang/String;
move-result-object v12
if-nez v12, :cond_7
iget-object v12, v1, Ln0/h0/a;->d:Ln0/h0/a$b;
const-string v13, "Content-Length: "
invoke-static {v13}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v13
invoke-virtual {v5}, Lokhttp3/RequestBody;->contentLength()J
move-result-wide v14
invoke-virtual {v13, v14, v15}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v13
invoke-interface {v12, v13}, Ln0/h0/a$b;->log(Ljava/lang/String;)V
:cond_7
invoke-virtual {v11}, Lokhttp3/Headers;->size()I
move-result v12
const/4 v13, 0x0
:goto_4
if-ge v13, v12, :cond_8
invoke-virtual {v1, v11, v13}, Ln0/h0/a;->b(Lokhttp3/Headers;I)V
add-int/lit8 v13, v13, 0x1
goto :goto_4
:cond_8
const-string v11, "--> END "
if-eqz v4, :cond_e
if-nez v5, :cond_9
goto/16 :goto_6
:cond_9
iget-object v12, v3, Ln0/a0;->d:Lokhttp3/Headers;
invoke-virtual {v1, v12}, Ln0/h0/a;->a(Lokhttp3/Headers;)Z
move-result v12
if-eqz v12, :cond_a
iget-object v5, v1, Ln0/h0/a;->d:Ln0/h0/a$b;
invoke-static {v11}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v11
iget-object v12, v3, Ln0/a0;->c:Ljava/lang/String;
invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v12, " (encoded body omitted)"
invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v11
invoke-interface {v5, v11}, Ln0/h0/a$b;->log(Ljava/lang/String;)V
goto/16 :goto_7
:cond_a
invoke-virtual {v5}, Lokhttp3/RequestBody;->isDuplex()Z
move-result v12
if-eqz v12, :cond_b
iget-object v5, v1, Ln0/h0/a;->d:Ln0/h0/a$b;
invoke-static {v11}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v11
iget-object v12, v3, Ln0/a0;->c:Ljava/lang/String;
invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v12, " (duplex request body omitted)"
invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v11
invoke-interface {v5, v11}, Ln0/h0/a$b;->log(Ljava/lang/String;)V
goto/16 :goto_7
:cond_b
new-instance v12, Lo0/e;
invoke-direct {v12}, Lo0/e;-><init>()V
invoke-virtual {v5, v12}, Lokhttp3/RequestBody;->writeTo(Lokio/BufferedSink;)V
invoke-virtual {v5}, Lokhttp3/RequestBody;->contentType()Lokhttp3/MediaType;
move-result-object v13
if-eqz v13, :cond_c
sget-object v14, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
invoke-virtual {v13, v14}, Lokhttp3/MediaType;->a(Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
move-result-object v13
if-eqz v13, :cond_c
goto :goto_5
:cond_c
sget-object v13, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
invoke-static {v13, v10}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:goto_5
iget-object v14, v1, Ln0/h0/a;->d:Ln0/h0/a$b;
invoke-interface {v14, v8}, Ln0/h0/a$b;->log(Ljava/lang/String;)V
invoke-static {v12}, Lf/n/a/k/a;->L(Lo0/e;)Z
move-result v14
if-eqz v14, :cond_d
iget-object v14, v1, Ln0/h0/a;->d:Ln0/h0/a$b;
invoke-virtual {v12, v13}, Lo0/e;->b0(Ljava/nio/charset/Charset;)Ljava/lang/String;
move-result-object v12
invoke-interface {v14, v12}, Ln0/h0/a$b;->log(Ljava/lang/String;)V
iget-object v12, v1, Ln0/h0/a;->d:Ln0/h0/a$b;
invoke-static {v11}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v11
iget-object v13, v3, Ln0/a0;->c:Ljava/lang/String;
invoke-virtual {v11, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v11, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v5}, Lokhttp3/RequestBody;->contentLength()J
move-result-wide v13
invoke-virtual {v11, v13, v14}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v11, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v5
invoke-interface {v12, v5}, Ln0/h0/a$b;->log(Ljava/lang/String;)V
goto :goto_7
:cond_d
iget-object v12, v1, Ln0/h0/a;->d:Ln0/h0/a$b;
invoke-static {v11}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v11
iget-object v13, v3, Ln0/a0;->c:Ljava/lang/String;
invoke-virtual {v11, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v13, " (binary "
invoke-virtual {v11, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v5}, Lokhttp3/RequestBody;->contentLength()J
move-result-wide v13
invoke-virtual {v11, v13, v14}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v11, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v5
invoke-interface {v12, v5}, Ln0/h0/a$b;->log(Ljava/lang/String;)V
goto :goto_7
:cond_e
:goto_6
iget-object v5, v1, Ln0/h0/a;->d:Ln0/h0/a$b;
invoke-static {v11}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v11
iget-object v12, v3, Ln0/a0;->c:Ljava/lang/String;
invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v11
invoke-interface {v5, v11}, Ln0/h0/a$b;->log(Ljava/lang/String;)V
:cond_f
:goto_7
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v11
:try_start_0
invoke-interface {v0, v3}, Lokhttp3/Interceptor$Chain;->d(Ln0/a0;)Lokhttp3/Response;
move-result-object v0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
sget-object v3, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit;
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v13
sub-long/2addr v13, v11
invoke-virtual {v3, v13, v14}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
move-result-wide v11
iget-object v3, v0, Lokhttp3/Response;->j:Lokhttp3/ResponseBody;
if-eqz v3, :cond_1e
invoke-virtual {v3}, Lokhttp3/ResponseBody;->a()J
move-result-wide v13
const-wide/16 v15, -0x1
cmp-long v5, v13, v15
if-eqz v5, :cond_10
new-instance v5, Ljava/lang/StringBuilder;
invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v5, v13, v14}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string v15, "-byte"
invoke-virtual {v5, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v5
goto :goto_8
:cond_10
const-string v5, "unknown-length"
:goto_8
iget-object v15, v1, Ln0/h0/a;->d:Ln0/h0/a$b;
const-string v16, "<-- "
move-object/from16 v17, v7
invoke-static/range {v16 .. v16}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v7
move-wide/from16 v18, v13
iget v13, v0, Lokhttp3/Response;->g:I
invoke-virtual {v7, v13}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
iget-object v13, v0, Lokhttp3/Response;->f:Ljava/lang/String;
invoke-virtual {v13}, Ljava/lang/String;->length()I
move-result v13
if-nez v13, :cond_11
const/4 v13, 0x1
goto :goto_9
:cond_11
const/4 v13, 0x0
:goto_9
if-eqz v13, :cond_12
move-object/from16 v20, v6
move-object v6, v8
goto :goto_a
:cond_12
iget-object v13, v0, Lokhttp3/Response;->f:Ljava/lang/String;
new-instance v14, Ljava/lang/StringBuilder;
invoke-direct {v14}, Ljava/lang/StringBuilder;-><init>()V
const/16 v16, 0x20
move-object/from16 v20, v6
invoke-static/range {v16 .. v16}, Ljava/lang/String;->valueOf(C)Ljava/lang/String;
move-result-object v6
invoke-virtual {v14, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v14, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v6
:goto_a
invoke-virtual {v7, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v6, 0x20
invoke-virtual {v7, v6}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
iget-object v6, v0, Lokhttp3/Response;->d:Ln0/a0;
iget-object v6, v6, Ln0/a0;->b:Ln0/w;
invoke-virtual {v7, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v7, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v7, v11, v12}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string v6, "ms"
invoke-virtual {v7, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
if-nez v2, :cond_13
const-string v6, ", "
const-string v9, " body"
invoke-static {v6, v5, v9}, Lf/e/b/a/a;->q(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v5
goto :goto_b
:cond_13
move-object v5, v8
:goto_b
invoke-virtual {v7, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v5, 0x29
invoke-virtual {v7, v5}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v5
invoke-interface {v15, v5}, Ln0/h0/a$b;->log(Ljava/lang/String;)V
if-eqz v2, :cond_1d
iget-object v2, v0, Lokhttp3/Response;->i:Lokhttp3/Headers;
invoke-virtual {v2}, Lokhttp3/Headers;->size()I
move-result v5
const/4 v6, 0x0
:goto_c
if-ge v6, v5, :cond_14
invoke-virtual {v1, v2, v6}, Ln0/h0/a;->b(Lokhttp3/Headers;I)V
add-int/lit8 v6, v6, 0x1
goto :goto_c
:cond_14
if-eqz v4, :cond_1c
invoke-static {v0}, Ln0/g0/e/e;->a(Lokhttp3/Response;)Z
move-result v4
if-nez v4, :cond_15
goto/16 :goto_f
:cond_15
iget-object v4, v0, Lokhttp3/Response;->i:Lokhttp3/Headers;
invoke-virtual {v1, v4}, Ln0/h0/a;->a(Lokhttp3/Headers;)Z
move-result v4
if-eqz v4, :cond_16
iget-object v2, v1, Ln0/h0/a;->d:Ln0/h0/a$b;
const-string v3, "<-- END HTTP (encoded body omitted)"
invoke-interface {v2, v3}, Ln0/h0/a$b;->log(Ljava/lang/String;)V
goto/16 :goto_10
:cond_16
invoke-virtual {v3}, Lokhttp3/ResponseBody;->c()Lo0/g;
move-result-object v4
const-wide v5, 0x7fffffffffffffffL
invoke-interface {v4, v5, v6}, Lo0/g;->m(J)Z
invoke-interface {v4}, Lo0/g;->h()Lo0/e;
move-result-object v4
const-string v5, "Content-Encoding"
invoke-virtual {v2, v5}, Lokhttp3/Headers;->c(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
const-string v5, "gzip"
const/4 v6, 0x1
invoke-static {v5, v2, v6}, Lj0/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v2
if-eqz v2, :cond_17
iget-wide v5, v4, Lo0/e;->e:J
invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v2
new-instance v5, Lo0/k;
invoke-virtual {v4}, Lo0/e;->b()Lo0/e;
move-result-object v4
invoke-direct {v5, v4}, Lo0/k;-><init>(Lo0/w;)V
:try_start_1
new-instance v4, Lo0/e;
invoke-direct {v4}, Lo0/e;-><init>()V
invoke-virtual {v4, v5}, Lo0/e;->i0(Lo0/w;)J
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
const/4 v6, 0x0
invoke-static {v5, v6}, Lf/n/a/k/a;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
goto :goto_d
:catchall_0
move-exception v0
move-object v2, v0
:try_start_2
throw v2
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
:catchall_1
move-exception v0
move-object v3, v0
invoke-static {v5, v2}, Lf/n/a/k/a;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
throw v3
:cond_17
const/4 v2, 0x0
:goto_d
invoke-virtual {v3}, Lokhttp3/ResponseBody;->b()Lokhttp3/MediaType;
move-result-object v3
if-eqz v3, :cond_18
sget-object v5, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
invoke-virtual {v3, v5}, Lokhttp3/MediaType;->a(Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
move-result-object v3
if-eqz v3, :cond_18
goto :goto_e
:cond_18
sget-object v3, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
invoke-static {v3, v10}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:goto_e
invoke-static {v4}, Lf/n/a/k/a;->L(Lo0/e;)Z
move-result v5
if-nez v5, :cond_19
iget-object v2, v1, Ln0/h0/a;->d:Ln0/h0/a$b;
invoke-interface {v2, v8}, Ln0/h0/a$b;->log(Ljava/lang/String;)V
iget-object v2, v1, Ln0/h0/a;->d:Ln0/h0/a$b;
const-string v3, "<-- END HTTP (binary "
invoke-static {v3}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
iget-wide v4, v4, Lo0/e;->e:J
invoke-virtual {v3, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-object/from16 v4, v20
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
invoke-interface {v2, v3}, Ln0/h0/a$b;->log(Ljava/lang/String;)V
return-object v0
:cond_19
const-wide/16 v5, 0x0
cmp-long v7, v18, v5
if-eqz v7, :cond_1a
iget-object v5, v1, Ln0/h0/a;->d:Ln0/h0/a$b;
invoke-interface {v5, v8}, Ln0/h0/a$b;->log(Ljava/lang/String;)V
iget-object v5, v1, Ln0/h0/a;->d:Ln0/h0/a$b;
invoke-virtual {v4}, Lo0/e;->b()Lo0/e;
move-result-object v6
invoke-virtual {v6, v3}, Lo0/e;->b0(Ljava/nio/charset/Charset;)Ljava/lang/String;
move-result-object v3
invoke-interface {v5, v3}, Ln0/h0/a$b;->log(Ljava/lang/String;)V
:cond_1a
const-string v3, "<-- END HTTP ("
if-eqz v2, :cond_1b
iget-object v5, v1, Ln0/h0/a;->d:Ln0/h0/a$b;
invoke-static {v3}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
iget-wide v6, v4, Lo0/e;->e:J
invoke-virtual {v3, v6, v7}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string v4, "-byte, "
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v2, "-gzipped-byte body)"
invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-interface {v5, v2}, Ln0/h0/a$b;->log(Ljava/lang/String;)V
goto :goto_10
:cond_1b
iget-object v2, v1, Ln0/h0/a;->d:Ln0/h0/a$b;
invoke-static {v3}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
iget-wide v4, v4, Lo0/e;->e:J
invoke-virtual {v3, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-object/from16 v4, v17
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
invoke-interface {v2, v3}, Ln0/h0/a$b;->log(Ljava/lang/String;)V
goto :goto_10
:cond_1c
:goto_f
iget-object v2, v1, Ln0/h0/a;->d:Ln0/h0/a$b;
const-string v3, "<-- END HTTP"
invoke-interface {v2, v3}, Ln0/h0/a$b;->log(Ljava/lang/String;)V
:cond_1d
:goto_10
return-object v0
:cond_1e
invoke-static {}, Lj0/n/c/h;->throwNpe()V
const/4 v0, 0x0
throw v0
:catch_0
move-exception v0
move-object v2, v0
iget-object v0, v1, Ln0/h0/a;->d:Ln0/h0/a$b;
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "<-- HTTP FAILED: "
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
invoke-interface {v0, v3}, Ln0/h0/a$b;->log(Ljava/lang/String;)V
throw v2
.end method