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

# interfaces
.implements Lz5/wx0;


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


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

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

.field public final c:Lcom/google/android/gms/internal/ads/l2;

.field public final d:Lz5/sx0;

.field public final e:Lz5/w21;

.field public f:Lz5/dp;

.field public final g:Lz5/l31;
    .annotation build Ljavax/annotation/concurrent/GuardedBy;
        value = "this"
    .end annotation
.end field

.field public h:Lz5/fc1;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lz5/fc1<",
            "Lcom/google/android/gms/internal/ads/y2;",
            ">;"
        }
    .end annotation

    .annotation build Ljavax/annotation/concurrent/GuardedBy;
        value = "this"
    .end annotation
.end field


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/concurrent/Executor;Lcom/google/android/gms/internal/ads/l2;Lz5/sx0;Lz5/w21;Lz5/l31;)V
    .registers 7

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

    iput-object p1, p0, Lcom/google/android/gms/internal/ads/u4;->a:Landroid/content/Context;

    iput-object p2, p0, Lcom/google/android/gms/internal/ads/u4;->b:Ljava/util/concurrent/Executor;

    iput-object p3, p0, Lcom/google/android/gms/internal/ads/u4;->c:Lcom/google/android/gms/internal/ads/l2;

    iput-object p4, p0, Lcom/google/android/gms/internal/ads/u4;->d:Lz5/sx0;

    iput-object p6, p0, Lcom/google/android/gms/internal/ads/u4;->g:Lz5/l31;

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

    return-void
.end method


