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


# instance fields
.field public final a:Landroid/content/Context;

.field public final b:Lz5/on0;

.field public final c:Lz5/l;

.field public final d:Lz5/g50;

.field public final e:Lcom/google/android/gms/ads/internal/zza;

.field public final f:Lcom/google/android/gms/internal/ads/w;

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

.field public final h:Lz5/pq;

.field public final i:Lz5/go0;

.field public final j:Lz5/np0;

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

.field public final l:Lz5/xo0;

.field public final m:Lz5/lq0;

.field public final n:Lz5/q51;

.field public final o:Lz5/b61;

.field public final p:Lz5/lu0;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lz5/on0;Lz5/l;Lz5/g50;Lcom/google/android/gms/ads/internal/zza;Lcom/google/android/gms/internal/ads/w;Ljava/util/concurrent/Executor;Lz5/m31;Lz5/go0;Lz5/np0;Ljava/util/concurrent/ScheduledExecutorService;Lz5/lq0;Lz5/q51;Lz5/b61;Lz5/lu0;Lz5/xo0;)V
    .registers 19

    move-object v0, p0

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

    move-object v1, p1

    iput-object v1, v0, Lz5/xn0;->a:Landroid/content/Context;

    move-object v1, p2

    iput-object v1, v0, Lz5/xn0;->b:Lz5/on0;

    move-object v1, p3

    iput-object v1, v0, Lz5/xn0;->c:Lz5/l;

    move-object v1, p4

    iput-object v1, v0, Lz5/xn0;->d:Lz5/g50;

    move-object v1, p5

    iput-object v1, v0, Lz5/xn0;->e:Lcom/google/android/gms/ads/internal/zza;

    move-object v1, p6

    iput-object v1, v0, Lz5/xn0;->f:Lcom/google/android/gms/internal/ads/w;

    move-object v1, p7

    iput-object v1, v0, Lz5/xn0;->g:Ljava/util/concurrent/Executor;

    move-object v1, p8

    iget-object v1, v1, Lz5/m31;->i:Lz5/pq;

    iput-object v1, v0, Lz5/xn0;->h:Lz5/pq;

    move-object v1, p9

    iput-object v1, v0, Lz5/xn0;->i:Lz5/go0;

    move-object v1, p10

    iput-object v1, v0, Lz5/xn0;->j:Lz5/np0;

    move-object v1, p11

    iput-object v1, v0, Lz5/xn0;->k:Ljava/util/concurrent/ScheduledExecutorService;

    move-object v1, p12

    iput-object v1, v0, Lz5/xn0;->m:Lz5/lq0;

    move-object v1, p13

    iput-object v1, v0, Lz5/xn0;->n:Lz5/q51;

    move-object/from16 v1, p14

    iput-object v1, v0, Lz5/xn0;->o:Lz5/b61;

    move-object/from16 v1, p15

    iput-object v1, v0, Lz5/xn0;->p:Lz5/lu0;

    move-object/from16 v1, p16

    iput-object v1, v0, Lz5/xn0;->l:Lz5/xo0;

    return-void
.end method

.method public static c(Lorg/json/JSONObject;Ljava/lang/String;)Ljava/lang/Integer;
    .registers 4

    :try_start_0
    invoke-virtual {p0, p1}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object p0

    const-string p1, "r"

    invoke-virtual {p0, p1}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result p1

    const-string v0, "g"

    invoke-virtual {p0, v0}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v0

    const-string v1, "b"

    invoke-virtual {p0, v1}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result p0

    invoke-static {p1, v0, p0}, Landroid/graphics/Color;->rgb(III)I

    move-result p0

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

    move-result-object p0
    :try_end_1e
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_1e} :catch_1f

    return-object p0

    :catch_1f
    const/4 p0, 0x0

    return-object p0
.end method

