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

# interfaces
.implements Lz5/sb1;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<AdT:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/lang/Object;",
        "Lz5/sb1<",
        "Lz5/i31;",
        "TAdT;>;"
    }
.end annotation


# instance fields
.field public final a:Lz5/k51;

.field public final b:Lz5/cg0;

.field public final c:Lz5/a61;

.field public final d:Lz5/b61;

.field public final e:Ljava/util/concurrent/Executor;

.field public final f:Ljava/util/concurrent/ScheduledExecutorService;

.field public final g:Lz5/ne0;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lz5/ne0<",
            "TAdT;>;"
        }
    .end annotation
.end field

.field public final h:Lz5/iw0;

.field public final i:Lz5/yu0;


# direct methods
.method public constructor <init>(Lz5/k51;Lz5/iw0;Lz5/cg0;Lz5/a61;Lz5/b61;Lz5/ne0;Ljava/util/concurrent/Executor;Ljava/util/concurrent/ScheduledExecutorService;Lz5/yu0;)V
    .registers 10
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lz5/k51;",
            "Lz5/iw0;",
            "Lz5/cg0;",
            "Lz5/a61;",
            "Lz5/b61;",
            "Lz5/ne0<",
            "TAdT;>;",
            "Ljava/util/concurrent/Executor;",
            "Ljava/util/concurrent/ScheduledExecutorService;",
            "Lz5/yu0;",
            ")V"
        }
    .end annotation

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

    iput-object p1, p0, Lz5/lw0;->a:Lz5/k51;

    iput-object p2, p0, Lz5/lw0;->h:Lz5/iw0;

    iput-object p3, p0, Lz5/lw0;->b:Lz5/cg0;

    iput-object p4, p0, Lz5/lw0;->c:Lz5/a61;

    iput-object p5, p0, Lz5/lw0;->d:Lz5/b61;

    iput-object p6, p0, Lz5/lw0;->g:Lz5/ne0;

    iput-object p7, p0, Lz5/lw0;->e:Ljava/util/concurrent/Executor;

    iput-object p8, p0, Lz5/lw0;->f:Ljava/util/concurrent/ScheduledExecutorService;

    iput-object p9, p0, Lz5/lw0;->i:Lz5/yu0;

    return-void
.end method


