.class public final Laa/i;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lv9/x;


# instance fields
.field public final a:Lv9/a0;


# direct methods
.method public constructor <init>(Lv9/a0;)V
    .registers 3

    const-string v0, "client"

    invoke-static {p1, v0}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Laa/i;->a:Lv9/a0;

    return-void
.end method


# virtual methods
.method public a(Lv9/x$a;)Lv9/g0;
    .registers 50

    move-object/from16 v1, p0

    move-object/from16 v2, p1

    check-cast v2, Laa/g;

    .line 1
    iget-object v0, v2, Laa/g;->f:Lv9/c0;

    .line 2
    iget-object v3, v2, Laa/g;->b:Lz9/d;

    .line 3
    sget-object v4, Lz8/k;->r:Lz8/k;

    const/4 v7, 0x1

    move-object v8, v4

    const/4 v9, 0x0

    const/4 v10, 0x0

    move-object v4, v0

    move v0, v7

    :goto_12
    invoke-static {v3}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    const-string v11, "request"

    .line 4
    invoke-static {v4, v11}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v11, v3, Lz9/d;->z:Lz9/b;

    if-nez v11, :cond_20

    move v11, v7

    goto :goto_21

    :cond_20
    const/4 v11, 0x0

    :goto_21
    if-eqz v11, :cond_313

    monitor-enter v3

    :try_start_24
    iget-boolean v11, v3, Lz9/d;->B:Z

    xor-int/2addr v11, v7

    if-eqz v11, :cond_2fe

    iget-boolean v11, v3, Lz9/d;->A:Z
    :try_end_2b
    .catchall {:try_start_24 .. :try_end_2b} :catchall_30e

    xor-int/2addr v11, v7

    if-eqz v11, :cond_2f0

    monitor-exit v3

    if-eqz v0, :cond_8c

    new-instance v0, Lz9/c;

    iget-object v11, v3, Lz9/d;->r:Lz9/i;

    .line 5
    iget-object v12, v4, Lv9/c0;->b:Lv9/w;

    .line 6
    iget-boolean v13, v12, Lv9/w;->a:Z

    if-eqz v13, :cond_54

    .line 7
    iget-object v13, v3, Lz9/d;->G:Lv9/a0;

    .line 8
    iget-object v14, v13, Lv9/a0;->F:Ljavax/net/ssl/SSLSocketFactory;

    if-eqz v14, :cond_4c

    .line 9
    iget-object v15, v13, Lv9/a0;->J:Ljavax/net/ssl/HostnameVerifier;

    .line 10
    iget-object v13, v13, Lv9/a0;->K:Lv9/h;

    move-object/from16 v19, v13

    move-object/from16 v17, v14

    move-object/from16 v18, v15

    goto :goto_5a

    .line 11
    :cond_4c
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v2, "CLEARTEXT-only client"

    invoke-direct {v0, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_54
    const/16 v17, 0x0

    const/16 v18, 0x0

    const/16 v19, 0x0

    .line 12
    :goto_5a
    new-instance v15, Lv9/a;

    .line 13
    iget-object v13, v12, Lv9/w;->e:Ljava/lang/String;

    .line 14
    iget v14, v12, Lv9/w;->f:I

    .line 15
    iget-object v12, v3, Lz9/d;->G:Lv9/a0;

    .line 16
    iget-object v5, v12, Lv9/a0;->B:Lv9/q;

    .line 17
    iget-object v6, v12, Lv9/a0;->E:Ljavax/net/SocketFactory;

    .line 18
    iget-object v7, v12, Lv9/a0;->D:Lv9/c;

    const/16 v21, 0x0

    move-object/from16 v25, v8

    .line 19
    iget-object v8, v12, Lv9/a0;->I:Ljava/util/List;

    move/from16 v26, v9

    .line 20
    iget-object v9, v12, Lv9/a0;->H:Ljava/util/List;

    .line 21
    iget-object v12, v12, Lv9/a0;->C:Ljava/net/ProxySelector;

    move-object/from16 v24, v12

    move-object v12, v15

    move-object v1, v15

    move-object v15, v5

    move-object/from16 v16, v6

    move-object/from16 v20, v7

    move-object/from16 v22, v8

    move-object/from16 v23, v9

    .line 22
    invoke-direct/range {v12 .. v24}, Lv9/a;-><init>(Ljava/lang/String;ILv9/q;Ljavax/net/SocketFactory;Ljavax/net/ssl/SSLSocketFactory;Ljavax/net/ssl/HostnameVerifier;Lv9/h;Lv9/c;Ljava/net/Proxy;Ljava/util/List;Ljava/util/List;Ljava/net/ProxySelector;)V

    .line 23
    iget-object v5, v3, Lz9/d;->s:Lv9/r;

    invoke-direct {v0, v11, v1, v3, v5}, Lz9/c;-><init>(Lz9/i;Lv9/a;Lz9/d;Lv9/r;)V

    iput-object v0, v3, Lz9/d;->w:Lz9/c;

    goto :goto_90

    :cond_8c
    move-object/from16 v25, v8

    move/from16 v26, v9

    .line 24
    :goto_90
    :try_start_90
    iget-boolean v0, v3, Lz9/d;->D:Z
    :try_end_92
    .catchall {:try_start_90 .. :try_end_92} :catchall_2e7

    if-nez v0, :cond_2da

    .line 25
    :try_start_94
    invoke-virtual {v2, v4}, Laa/g;->b(Lv9/c0;)Lv9/g0;

    move-result-object v0
    :try_end_98
    .catch Lz9/j; {:try_start_94 .. :try_end_98} :catch_29c
    .catch Ljava/io/IOException; {:try_start_94 .. :try_end_98} :catch_25c
    .catchall {:try_start_94 .. :try_end_98} :catchall_2e7

    if-eqz v10, :cond_1ef

    .line 26
    :try_start_9a
    iget-object v1, v0, Lv9/g0;->r:Lv9/c0;

    .line 27
    iget-object v4, v0, Lv9/g0;->s:Lv9/b0;

    .line 28
    iget v5, v0, Lv9/g0;->u:I

    .line 29
    iget-object v6, v0, Lv9/g0;->t:Ljava/lang/String;

    .line 30
    iget-object v7, v0, Lv9/g0;->v:Lv9/u;

    .line 31
    iget-object v8, v0, Lv9/g0;->w:Lv9/v;

    .line 32
    invoke-virtual {v8}, Lv9/v;->e()Lv9/v$a;

    move-result-object v8

    .line 33
    iget-object v9, v0, Lv9/g0;->x:Lv9/h0;

    .line 34
    iget-object v11, v0, Lv9/g0;->y:Lv9/g0;

    .line 35
    iget-object v12, v0, Lv9/g0;->z:Lv9/g0;

    .line 36
    iget-wide v13, v0, Lv9/g0;->B:J
    :try_end_b2
    .catchall {:try_start_9a .. :try_end_b2} :catchall_1e6

    move-object v15, v2

    move-object/from16 v16, v3

    .line 37
    :try_start_b5
    iget-wide v2, v0, Lv9/g0;->C:J

    .line 38
    iget-object v0, v0, Lv9/g0;->D:Lz9/b;

    move-object/from16 v17, v15

    .line 39
    iget-object v15, v10, Lv9/g0;->r:Lv9/c0;

    move-object/from16 v18, v0

    .line 40
    iget-object v0, v10, Lv9/g0;->s:Lv9/b0;

    move-wide/from16 v19, v2

    .line 41
    iget v2, v10, Lv9/g0;->u:I

    .line 42
    iget-object v3, v10, Lv9/g0;->t:Ljava/lang/String;

    move-wide/from16 v21, v13

    .line 43
    iget-object v13, v10, Lv9/g0;->v:Lv9/u;

    .line 44
    iget-object v14, v10, Lv9/g0;->w:Lv9/v;

    .line 45
    invoke-virtual {v14}, Lv9/v;->e()Lv9/v$a;

    move-result-object v14

    move-object/from16 v23, v12

    .line 46
    iget-object v12, v10, Lv9/g0;->y:Lv9/g0;

    move-object/from16 v24, v11

    .line 47
    iget-object v11, v10, Lv9/g0;->z:Lv9/g0;

    move-object/from16 v43, v9

    .line 48
    iget-object v9, v10, Lv9/g0;->A:Lv9/g0;

    move-object/from16 v44, v7

    move-object/from16 v45, v8

    .line 49
    iget-wide v7, v10, Lv9/g0;->B:J

    move-object/from16 v46, v4

    move/from16 v47, v5

    .line 50
    iget-wide v4, v10, Lv9/g0;->C:J

    .line 51
    iget-object v10, v10, Lv9/g0;->D:Lz9/b;

    const/16 v34, 0x0

    if-ltz v2, :cond_f2

    const/16 v27, 0x1

    goto :goto_f4

    :cond_f2
    const/16 v27, 0x0

    :goto_f4
    if-eqz v27, :cond_1c9

    if-eqz v15, :cond_1bd

    if-eqz v0, :cond_1b1

    if-eqz v3, :cond_1a5

    .line 52
    invoke-virtual {v14}, Lv9/v$a;->c()Lv9/v;

    move-result-object v33

    new-instance v14, Lv9/g0;

    move-object/from16 v27, v14

    move-object/from16 v28, v15

    move-object/from16 v29, v0

    move-object/from16 v30, v3

    move/from16 v31, v2

    move-object/from16 v32, v13

    move-object/from16 v35, v12

    move-object/from16 v36, v11

    move-object/from16 v37, v9

    move-wide/from16 v38, v7

    move-wide/from16 v40, v4

    move-object/from16 v42, v10

    invoke-direct/range {v27 .. v42}, Lv9/g0;-><init>(Lv9/c0;Lv9/b0;Ljava/lang/String;ILv9/u;Lv9/v;Lv9/h0;Lv9/g0;Lv9/g0;Lv9/g0;JJLz9/b;)V

    .line 53
    iget-object v0, v14, Lv9/g0;->x:Lv9/h0;

    if-nez v0, :cond_123

    const/4 v0, 0x1

    goto :goto_124

    :cond_123
    const/4 v0, 0x0

    :goto_124
    if-eqz v0, :cond_199

    if-ltz v47, :cond_12a

    const/4 v0, 0x1

    goto :goto_12b

    :cond_12a
    const/4 v0, 0x0

    :goto_12b
    if-eqz v0, :cond_17c

    if-eqz v1, :cond_170

    if-eqz v46, :cond_164

    if-eqz v6, :cond_158

    .line 54
    invoke-virtual/range {v45 .. v45}, Lv9/v$a;->c()Lv9/v;

    move-result-object v33

    new-instance v0, Lv9/g0;

    move-object/from16 v27, v0

    move-object/from16 v28, v1

    move-object/from16 v29, v46

    move-object/from16 v30, v6

    move/from16 v31, v47

    move-object/from16 v32, v44

    move-object/from16 v34, v43

    move-object/from16 v35, v24

    move-object/from16 v36, v23

    move-object/from16 v37, v14

    move-wide/from16 v38, v21

    move-wide/from16 v40, v19

    move-object/from16 v42, v18

    invoke-direct/range {v27 .. v42}, Lv9/g0;-><init>(Lv9/c0;Lv9/b0;Ljava/lang/String;ILv9/u;Lv9/v;Lv9/h0;Lv9/g0;Lv9/g0;Lv9/g0;JJLz9/b;)V

    goto/16 :goto_1f3

    :cond_158
    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_164
    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_170
    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_17c
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "code < 0: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move/from16 v1, v47

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()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

    .line 55
    :cond_199
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "priorResponse.body != null"

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 56
    :cond_1a5
    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_1b1
    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_1bd
    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_1c9
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "code < 0: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()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
    :try_end_1e4
    .catchall {:try_start_b5 .. :try_end_1e4} :catchall_1e4

    :catchall_1e4
    move-exception v0

    goto :goto_1e9

    :catchall_1e6
    move-exception v0

    move-object/from16 v16, v3

    :goto_1e9
    move-object/from16 v2, p0

    move-object/from16 v1, v16

    goto/16 :goto_2eb

    :cond_1ef
    move-object/from16 v17, v2

    move-object/from16 v16, v3

    :goto_1f3
    move-object v10, v0

    move-object/from16 v1, v16

    .line 57
    :try_start_1f6
    iget-object v0, v1, Lz9/d;->z:Lz9/b;
    :try_end_1f8
    .catchall {:try_start_1f6 .. :try_end_1f8} :catchall_257

    move-object/from16 v2, p0

    .line 58
    :try_start_1fa
    invoke-virtual {v2, v10, v0}, Laa/i;->b(Lv9/g0;Lz9/b;)Lv9/c0;

    move-result-object v4

    if-nez v4, :cond_225

    if-eqz v0, :cond_220

    .line 59
    iget-boolean v0, v0, Lz9/b;->a:Z

    if-eqz v0, :cond_220

    .line 60
    iget-boolean v0, v1, Lz9/d;->y:Z

    const/4 v3, 0x1

    xor-int/2addr v0, v3

    if-eqz v0, :cond_214

    iput-boolean v3, v1, Lz9/d;->y:Z

    iget-object v0, v1, Lz9/d;->t:Lz9/d$c;

    invoke-virtual {v0}, Lha/b;->i()Z

    goto :goto_220

    :cond_214
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v3, "Check failed."

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v0, v3}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_220
    .catchall {:try_start_1fa .. :try_end_220} :catchall_2e5

    :cond_220
    :goto_220
    const/4 v3, 0x0

    .line 61
    invoke-virtual {v1, v3}, Lz9/d;->h(Z)V

    return-object v10

    .line 62
    :cond_225
    :try_start_225
    iget-object v0, v10, Lv9/g0;->x:Lv9/h0;

    if-eqz v0, :cond_22c

    .line 63
    invoke-static {v0}, Lw9/c;->d(Ljava/io/Closeable;)V
    :try_end_22c
    .catchall {:try_start_225 .. :try_end_22c} :catchall_2e5

    :cond_22c
    add-int/lit8 v9, v26, 0x1

    const/16 v0, 0x14

    if-gt v9, v0, :cond_240

    const/4 v3, 0x1

    invoke-virtual {v1, v3}, Lz9/d;->h(Z)V

    move-object v3, v1

    move-object v1, v2

    move-object/from16 v2, v17

    move-object/from16 v8, v25

    const/4 v0, 0x1

    const/4 v7, 0x1

    goto/16 :goto_12

    :cond_240
    :try_start_240
    new-instance v0, Ljava/net/ProtocolException;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "Too many follow-up requests: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v0, v3}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V

    throw v0

    :catchall_257
    move-exception v0

    move-object/from16 v2, p0

    goto/16 :goto_2eb

    :catch_25c
    move-exception v0

    move-object/from16 v17, v2

    move-object v1, v3

    move-object/from16 v2, p0

    move-object v3, v0

    nop

    instance-of v0, v3, Lca/a;

    if-nez v0, :cond_26a

    const/4 v0, 0x1

    goto :goto_26b

    :cond_26a
    const/4 v0, 0x0

    :goto_26b
    invoke-virtual {v2, v3, v1, v4, v0}, Laa/i;->c(Ljava/io/IOException;Lz9/d;Lv9/c0;Z)Z

    move-result v0

    if-eqz v0, :cond_296

    const-string v0, "$this$plus"

    move-object/from16 v5, v25

    .line 64
    invoke-static {v5, v0}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    new-instance v0, Ljava/util/ArrayList;

    invoke-interface {v5}, Ljava/util/Collection;->size()I

    move-result v6

    const/4 v7, 0x1

    add-int/2addr v6, v7

    invoke-direct {v0, v6}, Ljava/util/ArrayList;-><init>(I)V

    invoke-virtual {v0, v5}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_289
    .catchall {:try_start_240 .. :try_end_289} :catchall_2e5

    .line 65
    invoke-virtual {v1, v7}, Lz9/d;->h(Z)V

    move-object v8, v0

    move-object v3, v1

    move-object v1, v2

    move-object/from16 v2, v17

    move/from16 v9, v26

    const/4 v0, 0x0

    goto/16 :goto_12

    :cond_296
    move-object/from16 v5, v25

    :try_start_298
    invoke-static {v3, v5}, Lw9/c;->z(Ljava/lang/Exception;Ljava/util/List;)Ljava/lang/Throwable;

    throw v3

    :catch_29c
    move-exception v0

    move-object/from16 v17, v2

    move-object v1, v3

    move-object/from16 v5, v25

    move-object/from16 v2, p0

    move-object v3, v0

    .line 66
    iget-object v0, v3, Lz9/j;->r:Ljava/io/IOException;

    const/4 v6, 0x0

    .line 67
    invoke-virtual {v2, v0, v1, v4, v6}, Laa/i;->c(Ljava/io/IOException;Lz9/d;Lv9/c0;Z)Z

    move-result v0

    if-eqz v0, :cond_2d4

    .line 68
    iget-object v0, v3, Lz9/j;->s:Ljava/io/IOException;

    const-string v3, "$this$plus"

    .line 69
    invoke-static {v5, v3}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    new-instance v3, Ljava/util/ArrayList;

    invoke-interface {v5}, Ljava/util/Collection;->size()I

    move-result v7

    const/4 v8, 0x1

    add-int/2addr v7, v8

    invoke-direct {v3, v7}, Ljava/util/ArrayList;-><init>(I)V

    invoke-virtual {v3, v5}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    invoke-virtual {v3, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_2c6
    .catchall {:try_start_298 .. :try_end_2c6} :catchall_2e5

    .line 70
    invoke-virtual {v1, v8}, Lz9/d;->h(Z)V

    move v0, v6

    move v7, v8

    move/from16 v9, v26

    move-object v8, v3

    move-object v3, v1

    move-object v1, v2

    move-object/from16 v2, v17

    goto/16 :goto_12

    .line 71
    :cond_2d4
    :try_start_2d4
    iget-object v0, v3, Lz9/j;->s:Ljava/io/IOException;

    .line 72
    invoke-static {v0, v5}, Lw9/c;->z(Ljava/lang/Exception;Ljava/util/List;)Ljava/lang/Throwable;

    throw v0

    :cond_2da
    move-object/from16 v2, p0

    move-object v1, v3

    new-instance v0, Ljava/io/IOException;

    const-string v3, "Canceled"

    invoke-direct {v0, v3}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_2e5
    .catchall {:try_start_2d4 .. :try_end_2e5} :catchall_2e5

    :catchall_2e5
    move-exception v0

    goto :goto_2eb

    :catchall_2e7
    move-exception v0

    move-object/from16 v2, p0

    move-object v1, v3

    :goto_2eb
    const/4 v3, 0x1

    invoke-virtual {v1, v3}, Lz9/d;->h(Z)V

    throw v0

    :cond_2f0
    move-object v2, v1

    move-object v1, v3

    :try_start_2f2
    const-string v0, "Check failed."

    .line 73
    new-instance v3, Ljava/lang/IllegalStateException;

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v3, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v3

    :cond_2fe
    move-object v2, v1

    move-object v1, v3

    const-string v0, "cannot make a new request because the previous response is still open: please call response.close()"

    new-instance v3, Ljava/lang/IllegalStateException;

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v3, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v3
    :try_end_30c
    .catchall {:try_start_2f2 .. :try_end_30c} :catchall_30c

    :catchall_30c
    move-exception v0

    goto :goto_311

    :catchall_30e
    move-exception v0

    move-object v2, v1

    move-object v1, v3

    :goto_311
    monitor-exit v1

    throw v0

    :cond_313
    move-object v2, v1

    const-string v0, "Check failed."

    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 final b(Lv9/g0;Lz9/b;)Lv9/c0;
    .registers 13

    const/4 v0, 0x0

    if-eqz p2, :cond_a

    .line 1
    iget-object v1, p2, Lz9/b;->b:Lz9/h;

    if-eqz v1, :cond_a

    .line 2
    iget-object v1, v1, Lz9/h;->q:Lv9/j0;

    goto :goto_b

    :cond_a
    move-object v1, v0

    .line 3
    :goto_b
    iget v2, p1, Lv9/g0;->u:I

    .line 4
    iget-object v3, p1, Lv9/g0;->r:Lv9/c0;

    .line 5
    iget-object v3, v3, Lv9/c0;->c:Ljava/lang/String;

    const/4 v4, 0x0

    const/16 v5, 0x134

    const/16 v6, 0x133

    const/4 v7, 0x1

    if-eq v2, v6, :cond_b3

    if-eq v2, v5, :cond_b3

    const/16 v8, 0x191

    if-eq v2, v8, :cond_aa

    const/16 v8, 0x1a5

    if-eq v2, v8, :cond_81

    const/16 p2, 0x1f7

    if-eq v2, p2, :cond_6b

    const/16 p2, 0x197

    if-eq v2, p2, :cond_4d

    const/16 p2, 0x198

    if-eq v2, p2, :cond_33

    packed-switch v2, :pswitch_data_154

    return-object v0

    .line 6
    :cond_33
    iget-object v1, p0, Laa/i;->a:Lv9/a0;

    .line 7
    iget-boolean v1, v1, Lv9/a0;->w:Z

    if-nez v1, :cond_3a

    return-object v0

    .line 8
    :cond_3a
    iget-object v1, p1, Lv9/g0;->A:Lv9/g0;

    if-eqz v1, :cond_43

    .line 9
    iget v1, v1, Lv9/g0;->u:I

    if-ne v1, p2, :cond_43

    return-object v0

    .line 10
    :cond_43
    invoke-virtual {p0, p1, v4}, Laa/i;->d(Lv9/g0;I)I

    move-result p2

    if-lez p2, :cond_4a

    return-object v0

    .line 11
    :cond_4a
    iget-object p1, p1, Lv9/g0;->r:Lv9/c0;

    return-object p1

    .line 12
    :cond_4d
    invoke-static {v1}, Lx/e;->d(Ljava/lang/Object;)V

    .line 13
    iget-object p2, v1, Lv9/j0;->b:Ljava/net/Proxy;

    .line 14
    invoke-virtual {p2}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;

    move-result-object p2

    sget-object v0, Ljava/net/Proxy$Type;->HTTP:Ljava/net/Proxy$Type;

    if-ne p2, v0, :cond_63

    iget-object p2, p0, Laa/i;->a:Lv9/a0;

    .line 15
    iget-object p2, p2, Lv9/a0;->D:Lv9/c;

    .line 16
    invoke-interface {p2, v1, p1}, Lv9/c;->a(Lv9/j0;Lv9/g0;)Lv9/c0;

    move-result-object p1

    return-object p1

    :cond_63
    new-instance p1, Ljava/net/ProtocolException;

    const-string p2, "Received HTTP_PROXY_AUTH (407) code while not using proxy"

    invoke-direct {p1, p2}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V

    throw p1

    .line 17
    :cond_6b
    iget-object v1, p1, Lv9/g0;->A:Lv9/g0;

    if-eqz v1, :cond_74

    .line 18
    iget v1, v1, Lv9/g0;->u:I

    if-ne v1, p2, :cond_74

    return-object v0

    :cond_74
    const p2, 0x7fffffff

    .line 19
    invoke-virtual {p0, p1, p2}, Laa/i;->d(Lv9/g0;I)I

    move-result p2

    if-nez p2, :cond_80

    .line 20
    iget-object p1, p1, Lv9/g0;->r:Lv9/c0;

    return-object p1

    :cond_80
    return-object v0

    :cond_81
    if-eqz p2, :cond_a9

    .line 21
    iget-object v1, p2, Lz9/b;->e:Lz9/c;

    .line 22
    iget-object v1, v1, Lz9/c;->h:Lv9/a;

    .line 23
    iget-object v1, v1, Lv9/a;->a:Lv9/w;

    .line 24
    iget-object v1, v1, Lv9/w;->e:Ljava/lang/String;

    .line 25
    iget-object v2, p2, Lz9/b;->b:Lz9/h;

    .line 26
    iget-object v2, v2, Lz9/h;->q:Lv9/j0;

    .line 27
    iget-object v2, v2, Lv9/j0;->a:Lv9/a;

    .line 28
    iget-object v2, v2, Lv9/a;->a:Lv9/w;

    .line 29
    iget-object v2, v2, Lv9/w;->e:Ljava/lang/String;

    .line 30
    invoke-static {v1, v2}, Lx/e;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v1

    xor-int/2addr v1, v7

    if-nez v1, :cond_9d

    goto :goto_a9

    .line 31
    :cond_9d
    iget-object p2, p2, Lz9/b;->b:Lz9/h;

    .line 32
    monitor-enter p2

    :try_start_a0
    iput-boolean v7, p2, Lz9/h;->j:Z
    :try_end_a2
    .catchall {:try_start_a0 .. :try_end_a2} :catchall_a6

    monitor-exit p2

    .line 33
    iget-object p1, p1, Lv9/g0;->r:Lv9/c0;

    return-object p1

    :catchall_a6
    move-exception p1

    .line 34
    monitor-exit p2

    throw p1

    :cond_a9
    :goto_a9
    return-object v0

    .line 35
    :cond_aa
    iget-object p2, p0, Laa/i;->a:Lv9/a0;

    .line 36
    iget-object p2, p2, Lv9/a0;->x:Lv9/c;

    .line 37
    invoke-interface {p2, v1, p1}, Lv9/c;->a(Lv9/j0;Lv9/g0;)Lv9/c0;

    move-result-object p1

    return-object p1

    .line 38
    :cond_b3
    :pswitch_b3
    iget-object p2, p0, Laa/i;->a:Lv9/a0;

    .line 39
    iget-boolean p2, p2, Lv9/a0;->y:Z

    if-nez p2, :cond_bb

    goto/16 :goto_153

    :cond_bb
    const/4 p2, 0x2

    const-string v1, "Location"

    .line 40
    invoke-static {p1, v1, v0, p2}, Lv9/g0;->b(Lv9/g0;Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;

    move-result-object p2

    if-eqz p2, :cond_153

    .line 41
    iget-object v1, p1, Lv9/g0;->r:Lv9/c0;

    .line 42
    iget-object v1, v1, Lv9/c0;->b:Lv9/w;

    .line 43
    invoke-static {v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 44
    invoke-virtual {v1, p2}, Lv9/w;->f(Ljava/lang/String;)Lv9/w$a;

    move-result-object p2

    if-eqz p2, :cond_d6

    invoke-virtual {p2}, Lv9/w$a;->a()Lv9/w;

    move-result-object p2

    goto :goto_d7

    :cond_d6
    move-object p2, v0

    :goto_d7
    if-eqz p2, :cond_153

    .line 45
    iget-object v1, p2, Lv9/w;->b:Ljava/lang/String;

    .line 46
    iget-object v2, p1, Lv9/g0;->r:Lv9/c0;

    .line 47
    iget-object v2, v2, Lv9/c0;->b:Lv9/w;

    .line 48
    iget-object v2, v2, Lv9/w;->b:Ljava/lang/String;

    .line 49
    invoke-static {v1, v2}, Lx/e;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_ee

    iget-object v1, p0, Laa/i;->a:Lv9/a0;

    .line 50
    iget-boolean v1, v1, Lv9/a0;->z:Z

    if-nez v1, :cond_ee

    goto :goto_153

    .line 51
    :cond_ee
    iget-object v1, p1, Lv9/g0;->r:Lv9/c0;

    .line 52
    invoke-static {v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 53
    new-instance v2, Lv9/c0$a;

    invoke-direct {v2, v1}, Lv9/c0$a;-><init>(Lv9/c0;)V

    .line 54
    invoke-static {v3}, Laa/f;->a(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_13b

    .line 55
    iget v1, p1, Lv9/g0;->u:I

    const-string v8, "PROPFIND"

    .line 56
    invoke-static {v3, v8}, Lx/e;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v9

    if-nez v9, :cond_10c

    if-eq v1, v5, :cond_10c

    if-ne v1, v6, :cond_10d

    :cond_10c
    move v4, v7

    .line 57
    :cond_10d
    invoke-static {v3, v8}, Lx/e;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v8

    xor-int/2addr v7, v8

    if-eqz v7, :cond_11b

    if-eq v1, v5, :cond_11b

    if-eq v1, v6, :cond_11b

    const-string v3, "GET"

    goto :goto_121

    :cond_11b
    if-eqz v4, :cond_121

    .line 58
    iget-object v0, p1, Lv9/g0;->r:Lv9/c0;

    .line 59
    iget-object v0, v0, Lv9/c0;->e:Lv9/f0;

    .line 60
    :cond_121
    :goto_121
    invoke-virtual {v2, v3, v0}, Lv9/c0$a;->c(Ljava/lang/String;Lv9/f0;)Lv9/c0$a;

    if-nez v4, :cond_13b

    const-string v0, "Transfer-Encoding"

    .line 61
    iget-object v1, v2, Lv9/c0$a;->c:Lv9/v$a;

    invoke-virtual {v1, v0}, Lv9/v$a;->d(Ljava/lang/String;)Lv9/v$a;

    const-string v0, "Content-Length"

    iget-object v1, v2, Lv9/c0$a;->c:Lv9/v$a;

    invoke-virtual {v1, v0}, Lv9/v$a;->d(Ljava/lang/String;)Lv9/v$a;

    const-string v0, "Content-Type"

    iget-object v1, v2, Lv9/c0$a;->c:Lv9/v$a;

    invoke-virtual {v1, v0}, Lv9/v$a;->d(Ljava/lang/String;)Lv9/v$a;

    .line 62
    :cond_13b
    iget-object p1, p1, Lv9/g0;->r:Lv9/c0;

    .line 63
    iget-object p1, p1, Lv9/c0;->b:Lv9/w;

    .line 64
    invoke-static {p1, p2}, Lw9/c;->a(Lv9/w;Lv9/w;)Z

    move-result p1

    if-nez p1, :cond_14c

    const-string p1, "Authorization"

    .line 65
    iget-object v0, v2, Lv9/c0$a;->c:Lv9/v$a;

    invoke-virtual {v0, p1}, Lv9/v$a;->d(Ljava/lang/String;)Lv9/v$a;

    .line 66
    :cond_14c
    invoke-virtual {v2, p2}, Lv9/c0$a;->f(Lv9/w;)Lv9/c0$a;

    invoke-virtual {v2}, Lv9/c0$a;->a()Lv9/c0;

    move-result-object v0

    :cond_153
    :goto_153
    return-object v0

    :pswitch_data_154
    .packed-switch 0x12c
        :pswitch_b3
        :pswitch_b3
        :pswitch_b3
        :pswitch_b3
    .end packed-switch
.end method

.method public final c(Ljava/io/IOException;Lz9/d;Lv9/c0;Z)Z
    .registers 8

    iget-object p3, p0, Laa/i;->a:Lv9/a0;

    .line 1
    iget-boolean p3, p3, Lv9/a0;->w:Z

    const/4 v0, 0x0

    if-nez p3, :cond_8

    return v0

    :cond_8
    if-eqz p4, :cond_f

    .line 2
    instance-of p3, p1, Ljava/io/FileNotFoundException;

    if-eqz p3, :cond_f

    return v0

    .line 3
    :cond_f
    instance-of p3, p1, Ljava/net/ProtocolException;

    const/4 v1, 0x1

    if-eqz p3, :cond_15

    goto :goto_31

    :cond_15
    instance-of p3, p1, Ljava/io/InterruptedIOException;

    if-eqz p3, :cond_20

    instance-of p1, p1, Ljava/net/SocketTimeoutException;

    if-eqz p1, :cond_31

    if-nez p4, :cond_31

    goto :goto_33

    :cond_20
    instance-of p3, p1, Ljavax/net/ssl/SSLHandshakeException;

    if-eqz p3, :cond_2d

    invoke-virtual {p1}, Ljava/io/IOException;->getCause()Ljava/lang/Throwable;

    move-result-object p3

    instance-of p3, p3, Ljava/security/cert/CertificateException;

    if-eqz p3, :cond_2d

    goto :goto_31

    :cond_2d
    instance-of p1, p1, Ljavax/net/ssl/SSLPeerUnverifiedException;

    if-eqz p1, :cond_33

    :cond_31
    :goto_31
    move p1, v0

    goto :goto_34

    :cond_33
    :goto_33
    move p1, v1

    :goto_34
    if-nez p1, :cond_37

    return v0

    .line 4
    :cond_37
    iget-object p1, p2, Lz9/d;->w:Lz9/c;

    invoke-static {p1}, Lx/e;->d(Ljava/lang/Object;)V

    .line 5
    iget p2, p1, Lz9/c;->c:I

    if-nez p2, :cond_4a

    iget p3, p1, Lz9/c;->d:I

    if-nez p3, :cond_4a

    iget p3, p1, Lz9/c;->e:I

    if-nez p3, :cond_4a

    move p1, v0

    goto :goto_99

    :cond_4a
    iget-object p3, p1, Lz9/c;->f:Lv9/j0;

    if-eqz p3, :cond_4f

    goto :goto_98

    :cond_4f
    const/4 p3, 0x0

    if-gt p2, v1, :cond_7f

    .line 6
    iget p2, p1, Lz9/c;->d:I

    if-gt p2, v1, :cond_7f

    iget p2, p1, Lz9/c;->e:I

    if-lez p2, :cond_5b

    goto :goto_7f

    :cond_5b
    iget-object p2, p1, Lz9/c;->i:Lz9/d;

    .line 7
    iget-object p2, p2, Lz9/d;->x:Lz9/h;

    if-eqz p2, :cond_7f

    .line 8
    monitor-enter p2

    .line 9
    :try_start_62
    iget p4, p2, Lz9/h;->k:I

    if-eqz p4, :cond_67

    goto :goto_7a

    .line 10
    :cond_67
    iget-object p4, p2, Lz9/h;->q:Lv9/j0;

    .line 11
    iget-object p4, p4, Lv9/j0;->a:Lv9/a;

    .line 12
    iget-object p4, p4, Lv9/a;->a:Lv9/w;

    .line 13
    iget-object v2, p1, Lz9/c;->h:Lv9/a;

    .line 14
    iget-object v2, v2, Lv9/a;->a:Lv9/w;

    .line 15
    invoke-static {p4, v2}, Lw9/c;->a(Lv9/w;Lv9/w;)Z

    move-result p4

    if-nez p4, :cond_78

    goto :goto_7a

    .line 16
    :cond_78
    iget-object p3, p2, Lz9/h;->q:Lv9/j0;
    :try_end_7a
    .catchall {:try_start_62 .. :try_end_7a} :catchall_7c

    .line 17
    :goto_7a
    monitor-exit p2

    goto :goto_7f

    :catchall_7c
    move-exception p1

    monitor-exit p2

    throw p1

    :cond_7f
    :goto_7f
    if-eqz p3, :cond_84

    .line 18
    iput-object p3, p1, Lz9/c;->f:Lv9/j0;

    goto :goto_98

    :cond_84
    iget-object p2, p1, Lz9/c;->a:Lz9/k$a;

    if-eqz p2, :cond_8f

    invoke-virtual {p2}, Lz9/k$a;->a()Z

    move-result p2

    if-ne p2, v1, :cond_8f

    goto :goto_98

    :cond_8f
    iget-object p1, p1, Lz9/c;->b:Lz9/k;

    if-eqz p1, :cond_98

    invoke-virtual {p1}, Lz9/k;->a()Z

    move-result p1

    goto :goto_99

    :cond_98
    :goto_98
    move p1, v1

    :goto_99
    if-nez p1, :cond_9c

    return v0

    :cond_9c
    return v1
.end method

.method public final d(Lv9/g0;I)I
    .registers 6

    const-string v0, "Retry-After"

    const/4 v1, 0x0

    const/4 v2, 0x2

    invoke-static {p1, v0, v1, v2}, Lv9/g0;->b(Lv9/g0;Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;

    move-result-object p1

    if-eqz p1, :cond_31

    const-string p2, "\\d+"

    .line 1
    invoke-static {p2}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object p2

    const-string v0, "Pattern.compile(pattern)"

    invoke-static {p2, v0}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    .line 2
    invoke-virtual {p2, p1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object p2

    invoke-virtual {p2}, Ljava/util/regex/Matcher;->matches()Z

    move-result p2

    if-eqz p2, :cond_2d

    .line 3
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object p1

    const-string p2, "Integer.valueOf(header)"

    invoke-static {p1, p2}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result p1

    return p1

    :cond_2d
    const p1, 0x7fffffff

    return p1

    :cond_31
    return p2
.end method