.method public static e(ZLz5/fc1;)Lz5/fc1;
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T:",
            "Ljava/lang/Object;",
            ">(Z",
            "Lz5/fc1<",
            "TT;>;TT;)",
            "Lz5/fc1<",
            "TT;>;"
        }
    .end annotation

    if-eqz p0, :cond_f

    new-instance p0, Lz5/vn0;

    const/4 v0, 0x2

    invoke-direct {p0, p1, v0}, Lz5/vn0;-><init>(Lz5/fc1;I)V

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

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

    move-result-object p0

    goto :goto_1c

    .line 1
    :cond_f
    new-instance p0, Lz5/wn0;

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

    const-class v0, Ljava/lang/Exception;

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

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

    move-result-object p0

    :goto_1c
    return-object p0
.end method

.method public static final g(Lorg/json/JSONObject;)Lz5/ln;
    .registers 4

    const/4 v0, 0x0

    if-nez p0, :cond_4

    return-object v0

    :cond_4
    const-string v1, "reason"

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

    move-result-object v1

    const-string v2, "ping_url"

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

    move-result-object p0

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

    move-result v2

    if-nez v2, :cond_22

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

    move-result v2

    if-eqz v2, :cond_1d

    goto :goto_22

    :cond_1d
    new-instance v0, Lz5/ln;

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

    :cond_22
    :goto_22
    return-object v0
.end method


# virtual methods
.method public final a(Lorg/json/JSONArray;ZZ)Lz5/fc1;
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lorg/json/JSONArray;",
            "ZZ)",
            "Lz5/fc1<",
            "Ljava/util/List<",
            "Lz5/lq;",
            ">;>;"
        }
    .end annotation

    if-eqz p1, :cond_3b

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

    move-result v0

    if-gtz v0, :cond_9

    goto :goto_3b

    :cond_9
    new-instance v0, Ljava/util/ArrayList;

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

    if-eqz p3, :cond_15

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

    move-result p3

    goto :goto_16

    :cond_15
    const/4 p3, 0x1

    :goto_16
    const/4 v1, 0x0

    :goto_17
    if-ge v1, p3, :cond_27

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

    move-result-object v2

    invoke-virtual {p0, v2, p2}, Lz5/xn0;->b(Lorg/json/JSONObject;Z)Lz5/fc1;

    move-result-object v2

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

    add-int/lit8 v1, v1, 0x1

    goto :goto_17

    .line 1
    :cond_27
    new-instance p1, Lcom/google/android/gms/internal/ads/c8;

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

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

    move-result-object p2

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

    .line 4
    sget-object p2, Lz5/sn0;->a:Lz5/n91;

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

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

    move-result-object p1

    return-object p1

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

    move-result-object p1

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

    move-result-object p1

    return-object p1
.end method