# virtual methods
.method public final a(Lz5/zj;Ljava/lang/String;Lc3/f;Lz5/vx0;)Z
    .registers 10
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lz5/zj;",
            "Ljava/lang/String;",
            "Lc3/f;",
            "Lz5/vx0<",
            "-",
            "Lcom/google/android/gms/internal/ads/y2;",
            ">;)Z"
        }
    .end annotation

    const/4 v0, 0x0

    if-nez p2, :cond_13

    const-string p1, "Ad unit ID should not be null for interstitial ad."

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

    iget-object p1, p0, Lcom/google/android/gms/internal/ads/u4;->b:Ljava/util/concurrent/Executor;

    new-instance p2, Lz5/dc0;

    invoke-direct {p2, p0}, Lz5/dc0;-><init>(Lcom/google/android/gms/internal/ads/u4;)V

    invoke-interface {p1, p2}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V

    return v0

    :cond_13
    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/u4;->zzb()Z

    move-result v1

    if-eqz v1, :cond_1a

    return v0

    :cond_1a
    sget-object v0, Lz5/so;->L5:Lz5/no;

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

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

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

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

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

    move-result v0

    const/4 v2, 0x1

    if-eqz v0, :cond_3a

    iget-boolean v0, p1, Lz5/zj;->w:Z

    if-eqz v0, :cond_3a

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/u4;->c:Lcom/google/android/gms/internal/ads/l2;

    invoke-virtual {v0}, Lcom/google/android/gms/internal/ads/l2;->A()Lz5/pr0;

    move-result-object v0

    invoke-virtual {v0, v2}, Lz5/pr0;->b(Z)V

    :cond_3a
    check-cast p3, Lz5/r21;

    iget-object p3, p3, Lz5/r21;->r:Lz5/dk;

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/u4;->g:Lz5/l31;

    .line 3
    iput-object p2, v0, Lz5/l31;->c:Ljava/lang/String;

    .line 4
    iput-object p3, v0, Lz5/l31;->b:Lz5/dk;

    .line 5
    iput-object p1, v0, Lz5/l31;->a:Lz5/zj;

    .line 6
    invoke-virtual {v0}, Lz5/l31;->a()Lz5/m31;

    move-result-object p1

    sget-object p2, Lz5/so;->m5:Lz5/no;

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

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

    move-result-object p2

    check-cast p2, Ljava/lang/Boolean;

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

    move-result p2

    const/16 p3, 0xa

    if-eqz p2, :cond_9d

    iget-object p2, p0, Lcom/google/android/gms/internal/ads/u4;->c:Lcom/google/android/gms/internal/ads/l2;

    invoke-virtual {p2}, Lcom/google/android/gms/internal/ads/l2;->q()Lz5/fe0;

    move-result-object p2

    new-instance v0, Lcom/google/android/gms/internal/ads/v3;

    invoke-direct {v0, p3}, Lcom/google/android/gms/internal/ads/v3;-><init>(I)V

    iget-object p3, p0, Lcom/google/android/gms/internal/ads/u4;->a:Landroid/content/Context;

    .line 9
    iput-object p3, v0, Lcom/google/android/gms/internal/ads/v3;->s:Ljava/lang/Object;

    .line 10
    iput-object p1, v0, Lcom/google/android/gms/internal/ads/v3;->t:Ljava/lang/Object;

    .line 11
    new-instance p1, Lz5/qf0;

    invoke-direct {p1, v0}, Lz5/qf0;-><init>(Lcom/google/android/gms/internal/ads/v3;)V

    .line 12
    iput-object p1, p2, Lz5/fe0;->t:Ljava/lang/Object;

    .line 13
    new-instance p1, Lz5/gj0;

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

    iget-object p3, p0, Lcom/google/android/gms/internal/ads/u4;->d:Lz5/sx0;

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/u4;->b:Ljava/util/concurrent/Executor;

    invoke-virtual {p1, p3, v0}, Lz5/gj0;->a(Lz5/yh0;Ljava/util/concurrent/Executor;)Lz5/gj0;

    iget-object p3, p0, Lcom/google/android/gms/internal/ads/u4;->d:Lz5/sx0;

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/u4;->b:Ljava/util/concurrent/Executor;

    invoke-virtual {p1, p3, v0}, Lz5/gj0;->f(Lz5/v7;Ljava/util/concurrent/Executor;)Lz5/gj0;

    .line 14
    new-instance p3, Lz5/hj0;

    invoke-direct {p3, p1}, Lz5/hj0;-><init>(Lz5/gj0;)V

    .line 15
    iput-object p3, p2, Lz5/fe0;->s:Ljava/lang/Object;

    .line 16
    new-instance p1, Lz5/ex0;

    iget-object p3, p0, Lcom/google/android/gms/internal/ads/u4;->f:Lz5/dp;

    invoke-direct {p1, p3}, Lz5/ex0;-><init>(Lz5/dp;)V

    .line 17
    iput-object p1, p2, Lz5/fe0;->u:Ljava/lang/Object;

    .line 18
    invoke-virtual {p2}, Lz5/fe0;->c()Lz5/dl0;

    move-result-object p1

    goto/16 :goto_12b

    :cond_9d
    new-instance p2, Lz5/gj0;

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

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/u4;->e:Lz5/w21;

    if-eqz v0, :cond_c0

    iget-object v1, p0, Lcom/google/android/gms/internal/ads/u4;->b:Ljava/util/concurrent/Executor;

    .line 19
    iget-object v3, p2, Lz5/gj0;->e:Ljava/util/Set;

    new-instance v4, Lz5/dk0;

    invoke-direct {v4, v0, v1}, Lz5/dk0;-><init>(Ljava/lang/Object;Ljava/util/concurrent/Executor;)V

    invoke-interface {v3, v4}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 20
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/u4;->e:Lz5/w21;

    iget-object v1, p0, Lcom/google/android/gms/internal/ads/u4;->b:Ljava/util/concurrent/Executor;

    invoke-virtual {p2, v0, v1}, Lz5/gj0;->c(Lz5/dh0;Ljava/util/concurrent/Executor;)Lz5/gj0;

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/u4;->e:Lz5/w21;

    iget-object v1, p0, Lcom/google/android/gms/internal/ads/u4;->b:Ljava/util/concurrent/Executor;

    invoke-virtual {p2, v0, v1}, Lz5/gj0;->d(Lz5/dg0;Ljava/util/concurrent/Executor;)Lz5/gj0;

    :cond_c0
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/u4;->c:Lcom/google/android/gms/internal/ads/l2;

    invoke-virtual {v0}, Lcom/google/android/gms/internal/ads/l2;->q()Lz5/fe0;

    move-result-object v0

    new-instance v1, Lcom/google/android/gms/internal/ads/v3;

    invoke-direct {v1, p3}, Lcom/google/android/gms/internal/ads/v3;-><init>(I)V

    iget-object p3, p0, Lcom/google/android/gms/internal/ads/u4;->a:Landroid/content/Context;

    .line 21
    iput-object p3, v1, Lcom/google/android/gms/internal/ads/v3;->s:Ljava/lang/Object;

    .line 22
    iput-object p1, v1, Lcom/google/android/gms/internal/ads/v3;->t:Ljava/lang/Object;

    .line 23
    new-instance p1, Lz5/qf0;

    invoke-direct {p1, v1}, Lz5/qf0;-><init>(Lcom/google/android/gms/internal/ads/v3;)V

    .line 24
    iput-object p1, v0, Lz5/fe0;->t:Ljava/lang/Object;

    .line 25
    iget-object p1, p0, Lcom/google/android/gms/internal/ads/u4;->d:Lz5/sx0;

    iget-object p3, p0, Lcom/google/android/gms/internal/ads/u4;->b:Ljava/util/concurrent/Executor;

    invoke-virtual {p2, p1, p3}, Lz5/gj0;->a(Lz5/yh0;Ljava/util/concurrent/Executor;)Lz5/gj0;

    iget-object p1, p0, Lcom/google/android/gms/internal/ads/u4;->d:Lz5/sx0;

    iget-object p3, p0, Lcom/google/android/gms/internal/ads/u4;->b:Ljava/util/concurrent/Executor;

    invoke-virtual {p2, p1, p3}, Lz5/gj0;->b(Lz5/ag0;Ljava/util/concurrent/Executor;)Lz5/gj0;

    iget-object p1, p0, Lcom/google/android/gms/internal/ads/u4;->d:Lz5/sx0;

    iget-object p3, p0, Lcom/google/android/gms/internal/ads/u4;->b:Ljava/util/concurrent/Executor;

    invoke-virtual {p2, p1, p3}, Lz5/gj0;->c(Lz5/dh0;Ljava/util/concurrent/Executor;)Lz5/gj0;

    iget-object p1, p0, Lcom/google/android/gms/internal/ads/u4;->d:Lz5/sx0;

    iget-object p3, p0, Lcom/google/android/gms/internal/ads/u4;->b:Ljava/util/concurrent/Executor;

    invoke-virtual {p2, p1, p3}, Lz5/gj0;->d(Lz5/dg0;Ljava/util/concurrent/Executor;)Lz5/gj0;

    iget-object p1, p0, Lcom/google/android/gms/internal/ads/u4;->d:Lz5/sx0;

    iget-object p3, p0, Lcom/google/android/gms/internal/ads/u4;->b:Ljava/util/concurrent/Executor;

    invoke-virtual {p2, p1, p3}, Lz5/gj0;->g(Lz5/oj;Ljava/util/concurrent/Executor;)Lz5/gj0;

    iget-object p1, p0, Lcom/google/android/gms/internal/ads/u4;->d:Lz5/sx0;

    iget-object p3, p0, Lcom/google/android/gms/internal/ads/u4;->b:Ljava/util/concurrent/Executor;

    invoke-virtual {p2, p1, p3}, Lz5/gj0;->h(Lz5/hk0;Ljava/util/concurrent/Executor;)Lz5/gj0;

    iget-object p1, p0, Lcom/google/android/gms/internal/ads/u4;->d:Lz5/sx0;

    iget-object p3, p0, Lcom/google/android/gms/internal/ads/u4;->b:Ljava/util/concurrent/Executor;

    invoke-virtual {p2, p1, p3}, Lz5/gj0;->f(Lz5/v7;Ljava/util/concurrent/Executor;)Lz5/gj0;

    iget-object p1, p0, Lcom/google/android/gms/internal/ads/u4;->d:Lz5/sx0;

    iget-object p3, p0, Lcom/google/android/gms/internal/ads/u4;->b:Ljava/util/concurrent/Executor;

    invoke-virtual {p2, p1, p3}, Lz5/gj0;->i(Lcom/google/android/gms/internal/ads/s2;Ljava/util/concurrent/Executor;)Lz5/gj0;

    iget-object p1, p0, Lcom/google/android/gms/internal/ads/u4;->d:Lz5/sx0;

    iget-object p3, p0, Lcom/google/android/gms/internal/ads/u4;->b:Ljava/util/concurrent/Executor;

    invoke-virtual {p2, p1, p3}, Lz5/gj0;->e(Lz5/mg0;Ljava/util/concurrent/Executor;)Lz5/gj0;

    .line 26
    new-instance p1, Lz5/hj0;

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

    .line 27
    iput-object p1, v0, Lz5/fe0;->s:Ljava/lang/Object;

    .line 28
    new-instance p1, Lz5/ex0;

    iget-object p2, p0, Lcom/google/android/gms/internal/ads/u4;->f:Lz5/dp;

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

    .line 29
    iput-object p1, v0, Lz5/fe0;->u:Ljava/lang/Object;

    .line 30
    invoke-virtual {v0}, Lz5/fe0;->c()Lz5/dl0;

    move-result-object p1

    :goto_12b
    invoke-virtual {p1}, Lz5/dl0;->b()Lz5/ze0;

    move-result-object p2

    invoke-virtual {p2}, Lz5/ze0;->b()Lz5/fc1;

    move-result-object p3

    invoke-virtual {p2, p3}, Lz5/ze0;->c(Lz5/fc1;)Lz5/fc1;

    move-result-object p2

    iput-object p2, p0, Lcom/google/android/gms/internal/ads/u4;->h:Lz5/fc1;

    new-instance p3, Lz5/g90;

    invoke-direct {p3, p0, p4, p1}, Lz5/g90;-><init>(Lcom/google/android/gms/internal/ads/u4;Lz5/vx0;Lz5/dl0;)V

    iget-object p1, p0, Lcom/google/android/gms/internal/ads/u4;->b:Ljava/util/concurrent/Executor;

    .line 31
    new-instance p4, Ll5/m;

    invoke-direct {p4, p2, p3}, Ll5/m;-><init>(Ljava/util/concurrent/Future;Lz5/zb1;)V

    check-cast p2, Lz5/c51;

    .line 32
    iget-object p2, p2, Lz5/c51;->t:Lz5/fc1;

    invoke-interface {p2, p4, p1}, Lz5/fc1;->zze(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V

    return v2
.end method

.method public final zzb()Z
    .registers 2

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/u4;->h:Lz5/fc1;

    if-eqz v0, :cond_c

    invoke-interface {v0}, Ljava/util/concurrent/Future;->isDone()Z

    move-result v0

    if-nez v0, :cond_c

    const/4 v0, 0x1

    return v0

    :cond_c
    const/4 v0, 0x0

    return v0
.end method