# virtual methods
.method public final zza(Ljava/lang/Object;)Lz5/fc1;
    .registers 19

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    check-cast v1, Lz5/i31;

    iget-object v2, v1, Lz5/i31;->b:Lcom/google/android/gms/internal/ads/d1;

    iget-object v2, v2, Lcom/google/android/gms/internal/ads/d1;->t:Ljava/lang/Object;

    check-cast v2, Lz5/e31;

    iget v2, v2, Lz5/e31;->e:I

    const/16 v3, 0xc8

    const/16 v4, 0x12c

    if-eqz v2, :cond_3f

    if-lt v2, v3, :cond_2d

    if-ge v2, v4, :cond_2d

    sget-object v2, Lz5/so;->n3:Lz5/no;

    .line 1
    sget-object v5, Lz5/xk;->d:Lz5/xk;

    iget-object v5, v5, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 2
    invoke-virtual {v5, v2}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Boolean;

    invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v2

    if-nez v2, :cond_3f

    const-string v2, "No fill."

    goto :goto_41

    :cond_2d
    if-lt v2, v4, :cond_36

    const/16 v5, 0x190

    if-ge v2, v5, :cond_36

    const-string v2, "No location header to follow redirect or too many redirects."

    goto :goto_41

    :cond_36
    const/16 v5, 0x2e

    const-string v6, "Received error HTTP response code: "

    invoke-static {v5, v6, v2}, Le/f;->a(ILjava/lang/String;I)Ljava/lang/String;

    move-result-object v2

    goto :goto_41

    :cond_3f
    const-string v2, "No ad config."

    :goto_41
    iget-object v5, v1, Lz5/i31;->b:Lcom/google/android/gms/internal/ads/d1;

    iget-object v5, v5, Lcom/google/android/gms/internal/ads/d1;->t:Ljava/lang/Object;

    move-object v6, v5

    check-cast v6, Lz5/e31;

    iget-object v6, v6, Lz5/e31;->i:Lz5/mj0;

    if-eqz v6, :cond_4e

    .line 3
    iget-object v2, v6, Lz5/mj0;->r:Ljava/lang/String;

    .line 4
    :cond_4e
    iget-object v6, v0, Lz5/lw0;->i:Lz5/yu0;

    check-cast v5, Lz5/e31;

    .line 5
    iput-object v5, v6, Lz5/yu0;->c:Lz5/e31;

    .line 6
    sget-object v5, Lz5/so;->s5:Lz5/no;

    .line 7
    sget-object v6, Lz5/xk;->d:Lz5/xk;

    iget-object v7, v6, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 8
    invoke-virtual {v7, v5}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/lang/Boolean;

    invoke-virtual {v5}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v5

    const/4 v7, 0x3

    if-eqz v5, :cond_81

    iget-object v5, v1, Lz5/i31;->b:Lcom/google/android/gms/internal/ads/d1;

    iget-object v5, v5, Lcom/google/android/gms/internal/ads/d1;->t:Ljava/lang/Object;

    check-cast v5, Lz5/e31;

    iget v5, v5, Lz5/e31;->e:I

    if-eqz v5, :cond_81

    if-lt v5, v3, :cond_75

    if-lt v5, v4, :cond_81

    :cond_75
    new-instance v1, Lz5/kw0;

    invoke-direct {v1, v7, v2}, Lz5/kw0;-><init>(ILjava/lang/String;)V

    .line 9
    new-instance v2, Lcom/google/android/gms/internal/ads/i8;

    invoke-direct {v2, v1}, Lcom/google/android/gms/internal/ads/i8;-><init>(Ljava/lang/Throwable;)V

    goto/16 :goto_1d9

    .line 10
    :cond_81
    iget-object v3, v0, Lz5/lw0;->a:Lz5/k51;

    sget-object v4, Lcom/google/android/gms/internal/ads/g5;->C:Lcom/google/android/gms/internal/ads/g5;

    new-instance v5, Lz5/kw0;

    invoke-direct {v5, v7, v2}, Lz5/kw0;-><init>(ILjava/lang/String;)V

    .line 11
    new-instance v2, Lcom/google/android/gms/internal/ads/i8;

    invoke-direct {v2, v5}, Lcom/google/android/gms/internal/ads/i8;-><init>(Ljava/lang/Throwable;)V

    .line 12
    invoke-static {v2, v4, v3}, Lcom/google/android/gms/internal/ads/h8;->c(Lz5/fc1;Ljava/lang/Object;Lz5/g51;)Lz5/fe0;

    move-result-object v2

    invoke-virtual {v2}, Lz5/fe0;->k()Lz5/c51;

    move-result-object v2

    iget-object v3, v0, Lz5/lw0;->b:Lz5/cg0;

    new-instance v4, Lz5/xb0;

    iget-object v5, v0, Lz5/lw0;->d:Lz5/b61;

    iget-object v7, v0, Lz5/lw0;->c:Lz5/a61;

    invoke-direct {v4, v1, v5, v7}, Lz5/xb0;-><init>(Lz5/i31;Lz5/b61;Lz5/a61;)V

    iget-object v5, v0, Lz5/lw0;->e:Ljava/util/concurrent/Executor;

    invoke-virtual {v3, v4, v5}, Lcom/google/android/gms/internal/ads/v2;->t0(Ljava/lang/Object;Ljava/util/concurrent/Executor;)V

    sget-object v3, Lz5/so;->t5:Lz5/no;

    .line 13
    iget-object v4, v6, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 14
    invoke-virtual {v4, v3}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/Boolean;

    invoke-virtual {v3}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v3

    if-eqz v3, :cond_145

    iget-object v3, v1, Lz5/i31;->b:Lcom/google/android/gms/internal/ads/d1;

    iget-object v3, v3, Lcom/google/android/gms/internal/ads/d1;->s:Ljava/lang/Object;

    check-cast v3, Ljava/util/List;

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

    move-result-object v3

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

    move-result v4

    if-eqz v4, :cond_145

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

    move-result-object v4

    check-cast v4, Lz5/b31;

    iget-object v5, v0, Lz5/lw0;->i:Lz5/yu0;

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

    .line 15
    iget-object v6, v4, Lz5/b31;->w:Ljava/lang/String;

    iget-object v7, v5, Lz5/yu0;->b:Ljava/util/Map;

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

    move-result v7

    if-eqz v7, :cond_dd

    goto :goto_113

    :cond_dd
    new-instance v13, Landroid/os/Bundle;

    invoke-direct {v13}, Landroid/os/Bundle;-><init>()V

    iget-object v7, v4, Lz5/b31;->v:Lorg/json/JSONObject;

    invoke-virtual {v7}, Lorg/json/JSONObject;->keys()Ljava/util/Iterator;

    move-result-object v7

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

    move-result v8

    if-eqz v8, :cond_fe

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

    move-result-object v8

    check-cast v8, Ljava/lang/String;

    :try_start_f4
    iget-object v9, v4, Lz5/b31;->v:Lorg/json/JSONObject;

    invoke-virtual {v9, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v13, v8, v9}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_fd
    .catch Lorg/json/JSONException; {:try_start_f4 .. :try_end_fd} :catch_e8

    goto :goto_e8

    :cond_fe
    new-instance v7, Lz5/gk;

    iget-object v9, v4, Lz5/b31;->E:Ljava/lang/String;

    const-wide/16 v10, 0x0

    const/4 v12, 0x0

    move-object v8, v7

    invoke-direct/range {v8 .. v13}, Lz5/gk;-><init>(Ljava/lang/String;JLz5/sj;Landroid/os/Bundle;)V

    iget-object v8, v5, Lz5/yu0;->a:Ljava/util/List;

    invoke-interface {v8, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v5, v5, Lz5/yu0;->b:Ljava/util/Map;

    invoke-interface {v5, v6, v7}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 16
    :goto_113
    iget-object v5, v4, Lz5/b31;->a:Ljava/util/List;

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

    move-result-object v5

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

    move-result v6

    if-eqz v6, :cond_136

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

    move-result-object v6

    check-cast v6, Ljava/lang/String;

    iget-object v7, v0, Lz5/lw0;->g:Lz5/ne0;

    iget v8, v4, Lz5/b31;->b:I

    invoke-interface {v7, v8, v6}, Lz5/ne0;->a(ILjava/lang/String;)Lz5/tu0;

    move-result-object v6

    if-eqz v6, :cond_119

    invoke-interface {v6, v1, v4}, Lz5/tu0;->a(Lz5/i31;Lz5/b31;)Z

    move-result v6

    if-eqz v6, :cond_119

    goto :goto_c1

    :cond_136
    iget-object v5, v0, Lz5/lw0;->i:Lz5/yu0;

    const-wide/16 v6, 0x0

    const/4 v8, 0x1

    const/4 v9, 0x0

    invoke-static {v8, v9, v9}, Lz5/vo;->k(ILjava/lang/String;Lz5/sj;)Lz5/sj;

    move-result-object v8

    invoke-virtual {v5, v4, v6, v7, v8}, Lz5/yu0;->a(Lz5/b31;JLz5/sj;)V

    goto/16 :goto_c1

    :cond_145
    iget-object v3, v1, Lz5/i31;->b:Lcom/google/android/gms/internal/ads/d1;

    iget-object v3, v3, Lcom/google/android/gms/internal/ads/d1;->s:Ljava/lang/Object;

    check-cast v3, Ljava/util/List;

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

    move-result-object v3

    const/4 v4, 0x0

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

    move-result v5

    if-eqz v5, :cond_1d9

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

    move-result-object v5

    check-cast v5, Lz5/b31;

    iget-object v6, v5, Lz5/b31;->a:Ljava/util/List;

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

    move-result-object v6

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

    move-result v7

    if-eqz v7, :cond_1d5

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

    move-result-object v7

    check-cast v7, Ljava/lang/String;

    iget-object v8, v0, Lz5/lw0;->g:Lz5/ne0;

    iget v9, v5, Lz5/b31;->b:I

    invoke-interface {v8, v9, v7}, Lz5/ne0;->a(ILjava/lang/String;)Lz5/tu0;

    move-result-object v8

    if-eqz v8, :cond_162

    invoke-interface {v8, v1, v5}, Lz5/tu0;->a(Lz5/i31;Lz5/b31;)Z

    move-result v9

    if-eqz v9, :cond_162

    iget-object v6, v0, Lz5/lw0;->a:Lz5/k51;

    sget-object v9, Lcom/google/android/gms/internal/ads/g5;->D:Lcom/google/android/gms/internal/ads/g5;

    invoke-virtual {v6, v9, v2}, Lz5/g51;->a(Ljava/lang/Object;Lz5/fc1;)Lz5/fe0;

    move-result-object v2

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

    move-result-object v6

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

    move-result v6

    new-instance v9, Ljava/lang/StringBuilder;

    add-int/lit8 v6, v6, 0x1a

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

    const-string v6, "render-config-"

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

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

    const-string v6, "-"

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

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

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

    move-result-object v13

    .line 17
    new-instance v6, Lz5/fe0;

    iget-object v7, v2, Lz5/fe0;->w:Ljava/lang/Object;

    move-object v11, v7

    check-cast v11, Lz5/g51;

    iget-object v12, v2, Lz5/fe0;->r:Ljava/lang/Object;

    iget-object v7, v2, Lz5/fe0;->t:Ljava/lang/Object;

    move-object v14, v7

    check-cast v14, Lz5/fc1;

    iget-object v7, v2, Lz5/fe0;->u:Ljava/lang/Object;

    move-object v15, v7

    check-cast v15, Ljava/util/List;

    iget-object v2, v2, Lz5/fe0;->v:Ljava/lang/Object;

    move-object/from16 v16, v2

    check-cast v16, Lz5/fc1;

    move-object v10, v6

    invoke-direct/range {v10 .. v16}, Lz5/fe0;-><init>(Lz5/g51;Ljava/lang/Object;Ljava/lang/String;Lz5/fc1;Ljava/util/List;Lz5/fc1;)V

    .line 18
    new-instance v2, Lcom/google/android/gms/internal/ads/x0;

    invoke-direct {v2, v0, v1, v5, v8}, Lcom/google/android/gms/internal/ads/x0;-><init>(Lz5/lw0;Lz5/i31;Lz5/b31;Lz5/tu0;)V

    const-class v5, Ljava/lang/Throwable;

    invoke-virtual {v6, v5, v2}, Lz5/fe0;->i(Ljava/lang/Class;Lz5/sb1;)Lz5/fe0;

    move-result-object v2

    invoke-virtual {v2}, Lz5/fe0;->k()Lz5/c51;

    move-result-object v2

    :cond_1d5
    add-int/lit8 v4, v4, 0x1

    goto/16 :goto_150

    :cond_1d9
    :goto_1d9
    return-object v2
.end method
