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

# interfaces
.implements Lz5/wx0;


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


# instance fields
.field public final a:Lz5/l31;
    .annotation build Ljavax/annotation/concurrent/GuardedBy;
        value = "this"
    .end annotation
.end field

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

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

.field public final d:Lz5/g90;

.field public e:Lz5/se0;
    .annotation build Ljavax/annotation/concurrent/GuardedBy;
        value = "this"
    .end annotation
.end field


# direct methods
.method public constructor <init>(Lcom/google/android/gms/internal/ads/l2;Landroid/content/Context;Lz5/g90;Lz5/l31;)V
    .registers 5

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

    iput-object p1, p0, Lcom/google/android/gms/internal/ads/f4;->b:Lcom/google/android/gms/internal/ads/l2;

    iput-object p2, p0, Lcom/google/android/gms/internal/ads/f4;->c:Landroid/content/Context;

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

    iput-object p4, p0, Lcom/google/android/gms/internal/ads/f4;->a:Lz5/l31;

    .line 1
    iget-object p1, p3, Lz5/g90;->t:Ljava/lang/Object;

    check-cast p1, Lz5/sx0;

    .line 2
    iput-object p1, p4, Lz5/l31;->q:Lz5/sx0;

    return-void
.end method


# virtual methods
.method public final a(Lz5/zj;Ljava/lang/String;Lc3/f;Lz5/vx0;)Z
    .registers 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lz5/zj;",
            "Ljava/lang/String;",
            "Lc3/f;",
            "Lz5/vx0<",
            "-",
            "Lz5/ke0;",
            ">;)Z"
        }
    .end annotation

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzc()Lcom/google/android/gms/ads/internal/util/zzs;

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/f4;->c:Landroid/content/Context;

    invoke-static {v0}, Lcom/google/android/gms/ads/internal/util/zzs;->zzK(Landroid/content/Context;)Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_22

    iget-object v0, p1, Lz5/zj;->J:Lz5/qj;

    if-eqz v0, :cond_11

    goto :goto_22

    :cond_11
    const-string p1, "Failed to load the ad because app ID is missing."

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

    iget-object p1, p0, Lcom/google/android/gms/internal/ads/f4;->b:Lcom/google/android/gms/internal/ads/l2;

    invoke-virtual {p1}, Lcom/google/android/gms/internal/ads/l2;->f()Ljava/util/concurrent/Executor;

    move-result-object p1

    new-instance p2, Lz5/zx0;

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

    goto :goto_35

    :cond_22
    :goto_22
    const/4 v0, 0x1

    if-nez p2, :cond_39

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

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

    iget-object p1, p0, Lcom/google/android/gms/internal/ads/f4;->b:Lcom/google/android/gms/internal/ads/l2;

    invoke-virtual {p1}, Lcom/google/android/gms/internal/ads/l2;->f()Ljava/util/concurrent/Executor;

    move-result-object p1

    new-instance p2, Lz5/zx0;

    invoke-direct {p2, p0, v0}, Lz5/zx0;-><init>(Lcom/google/android/gms/internal/ads/f4;I)V

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

    return v1

    :cond_39
    iget-object p2, p0, Lcom/google/android/gms/internal/ads/f4;->c:Landroid/content/Context;

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

    invoke-static {p2, v1}, Lcom/google/android/gms/internal/ads/r;->i(Landroid/content/Context;Z)V

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

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

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

    .line 2
    invoke-virtual {v1, 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

    if-eqz p2, :cond_5f

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

    if-eqz p2, :cond_5f

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

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

    move-result-object p2

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

    :cond_5f
    check-cast p3, Lz5/xx0;

    iget p2, p3, Lz5/xx0;->r:I

    iget-object p3, p0, Lcom/google/android/gms/internal/ads/f4;->a:Lz5/l31;

    .line 3
    iput-object p1, p3, Lz5/l31;->a:Lz5/zj;

    .line 4
    iput p2, p3, Lz5/l31;->m:I

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

    move-result-object p1

    iget-object p2, p1, Lz5/m31;->n:Lz5/wl;

    if-eqz p2, :cond_84

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

    .line 6
    iget-object p3, p3, Lz5/g90;->t:Ljava/lang/Object;

    check-cast p3, Lz5/sx0;

    .line 7
    iget-object v1, p3, Lz5/sx0;->s:Ljava/util/concurrent/atomic/AtomicReference;

    invoke-virtual {v1, p2}, Ljava/util/concurrent/atomic/AtomicReference;->set(Ljava/lang/Object;)V

    iget-object p2, p3, Lz5/sx0;->x:Ljava/util/concurrent/atomic/AtomicBoolean;

    invoke-virtual {p2, v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V

    invoke-virtual {p3}, Lz5/sx0;->h()V

    .line 8
    :cond_84
    iget-object p2, p0, Lcom/google/android/gms/internal/ads/f4;->b:Lcom/google/android/gms/internal/ads/l2;

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

    move-result-object p2

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

    const/16 v1, 0xa

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

    iget-object v1, p0, Lcom/google/android/gms/internal/ads/f4;->c:Landroid/content/Context;

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

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

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

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

    .line 12
    iput-object p1, p2, Lz5/z90;->t:Lz5/qf0;

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

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

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

    .line 14
    iget-object p3, p3, Lz5/g90;->t:Ljava/lang/Object;

    check-cast p3, Lz5/sx0;

    .line 15
    iget-object v1, p0, Lcom/google/android/gms/internal/ads/f4;->b:Lcom/google/android/gms/internal/ads/l2;

    invoke-virtual {v1}, Lcom/google/android/gms/internal/ads/l2;->f()Ljava/util/concurrent/Executor;

    move-result-object v1

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

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

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

    .line 17
    iput-object p3, p2, Lz5/z90;->s:Lz5/hj0;

    .line 18
    iget-object p1, p0, Lcom/google/android/gms/internal/ads/f4;->d:Lz5/g90;

    .line 19
    new-instance p3, Lz5/ll0;

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

    check-cast v1, Lz5/om0;

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

    check-cast p1, Lz5/sx0;

    invoke-virtual {p1}, Lz5/sx0;->a()Lz5/el;

    move-result-object p1

    invoke-direct {p3, v1, p1}, Lz5/ll0;-><init>(Lz5/om0;Lz5/el;)V

    .line 20
    iput-object p3, p2, Lz5/z90;->u:Lz5/ll0;

    .line 21
    new-instance p1, Lz5/bd0;

    const/4 p3, 0x0

    invoke-direct {p1, p3}, Lz5/bd0;-><init>(Landroid/view/ViewGroup;)V

    .line 22
    iput-object p1, p2, Lz5/z90;->v:Lz5/bd0;

    .line 23
    invoke-virtual {p2}, Lz5/z90;->c()Lz5/pl0;

    move-result-object p1

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

    invoke-virtual {p2}, Lcom/google/android/gms/internal/ads/l2;->z()Lcom/google/android/gms/internal/ads/z4;

    move-result-object p2

    invoke-virtual {p2, v0}, Lcom/google/android/gms/internal/ads/z4;->a(I)V

    new-instance p2, Lz5/se0;

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

    const-string v1, "Cannot return null from a non-@Nullable @Provides method"

    .line 24
    invoke-static {p3, v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    .line 25
    iget-object v1, p0, Lcom/google/android/gms/internal/ads/f4;->b:Lcom/google/android/gms/internal/ads/l2;

    invoke-virtual {v1}, Lcom/google/android/gms/internal/ads/l2;->g()Ljava/util/concurrent/ScheduledExecutorService;

    move-result-object v1

    invoke-virtual {p1}, Lz5/pl0;->a()Lz5/ze0;

    move-result-object v2

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

    move-result-object v3

    invoke-virtual {v2, v3}, Lz5/ze0;->c(Lz5/fc1;)Lz5/fc1;

    move-result-object v2

    invoke-direct {p2, p3, v1, v2}, Lz5/se0;-><init>(Ljava/util/concurrent/Executor;Ljava/util/concurrent/ScheduledExecutorService;Lz5/fc1;)V

    iput-object p2, p0, Lcom/google/android/gms/internal/ads/f4;->e:Lz5/se0;

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

    invoke-direct {v1, p0, p4, p1}, Lcom/google/android/gms/internal/ads/d1;-><init>(Lcom/google/android/gms/internal/ads/f4;Lz5/vx0;Lz5/pl0;)V

    .line 26
    new-instance p1, Lcom/google/android/gms/internal/ads/k0;

    invoke-direct {p1, p2, v1}, Lcom/google/android/gms/internal/ads/k0;-><init>(Lz5/se0;Lz5/zb1;)V

    .line 27
    new-instance p2, Ll5/m;

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

    check-cast v2, Lz5/c51;

    .line 28
    iget-object p1, v2, Lz5/c51;->t:Lz5/fc1;

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

    return v0
.end method

.method public final zzb()Z
    .registers 2

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

    if-eqz v0, :cond_a

    .line 1
    iget-boolean v0, v0, Lz5/se0;->d:Z

    if-eqz v0, :cond_a

    const/4 v0, 0x1

    return v0

    :cond_a
    const/4 v0, 0x0

    return v0
.end method
