apkfuckery/com.discord/smali_classes2/o0/i0/a.smali
2020-09-09 19:21:20 +00:00

1096 lines
26 KiB
Smali

.class public final Lo0/i0/a;
.super Ljava/lang/Object;
.source "HttpLoggingInterceptor.kt"
# interfaces
.implements Lokhttp3/Interceptor;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lo0/i0/a$a;,
Lo0/i0/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:Lo0/i0/a$a;
.field public final d:Lo0/i0/a$b;
# direct methods
.method public constructor <init>(Lo0/i0/a$b;)V
.locals 1
const-string v0, "logger"
invoke-static {p1, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lo0/i0/a;->d:Lo0/i0/a$b;
sget-object p1, Lk0/i/n;->d:Lk0/i/n;
iput-object p1, p0, Lo0/i0/a;->b:Ljava/util/Set;
sget-object p1, Lo0/i0/a$a;->d:Lo0/i0/a$a;
iput-object p1, p0, Lo0/i0/a;->c:Lo0/i0/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}, Lk0/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}, Lk0/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, Lo0/i0/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, Lo0/i0/a;->d:Lo0/i0/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}, Lo0/i0/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
const-string v2, "chain"
invoke-static {v0, v2}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v2, v1, Lo0/i0/a;->c:Lo0/i0/a$a;
invoke-interface/range {p1 .. p1}, Lokhttp3/Interceptor$Chain;->g()Lo0/b0;
move-result-object v3
sget-object v4, Lo0/i0/a$a;->d:Lo0/i0/a$a;
if-ne v2, v4, :cond_0
invoke-interface {v0, v3}, Lokhttp3/Interceptor$Chain;->a(Lo0/b0;)Lokhttp3/Response;
move-result-object v0
return-object v0
:cond_0
sget-object v4, Lo0/i0/a$a;->g:Lo0/i0/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, Lo0/i0/a$a;->f:Lo0/i0/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, Lo0/b0;->e:Lokhttp3/RequestBody;
invoke-interface/range {p1 .. p1}, Lokhttp3/Interceptor$Chain;->b()Lo0/l;
move-result-object v6
const-string v7, "--> "
invoke-static {v7}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v7
iget-object v8, v3, Lo0/b0;->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, Lo0/b0;->b:Lo0/y;
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;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v9
invoke-interface {v6}, Lo0/l;->a()Lo0/a0;
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;->J(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, Lo0/i0/a;->d:Lo0/i0/a$b;
invoke-interface {v10, v6}, Lo0/i0/a$b;->log(Ljava/lang/String;)V
const-string v6, "-byte body omitted)"
const-string v10, "UTF_8"
if-eqz v2, :cond_10
iget-object v11, v3, Lo0/b0;->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, Lo0/i0/a;->d:Lo0/i0/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}, Lo0/i0/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, Lo0/i0/a;->d:Lo0/i0/a$b;
const-string v13, "Content-Length: "
invoke-static {v13}, Lf/e/b/a/a;->E(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}, Lo0/i0/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}, Lo0/i0/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_f
if-nez v5, :cond_9
goto/16 :goto_6
:cond_9
iget-object v12, v3, Lo0/b0;->d:Lokhttp3/Headers;
invoke-virtual {v1, v12}, Lo0/i0/a;->a(Lokhttp3/Headers;)Z
move-result v12
if-eqz v12, :cond_a
iget-object v5, v1, Lo0/i0/a;->d:Lo0/i0/a$b;
invoke-static {v11}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v11
iget-object v12, v3, Lo0/b0;->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}, Lo0/i0/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, Lo0/i0/a;->d:Lo0/i0/a$b;
invoke-static {v11}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v11
iget-object v12, v3, Lo0/b0;->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}, Lo0/i0/a$b;->log(Ljava/lang/String;)V
goto/16 :goto_7
:cond_b
invoke-virtual {v5}, Lokhttp3/RequestBody;->isOneShot()Z
move-result v12
if-eqz v12, :cond_c
iget-object v5, v1, Lo0/i0/a;->d:Lo0/i0/a$b;
invoke-static {v11}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v11
iget-object v12, v3, Lo0/b0;->c:Ljava/lang/String;
invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v12, " (one-shot 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}, Lo0/i0/a$b;->log(Ljava/lang/String;)V
goto/16 :goto_7
:cond_c
new-instance v12, Lp0/e;
invoke-direct {v12}, Lp0/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_d
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_d
goto :goto_5
:cond_d
sget-object v13, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
invoke-static {v13, v10}, Lk0/n/c/i;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:goto_5
iget-object v14, v1, Lo0/i0/a;->d:Lo0/i0/a$b;
invoke-interface {v14, v8}, Lo0/i0/a$b;->log(Ljava/lang/String;)V
invoke-static {v12}, Lk0/j/a;->A(Lp0/e;)Z
move-result v14
if-eqz v14, :cond_e
iget-object v14, v1, Lo0/i0/a;->d:Lo0/i0/a$b;
invoke-virtual {v12, v13}, Lp0/e;->e0(Ljava/nio/charset/Charset;)Ljava/lang/String;
move-result-object v12
invoke-interface {v14, v12}, Lo0/i0/a$b;->log(Ljava/lang/String;)V
iget-object v12, v1, Lo0/i0/a;->d:Lo0/i0/a$b;
invoke-static {v11}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v11
iget-object v13, v3, Lo0/b0;->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}, Lo0/i0/a$b;->log(Ljava/lang/String;)V
goto :goto_7
:cond_e
iget-object v12, v1, Lo0/i0/a;->d:Lo0/i0/a$b;
invoke-static {v11}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v11
iget-object v13, v3, Lo0/b0;->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}, Lo0/i0/a$b;->log(Ljava/lang/String;)V
goto :goto_7
:cond_f
:goto_6
iget-object v5, v1, Lo0/i0/a;->d:Lo0/i0/a$b;
invoke-static {v11}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v11
iget-object v12, v3, Lo0/b0;->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}, Lo0/i0/a$b;->log(Ljava/lang/String;)V
:cond_10
:goto_7
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v11
:try_start_0
invoke-interface {v0, v3}, Lokhttp3/Interceptor$Chain;->a(Lo0/b0;)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_1f
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_11
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_11
const-string v5, "unknown-length"
:goto_8
iget-object v15, v1, Lo0/i0/a;->d:Lo0/i0/a$b;
const-string v16, "<-- "
move-object/from16 v17, v7
invoke-static/range {v16 .. v16}, Lf/e/b/a/a;->E(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_12
const/4 v13, 0x1
goto :goto_9
:cond_12
const/4 v13, 0x0
:goto_9
if-eqz v13, :cond_13
move-object/from16 v20, v6
move-object v6, v8
goto :goto_a
:cond_13
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:Lo0/b0;
iget-object v6, v6, Lo0/b0;->b:Lo0/y;
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_14
const-string v6, ", "
const-string v9, " body"
invoke-static {v6, v5, v9}, Lf/e/b/a/a;->r(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v5
goto :goto_b
:cond_14
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}, Lo0/i0/a$b;->log(Ljava/lang/String;)V
if-eqz v2, :cond_1e
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_15
invoke-virtual {v1, v2, v6}, Lo0/i0/a;->b(Lokhttp3/Headers;I)V
add-int/lit8 v6, v6, 0x1
goto :goto_c
:cond_15
if-eqz v4, :cond_1d
invoke-static {v0}, Lo0/h0/h/e;->b(Lokhttp3/Response;)Z
move-result v4
if-nez v4, :cond_16
goto/16 :goto_f
:cond_16
iget-object v4, v0, Lokhttp3/Response;->i:Lokhttp3/Headers;
invoke-virtual {v1, v4}, Lo0/i0/a;->a(Lokhttp3/Headers;)Z
move-result v4
if-eqz v4, :cond_17
iget-object v2, v1, Lo0/i0/a;->d:Lo0/i0/a$b;
const-string v3, "<-- END HTTP (encoded body omitted)"
invoke-interface {v2, v3}, Lo0/i0/a$b;->log(Ljava/lang/String;)V
goto/16 :goto_10
:cond_17
invoke-virtual {v3}, Lokhttp3/ResponseBody;->c()Lp0/g;
move-result-object v4
const-wide v5, 0x7fffffffffffffffL
invoke-interface {v4, v5, v6}, Lp0/g;->n(J)Z
invoke-interface {v4}, Lp0/g;->i()Lp0/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}, Lk0/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v2
if-eqz v2, :cond_18
iget-wide v5, v4, Lp0/e;->e:J
invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v2
new-instance v5, Lp0/l;
invoke-virtual {v4}, Lp0/e;->b()Lp0/e;
move-result-object v4
invoke-direct {v5, v4}, Lp0/l;-><init>(Lp0/x;)V
:try_start_1
new-instance v4, Lp0/e;
invoke-direct {v4}, Lp0/e;-><init>()V
invoke-virtual {v4, v5}, Lp0/e;->n0(Lp0/x;)J
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
const/4 v6, 0x0
invoke-static {v5, v6}, Lk0/j/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}, Lk0/j/a;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
throw v3
:cond_18
const/4 v2, 0x0
:goto_d
invoke-virtual {v3}, Lokhttp3/ResponseBody;->b()Lokhttp3/MediaType;
move-result-object v3
if-eqz v3, :cond_19
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_19
goto :goto_e
:cond_19
sget-object v3, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
invoke-static {v3, v10}, Lk0/n/c/i;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:goto_e
invoke-static {v4}, Lk0/j/a;->A(Lp0/e;)Z
move-result v5
if-nez v5, :cond_1a
iget-object v2, v1, Lo0/i0/a;->d:Lo0/i0/a$b;
invoke-interface {v2, v8}, Lo0/i0/a$b;->log(Ljava/lang/String;)V
iget-object v2, v1, Lo0/i0/a;->d:Lo0/i0/a$b;
const-string v3, "<-- END HTTP (binary "
invoke-static {v3}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
iget-wide v4, v4, Lp0/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}, Lo0/i0/a$b;->log(Ljava/lang/String;)V
return-object v0
:cond_1a
const-wide/16 v5, 0x0
cmp-long v7, v18, v5
if-eqz v7, :cond_1b
iget-object v5, v1, Lo0/i0/a;->d:Lo0/i0/a$b;
invoke-interface {v5, v8}, Lo0/i0/a$b;->log(Ljava/lang/String;)V
iget-object v5, v1, Lo0/i0/a;->d:Lo0/i0/a$b;
invoke-virtual {v4}, Lp0/e;->b()Lp0/e;
move-result-object v6
invoke-virtual {v6, v3}, Lp0/e;->e0(Ljava/nio/charset/Charset;)Ljava/lang/String;
move-result-object v3
invoke-interface {v5, v3}, Lo0/i0/a$b;->log(Ljava/lang/String;)V
:cond_1b
const-string v3, "<-- END HTTP ("
if-eqz v2, :cond_1c
iget-object v5, v1, Lo0/i0/a;->d:Lo0/i0/a$b;
invoke-static {v3}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
iget-wide v6, v4, Lp0/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}, Lo0/i0/a$b;->log(Ljava/lang/String;)V
goto :goto_10
:cond_1c
iget-object v2, v1, Lo0/i0/a;->d:Lo0/i0/a$b;
invoke-static {v3}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
iget-wide v4, v4, Lp0/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}, Lo0/i0/a$b;->log(Ljava/lang/String;)V
goto :goto_10
:cond_1d
:goto_f
iget-object v2, v1, Lo0/i0/a;->d:Lo0/i0/a$b;
const-string v3, "<-- END HTTP"
invoke-interface {v2, v3}, Lo0/i0/a$b;->log(Ljava/lang/String;)V
:cond_1e
:goto_10
return-object v0
:cond_1f
invoke-static {}, Lk0/n/c/i;->throwNpe()V
const/4 v0, 0x0
throw v0
:catch_0
move-exception v0
move-object v2, v0
iget-object v0, v1, Lo0/i0/a;->d:Lo0/i0/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}, Lo0/i0/a$b;->log(Ljava/lang/String;)V
throw v2
.end method