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


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

.field public final j:Ljava/lang/ref/WeakReference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/WeakReference<",
            "Lcom/google/android/gms/internal/ads/g2;",
            ">;"
        }
    .end annotation
.end field

.field public final k:Lz5/vj0;

.field public final l:Lz5/hl0;

.field public final m:Lz5/xe0;

.field public final n:Lz5/y71;

.field public final o:Lz5/kg0;

.field public p:Z


# direct methods
.method public constructor <init>(Lz5/uk;Landroid/content/Context;Lcom/google/android/gms/internal/ads/g2;Lz5/vj0;Lz5/hl0;Lz5/xe0;Lz5/y71;Lz5/kg0;)V
    .registers 9
    .param p3    # Lcom/google/android/gms/internal/ads/g2;
        .annotation runtime Ljavax/annotation/Nullable;
        .end annotation
    .end param

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

    const/4 p1, 0x0

    iput-boolean p1, p0, Lcom/google/android/gms/internal/ads/y2;->p:Z

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

    new-instance p1, Ljava/lang/ref/WeakReference;

    invoke-direct {p1, p3}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object p1, p0, Lcom/google/android/gms/internal/ads/y2;->j:Ljava/lang/ref/WeakReference;

    iput-object p4, p0, Lcom/google/android/gms/internal/ads/y2;->k:Lz5/vj0;

    iput-object p5, p0, Lcom/google/android/gms/internal/ads/y2;->l:Lz5/hl0;

    iput-object p6, p0, Lcom/google/android/gms/internal/ads/y2;->m:Lz5/xe0;

    iput-object p7, p0, Lcom/google/android/gms/internal/ads/y2;->n:Lz5/y71;

    iput-object p8, p0, Lcom/google/android/gms/internal/ads/y2;->o:Lz5/kg0;

    return-void
.end method


# virtual methods
.method public final c(ZLandroid/app/Activity;)Z
    .registers 7
    .param p2    # Landroid/app/Activity;
        .annotation runtime Ljavax/annotation/Nullable;
        .end annotation
    .end param

    sget-object v0, Lz5/so;->n0: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, 0x0

    if-eqz v0, :cond_4a

    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/y2;->i:Landroid/content/Context;

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

    move-result v0

    if-eqz v0, :cond_4a

    const-string p1, "Interstitials that show when your app is in the background are a violation of AdMob policies and may lead to blocked ad serving. To learn more, visit  https://googlemobileadssdk.page.link/admob-interstitial-policies"

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

    iget-object p1, p0, Lcom/google/android/gms/internal/ads/y2;->o:Lz5/kg0;

    .line 3
    sget-object p2, Lz5/gg0;->r:Lz5/fj0;

    invoke-virtual {p1, p2}, Lcom/google/android/gms/internal/ads/v2;->u0(Lz5/fj0;)V

    .line 4
    sget-object p1, Lz5/so;->o0:Lz5/no;

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

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

    move-result-object p1

    check-cast p1, Ljava/lang/Boolean;

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

    move-result p1

    if-eqz p1, :cond_9b

    iget-object p1, p0, Lcom/google/android/gms/internal/ads/y2;->n:Lz5/y71;

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

    iget-object p2, p2, Lz5/i31;->b:Lcom/google/android/gms/internal/ads/d1;

    iget-object p2, p2, Lcom/google/android/gms/internal/ads/d1;->t:Ljava/lang/Object;

    check-cast p2, Lz5/e31;

    iget-object p2, p2, Lz5/e31;->b:Ljava/lang/String;

    invoke-virtual {p1, p2}, Lz5/y71;->a(Ljava/lang/String;)V

    goto :goto_9b

    :cond_4a
    sget-object v0, Lz5/so;->s6:Lz5/no;

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

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

    if-eqz v0, :cond_74

    iget-boolean v0, p0, Lcom/google/android/gms/internal/ads/y2;->p:Z

    if-eqz v0, :cond_74

    const-string v0, "The interstitial ad has been showed."

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

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/y2;->o:Lz5/kg0;

    const/16 v1, 0xa

    const/4 v3, 0x0

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

    move-result-object v1

    .line 9
    new-instance v3, Lz5/fg0;

    invoke-direct {v3, v1, v2}, Lz5/fg0;-><init>(Lz5/sj;I)V

    invoke-virtual {v0, v3}, Lcom/google/android/gms/internal/ads/v2;->u0(Lz5/fj0;)V

    .line 10
    :cond_74
    iget-boolean v0, p0, Lcom/google/android/gms/internal/ads/y2;->p:Z

    if-nez v0, :cond_9b

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/y2;->k:Lz5/vj0;

    .line 11
    sget-object v1, Lz5/tj0;->r:Lz5/fj0;

    invoke-virtual {v0, v1}, Lcom/google/android/gms/internal/ads/v2;->u0(Lz5/fj0;)V

    if-nez p2, :cond_83

    .line 12
    iget-object p2, p0, Lcom/google/android/gms/internal/ads/y2;->i:Landroid/content/Context;

    :cond_83
    :try_start_83
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/y2;->l:Lz5/hl0;

    iget-object v1, p0, Lcom/google/android/gms/internal/ads/y2;->o:Lz5/kg0;

    invoke-interface {v0, p1, p2, v1}, Lz5/hl0;->d(ZLandroid/content/Context;Lz5/kg0;)V

    iget-object p1, p0, Lcom/google/android/gms/internal/ads/y2;->k:Lz5/vj0;

    .line 13
    sget-object p2, Lz5/uj0;->r:Lz5/fj0;

    invoke-virtual {p1, p2}, Lcom/google/android/gms/internal/ads/v2;->u0(Lz5/fj0;)V
    :try_end_91
    .catch Lz5/gl0; {:try_start_83 .. :try_end_91} :catch_95

    const/4 p1, 0x1

    .line 14
    iput-boolean p1, p0, Lcom/google/android/gms/internal/ads/y2;->p:Z

    return p1

    :catch_95
    move-exception p1

    iget-object p2, p0, Lcom/google/android/gms/internal/ads/y2;->o:Lz5/kg0;

    invoke-virtual {p2, p1}, Lz5/kg0;->A(Lz5/gl0;)V

    :cond_9b
    :goto_9b
    return v2
.end method

.method public final finalize()V
    .registers 5

    :try_start_0
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/y2;->j:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/google/android/gms/internal/ads/g2;

    sget-object v1, Lz5/so;->w4:Lz5/no;

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

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

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

    move-result-object v1

    check-cast v1, Ljava/lang/Boolean;

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

    move-result v1

    if-eqz v1, :cond_2e

    iget-boolean v1, p0, Lcom/google/android/gms/internal/ads/y2;->p:Z

    if-nez v1, :cond_33

    if-eqz v0, :cond_33

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

    .line 3
    new-instance v2, Lz5/i80;

    const/4 v3, 0x1

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

    .line 4
    check-cast v1, Lz5/j50;

    invoke-virtual {v1, v2}, Lz5/j50;->execute(Ljava/lang/Runnable;)V

    goto :goto_33

    :cond_2e
    if-eqz v0, :cond_33

    invoke-interface {v0}, Lcom/google/android/gms/internal/ads/g2;->destroy()V
    :try_end_33
    .catchall {:try_start_0 .. :try_end_33} :catchall_37

    :cond_33
    :goto_33
    invoke-super {p0}, Ljava/lang/Object;->finalize()V

    return-void

    :catchall_37
    move-exception v0

    invoke-super {p0}, Ljava/lang/Object;->finalize()V

    throw v0
.end method
