.class public Lz5/gz1;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lz5/ly1;


# instance fields
.field public final zza:Lz5/iz1;

.field public final zzb:Lz5/fz1;
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation
.end field

.field private final zzc:Lz5/fz1;


# direct methods
.method public constructor <init>(Lz5/fz1;)V
    .registers 4

    new-instance v0, Lz5/iz1;

    const/16 v1, 0x1000

    invoke-direct {v0, v1}, Lz5/iz1;-><init>(I)V

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

    iput-object p1, p0, Lz5/gz1;->zzc:Lz5/fz1;

    iput-object p1, p0, Lz5/gz1;->zzb:Lz5/fz1;

    iput-object v0, p0, Lz5/gz1;->zza:Lz5/iz1;

    return-void
.end method


# virtual methods
.method public zza(Lz5/sy1;)Lz5/oy1;
    .registers 25
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lz5/sy1<",
            "*>;)",
            "Lz5/oy1;"
        }
    .end annotation

    move-object/from16 v1, p1

    const-string v2, "Error occurred when closing InputStream"

    const-string v3, "Content-Type"

    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v4

    :goto_a
    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    const/4 v6, 0x0

    const/4 v8, 0x0

    const/4 v9, 0x1

    :try_start_10
    invoke-virtual/range {p1 .. p1}, Lz5/sy1;->zzl()Lz5/ey1;

    move-result-object v0

    if-nez v0, :cond_1b

    invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;

    move-result-object v0

    goto :goto_52

    :cond_1b
    new-instance v10, Ljava/util/HashMap;

    invoke-direct {v10}, Ljava/util/HashMap;-><init>()V

    iget-object v11, v0, Lz5/ey1;->b:Ljava/lang/String;

    if-eqz v11, :cond_29

    const-string v12, "If-None-Match"

    invoke-virtual {v10, v12, v11}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_29
    iget-wide v11, v0, Lz5/ey1;->d:J

    const-wide/16 v13, 0x0

    cmp-long v0, v11, v13

    if-lez v0, :cond_51

    const-string v0, "If-Modified-Since"

    .line 1
    new-instance v13, Ljava/text/SimpleDateFormat;

    sget-object v14, Ljava/util/Locale;->US:Ljava/util/Locale;

    const-string v15, "EEE, dd MMM yyyy HH:mm:ss \'GMT\'"

    invoke-direct {v13, v15, v14}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V

    const-string v14, "GMT"

    invoke-static {v14}, Ljava/util/TimeZone;->getTimeZone(Ljava/lang/String;)Ljava/util/TimeZone;

    move-result-object v14

    invoke-virtual {v13, v14}, Ljava/text/SimpleDateFormat;->setTimeZone(Ljava/util/TimeZone;)V

    .line 2
    new-instance v14, Ljava/util/Date;

    invoke-direct {v14, v11, v12}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v13, v14}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v11

    .line 3
    invoke-virtual {v10, v0, v11}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_51
    move-object v0, v10

    :goto_52
    const-string v10, "application/x-www-form-urlencoded; charset=UTF-8"

    invoke-virtual/range {p1 .. p1}, Lz5/sy1;->zzi()Ljava/lang/String;

    move-result-object v11

    new-instance v12, Ljava/util/HashMap;

    invoke-direct {v12}, Ljava/util/HashMap;-><init>()V

    invoke-virtual {v12, v0}, Ljava/util/HashMap;->putAll(Ljava/util/Map;)V

    invoke-virtual/range {p1 .. p1}, Lz5/sy1;->zzn()Ljava/util/Map;

    move-result-object v0

    invoke-virtual {v12, v0}, Ljava/util/HashMap;->putAll(Ljava/util/Map;)V

    new-instance v0, Ljava/net/URL;

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

    invoke-virtual {v0}, Ljava/net/URL;->openConnection()Ljava/net/URLConnection;

    move-result-object v11

    check-cast v11, Ljava/net/HttpURLConnection;

    invoke-static {}, Ljava/net/HttpURLConnection;->getFollowRedirects()Z

    move-result v13

    invoke-virtual {v11, v13}, Ljava/net/HttpURLConnection;->setInstanceFollowRedirects(Z)V

    invoke-virtual/range {p1 .. p1}, Lz5/sy1;->zzp()I

    move-result v13

    invoke-virtual {v11, v13}, Ljava/net/HttpURLConnection;->setConnectTimeout(I)V

    invoke-virtual {v11, v13}, Ljava/net/HttpURLConnection;->setReadTimeout(I)V

    invoke-virtual {v11, v6}, Ljava/net/HttpURLConnection;->setUseCaches(Z)V

    invoke-virtual {v11, v9}, Ljava/net/HttpURLConnection;->setDoInput(Z)V

    const-string v13, "https"

    invoke-virtual {v0}, Ljava/net/URL;->getProtocol()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v13, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
    :try_end_92
    .catch Ljava/io/IOException; {:try_start_10 .. :try_end_92} :catch_2d6

    :try_start_92
    invoke-virtual {v12}, Ljava/util/HashMap;->keySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_9a
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v13

    if-eqz v13, :cond_b0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Ljava/lang/String;

    invoke-virtual {v12, v13}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v14

    check-cast v14, Ljava/lang/String;

    invoke-virtual {v11, v13, v14}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_9a

    :cond_b0
    invoke-virtual/range {p1 .. p1}, Lz5/sy1;->zzb()I

    move-result v0

    if-eqz v0, :cond_e1

    const-string v0, "POST"

    invoke-virtual {v11, v0}, Ljava/net/HttpURLConnection;->setRequestMethod(Ljava/lang/String;)V

    invoke-virtual/range {p1 .. p1}, Lz5/sy1;->zzo()[B

    move-result-object v0

    if-eqz v0, :cond_e6

    invoke-virtual {v11, v9}, Ljava/net/HttpURLConnection;->setDoOutput(Z)V

    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->getRequestProperties()Ljava/util/Map;

    move-result-object v12

    invoke-interface {v12, v3}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v12

    if-nez v12, :cond_d1

    invoke-virtual {v11, v3, v10}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    :cond_d1
    new-instance v10, Ljava/io/DataOutputStream;

    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v12

    invoke-direct {v10, v12}, Ljava/io/DataOutputStream;-><init>(Ljava/io/OutputStream;)V

    invoke-virtual {v10, v0}, Ljava/io/DataOutputStream;->write([B)V

    invoke-virtual {v10}, Ljava/io/DataOutputStream;->close()V

    goto :goto_e6

    :cond_e1
    const-string v0, "GET"

    invoke-virtual {v11, v0}, Ljava/net/HttpURLConnection;->setRequestMethod(Ljava/lang/String;)V

    :cond_e6
    :goto_e6
    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->getResponseCode()I

    move-result v0

    const/4 v10, -0x1

    if-eq v0, v10, :cond_2be

    invoke-virtual/range {p1 .. p1}, Lz5/sy1;->zzb()I
    :try_end_f0
    .catchall {:try_start_92 .. :try_end_f0} :catchall_2ca

    const/16 v12, 0x64

    const/16 v13, 0x130

    const/16 v14, 0xc8

    if-lt v0, v12, :cond_fa

    if-lt v0, v14, :cond_11c

    :cond_fa
    const/16 v12, 0xcc

    if-eq v0, v12, :cond_11c

    if-eq v0, v13, :cond_11c

    :try_start_100
    new-instance v12, Lz5/dd1;

    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->getHeaderFields()Ljava/util/Map;

    move-result-object v15

    invoke-static {v15}, Lz5/pz1;->a(Ljava/util/Map;)Ljava/util/List;

    move-result-object v15

    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->getContentLength()I

    move-result v14

    new-instance v7, Lz5/oz1;

    invoke-direct {v7, v11}, Lz5/oz1;-><init>(Ljava/net/HttpURLConnection;)V

    invoke-direct {v12, v0, v15, v14, v7}, Lz5/dd1;-><init>(ILjava/util/List;ILjava/io/InputStream;)V
    :try_end_116
    .catchall {:try_start_100 .. :try_end_116} :catchall_117

    goto :goto_12c

    :catchall_117
    move-exception v0

    move-object/from16 v14, p0

    goto/16 :goto_2ce

    :cond_11c
    :try_start_11c
    new-instance v12, Lz5/dd1;

    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->getHeaderFields()Ljava/util/Map;

    move-result-object v7

    invoke-static {v7}, Lz5/pz1;->a(Ljava/util/Map;)Ljava/util/List;

    move-result-object v7

    invoke-direct {v12, v0, v7, v10, v8}, Lz5/dd1;-><init>(ILjava/util/List;ILjava/io/InputStream;)V
    :try_end_129
    .catchall {:try_start_11c .. :try_end_129} :catchall_2ca

    :try_start_129
    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->disconnect()V
    :try_end_12c
    .catch Ljava/io/IOException; {:try_start_129 .. :try_end_12c} :catch_2d6

    .line 4
    :goto_12c
    :try_start_12c
    iget v0, v12, Lz5/dd1;->d:I

    .line 5
    iget-object v7, v12, Lz5/dd1;->b:Ljava/lang/Object;

    check-cast v7, Ljava/util/List;

    invoke-static {v7}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;

    move-result-object v7

    if-ne v0, v13, :cond_1f5

    .line 6
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v10

    sub-long v20, v10, v4

    invoke-virtual/range {p1 .. p1}, Lz5/sy1;->zzl()Lz5/ey1;

    move-result-object v0

    if-nez v0, :cond_155

    new-instance v0, Lz5/oy1;

    const/16 v17, 0x130

    const/16 v18, 0x0

    const/16 v19, 0x1

    move-object/from16 v16, v0

    move-object/from16 v22, v7

    invoke-direct/range {v16 .. v22}, Lz5/oy1;-><init>(I[BZJLjava/util/List;)V

    goto/16 :goto_1f4

    :cond_155
    new-instance v10, Ljava/util/TreeSet;

    sget-object v11, Ljava/lang/String;->CASE_INSENSITIVE_ORDER:Ljava/util/Comparator;

    invoke-direct {v10, v11}, Ljava/util/TreeSet;-><init>(Ljava/util/Comparator;)V

    invoke-interface {v7}, Ljava/util/List;->isEmpty()Z

    move-result v11

    if-nez v11, :cond_178

    invoke-interface {v7}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v11

    :goto_166
    invoke-interface {v11}, Ljava/util/Iterator;->hasNext()Z

    move-result v13

    if-eqz v13, :cond_178

    invoke-interface {v11}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Lz5/ky1;

    .line 7
    iget-object v13, v13, Lz5/ky1;->a:Ljava/lang/String;

    .line 8
    invoke-virtual {v10, v13}, Ljava/util/TreeSet;->add(Ljava/lang/Object;)Z

    goto :goto_166

    :cond_178
    new-instance v11, Ljava/util/ArrayList;

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

    iget-object v7, v0, Lz5/ey1;->h:Ljava/util/List;

    if-eqz v7, :cond_1a5

    invoke-interface {v7}, Ljava/util/List;->isEmpty()Z

    move-result v7

    if-nez v7, :cond_1e2

    iget-object v7, v0, Lz5/ey1;->h:Ljava/util/List;

    invoke-interface {v7}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v7

    :cond_18d
    :goto_18d
    invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z

    move-result v13

    if-eqz v13, :cond_1e2

    invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Lz5/ky1;

    .line 9
    iget-object v14, v13, Lz5/ky1;->a:Ljava/lang/String;

    .line 10
    invoke-virtual {v10, v14}, Ljava/util/TreeSet;->contains(Ljava/lang/Object;)Z

    move-result v14

    if-nez v14, :cond_18d

    invoke-virtual {v11, v13}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_18d

    :cond_1a5
    iget-object v7, v0, Lz5/ey1;->g:Ljava/util/Map;

    invoke-interface {v7}, Ljava/util/Map;->isEmpty()Z

    move-result v7

    if-nez v7, :cond_1e2

    iget-object v7, v0, Lz5/ey1;->g:Ljava/util/Map;

    invoke-interface {v7}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v7

    invoke-interface {v7}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v7

    :cond_1b7
    :goto_1b7
    invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z

    move-result v13

    if-eqz v13, :cond_1e2

    invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Ljava/util/Map$Entry;

    invoke-interface {v13}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v14

    invoke-virtual {v10, v14}, Ljava/util/TreeSet;->contains(Ljava/lang/Object;)Z

    move-result v14

    if-nez v14, :cond_1b7

    new-instance v14, Lz5/ky1;

    invoke-interface {v13}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v15

    check-cast v15, Ljava/lang/String;

    invoke-interface {v13}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Ljava/lang/String;

    invoke-direct {v14, v15, v13}, Lz5/ky1;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v11, v14}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_1b7

    :cond_1e2
    new-instance v7, Lz5/oy1;

    const/16 v17, 0x130

    iget-object v0, v0, Lz5/ey1;->a:[B

    const/16 v19, 0x1

    move-object/from16 v16, v7

    move-object/from16 v18, v0

    move-object/from16 v22, v11

    invoke-direct/range {v16 .. v22}, Lz5/oy1;-><init>(I[BZJLjava/util/List;)V

    move-object v0, v7

    :goto_1f4
    return-object v0

    .line 11
    :cond_1f5
    iget-object v11, v12, Lz5/dd1;->c:Ljava/lang/Object;

    check-cast v11, Ljava/io/InputStream;

    if-eqz v11, :cond_1fc

    goto :goto_1fd

    :cond_1fc
    move-object v11, v8

    :goto_1fd
    if-eqz v11, :cond_24c

    .line 12
    iget v13, v12, Lz5/dd1;->a:I

    packed-switch v13, :pswitch_data_3d4

    goto :goto_208

    .line 13
    :pswitch_205
    iget v13, v12, Lz5/dd1;->d:I

    goto :goto_20a

    .line 14
    :goto_208
    iget v13, v12, Lz5/dd1;->e:I
    :try_end_20a
    .catch Ljava/io/IOException; {:try_start_12c .. :try_end_20a} :catch_2ba

    :goto_20a
    move-object/from16 v14, p0

    .line 15
    :try_start_20c
    iget-object v15, v14, Lz5/gz1;->zza:Lz5/iz1;

    new-instance v8, Lz5/qz1;

    invoke-direct {v8, v15, v13}, Lz5/qz1;-><init>(Lz5/iz1;I)V
    :try_end_213
    .catch Ljava/io/IOException; {:try_start_20c .. :try_end_213} :catch_2b8

    const/16 v13, 0x400

    :try_start_215
    invoke-virtual {v15, v13}, Lz5/iz1;->a(I)[B

    move-result-object v13
    :try_end_219
    .catchall {:try_start_215 .. :try_end_219} :catchall_23a

    :goto_219
    :try_start_219
    invoke-virtual {v11, v13}, Ljava/io/InputStream;->read([B)I

    move-result v9

    if-eq v9, v10, :cond_223

    invoke-virtual {v8, v13, v6, v9}, Lz5/qz1;->write([BII)V

    goto :goto_219

    :cond_223
    invoke-virtual {v8}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v9
    :try_end_227
    .catchall {:try_start_219 .. :try_end_227} :catchall_238

    :try_start_227
    invoke-virtual {v11}, Ljava/io/InputStream;->close()V
    :try_end_22a
    .catch Ljava/io/IOException; {:try_start_227 .. :try_end_22a} :catch_22b

    goto :goto_230

    :catch_22b
    :try_start_22b
    new-array v10, v6, [Ljava/lang/Object;

    invoke-static {v2, v10}, Lz5/ez1;->a(Ljava/lang/String;[Ljava/lang/Object;)V

    :goto_230
    invoke-virtual {v15, v13}, Lz5/iz1;->b([B)V

    invoke-virtual {v8}, Lz5/qz1;->close()V
    :try_end_236
    .catch Ljava/io/IOException; {:try_start_22b .. :try_end_236} :catch_2b8

    move-object v8, v9

    goto :goto_250

    :catchall_238
    move-exception v0

    goto :goto_23c

    :catchall_23a
    move-exception v0

    const/4 v13, 0x0

    :goto_23c
    :try_start_23c
    invoke-virtual {v11}, Ljava/io/InputStream;->close()V
    :try_end_23f
    .catch Ljava/io/IOException; {:try_start_23c .. :try_end_23f} :catch_240

    goto :goto_245

    :catch_240
    :try_start_240
    new-array v7, v6, [Ljava/lang/Object;

    invoke-static {v2, v7}, Lz5/ez1;->a(Ljava/lang/String;[Ljava/lang/Object;)V

    :goto_245
    invoke-virtual {v15, v13}, Lz5/iz1;->b([B)V

    invoke-virtual {v8}, Lz5/qz1;->close()V

    throw v0

    :cond_24c
    move-object/from16 v14, p0

    new-array v8, v6, [B
    :try_end_250
    .catch Ljava/io/IOException; {:try_start_240 .. :try_end_250} :catch_2b8

    :goto_250
    :try_start_250
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v9

    sub-long/2addr v9, v4

    sget-boolean v11, Lz5/ez1;->a:Z

    if-nez v11, :cond_25f

    const-wide/16 v16, 0xbb8

    cmp-long v11, v9, v16

    if-lez v11, :cond_291

    :cond_25f
    const-string v11, "HTTP response for request=<%s> [lifetime=%d], [size=%s], [rc=%d], [retryCount=%s]"

    const/4 v13, 0x5

    new-array v13, v13, [Ljava/lang/Object;

    aput-object v1, v13, v6

    invoke-static {v9, v10}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v9

    const/4 v10, 0x1

    aput-object v9, v13, v10

    if-eqz v8, :cond_275

    array-length v9, v8

    invoke-static {v9}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v9

    goto :goto_277

    :cond_275
    const-string v9, "null"

    :goto_277
    const/4 v10, 0x2

    aput-object v9, v13, v10

    const/4 v9, 0x3

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v10

    aput-object v10, v13, v9

    const/4 v9, 0x4

    invoke-virtual/range {p1 .. p1}, Lz5/sy1;->zzy()Lz5/iy1;

    move-result-object v10

    .line 16
    iget v10, v10, Lz5/iy1;->b:I

    .line 17
    invoke-static {v10}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v10

    aput-object v10, v13, v9

    invoke-static {v11, v13}, Lz5/ez1;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    :cond_291
    const/16 v9, 0xc8

    if-lt v0, v9, :cond_2af

    const/16 v9, 0x12b

    if-gt v0, v9, :cond_2af

    new-instance v9, Lz5/oy1;

    const/16 v19, 0x0

    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v10

    sub-long v20, v10, v4

    move-object/from16 v16, v9

    move/from16 v17, v0

    move-object/from16 v18, v8

    move-object/from16 v22, v7

    invoke-direct/range {v16 .. v22}, Lz5/oy1;-><init>(I[BZJLjava/util/List;)V

    return-object v9

    :cond_2af
    new-instance v0, Ljava/io/IOException;

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

    throw v0
    :try_end_2b5
    .catch Ljava/io/IOException; {:try_start_250 .. :try_end_2b5} :catch_2b5

    :catch_2b5
    move-exception v0

    move-object v9, v8

    goto :goto_2db

    :catch_2b8
    move-exception v0

    goto :goto_2da

    :catch_2ba
    move-exception v0

    move-object/from16 v14, p0

    goto :goto_2da

    :cond_2be
    move-object/from16 v14, p0

    :try_start_2c0
    new-instance v0, Ljava/io/IOException;

    const-string v7, "Could not retrieve response code from HttpUrlConnection."

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

    throw v0
    :try_end_2c8
    .catchall {:try_start_2c0 .. :try_end_2c8} :catchall_2c8

    :catchall_2c8
    move-exception v0

    goto :goto_2cd

    :catchall_2ca
    move-exception v0

    move-object/from16 v14, p0

    :goto_2cd
    move v9, v6

    :goto_2ce
    if-nez v9, :cond_2d3

    :try_start_2d0
    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->disconnect()V

    :cond_2d3
    throw v0
    :try_end_2d4
    .catch Ljava/io/IOException; {:try_start_2d0 .. :try_end_2d4} :catch_2d4

    :catch_2d4
    move-exception v0

    goto :goto_2d9

    :catch_2d6
    move-exception v0

    move-object/from16 v14, p0

    :goto_2d9
    const/4 v12, 0x0

    :goto_2da
    const/4 v9, 0x0

    :goto_2db
    instance-of v7, v0, Ljava/net/SocketTimeoutException;

    if-eqz v7, :cond_2ee

    new-instance v0, Lz5/n50;

    new-instance v7, Lz5/az1;

    invoke-direct {v7}, Lz5/az1;-><init>()V

    const-string v8, "socket"

    invoke-direct {v0, v8, v7}, Lz5/n50;-><init>(Ljava/lang/String;Lz5/bz1;)V

    :goto_2eb
    move-object v7, v0

    goto/16 :goto_37c

    :cond_2ee
    instance-of v7, v0, Ljava/net/MalformedURLException;

    if-eqz v7, :cond_312

    new-instance v2, Ljava/lang/RuntimeException;

    invoke-virtual/range {p1 .. p1}, Lz5/sy1;->zzi()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    const-string v3, "Bad URL "

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v4

    if-eqz v4, :cond_309

    invoke-virtual {v3, v1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    goto :goto_30e

    :cond_309
    new-instance v1, Ljava/lang/String;

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

    :goto_30e
    invoke-direct {v2, v1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    throw v2

    :cond_312
    if-eqz v12, :cond_3ce

    .line 18
    iget v0, v12, Lz5/dd1;->d:I

    const/4 v7, 0x2

    new-array v8, v7, [Ljava/lang/Object;

    .line 19
    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    aput-object v7, v8, v6

    invoke-virtual/range {p1 .. p1}, Lz5/sy1;->zzi()Ljava/lang/String;

    move-result-object v7

    const/4 v10, 0x1

    aput-object v7, v8, v10

    const-string v7, "Unexpected response code %d for %s"

    invoke-static {v7, v8}, Lz5/ez1;->c(Ljava/lang/String;[Ljava/lang/Object;)V

    if-eqz v9, :cond_36e

    .line 20
    iget-object v7, v12, Lz5/dd1;->b:Ljava/lang/Object;

    check-cast v7, Ljava/util/List;

    invoke-static {v7}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;

    move-result-object v13

    .line 21
    new-instance v15, Lz5/oy1;

    const/4 v10, 0x0

    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v7

    sub-long v11, v7, v4

    move-object v7, v15

    move v8, v0

    invoke-direct/range {v7 .. v13}, Lz5/oy1;-><init>(I[BZJLjava/util/List;)V

    const/16 v7, 0x191

    if-eq v0, v7, :cond_360

    const/16 v7, 0x193

    if-ne v0, v7, :cond_34c

    goto :goto_360

    :cond_34c
    const/16 v1, 0x190

    if-lt v0, v1, :cond_35a

    const/16 v1, 0x1f3

    if-gt v0, v1, :cond_35a

    new-instance v0, Lz5/hy1;

    invoke-direct {v0, v15}, Lz5/hy1;-><init>(Lz5/oy1;)V

    throw v0

    :cond_35a
    new-instance v0, Lz5/zy1;

    invoke-direct {v0, v15}, Lz5/zy1;-><init>(Lz5/oy1;)V

    throw v0

    :cond_360
    :goto_360
    new-instance v0, Lz5/n50;

    new-instance v7, Lz5/dy1;

    invoke-direct {v7, v15}, Lz5/dy1;-><init>(Lz5/oy1;)V

    const-string v8, "auth"

    invoke-direct {v0, v8, v7}, Lz5/n50;-><init>(Ljava/lang/String;Lz5/bz1;)V

    goto/16 :goto_2eb

    :cond_36e
    new-instance v0, Lz5/n50;

    new-instance v7, Lz5/ny1;

    invoke-direct {v7}, Lz5/ny1;-><init>()V

    const-string v8, "network"

    invoke-direct {v0, v8, v7}, Lz5/n50;-><init>(Ljava/lang/String;Lz5/bz1;)V

    goto/16 :goto_2eb

    :goto_37c
    invoke-virtual/range {p1 .. p1}, Lz5/sy1;->zzy()Lz5/iy1;

    move-result-object v0

    invoke-virtual/range {p1 .. p1}, Lz5/sy1;->zzp()I

    move-result v8

    .line 22
    :try_start_384
    iget-object v9, v7, Lz5/n50;->t:Ljava/lang/Object;

    check-cast v9, Lz5/bz1;

    .line 23
    iget v10, v0, Lz5/iy1;->b:I

    const/4 v11, 0x1

    add-int/2addr v10, v11

    iput v10, v0, Lz5/iy1;->b:I

    iget v11, v0, Lz5/iy1;->a:I

    int-to-float v12, v11

    float-to-int v12, v12

    add-int/2addr v11, v12

    iput v11, v0, Lz5/iy1;->a:I
    :try_end_395
    .catch Lz5/bz1; {:try_start_384 .. :try_end_395} :catch_3b3

    const/4 v11, 0x1

    if-gt v10, v11, :cond_3b2

    const/4 v10, 0x2

    new-array v0, v10, [Ljava/lang/Object;

    .line 24
    iget-object v7, v7, Lz5/n50;->s:Ljava/lang/Object;

    check-cast v7, Ljava/lang/String;

    aput-object v7, v0, v6

    .line 25
    invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    aput-object v6, v0, v11

    const-string v6, "%s-retry [timeout=%s]"

    invoke-static {v6, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lz5/sy1;->zzd(Ljava/lang/String;)V

    goto/16 :goto_a

    .line 26
    :cond_3b2
    :try_start_3b2
    throw v9
    :try_end_3b3
    .catch Lz5/bz1; {:try_start_3b2 .. :try_end_3b3} :catch_3b3

    :catch_3b3
    move-exception v0

    const/4 v2, 0x2

    new-array v2, v2, [Ljava/lang/Object;

    .line 27
    iget-object v3, v7, Lz5/n50;->s:Ljava/lang/Object;

    check-cast v3, Ljava/lang/String;

    aput-object v3, v2, v6

    .line 28
    invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    const/4 v4, 0x1

    aput-object v3, v2, v4

    const-string v3, "%s-timeout-giveup [timeout=%s]"

    invoke-static {v3, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lz5/sy1;->zzd(Ljava/lang/String;)V

    throw v0

    :cond_3ce
    new-instance v1, Lz5/py1;

    invoke-direct {v1, v0}, Lz5/py1;-><init>(Ljava/lang/Throwable;)V

    throw v1

    :pswitch_data_3d4
    .packed-switch 0x0
        :pswitch_205
    .end packed-switch
.end method
