.class public final Lcom/google/android/gms/internal/ads/u3;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lz5/xv0;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lz5/xv0<",
        "Lz5/em0;",
        ">;"
    }
.end annotation


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

.field public final b:Lz5/gc1;

.field public final c:Lz5/g90;

.field public final d:Lcom/google/android/gms/internal/ads/z4;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/google/android/gms/internal/ads/z4<",
            "Lz5/to0;",
            ">;"
        }
    .end annotation
.end field

.field public final e:Lz5/xo0;


# direct methods
.method public constructor <init>(Lz5/pl0;Lz5/gc1;Lz5/g90;Lcom/google/android/gms/internal/ads/z4;Lz5/xo0;)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lz5/pl0;",
            "Lz5/gc1;",
            "Lz5/g90;",
            "Lcom/google/android/gms/internal/ads/z4<",
            "Lz5/to0;",
            ">;",
            "Lz5/xo0;",
            ")V"
        }
    .end annotation

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

    iput-object p1, p0, Lcom/google/android/gms/internal/ads/u3;->a:Lz5/pl0;

    iput-object p2, p0, Lcom/google/android/gms/internal/ads/u3;->b:Lz5/gc1;

    iput-object p3, p0, Lcom/google/android/gms/internal/ads/u3;->c:Lz5/g90;

    iput-object p4, p0, Lcom/google/android/gms/internal/ads/u3;->d:Lcom/google/android/gms/internal/ads/z4;

    iput-object p5, p0, Lcom/google/android/gms/internal/ads/u3;->e:Lz5/xo0;

    return-void
.end method


# virtual methods
.method public final a(Lz5/i31;Lz5/b31;)Z
    .registers 3

    iget-object p1, p2, Lz5/b31;->s:Lz5/g31;

    if-eqz p1, :cond_a

    iget-object p1, p1, Lz5/g31;->c:Lorg/json/JSONObject;

    if-eqz p1, :cond_a

    const/4 p1, 0x1

    return p1

    :cond_a
    const/4 p1, 0x0

    return p1
.end method

.method public final b(Lz5/i31;Lz5/b31;)Lz5/fc1;
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lz5/i31;",
            "Lz5/b31;",
            ")",
            "Lz5/fc1<",
            "Ljava/util/List<",
            "Lz5/fc1<",
            "Lz5/em0;",
            ">;>;>;"
        }
    .end annotation

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/u3;->d:Lcom/google/android/gms/internal/ads/z4;

    invoke-virtual {v0}, Lcom/google/android/gms/internal/ads/z4;->b()Lz5/fc1;

    move-result-object v0

    new-instance v1, Lz5/cx;

    invoke-direct {v1, p0, p2}, Lz5/cx;-><init>(Lcom/google/android/gms/internal/ads/u3;Lz5/b31;)V

    iget-object v2, p0, Lcom/google/android/gms/internal/ads/u3;->b:Lz5/gc1;

    invoke-static {v0, v1, v2}, Lcom/google/android/gms/internal/ads/h8;->u(Lz5/fc1;Lz5/sb1;Ljava/util/concurrent/Executor;)Lz5/fc1;

    move-result-object v0

    new-instance v1, Lz5/re0;

    invoke-direct {v1, p0, p1, p2}, Lz5/re0;-><init>(Lcom/google/android/gms/internal/ads/u3;Lz5/i31;Lz5/b31;)V

    iget-object p1, p0, Lcom/google/android/gms/internal/ads/u3;->b:Lz5/gc1;

    invoke-static {v0, v1, p1}, Lcom/google/android/gms/internal/ads/h8;->u(Lz5/fc1;Lz5/sb1;Ljava/util/concurrent/Executor;)Lz5/fc1;

    move-result-object p1

    return-object p1
.end method

