.class public final Lcom/google/android/gms/internal/ads/i4;
.super Lz5/ql;
.source ""

# interfaces
.implements Lcom/google/android/gms/ads/internal/overlay/zzz;
.implements Lz5/hf;
.implements Lz5/mh0;


# instance fields
.field public A:Lcom/google/android/gms/internal/ads/p2;

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

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

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

.field public final t:Landroid/view/ViewGroup;

.field public u:Ljava/util/concurrent/atomic/AtomicBoolean;

.field public final v:Ljava/lang/String;

.field public final w:Lz5/i11;

.field public final x:Lz5/v11;

.field public final y:Lz5/g50;

.field public z:J


# direct methods
.method public constructor <init>(Lcom/google/android/gms/internal/ads/l2;Landroid/content/Context;Ljava/lang/String;Lz5/i11;Lz5/v11;Lz5/g50;)V
    .registers 9

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

    new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;

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

    iput-object v0, p0, Lcom/google/android/gms/internal/ads/i4;->u:Ljava/util/concurrent/atomic/AtomicBoolean;

    const-wide/16 v0, -0x1

    iput-wide v0, p0, Lcom/google/android/gms/internal/ads/i4;->z:J

    new-instance v0, Landroid/widget/FrameLayout;

    invoke-direct {v0, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/google/android/gms/internal/ads/i4;->t:Landroid/view/ViewGroup;

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

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

    iput-object p3, p0, Lcom/google/android/gms/internal/ads/i4;->v:Ljava/lang/String;

    iput-object p4, p0, Lcom/google/android/gms/internal/ads/i4;->w:Lz5/i11;

    iput-object p5, p0, Lcom/google/android/gms/internal/ads/i4;->x:Lz5/v11;

    .line 1
    iget-object p1, p5, Lz5/v11;->v:Ljava/util/concurrent/atomic/AtomicReference;

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

    .line 2
    iput-object p6, p0, Lcom/google/android/gms/internal/ads/i4;->y:Lz5/g50;

    return-void
.end method

.method public static H2(Lcom/google/android/gms/internal/ads/i4;)Lz5/dk;
    .registers 3

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

    iget-object p0, p0, Lcom/google/android/gms/internal/ads/i4;->B:Lz5/tc0;

    .line 1
    iget-object p0, p0, Lz5/ke0;->b:Lz5/b31;

    iget-object p0, p0, Lz5/b31;->r:Ljava/util/List;

    const/4 v1, 0x0

    .line 2
    invoke-interface {p0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lz5/d31;

    .line 3
    invoke-static {p0}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;

    move-result-object p0

    invoke-static {v0, p0}, Lcom/google/android/gms/internal/ads/g9;->d(Landroid/content/Context;Ljava/util/List;)Lz5/dk;

    move-result-object p0

    return-object p0
.end method


# virtual methods
.method public final declared-synchronized G2(I)V
    .registers 6

    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/i4;->u:Ljava/util/concurrent/atomic/AtomicBoolean;

    const/4 v1, 0x0

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z

    move-result v0

    if-eqz v0, :cond_54

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/i4;->B:Lz5/tc0;

    if-eqz v0, :cond_1a

    .line 1
    iget-object v0, v0, Lz5/tc0;->o:Lz5/sf;

    if-eqz v0, :cond_1a

    .line 2
    iget-object v1, p0, Lcom/google/android/gms/internal/ads/i4;->x:Lz5/v11;

    .line 3
    iget-object v1, v1, Lz5/v11;->t:Ljava/util/concurrent/atomic/AtomicReference;

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

    .line 4
    :cond_1a
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/i4;->x:Lz5/v11;

    invoke-virtual {v0}, Lz5/v11;->g()V

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/i4;->t:Landroid/view/ViewGroup;

    invoke-virtual {v0}, Landroid/view/ViewGroup;->removeAllViews()V

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/i4;->A:Lcom/google/android/gms/internal/ads/p2;

    if-eqz v0, :cond_2f

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzf()Lcom/google/android/gms/internal/ads/m;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/google/android/gms/internal/ads/m;->c(Lz5/ye;)V

    :cond_2f
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/i4;->B:Lz5/tc0;

    if-eqz v0, :cond_4f

    iget-wide v0, p0, Lcom/google/android/gms/internal/ads/i4;->z:J

    const-wide/16 v2, -0x1

    cmp-long v0, v0, v2

    if-nez v0, :cond_3c

    goto :goto_48

    :cond_3c
    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzj()Lu5/c;

    move-result-object v0

    invoke-interface {v0}, Lu5/c;->c()J

    move-result-wide v0

    iget-wide v2, p0, Lcom/google/android/gms/internal/ads/i4;->z:J

    sub-long v2, v0, v2

    :goto_48
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/i4;->B:Lz5/tc0;

    .line 5
    iget-object v0, v0, Lz5/tc0;->n:Lcom/google/android/gms/internal/ads/d1;

    invoke-virtual {v0, v2, v3, p1}, Lcom/google/android/gms/internal/ads/d1;->g(JI)V

    .line 6
    :cond_4f
    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/i4;->zzj()V
    :try_end_52
    .catchall {:try_start_1 .. :try_end_52} :catchall_56

    monitor-exit p0

    return-void

    :cond_54
    monitor-exit p0

    return-void

    :catchall_56
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public final l()V
    .registers 5

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/i4;->B:Lz5/tc0;

    if-nez v0, :cond_5

    return-void

    :cond_5
    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzj()Lu5/c;

    move-result-object v0

    invoke-interface {v0}, Lu5/c;->c()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/google/android/gms/internal/ads/i4;->z:J

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/i4;->B:Lz5/tc0;

    .line 1
    iget v0, v0, Lz5/tc0;->k:I

    if-gtz v0, :cond_16

    return-void

    .line 2
    :cond_16
    new-instance v1, Lcom/google/android/gms/internal/ads/p2;

    iget-object v2, p0, Lcom/google/android/gms/internal/ads/i4;->r:Lcom/google/android/gms/internal/ads/l2;

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

    move-result-object v2

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzj()Lu5/c;

    move-result-object v3

    invoke-direct {v1, v2, v3}, Lcom/google/android/gms/internal/ads/p2;-><init>(Ljava/util/concurrent/ScheduledExecutorService;Lu5/c;)V

    iput-object v1, p0, Lcom/google/android/gms/internal/ads/i4;->A:Lcom/google/android/gms/internal/ads/p2;

    new-instance v2, Lz5/j11;

    const/4 v3, 0x1

    invoke-direct {v2, p0, v3}, Lz5/j11;-><init>(Lcom/google/android/gms/internal/ads/i4;I)V

    invoke-virtual {v1, v0, v2}, Lcom/google/android/gms/internal/ads/p2;->a(ILjava/lang/Runnable;)V

    return-void
.end method

.method public final declared-synchronized zzA()Lz5/wm;
    .registers 2

    monitor-enter p0

    monitor-exit p0

    const/4 v0, 0x0

    return-object v0
.end method

.method public final declared-synchronized zzB()Ljava/lang/String;
    .registers 2

    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/i4;->v:Ljava/lang/String;
    :try_end_3
    .catchall {:try_start_1 .. :try_end_3} :catchall_5

    monitor-exit p0

    return-object v0

    :catchall_5
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final zzC()Lz5/wl;
    .registers 2

    const/4 v0, 0x0

    return-object v0
.end method

.method public final zzD()Lz5/el;
    .registers 2

    const/4 v0, 0x0

    return-object v0
.end method

.method public final declared-synchronized zzE(Lz5/dp;)V
    .registers 2

    monitor-enter p0

    monitor-exit p0

    return-void
.end method

.method public final zzF(Lz5/al;)V
    .registers 2

    return-void
.end method

.method public final declared-synchronized zzG(Z)V
    .registers 2

    monitor-enter p0

    monitor-exit p0

    return-void
.end method

.method public final declared-synchronized zzH()Z
    .registers 2

    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/i4;->w:Lz5/i11;

    invoke-virtual {v0}, Lcom/google/android/gms/internal/ads/j4;->zzb()Z

    move-result v0
    :try_end_7
    .catchall {:try_start_1 .. :try_end_7} :catchall_9

    monitor-exit p0

    return v0

    :catchall_9
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final zzI(Lz5/i20;)V
    .registers 2

    return-void
.end method

.method public final zzJ(Ljava/lang/String;)V
    .registers 2

    return-void
.end method

.method public final zzK(Ljava/lang/String;)V
    .registers 2

    return-void
.end method

.method public final declared-synchronized zzL()Lz5/an;
    .registers 2

    monitor-enter p0

    monitor-exit p0

    const/4 v0, 0x0

    return-object v0
.end method

.method public final declared-synchronized zzM(Lz5/eo;)V
    .registers 2

    monitor-enter p0

    monitor-exit p0

    return-void
.end method

.method public final zzN(Lz5/en;)V
    .registers 2

    return-void
.end method

.method public final zzO(Lz5/ik;)V
    .registers 3

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/i4;->w:Lz5/i11;

    .line 1
    iget-object v0, v0, Lcom/google/android/gms/internal/ads/j4;->g:Lz5/l31;

    .line 2
    iput-object p1, v0, Lz5/l31;->i:Lz5/ik;

    return-void
.end method

.method public final zzP(Lz5/qf;)V
    .registers 3

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/i4;->x:Lz5/v11;

    .line 1
    iget-object v0, v0, Lz5/v11;->s:Ljava/util/concurrent/atomic/AtomicReference;

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

    return-void
.end method

.method public final zzQ(Z)V
    .registers 2

    return-void
.end method

.method public final zzX(Lz5/um;)V
    .registers 2

    return-void
.end method

.method public final zzY(Lz5/zj;Lz5/hl;)V
    .registers 3

    return-void
.end method

.method public final zzZ(Lx5/a;)V
    .registers 2

    return-void
.end method

.method public final zza()V
    .registers 2

    const/4 v0, 0x3

    invoke-virtual {p0, v0}, Lcom/google/android/gms/internal/ads/i4;->G2(I)V

    return-void
.end method

.method public final zzaa(Lz5/dm;)V
    .registers 2

    return-void
.end method

.method public final declared-synchronized zzab(Lz5/am;)V
    .registers 2

    monitor-enter p0

    monitor-exit p0

    return-void
.end method

.method public final zzd()V
    .registers 2

    const/4 v0, 0x4

    invoke-virtual {p0, v0}, Lcom/google/android/gms/internal/ads/i4;->G2(I)V

    return-void
.end method

.method public final zzi()Lx5/a;
    .registers 3

    const-string v0, "getAdFrame must be called on the main UI thread."

    invoke-static {v0}, Lcom/google/android/gms/common/internal/d;->d(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/i4;->t:Landroid/view/ViewGroup;

    .line 1
    new-instance v1, Lx5/b;

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

    return-object v1
.end method

.method public final declared-synchronized zzj()V
    .registers 2

    monitor-enter p0

    :try_start_1
    const-string v0, "destroy must be called on the main UI thread."

    invoke-static {v0}, Lcom/google/android/gms/common/internal/d;->d(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/i4;->B:Lz5/tc0;

    if-eqz v0, :cond_f

    invoke-virtual {v0}, Lz5/ke0;->b()V
    :try_end_d
    .catchall {:try_start_1 .. :try_end_d} :catchall_11

    monitor-exit p0

    return-void

    :cond_f
    monitor-exit p0

    return-void

    :catchall_11
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final zzk()Z
    .registers 2

    const/4 v0, 0x0

    return v0
.end method

.method public final declared-synchronized zzl(Lz5/zj;)Z
    .registers 6

    monitor-enter p0

    :try_start_1
    const-string v0, "loadAd must be called on the main UI thread."

    invoke-static {v0}, Lcom/google/android/gms/common/internal/d;->d(Ljava/lang/String;)V

    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/i4;->s: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_29

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

    if-eqz v0, :cond_17

    goto :goto_29

    :cond_17
    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/i4;->x:Lz5/v11;

    const/4 v0, 0x4

    const/4 v2, 0x0

    invoke-static {v0, v2, v2}, Lz5/vo;->k(ILjava/lang/String;Lz5/sj;)Lz5/sj;

    move-result-object v0

    invoke-virtual {p1, v0}, Lz5/v11;->z(Lz5/sj;)V
    :try_end_27
    .catchall {:try_start_1 .. :try_end_27} :catchall_4c

    monitor-exit p0

    return v1

    :cond_29
    :goto_29
    :try_start_29
    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/i4;->zzH()Z

    move-result v0
    :try_end_2d
    .catchall {:try_start_29 .. :try_end_2d} :catchall_4c

    if-eqz v0, :cond_31

    monitor-exit p0

    return v1

    :cond_31
    :try_start_31
    new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;

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

    iput-object v0, p0, Lcom/google/android/gms/internal/ads/i4;->u:Ljava/util/concurrent/atomic/AtomicBoolean;

    new-instance v0, Lz5/k11;

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

    iget-object v1, p0, Lcom/google/android/gms/internal/ads/i4;->w:Lz5/i11;

    iget-object v2, p0, Lcom/google/android/gms/internal/ads/i4;->v:Ljava/lang/String;

    new-instance v3, Lz5/l11;

    invoke-direct {v3, p0}, Lz5/l11;-><init>(Lcom/google/android/gms/internal/ads/i4;)V

    invoke-virtual {v1, p1, v2, v0, v3}, Lcom/google/android/gms/internal/ads/j4;->a(Lz5/zj;Ljava/lang/String;Lc3/f;Lz5/vx0;)Z

    move-result p1
    :try_end_4a
    .catchall {:try_start_31 .. :try_end_4a} :catchall_4c

    monitor-exit p0

    return p1

    :catchall_4c
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public final declared-synchronized zzm()V
    .registers 2

    monitor-enter p0

    :try_start_1
    const-string v0, "pause must be called on the main UI thread."

    invoke-static {v0}, Lcom/google/android/gms/common/internal/d;->d(Ljava/lang/String;)V
    :try_end_6
    .catchall {:try_start_1 .. :try_end_6} :catchall_8

    monitor-exit p0

    return-void

    :catchall_8
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final declared-synchronized zzn()V
    .registers 2

    monitor-enter p0

    :try_start_1
    const-string v0, "resume must be called on the main UI thread."

    invoke-static {v0}, Lcom/google/android/gms/common/internal/d;->d(Ljava/lang/String;)V
    :try_end_6
    .catchall {:try_start_1 .. :try_end_6} :catchall_8

    monitor-exit p0

    return-void

    :catchall_8
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final zzo(Lz5/el;)V
    .registers 2

    return-void
.end method

.method public final zzp(Lz5/wl;)V
    .registers 2

    return-void
.end method

.method public final zzq(Lz5/ul;)V
    .registers 2

    return-void
.end method

.method public final zzr()Landroid/os/Bundle;
    .registers 2

    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    return-object v0
.end method

.method public final zzs()V
    .registers 1

    return-void
.end method

.method public final declared-synchronized zzt()V
    .registers 1

    monitor-enter p0

    monitor-exit p0

    return-void
.end method

.method public final declared-synchronized zzu()Lz5/dk;
    .registers 4

    monitor-enter p0

    :try_start_1
    const-string v0, "getAdSize must be called on the main UI thread."

    invoke-static {v0}, Lcom/google/android/gms/common/internal/d;->d(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/i4;->B:Lz5/tc0;

    if-eqz v0, :cond_21

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

    .line 1
    iget-object v0, v0, Lz5/ke0;->b:Lz5/b31;

    iget-object v0, v0, Lz5/b31;->r:Ljava/util/List;

    const/4 v2, 0x0

    .line 2
    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lz5/d31;

    .line 3
    invoke-static {v0}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    invoke-static {v1, v0}, Lcom/google/android/gms/internal/ads/g9;->d(Landroid/content/Context;Ljava/util/List;)Lz5/dk;

    move-result-object v0
    :try_end_1f
    .catchall {:try_start_1 .. :try_end_1f} :catchall_24

    monitor-exit p0

    return-object v0

    :cond_21
    const/4 v0, 0x0

    monitor-exit p0

    return-object v0

    :catchall_24
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final declared-synchronized zzv(Lz5/dk;)V
    .registers 2

    monitor-enter p0

    :try_start_1
    const-string p1, "setAdSize must be called on the main UI thread."

    invoke-static {p1}, Lcom/google/android/gms/common/internal/d;->d(Ljava/lang/String;)V
    :try_end_6
    .catchall {:try_start_1 .. :try_end_6} :catchall_8

    monitor-exit p0

    return-void

    :catchall_8
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public final zzw(Lz5/s00;)V
    .registers 2

    return-void
.end method

.method public final zzx(Lz5/w00;Ljava/lang/String;)V
    .registers 3

    return-void
.end method

.method public final declared-synchronized zzy()Ljava/lang/String;
    .registers 2

    monitor-enter p0

    monitor-exit p0

    const/4 v0, 0x0

    return-object v0
.end method

.method public final declared-synchronized zzz()Ljava/lang/String;
    .registers 2

    monitor-enter p0

    monitor-exit p0

    const/4 v0, 0x0

    return-object v0
.end method
