.class public final Lz5/yc0;
.super Lz5/ke0;
.source ""


# instance fields
.field public final i:Lcom/google/android/gms/internal/ads/g2;

.field public final j:I

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

.field public final l:Lcom/google/android/gms/internal/ads/d1;

.field public final m:Lz5/hl0;

.field public final n:Lz5/kg0;

.field public o:Z


# direct methods
.method public constructor <init>(Lz5/uk;Landroid/content/Context;Lcom/google/android/gms/internal/ads/g2;ILcom/google/android/gms/internal/ads/d1;Lz5/hl0;Lz5/kg0;)V
    .registers 8

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

    const/4 p1, 0x0

    iput-boolean p1, p0, Lz5/yc0;->o:Z

    iput-object p3, p0, Lz5/yc0;->i:Lcom/google/android/gms/internal/ads/g2;

    iput-object p2, p0, Lz5/yc0;->k:Landroid/content/Context;

    iput p4, p0, Lz5/yc0;->j:I

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

    iput-object p6, p0, Lz5/yc0;->m:Lz5/hl0;

    iput-object p7, p0, Lz5/yc0;->n:Lz5/kg0;

    return-void
.end method


# virtual methods
.method public final b()V
    .registers 2

    invoke-super {p0}, Lz5/ke0;->b()V

    iget-object v0, p0, Lz5/yc0;->i:Lcom/google/android/gms/internal/ads/g2;

    if-eqz v0, :cond_a

    invoke-interface {v0}, Lcom/google/android/gms/internal/ads/g2;->destroy()V

    :cond_a
    return-void
.end method

.method public final c(Landroid/app/Activity;Lz5/vf;Z)V
    .registers 8

    if-nez p1, :cond_4

    iget-object p1, p0, Lz5/yc0;->k:Landroid/content/Context;

    :cond_4
    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

    if-eqz v0, :cond_5a

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

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

    move-result v0

    if-eqz v0, :cond_5a

    const-string p2, "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 {p2}, Lz5/d50;->zzi(Ljava/lang/String;)V

    iget-object p2, p0, Lz5/yc0;->n:Lz5/kg0;

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

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

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

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

    .line 6
    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

    if-eqz p2, :cond_b4

    new-instance p2, Lz5/y71;

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

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

    move-result-object p3

    invoke-virtual {p3}, Lcom/google/android/gms/ads/internal/util/zzby;->zza()Landroid/os/Looper;

    move-result-object p3

    invoke-direct {p2, p1, p3}, Lz5/y71;-><init>(Landroid/content/Context;Landroid/os/Looper;)V

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

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

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

    check-cast p1, Lz5/e31;

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

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

    return-void

    :cond_5a
    iget-boolean v0, p0, Lz5/yc0;->o:Z

    if-eqz v0, :cond_85

    const-string v0, "App open interstitial ad is already visible."

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

    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_85

    iget-object v0, p0, Lz5/yc0;->n:Lz5/kg0;

    const/16 v1, 0xa

    const/4 v2, 0x0

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

    move-result-object v1

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

    const/4 v3, 0x0

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

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

    .line 10
    :cond_85
    iget-boolean v0, p0, Lz5/yc0;->o:Z

    if-nez v0, :cond_b4

    :try_start_89
    iget-object v0, p0, Lz5/yc0;->m:Lz5/hl0;

    iget-object v1, p0, Lz5/yc0;->n:Lz5/kg0;

    invoke-interface {v0, p3, p1, v1}, Lz5/hl0;->d(ZLandroid/content/Context;Lz5/kg0;)V
    :try_end_90
    .catch Lz5/gl0; {:try_start_89 .. :try_end_90} :catch_94

    const/4 p1, 0x1

    iput-boolean p1, p0, Lz5/yc0;->o:Z

    return-void

    :catch_94
    move-exception p1

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

    .line 11
    sget-object v0, Lz5/xk;->d:Lz5/xk;

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

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

    move-result-object p3

    check-cast p3, Ljava/lang/Boolean;

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

    move-result p3

    if-eqz p3, :cond_ad

    iget-object p2, p0, Lz5/yc0;->n:Lz5/kg0;

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

    return-void

    :cond_ad
    invoke-static {p1}, Lz5/vo;->b(Ljava/lang/Throwable;)Lz5/sj;

    move-result-object p1

    invoke-interface {p2, p1}, Lz5/vf;->zze(Lz5/sj;)V

    :cond_b4
    return-void
.end method