.method public final c(Lz5/i31;Lz5/b31;Lorg/json/JSONObject;)Lz5/fc1;
    .registers 28
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lz5/i31;",
            "Lz5/b31;",
            "Lorg/json/JSONObject;",
            ")",
            "Lz5/fc1<",
            "Lz5/em0;",
            ">;"
        }
    .end annotation

    move-object/from16 v7, p0

    move-object/from16 v4, p1

    move-object/from16 v5, p2

    move-object/from16 v6, p3

    iget-object v0, v7, Lcom/google/android/gms/internal/ads/u3;->d:Lcom/google/android/gms/internal/ads/z4;

    invoke-virtual {v0}, Lcom/google/android/gms/internal/ads/z4;->b()Lz5/fc1;

    move-result-object v3

    iget-object v0, v7, Lcom/google/android/gms/internal/ads/u3;->c:Lz5/g90;

    .line 1
    iget-object v1, v0, Lz5/g90;->s:Ljava/lang/Object;

    check-cast v1, Lz5/gc1;

    new-instance v2, Lz5/pn0;

    invoke-direct {v2, v0, v4, v5, v6}, Lz5/pn0;-><init>(Lz5/g90;Lz5/i31;Lz5/b31;Lorg/json/JSONObject;)V

    invoke-interface {v1, v2}, Lz5/gc1;->Q(Ljava/util/concurrent/Callable;)Lz5/fc1;

    move-result-object v1

    iget-object v2, v0, Lz5/g90;->t:Ljava/lang/Object;

    check-cast v2, Lz5/xn0;

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

    const-string v15, "images"

    .line 2
    invoke-virtual {v6, v15}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v8

    iget-object v9, v2, Lz5/xn0;->h:Lz5/pq;

    iget-boolean v10, v9, Lz5/pq;->s:Z

    iget-boolean v9, v9, Lz5/pq;->u:Z

    invoke-virtual {v2, v8, v10, v9}, Lz5/xn0;->a(Lorg/json/JSONArray;ZZ)Lz5/fc1;

    move-result-object v2

    .line 3
    iget-object v8, v0, Lz5/g90;->t:Ljava/lang/Object;

    move-object v9, v8

    check-cast v9, Lz5/xn0;

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

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

    move-object v12, v8

    check-cast v12, Lz5/e31;

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

    .line 4
    sget-object v8, Lz5/so;->k6:Lz5/no;

    .line 5
    sget-object v14, Lz5/xk;->d:Lz5/xk;

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

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

    move-result-object v8

    check-cast v8, Ljava/lang/Boolean;

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

    move-result v8

    const/4 v13, 0x0

    const-string v11, "html"

    const/16 v16, 0x0

    if-nez v8, :cond_5b

    goto :goto_6f

    :cond_5b
    invoke-virtual {v6, v15}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v8

    if-eqz v8, :cond_d3

    invoke-virtual {v8}, Lorg/json/JSONArray;->length()I

    move-result v10

    if-gtz v10, :cond_69

    goto/16 :goto_d3

    :cond_69
    invoke-virtual {v8, v13}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;

    move-result-object v8

    if-nez v8, :cond_72

    :goto_6f
    move-object/from16 v19, v11

    goto :goto_94

    :cond_72
    const-string v10, "base_url"

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

    move-result-object v17

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

    move-result-object v18

    const-string v10, "width"

    invoke-virtual {v8, v10, v13}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I

    move-result v10

    move-object/from16 v19, v11

    const-string v11, "height"

    invoke-virtual {v8, v11, v13}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I

    move-result v8

    invoke-virtual {v9, v10, v8}, Lz5/xn0;->f(II)Lz5/dk;

    move-result-object v10

    invoke-static/range {v18 .. v18}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v8

    if-eqz v8, :cond_a4

    :goto_94
    invoke-static/range {v16 .. v16}, Lcom/google/android/gms/internal/ads/h8;->e(Ljava/lang/Object;)Lz5/fc1;

    move-result-object v8

    move-object/from16 v21, v3

    move-object/from16 v17, v8

    move-object/from16 v22, v14

    move-object/from16 v3, v19

    move-object/from16 v19, v2

    move v2, v13

    goto :goto_e1

    :cond_a4
    invoke-static/range {v16 .. v16}, Lcom/google/android/gms/internal/ads/h8;->e(Ljava/lang/Object;)Lz5/fc1;

    move-result-object v11

    new-instance v8, Lz5/un0;

    move-object/from16 v20, v8

    move-object/from16 v21, v3

    move-object v7, v11

    move-object/from16 v3, v19

    move-object/from16 v11, p2

    move-object/from16 v19, v2

    move v2, v13

    move-object/from16 v13, v17

    move-object/from16 v22, v14

    move-object/from16 v14, v18

    invoke-direct/range {v8 .. v14}, Lz5/un0;-><init>(Lz5/xn0;Lz5/dk;Lz5/b31;Lz5/e31;Ljava/lang/String;Ljava/lang/String;)V

    sget-object v8, Lz5/k50;->e:Lz5/gc1;

    move-object/from16 v9, v20

    invoke-static {v7, v9, v8}, Lcom/google/android/gms/internal/ads/h8;->u(Lz5/fc1;Lz5/sb1;Ljava/util/concurrent/Executor;)Lz5/fc1;

    move-result-object v7

    new-instance v8, Lz5/vn0;

    invoke-direct {v8, v7, v2}, Lz5/vn0;-><init>(Lz5/fc1;I)V

    sget-object v9, Lz5/k50;->f:Lz5/gc1;

    invoke-static {v7, v8, v9}, Lcom/google/android/gms/internal/ads/h8;->u(Lz5/fc1;Lz5/sb1;Ljava/util/concurrent/Executor;)Lz5/fc1;

    move-result-object v7

    goto :goto_df

    :cond_d3
    :goto_d3
    move-object/from16 v19, v2

    move-object/from16 v21, v3

    move-object v3, v11

    move v2, v13

    move-object/from16 v22, v14

    invoke-static/range {v16 .. v16}, Lcom/google/android/gms/internal/ads/h8;->e(Ljava/lang/Object;)Lz5/fc1;

    move-result-object v7

    :goto_df
    move-object/from16 v17, v7

    .line 7
    :goto_e1
    iget-object v7, v0, Lz5/g90;->t:Ljava/lang/Object;

    check-cast v7, Lz5/xn0;

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

    const-string v8, "secondary_image"

    .line 8
    invoke-virtual {v6, v8}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v8

    iget-object v9, v7, Lz5/xn0;->h:Lz5/pq;

    iget-boolean v9, v9, Lz5/pq;->s:Z

    invoke-virtual {v7, v8, v9}, Lz5/xn0;->b(Lorg/json/JSONObject;Z)Lz5/fc1;

    move-result-object v13

    .line 9
    iget-object v7, v0, Lz5/g90;->t:Ljava/lang/Object;

    check-cast v7, Lz5/xn0;

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

    const-string v8, "app_icon"

    .line 10
    invoke-virtual {v6, v8}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v8

    iget-object v9, v7, Lz5/xn0;->h:Lz5/pq;

    iget-boolean v9, v9, Lz5/pq;->s:Z

    invoke-virtual {v7, v8, v9}, Lz5/xn0;->b(Lorg/json/JSONObject;Z)Lz5/fc1;

    move-result-object v12

    .line 11
    iget-object v7, v0, Lz5/g90;->t:Ljava/lang/Object;

    check-cast v7, Lz5/xn0;

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

    const-string v8, "attribution"

    .line 12
    invoke-virtual {v6, v8}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v8

    const-string v9, "image"

    const/4 v14, 0x1

    if-nez v8, :cond_122

    invoke-static/range {v16 .. v16}, Lcom/google/android/gms/internal/ads/h8;->e(Ljava/lang/Object;)Lz5/fc1;

    move-result-object v7

    goto :goto_14f

    :cond_122
    invoke-virtual {v8, v15}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v10

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

    move-result-object v11

    if-nez v10, :cond_136

    if-eqz v11, :cond_136

    new-instance v10, Lorg/json/JSONArray;

    invoke-direct {v10}, Lorg/json/JSONArray;-><init>()V

    invoke-virtual {v10, v11}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;

    :cond_136
    invoke-virtual {v7, v10, v2, v14}, Lz5/xn0;->a(Lorg/json/JSONArray;ZZ)Lz5/fc1;

    move-result-object v10

    new-instance v11, Lz5/dx;

    invoke-direct {v11, v7, v8}, Lz5/dx;-><init>(Lz5/xn0;Lorg/json/JSONObject;)V

    iget-object v7, v7, Lz5/xn0;->g:Ljava/util/concurrent/Executor;

    invoke-static {v10, v11, v7}, Lcom/google/android/gms/internal/ads/h8;->v(Lz5/fc1;Lz5/n91;Ljava/util/concurrent/Executor;)Lz5/fc1;

    move-result-object v7

    const-string v10, "require"

    invoke-virtual {v8, v10}, Lorg/json/JSONObject;->optBoolean(Ljava/lang/String;)Z

    move-result v8

    invoke-static {v8, v7}, Lz5/xn0;->e(ZLz5/fc1;)Lz5/fc1;

    move-result-object v7

    .line 13
    :goto_14f
    iget-object v8, v0, Lz5/g90;->t:Ljava/lang/Object;

    check-cast v8, Lz5/xn0;

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

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

    check-cast v10, Lz5/e31;

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

    const-string v11, "html_containers"

    const-string v15, "instream"

    .line 14
    filled-new-array {v11, v15}, [Ljava/lang/String;

    move-result-object v11

    invoke-static {v6, v11}, Lcom/google/android/gms/ads/internal/util/zzbx;->zzh(Lorg/json/JSONObject;[Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v11

    if-nez v11, :cond_1f1

    const-string v11, "video"

    invoke-virtual {v6, v11}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v11

    if-nez v11, :cond_173

    goto :goto_1a1

    :cond_173
    const-string v15, "vast_xml"

    invoke-virtual {v11, v15}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v15

    sget-object v14, Lz5/so;->j6:Lz5/no;

    move-object/from16 v2, v22

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

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

    move-result-object v4

    check-cast v4, Ljava/lang/Boolean;

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

    move-result v4

    if-eqz v4, :cond_193

    invoke-virtual {v11, v3}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_193

    const/4 v3, 0x1

    goto :goto_194

    :cond_193
    const/4 v3, 0x0

    :goto_194
    invoke-static {v15}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-eqz v4, :cond_1a6

    if-nez v3, :cond_1c8

    const-string v2, "Required field \'vast_xml\' or \'html\' is missing"

    invoke-static {v2}, Lz5/d50;->zzi(Ljava/lang/String;)V

    :goto_1a1
    invoke-static/range {v16 .. v16}, Lcom/google/android/gms/internal/ads/h8;->e(Ljava/lang/Object;)Lz5/fc1;

    move-result-object v2

    goto :goto_1f5

    :cond_1a6
    if-nez v3, :cond_1c8

    iget-object v3, v8, Lz5/xn0;->i:Lz5/go0;

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

    .line 17
    invoke-static/range {v16 .. v16}, Lcom/google/android/gms/internal/ads/h8;->e(Ljava/lang/Object;)Lz5/fc1;

    move-result-object v4

    new-instance v10, Lz5/hs0;

    invoke-direct {v10, v3}, Lz5/hs0;-><init>(Lz5/go0;)V

    iget-object v14, v3, Lz5/go0;->b:Ljava/util/concurrent/Executor;

    invoke-static {v4, v10, v14}, Lcom/google/android/gms/internal/ads/h8;->u(Lz5/fc1;Lz5/sb1;Ljava/util/concurrent/Executor;)Lz5/fc1;

    move-result-object v4

    new-instance v10, Lz5/cx;

    invoke-direct {v10, v3, v11}, Lz5/cx;-><init>(Lz5/go0;Lorg/json/JSONObject;)V

    iget-object v3, v3, Lz5/go0;->b:Ljava/util/concurrent/Executor;

    invoke-static {v4, v10, v3}, Lcom/google/android/gms/internal/ads/h8;->u(Lz5/fc1;Lz5/sb1;Ljava/util/concurrent/Executor;)Lz5/fc1;

    move-result-object v3

    goto :goto_1cc

    .line 18
    :cond_1c8
    invoke-virtual {v8, v11, v5, v10}, Lz5/xn0;->d(Lorg/json/JSONObject;Lz5/b31;Lz5/e31;)Lz5/fc1;

    move-result-object v3

    :goto_1cc
    sget-object v4, Lz5/so;->Z1:Lz5/no;

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

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

    move-result-object v2

    check-cast v2, Ljava/lang/Integer;

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

    move-result v2

    int-to-long v10, v2

    sget-object v2, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    iget-object v4, v8, Lz5/xn0;->k:Ljava/util/concurrent/ScheduledExecutorService;

    invoke-static {v3, v10, v11, v2, v4}, Lcom/google/android/gms/internal/ads/h8;->t(Lz5/fc1;JLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/ScheduledExecutorService;)Lz5/fc1;

    move-result-object v2

    .line 21
    new-instance v3, Lz5/wn0;

    invoke-direct {v3}, Lz5/wn0;-><init>()V

    const-class v4, Ljava/lang/Exception;

    sget-object v8, Lz5/k50;->f:Lz5/gc1;

    invoke-static {v2, v4, v3, v8}, Lcom/google/android/gms/internal/ads/h8;->s(Lz5/fc1;Ljava/lang/Class;Lz5/sb1;Ljava/util/concurrent/Executor;)Lz5/fc1;

    move-result-object v2

    goto :goto_1f5

    .line 22
    :cond_1f1
    invoke-virtual {v8, v11, v5, v10}, Lz5/xn0;->d(Lorg/json/JSONObject;Lz5/b31;Lz5/e31;)Lz5/fc1;

    move-result-object v2

    .line 23
    :goto_1f5
    iget-object v3, v0, Lz5/g90;->t:Ljava/lang/Object;

    check-cast v3, Lz5/xn0;

    const-string v4, "enable_omid"

    invoke-virtual {v6, v4}, Lorg/json/JSONObject;->optBoolean(Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_202

    goto :goto_217

    :cond_202
    const-string v4, "omid_settings"

    invoke-virtual {v6, v4}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v4

    if-nez v4, :cond_20b

    goto :goto_217

    :cond_20b
    const-string v8, "omid_html"

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

    move-result-object v4

    invoke-static {v4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v8

    if-eqz v8, :cond_21c

    :goto_217
    invoke-static/range {v16 .. v16}, Lcom/google/android/gms/internal/ads/h8;->e(Ljava/lang/Object;)Lz5/fc1;

    move-result-object v3

    goto :goto_22b

    :cond_21c
    invoke-static/range {v16 .. v16}, Lcom/google/android/gms/internal/ads/h8;->e(Ljava/lang/Object;)Lz5/fc1;

    move-result-object v8

    new-instance v10, Lz5/fx;

    invoke-direct {v10, v3, v4}, Lz5/fx;-><init>(Lz5/xn0;Ljava/lang/String;)V

    sget-object v3, Lz5/k50;->e:Lz5/gc1;

    invoke-static {v8, v10, v3}, Lcom/google/android/gms/internal/ads/h8;->u(Lz5/fc1;Lz5/sb1;Ljava/util/concurrent/Executor;)Lz5/fc1;

    move-result-object v3

    :goto_22b
    iget-object v4, v0, Lz5/g90;->u:Ljava/lang/Object;

    check-cast v4, Lz5/ll0;

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

    const-string v8, "custom_assets"

    .line 24
    invoke-virtual {v6, v8}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v8

    if-nez v8, :cond_244

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

    move-result-object v4

    invoke-static {v4}, Lcom/google/android/gms/internal/ads/h8;->e(Ljava/lang/Object;)Lz5/fc1;

    move-result-object v4

    goto/16 :goto_2cf

    :cond_244
    new-instance v10, Ljava/util/ArrayList;

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

    invoke-virtual {v8}, Lorg/json/JSONArray;->length()I

    move-result v11

    const/4 v14, 0x0

    :goto_24e
    if-ge v14, v11, :cond_2ba

    invoke-virtual {v8, v14}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;

    move-result-object v15

    if-nez v15, :cond_257

    goto :goto_25f

    :cond_257
    const-string v5, "name"

    invoke-virtual {v15, v5}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    if-nez v5, :cond_262

    :goto_25f
    move-object/from16 v23, v8

    goto :goto_2a8

    :cond_262
    const-string v6, "type"

    invoke-virtual {v15, v6}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    move-object/from16 v23, v8

    const-string v8, "string"

    invoke-virtual {v8, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_27e

    new-instance v6, Lz5/ao0;

    const-string v8, "string_value"

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

    move-result-object v8

    invoke-direct {v6, v5, v8}, Lz5/ao0;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_2aa

    :cond_27e
    invoke-virtual {v9, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_2a8

    iget-object v6, v4, Lz5/ll0;->t:Ljava/lang/Object;

    check-cast v6, Lz5/xn0;

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

    const-string v8, "image_value"

    .line 25
    invoke-virtual {v15, v8}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v8

    iget-object v15, v6, Lz5/xn0;->h:Lz5/pq;

    iget-boolean v15, v15, Lz5/pq;->s:Z

    invoke-virtual {v6, v8, v15}, Lz5/xn0;->b(Lorg/json/JSONObject;Z)Lz5/fc1;

    move-result-object v6

    .line 26
    new-instance v8, Lz5/mt;

    const/4 v15, 0x2

    invoke-direct {v8, v5, v15}, Lz5/mt;-><init>(Ljava/lang/String;I)V

    iget-object v5, v4, Lz5/ll0;->s:Ljava/lang/Object;

    check-cast v5, Ljava/util/concurrent/Executor;

    invoke-static {v6, v8, v5}, Lcom/google/android/gms/internal/ads/h8;->v(Lz5/fc1;Lz5/n91;Ljava/util/concurrent/Executor;)Lz5/fc1;

    move-result-object v5

    goto :goto_2ae

    :cond_2a8
    :goto_2a8
    move-object/from16 v6, v16

    :goto_2aa
    invoke-static {v6}, Lcom/google/android/gms/internal/ads/h8;->e(Ljava/lang/Object;)Lz5/fc1;

    move-result-object v5

    :goto_2ae
    invoke-virtual {v10, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v14, v14, 0x1

    move-object/from16 v5, p2

    move-object/from16 v6, p3

    move-object/from16 v8, v23

    goto :goto_24e

    .line 27
    :cond_2ba
    new-instance v5, Lcom/google/android/gms/internal/ads/c8;

    sget-object v6, Lcom/google/android/gms/internal/ads/q6;->s:Lz5/v91;

    .line 28
    invoke-static {v10}, Lcom/google/android/gms/internal/ads/q6;->W(Ljava/util/Collection;)Lcom/google/android/gms/internal/ads/q6;

    move-result-object v6

    .line 29
    invoke-direct {v5, v6}, Lcom/google/android/gms/internal/ads/c8;-><init>(Lcom/google/android/gms/internal/ads/o6;)V

    .line 30
    sget-object v6, Lz5/zn0;->a:Lz5/n91;

    iget-object v4, v4, Lz5/ll0;->s:Ljava/lang/Object;

    check-cast v4, Ljava/util/concurrent/Executor;

    invoke-static {v5, v6, v4}, Lcom/google/android/gms/internal/ads/h8;->v(Lz5/fc1;Lz5/n91;Ljava/util/concurrent/Executor;)Lz5/fc1;

    move-result-object v4

    :goto_2cf
    const/16 v5, 0x9

    new-array v5, v5, [Lz5/fc1;

    const/4 v6, 0x0

    aput-object v1, v5, v6

    const/4 v6, 0x1

    aput-object v19, v5, v6

    const/4 v15, 0x2

    aput-object v17, v5, v15

    const/4 v8, 0x3

    aput-object v13, v5, v8

    const/4 v8, 0x4

    aput-object v12, v5, v8

    const/4 v8, 0x5

    aput-object v7, v5, v8

    const/4 v8, 0x6

    aput-object v2, v5, v8

    const/4 v8, 0x7

    aput-object v3, v5, v8

    const/16 v8, 0x8

    aput-object v4, v5, v8

    .line 31
    sget-object v8, Lcom/google/android/gms/internal/ads/q6;->s:Lz5/v91;

    .line 32
    invoke-virtual {v5}, [Ljava/lang/Object;->clone()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, [Ljava/lang/Object;

    array-length v8, v5

    invoke-static {v5, v8}, Lcom/google/android/gms/internal/ads/r;->f([Ljava/lang/Object;I)[Ljava/lang/Object;

    invoke-static {v5, v8}, Lcom/google/android/gms/internal/ads/q6;->e0([Ljava/lang/Object;I)Lcom/google/android/gms/internal/ads/q6;

    move-result-object v5

    .line 33
    new-instance v14, Lz5/qn0;

    move-object v8, v14

    move-object v9, v0

    move-object v10, v1

    move-object/from16 v11, v19

    move-object v1, v14

    move-object v14, v7

    move v7, v15

    move-object/from16 v15, p3

    move-object/from16 v16, v2

    move-object/from16 v18, v3

    move-object/from16 v19, v4

    invoke-direct/range {v8 .. v19}, Lz5/qn0;-><init>(Lz5/g90;Lz5/fc1;Lz5/fc1;Lz5/fc1;Lz5/fc1;Lz5/fc1;Lorg/json/JSONObject;Lz5/fc1;Lz5/fc1;Lz5/fc1;Lz5/fc1;)V

    iget-object v0, v0, Lz5/g90;->s:Ljava/lang/Object;

    check-cast v0, Lz5/gc1;

    .line 34
    new-instance v2, Lcom/google/android/gms/internal/ads/d8;

    const/4 v3, 0x0

    invoke-direct {v2, v5, v3, v0, v1}, Lcom/google/android/gms/internal/ads/d8;-><init>(Lcom/google/android/gms/internal/ads/o6;ZLjava/util/concurrent/Executor;Ljava/util/concurrent/Callable;)V

    new-array v0, v7, [Lz5/fc1;

    aput-object v21, v0, v3

    aput-object v2, v0, v6

    .line 35
    invoke-static {v0}, Lcom/google/android/gms/internal/ads/h8;->w([Lz5/fc1;)Lz5/r6;

    move-result-object v7

    new-instance v8, Lz5/zv0;

    move-object v0, v8

    move-object/from16 v1, p0

    move-object/from16 v3, v21

    move-object/from16 v4, p1

    move-object/from16 v5, p2

    move-object/from16 v6, p3

    invoke-direct/range {v0 .. v6}, Lz5/zv0;-><init>(Lcom/google/android/gms/internal/ads/u3;Lz5/fc1;Lz5/fc1;Lz5/i31;Lz5/b31;Lorg/json/JSONObject;)V

    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/google/android/gms/internal/ads/u3;->b:Lz5/gc1;

    invoke-virtual {v7, v8, v1}, Lz5/r6;->b(Ljava/util/concurrent/Callable;Ljava/util/concurrent/Executor;)Lz5/fc1;

    move-result-object v1

    return-object v1
.end method
