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

# interfaces
.implements Lz5/av0;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lz5/av0<",
        "Lz5/cp0;",
        "Lz5/u31;",
        "Lcom/google/android/gms/internal/ads/s3;",
        ">;"
    }
.end annotation


# instance fields
.field public final synthetic a:I

.field public final b:Landroid/content/Context;

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

.field public final d:Lz5/gp0;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/concurrent/Executor;Lz5/gp0;I)V
    .registers 6

    iput p4, p0, Lz5/nw0;->a:I

    const/4 v0, 0x1

    if-eq p4, v0, :cond_f

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

    iput-object p1, p0, Lz5/nw0;->b:Landroid/content/Context;

    iput-object p2, p0, Lz5/nw0;->c:Ljava/util/concurrent/Executor;

    iput-object p3, p0, Lz5/nw0;->d:Lz5/gp0;

    return-void

    .line 2
    :cond_f
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lz5/nw0;->b:Landroid/content/Context;

    iput-object p2, p0, Lz5/nw0;->c:Ljava/util/concurrent/Executor;

    iput-object p3, p0, Lz5/nw0;->d:Lz5/gp0;

    return-void
.end method

.method public static final c(Lz5/i31;Lz5/b31;Lz5/wu0;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lz5/i31;",
            "Lz5/b31;",
            "Lz5/wu0<",
            "Lz5/u31;",
            "Lcom/google/android/gms/internal/ads/t3;",
            ">;)V"
        }
    .end annotation

    :try_start_0
    iget-object v0, p2, Lz5/wu0;->b:Ljava/lang/Object;

    check-cast v0, Lz5/u31;

    iget-object p0, p0, Lz5/i31;->a:Lz5/ge0;

    iget-object p0, p0, Lz5/ge0;->s:Ljava/lang/Object;

    check-cast p0, Lz5/m31;

    iget-object p0, p0, Lz5/m31;->d:Lz5/zj;

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

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

    move-result-object p1

    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_15
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_15} :catch_22

    .line 1
    :try_start_15
    iget-object v0, v0, Lz5/u31;->a:Lz5/rx;

    invoke-interface {v0, p0, p1}, Lz5/rx;->a0(Lz5/zj;Ljava/lang/String;)V
    :try_end_1a
    .catchall {:try_start_15 .. :try_end_1a} :catchall_1b

    return-void

    :catchall_1b
    move-exception p0

    :try_start_1c
    new-instance p1, Lz5/o31;

    invoke-direct {p1, p0}, Lz5/o31;-><init>(Ljava/lang/Throwable;)V

    throw p1
    :try_end_22
    .catch Ljava/lang/Exception; {:try_start_1c .. :try_end_22} :catch_22

    :catch_22
    move-exception p0

    .line 2
    iget-object p1, p2, Lz5/wu0;->a:Ljava/lang/String;

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

    move-result-object p1

    const-string p2, "Fail to load ad from adapter "

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

    move-result v0

    if-eqz v0, :cond_36

    invoke-virtual {p2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    goto :goto_3b

    :cond_36
    new-instance p1, Ljava/lang/String;

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

    :goto_3b
    invoke-static {p1, p0}, Lz5/d50;->zzj(Ljava/lang/String;Ljava/lang/Throwable;)V

    return-void
.end method


# virtual methods
.method public final a(Lz5/i31;Lz5/b31;Lz5/wu0;)Ljava/lang/Object;
    .registers 8

    iget v0, p0, Lz5/nw0;->a:I

    packed-switch v0, :pswitch_data_8e

    goto :goto_3f

    .line 1
    :pswitch_6
    iget-object v0, p0, Lz5/nw0;->d:Lz5/gp0;

    new-instance v1, Lz5/g90;

    iget-object v2, p3, Lz5/wu0;->a:Ljava/lang/String;

    invoke-direct {v1, p1, p2, v2}, Lz5/g90;-><init>(Lz5/i31;Lz5/b31;Ljava/lang/String;)V

    new-instance p1, Lz5/ep0;

    new-instance p2, Lz5/ge0;

    invoke-direct {p2, p3}, Lz5/ge0;-><init>(Lz5/wu0;)V

    invoke-direct {p1, p2}, Lz5/ep0;-><init>(Lz5/hl0;)V

    invoke-virtual {v0, v1, p1}, Lz5/gp0;->b(Lz5/g90;Lz5/ep0;)Lz5/dp0;

    move-result-object p1

    invoke-virtual {p1}, Lz5/le0;->c()Lz5/sg0;

    move-result-object p2

    new-instance v0, Lz5/wb0;

    iget-object v1, p3, Lz5/wu0;->b:Ljava/lang/Object;

    check-cast v1, Lz5/u31;

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

    iget-object v1, p0, Lz5/nw0;->c:Ljava/util/concurrent/Executor;

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

    iget-object p2, p3, Lz5/wu0;->c:Lz5/ah0;

    check-cast p2, Lcom/google/android/gms/internal/ads/s3;

    invoke-virtual {p1}, Lz5/dp0;->o()Lz5/qw0;

    move-result-object p3

    invoke-virtual {p2, p3}, Lcom/google/android/gms/internal/ads/s3;->H2(Lz5/ux;)V

    invoke-virtual {p1}, Lz5/dp0;->j()Lz5/cp0;

    move-result-object p1

    return-object p1

    .line 2
    :goto_3f
    iget-object v0, p0, Lz5/nw0;->d:Lz5/gp0;

    new-instance v1, Lz5/g90;

    iget-object v2, p3, Lz5/wu0;->a:Ljava/lang/String;

    invoke-direct {v1, p1, p2, v2}, Lz5/g90;-><init>(Lz5/i31;Lz5/b31;Ljava/lang/String;)V

    new-instance p1, Lz5/ep0;

    new-instance p2, Lz5/xa0;

    invoke-direct {p2, p3}, Lz5/xa0;-><init>(Lz5/wu0;)V

    invoke-direct {p1, p2}, Lz5/ep0;-><init>(Lz5/hl0;)V

    invoke-virtual {v0, v1, p1}, Lz5/gp0;->b(Lz5/g90;Lz5/ep0;)Lz5/dp0;

    move-result-object p1

    invoke-virtual {p1}, Lz5/le0;->c()Lz5/sg0;

    move-result-object p2

    new-instance v0, Lz5/wb0;

    iget-object v1, p3, Lz5/wu0;->b:Ljava/lang/Object;

    check-cast v1, Lz5/u31;

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

    iget-object v1, p0, Lz5/nw0;->c:Ljava/util/concurrent/Executor;

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

    invoke-virtual {p1}, Lz5/le0;->d()Lz5/zg0;

    move-result-object p2

    invoke-virtual {p1}, Lz5/le0;->e()Lz5/zf0;

    move-result-object v0

    invoke-virtual {p1}, Lz5/dp0;->k()Lz5/sh0;

    move-result-object v1

    invoke-virtual {p1}, Lz5/dp0;->m()Lz5/nk0;

    move-result-object v2

    iget-object p3, p3, Lz5/wu0;->c:Lz5/ah0;

    check-cast p3, Lcom/google/android/gms/internal/ads/t3;

    new-instance v3, Lz5/uw0;

    invoke-direct {v3, v1, v0, p2, v2}, Lz5/uw0;-><init>(Lz5/sh0;Lz5/zf0;Lz5/zg0;Lz5/nk0;)V

    .line 3
    monitor-enter p3

    :try_start_82
    iput-object v3, p3, Lcom/google/android/gms/internal/ads/t3;->r:Lz5/n20;
    :try_end_84
    .catchall {:try_start_82 .. :try_end_84} :catchall_8a

    monitor-exit p3

    .line 4
    invoke-virtual {p1}, Lz5/dp0;->j()Lz5/cp0;

    move-result-object p1

    return-object p1

    :catchall_8a
    move-exception p1

    .line 5
    monitor-exit p3

    throw p1

    nop

    :pswitch_data_8e
    .packed-switch 0x0
        :pswitch_6
    .end packed-switch
.end method

.method public final b(Lz5/i31;Lz5/b31;Lz5/wu0;)V
    .registers 12

    iget v0, p0, Lz5/nw0;->a:I

    packed-switch v0, :pswitch_data_cc

    goto/16 :goto_7f

    .line 1
    :pswitch_7
    :try_start_7
    iget-object p1, p1, Lz5/i31;->a:Lz5/ge0;

    iget-object p1, p1, Lz5/ge0;->s:Ljava/lang/Object;

    check-cast p1, Lz5/m31;

    iget-object v0, p1, Lz5/m31;->o:Lh2/v;

    iget v0, v0, Lh2/v;->s:I

    const/4 v1, 0x3

    if-ne v0, v1, :cond_3b

    iget-object v0, p3, Lz5/wu0;->b:Ljava/lang/Object;

    check-cast v0, Lz5/u31;

    iget-object v1, p0, Lz5/nw0;->b:Landroid/content/Context;

    iget-object p1, p1, Lz5/m31;->d:Lz5/zj;

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

    invoke-virtual {p2}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object p2

    iget-object v2, p3, Lz5/wu0;->c:Lz5/ah0;

    check-cast v2, Lz5/ux;

    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_29
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_29} :catch_62

    .line 2
    :try_start_29
    iget-object v0, v0, Lz5/u31;->a:Lz5/rx;

    .line 3
    new-instance v3, Lx5/b;

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

    .line 4
    invoke-interface {v0, v3, p1, p2, v2}, Lz5/rx;->E2(Lx5/a;Lz5/zj;Ljava/lang/String;Lz5/ux;)V
    :try_end_33
    .catchall {:try_start_29 .. :try_end_33} :catchall_34

    goto :goto_7e

    :catchall_34
    move-exception p1

    :try_start_35
    new-instance p2, Lz5/o31;

    invoke-direct {p2, p1}, Lz5/o31;-><init>(Ljava/lang/Throwable;)V

    throw p2

    .line 5
    :cond_3b
    iget-object v0, p3, Lz5/wu0;->b:Ljava/lang/Object;

    check-cast v0, Lz5/u31;

    iget-object v1, p0, Lz5/nw0;->b:Landroid/content/Context;

    iget-object p1, p1, Lz5/m31;->d:Lz5/zj;

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

    invoke-virtual {p2}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object p2

    iget-object v2, p3, Lz5/wu0;->c:Lz5/ah0;

    check-cast v2, Lz5/ux;

    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_50
    .catch Ljava/lang/Exception; {:try_start_35 .. :try_end_50} :catch_62

    .line 6
    :try_start_50
    iget-object v0, v0, Lz5/u31;->a:Lz5/rx;

    .line 7
    new-instance v3, Lx5/b;

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

    .line 8
    invoke-interface {v0, v3, p1, p2, v2}, Lz5/rx;->n0(Lx5/a;Lz5/zj;Ljava/lang/String;Lz5/ux;)V
    :try_end_5a
    .catchall {:try_start_50 .. :try_end_5a} :catchall_5b

    goto :goto_7e

    :catchall_5b
    move-exception p1

    :try_start_5c
    new-instance p2, Lz5/o31;

    invoke-direct {p2, p1}, Lz5/o31;-><init>(Ljava/lang/Throwable;)V

    throw p2
    :try_end_62
    .catch Ljava/lang/Exception; {:try_start_5c .. :try_end_62} :catch_62

    :catch_62
    move-exception p1

    .line 9
    iget-object p2, p3, Lz5/wu0;->a:Ljava/lang/String;

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

    move-result-object p2

    const-string p3, "Fail to load ad from adapter "

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

    move-result v0

    if-eqz v0, :cond_76

    invoke-virtual {p3, p2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    goto :goto_7b

    :cond_76
    new-instance p2, Ljava/lang/String;

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

    :goto_7b
    invoke-static {p2, p1}, Lz5/d50;->zzj(Ljava/lang/String;Ljava/lang/Throwable;)V

    :goto_7e
    return-void

    .line 10
    :goto_7f
    iget-object v0, p3, Lz5/wu0;->b:Ljava/lang/Object;

    check-cast v0, Lz5/u31;

    invoke-virtual {v0}, Lz5/u31;->a()Z

    move-result v0

    if-nez v0, :cond_c8

    new-instance v0, Lz5/tw0;

    invoke-direct {v0, p0, p1, p2, p3}, Lz5/tw0;-><init>(Lz5/nw0;Lz5/i31;Lz5/b31;Lz5/wu0;)V

    iget-object v1, p3, Lz5/wu0;->c:Lz5/ah0;

    check-cast v1, Lcom/google/android/gms/internal/ads/t3;

    .line 11
    monitor-enter v1

    :try_start_93
    iput-object v0, v1, Lcom/google/android/gms/internal/ads/t3;->t:Lz5/tw0;
    :try_end_95
    .catchall {:try_start_93 .. :try_end_95} :catchall_c5

    monitor-exit v1

    .line 12
    iget-object v0, p3, Lz5/wu0;->b:Ljava/lang/Object;

    check-cast v0, Lz5/u31;

    iget-object v1, p0, Lz5/nw0;->b:Landroid/content/Context;

    iget-object p1, p1, Lz5/i31;->a:Lz5/ge0;

    iget-object p1, p1, Lz5/ge0;->s:Ljava/lang/Object;

    check-cast p1, Lz5/m31;

    iget-object v4, p1, Lz5/m31;->d:Lz5/zj;

    iget-object p1, p3, Lz5/wu0;->c:Lz5/ah0;

    move-object v6, p1

    check-cast v6, Lz5/n20;

    iget-object p1, p2, Lz5/b31;->v:Lorg/json/JSONObject;

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

    move-result-object v7

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

    .line 13
    :try_start_b2
    iget-object v2, v0, Lz5/u31;->a:Lz5/rx;

    .line 14
    new-instance v3, Lx5/b;

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

    const/4 v5, 0x0

    .line 15
    invoke-interface/range {v2 .. v7}, Lz5/rx;->r2(Lx5/a;Lz5/zj;Ljava/lang/String;Lz5/n20;Ljava/lang/String;)V
    :try_end_bd
    .catchall {:try_start_b2 .. :try_end_bd} :catchall_be

    goto :goto_cb

    :catchall_be
    move-exception p1

    new-instance p2, Lz5/o31;

    invoke-direct {p2, p1}, Lz5/o31;-><init>(Ljava/lang/Throwable;)V

    throw p2

    :catchall_c5
    move-exception p1

    .line 16
    monitor-exit v1

    throw p1

    .line 17
    :cond_c8
    invoke-static {p1, p2, p3}, Lz5/nw0;->c(Lz5/i31;Lz5/b31;Lz5/wu0;)V

    :goto_cb
    return-void

    :pswitch_data_cc
    .packed-switch 0x0
        :pswitch_7
    .end packed-switch
.end method