.method public final b(Lorg/json/JSONObject;Z)Lz5/fc1;
    .registers 14
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lorg/json/JSONObject;",
            "Z)",
            "Lz5/fc1<",
            "Lz5/lq;",
            ">;"
        }
    .end annotation

    const/4 v0, 0x0

    if-nez p1, :cond_8

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

    move-result-object p1

    return-object p1

    :cond_8
    const-string v1, "url"

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

    move-result-object v3

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

    move-result v1

    if-eqz v1, :cond_19

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

    move-result-object p1

    return-object p1

    :cond_19
    const-wide/high16 v0, 0x3ff0000000000000L    # 1.0

    const-string v2, "scale"

    invoke-virtual {p1, v2, v0, v1}, Lorg/json/JSONObject;->optDouble(Ljava/lang/String;D)D

    move-result-wide v7

    const/4 v0, 0x1

    const-string v1, "is_transparent"

    invoke-virtual {p1, v1, v0}, Lorg/json/JSONObject;->optBoolean(Ljava/lang/String;Z)Z

    move-result v0

    const-string v1, "width"

    const/4 v2, -0x1

    invoke-virtual {p1, v1, v2}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I

    move-result v9

    const-string v1, "height"

    invoke-virtual {p1, v1, v2}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I

    move-result v10

    if-eqz p2, :cond_47

    new-instance p1, Lz5/lq;

    const/4 v5, 0x0

    invoke-static {v3}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v6

    move-object v4, p1

    invoke-direct/range {v4 .. v10}, Lz5/lq;-><init>(Landroid/graphics/drawable/Drawable;Landroid/net/Uri;DII)V

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

    move-result-object p1

    return-object p1

    :cond_47
    iget-object p2, p0, Lz5/xn0;->b:Lz5/on0;

    .line 1
    iget-object v1, p2, Lz5/on0;->a:Lcom/google/android/gms/ads/internal/util/zzbr;

    invoke-virtual {v1, v3}, Lcom/google/android/gms/ads/internal/util/zzbr;->zza(Ljava/lang/String;)Lz5/fc1;

    move-result-object v1

    new-instance v2, Lz5/nn0;

    invoke-direct {v2, p2, v7, v8, v0}, Lz5/nn0;-><init>(Lz5/on0;DZ)V

    iget-object p2, p2, Lz5/on0;->c:Ljava/util/concurrent/Executor;

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

    move-result-object p2

    .line 2
    new-instance v0, Lz5/tn0;

    move-object v2, v0

    move-wide v4, v7

    move v6, v9

    move v7, v10

    invoke-direct/range {v2 .. v7}, Lz5/tn0;-><init>(Ljava/lang/String;DII)V

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

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

    move-result-object p2

    const-string v0, "require"

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

    move-result p1

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

    move-result-object p1

    return-object p1
.end method

.method public final d(Lorg/json/JSONObject;Lz5/b31;Lz5/e31;)Lz5/fc1;
    .registers 13
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lorg/json/JSONObject;",
            "Lz5/b31;",
            "Lz5/e31;",
            ")",
            "Lz5/fc1<",
            "Lcom/google/android/gms/internal/ads/g2;",
            ">;"
        }
    .end annotation

    const-string v0, "base_url"

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

    move-result-object v6

    const-string v0, "html"

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

    move-result-object v7

    const-string v0, "width"

    const/4 v1, 0x0

    invoke-virtual {p1, v0, v1}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I

    move-result v0

    const-string v2, "height"

    invoke-virtual {p1, v2, v1}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I

    move-result p1

    invoke-virtual {p0, v0, p1}, Lz5/xn0;->f(II)Lz5/dk;

    move-result-object v3

    iget-object p1, p0, Lz5/xn0;->i:Lz5/go0;

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

    const/4 v0, 0x0

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

    move-result-object v0

    new-instance v8, Lz5/un0;

    move-object v1, v8

    move-object v2, p1

    move-object v4, p2

    move-object v5, p3

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

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

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

    move-result-object p1

    .line 2
    new-instance p2, Lz5/vn0;

    const/4 p3, 0x1

    invoke-direct {p2, p1, p3}, Lz5/vn0;-><init>(Lz5/fc1;I)V

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

    invoke-static {p1, p2, p3}, 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 f(II)Lz5/dk;
    .registers 6

    if-nez p1, :cond_b

    if-eqz p2, :cond_6

    const/4 p1, 0x0

    goto :goto_b

    :cond_6
    invoke-static {}, Lz5/dk;->c()Lz5/dk;

    move-result-object p1

    return-object p1

    :cond_b
    :goto_b
    new-instance v0, Lz5/dk;

    iget-object v1, p0, Lz5/xn0;->a:Landroid/content/Context;

    new-instance v2, Lcom/google/android/gms/ads/AdSize;

    invoke-direct {v2, p1, p2}, Lcom/google/android/gms/ads/AdSize;-><init>(II)V

    invoke-direct {v0, v1, v2}, Lz5/dk;-><init>(Landroid/content/Context;Lcom/google/android/gms/ads/AdSize;)V

    return-object v0
.end method
