.class public final Lz5/qr0;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lcom/google/android/gms/ads/internal/overlay/zzo;
.implements Lz5/x80;


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

.field public final s:Lz5/g50;

.field public t:Lz5/pr0;

.field public u:Lcom/google/android/gms/internal/ads/g2;

.field public v:Z

.field public w:Z

.field public x:J

.field public y:Lcom/google/android/gms/internal/ads/b0;

.field public z:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;Lz5/g50;)V
    .registers 3

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

    iput-object p1, p0, Lz5/qr0;->r:Landroid/content/Context;

    iput-object p2, p0, Lz5/qr0;->s:Lz5/g50;

    return-void
.end method


# virtual methods
.method public final declared-synchronized a(Lcom/google/android/gms/internal/ads/b0;Lz5/gt;)V
    .registers 22

    move-object/from16 v1, p0

    move-object/from16 v2, p1

    monitor-enter p0

    :try_start_5
    invoke-virtual/range {p0 .. p1}, Lz5/qr0;->b(Lcom/google/android/gms/internal/ads/b0;)Z

    move-result v0
    :try_end_9
    .catchall {:try_start_5 .. :try_end_9} :catchall_ae

    if-nez v0, :cond_d

    monitor-exit p0

    return-void

    :cond_d
    const/4 v3, 0x0

    const/16 v4, 0x11

    :try_start_10
    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzd()Lcom/google/android/gms/internal/ads/i2;

    iget-object v5, v1, Lz5/qr0;->r:Landroid/content/Context;

    iget-object v12, v1, Lz5/qr0;->s:Lz5/g50;

    invoke-static {}, Lz5/he;->b()Lz5/he;

    move-result-object v6

    const-string v7, ""

    const/4 v8, 0x0

    const/4 v9, 0x0

    const/4 v10, 0x0

    const/4 v11, 0x0

    const/4 v13, 0x0

    const/4 v14, 0x0

    const/4 v15, 0x0

    .line 1
    new-instance v16, Lcom/google/android/gms/internal/ads/w;

    invoke-direct/range {v16 .. v16}, Lcom/google/android/gms/internal/ads/w;-><init>()V

    const/16 v17, 0x0

    const/16 v18, 0x0

    .line 2
    invoke-static/range {v5 .. v18}, Lcom/google/android/gms/internal/ads/i2;->a(Landroid/content/Context;Lz5/he;Ljava/lang/String;ZZLz5/l;Lz5/fp;Lz5/g50;Lcom/google/android/gms/internal/ads/l0;Lcom/google/android/gms/ads/internal/zzl;Lcom/google/android/gms/ads/internal/zza;Lcom/google/android/gms/internal/ads/w;Lz5/b31;Lz5/e31;)Lcom/google/android/gms/internal/ads/g2;

    move-result-object v0

    iput-object v0, v1, Lz5/qr0;->u:Lcom/google/android/gms/internal/ads/g2;
    :try_end_33
    .catch Lz5/h80; {:try_start_10 .. :try_end_33} :catch_9b
    .catchall {:try_start_10 .. :try_end_33} :catchall_ae

    :try_start_33
    check-cast v0, Lz5/j80;

    invoke-virtual {v0}, Lz5/j80;->l()Lz5/z80;

    move-result-object v0

    if-nez v0, :cond_4d

    const-string v0, "Failed to obtain a web view for the ad inspector"

    invoke-static {v0}, Lz5/d50;->zzi(Ljava/lang/String;)V
    :try_end_40
    .catchall {:try_start_33 .. :try_end_40} :catchall_ae

    :try_start_40
    const-string v0, "Failed to obtain a web view for the ad inspector"

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

    move-result-object v0

    invoke-interface {v2, v0}, Lcom/google/android/gms/internal/ads/b0;->zze(Lz5/sj;)V
    :try_end_49
    .catch Landroid/os/RemoteException; {:try_start_40 .. :try_end_49} :catch_4b
    .catchall {:try_start_40 .. :try_end_49} :catchall_ae

    monitor-exit p0

    return-void

    :catch_4b
    monitor-exit p0

    return-void

    :cond_4d
    :try_start_4d
    iput-object v2, v1, Lz5/qr0;->y:Lcom/google/android/gms/internal/ads/b0;

    const/4 v3, 0x0

    const/4 v4, 0x0

    const/4 v5, 0x0

    const/4 v6, 0x0

    const/4 v7, 0x0

    const/4 v8, 0x0

    const/4 v9, 0x0

    const/4 v10, 0x0

    const/4 v11, 0x0

    const/4 v12, 0x0

    const/4 v13, 0x0

    const/4 v14, 0x0

    const/4 v15, 0x0

    const/16 v16, 0x0

    const/16 v18, 0x0

    move-object v2, v0

    check-cast v2, Lcom/google/android/gms/internal/ads/h2;

    move-object/from16 v17, p2

    invoke-virtual/range {v2 .. v18}, Lcom/google/android/gms/internal/ads/h2;->d(Lz5/oj;Lcom/google/android/gms/internal/ads/p0;Lcom/google/android/gms/ads/internal/overlay/zzo;Lcom/google/android/gms/internal/ads/q0;Lcom/google/android/gms/ads/internal/overlay/zzv;ZLz5/du;Lcom/google/android/gms/ads/internal/zzb;Lz5/xa0;Lz5/n30;Lz5/lu0;Lz5/b61;Lz5/lq0;Lz5/q51;Lz5/gt;Lz5/hk0;)V

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

    .line 3
    iput-object v1, v0, Lcom/google/android/gms/internal/ads/h2;->x:Lz5/x80;

    .line 4
    iget-object v0, v1, Lz5/qr0;->u:Lcom/google/android/gms/internal/ads/g2;

    sget-object v2, Lz5/so;->M5:Lz5/no;

    .line 5
    sget-object v3, Lz5/xk;->d:Lz5/xk;

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

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

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    invoke-interface {v0, v2}, Lcom/google/android/gms/internal/ads/g2;->loadUrl(Ljava/lang/String;)V

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzb()Lcom/google/android/gms/ads/internal/overlay/zzm;

    iget-object v0, v1, Lz5/qr0;->r:Landroid/content/Context;

    new-instance v2, Lcom/google/android/gms/ads/internal/overlay/AdOverlayInfoParcel;

    iget-object v3, v1, Lz5/qr0;->u:Lcom/google/android/gms/internal/ads/g2;

    iget-object v4, v1, Lz5/qr0;->s:Lz5/g50;

    const/4 v5, 0x1

    invoke-direct {v2, v1, v3, v5, v4}, Lcom/google/android/gms/ads/internal/overlay/AdOverlayInfoParcel;-><init>(Lcom/google/android/gms/ads/internal/overlay/zzo;Lcom/google/android/gms/internal/ads/g2;ILz5/g50;)V

    invoke-static {v0, v2, v5}, Lcom/google/android/gms/ads/internal/overlay/zzm;->zza(Landroid/content/Context;Lcom/google/android/gms/ads/internal/overlay/AdOverlayInfoParcel;Z)V

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

    move-result-object v0

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

    move-result-wide v2

    iput-wide v2, v1, Lz5/qr0;->x:J
    :try_end_99
    .catchall {:try_start_4d .. :try_end_99} :catchall_ae

    monitor-exit p0

    return-void

    :catch_9b
    move-exception v0

    :try_start_9c
    const-string v5, "Failed to obtain a web view for the ad inspector"

    invoke-static {v5, v0}, Lz5/d50;->zzj(Ljava/lang/String;Ljava/lang/Throwable;)V
    :try_end_a1
    .catchall {:try_start_9c .. :try_end_a1} :catchall_ae

    :try_start_a1
    const-string v0, "Failed to obtain a web view for the ad inspector"

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

    move-result-object v0

    invoke-interface {v2, v0}, Lcom/google/android/gms/internal/ads/b0;->zze(Lz5/sj;)V
    :try_end_aa
    .catch Landroid/os/RemoteException; {:try_start_a1 .. :try_end_aa} :catch_ac
    .catchall {:try_start_a1 .. :try_end_aa} :catchall_ae

    monitor-exit p0

    return-void

    :catch_ac
    monitor-exit p0

    return-void

    :catchall_ae
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final declared-synchronized b(Lcom/google/android/gms/internal/ads/b0;)Z
    .registers 11

    monitor-enter p0

    :try_start_1
    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/16 v2, 0x10

    const/4 v3, 0x0

    const/4 v4, 0x0

    if-nez v0, :cond_25

    const-string v0, "Ad inspector had an internal error."

    invoke-static {v0}, Lz5/d50;->zzi(Ljava/lang/String;)V
    :try_end_1c
    .catchall {:try_start_1 .. :try_end_1c} :catchall_71

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

    move-result-object v0

    invoke-interface {p1, v0}, Lcom/google/android/gms/internal/ads/b0;->zze(Lz5/sj;)V
    :try_end_23
    .catch Landroid/os/RemoteException; {:try_start_1c .. :try_end_23} :catch_23
    .catchall {:try_start_1c .. :try_end_23} :catchall_71

    :catch_23
    monitor-exit p0

    return v3

    :cond_25
    :try_start_25
    iget-object v0, p0, Lz5/qr0;->t:Lz5/pr0;

    if-nez v0, :cond_37

    const-string v0, "Ad inspector had an internal error."

    invoke-static {v0}, Lz5/d50;->zzi(Ljava/lang/String;)V
    :try_end_2e
    .catchall {:try_start_25 .. :try_end_2e} :catchall_71

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

    move-result-object v0

    invoke-interface {p1, v0}, Lcom/google/android/gms/internal/ads/b0;->zze(Lz5/sj;)V
    :try_end_35
    .catch Landroid/os/RemoteException; {:try_start_2e .. :try_end_35} :catch_35
    .catchall {:try_start_2e .. :try_end_35} :catchall_71

    :catch_35
    monitor-exit p0

    return v3

    :cond_37
    :try_start_37
    iget-boolean v0, p0, Lz5/qr0;->v:Z

    if-nez v0, :cond_61

    iget-boolean v0, p0, Lz5/qr0;->w:Z

    if-nez v0, :cond_61

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

    move-result-object v0

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

    move-result-wide v5

    iget-wide v7, p0, Lz5/qr0;->x:J

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

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

    .line 4
    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/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0
    :try_end_57
    .catchall {:try_start_37 .. :try_end_57} :catchall_71

    int-to-long v0, v0

    add-long/2addr v7, v0

    cmp-long v0, v5, v7

    if-gez v0, :cond_5e

    goto :goto_61

    :cond_5e
    const/4 p1, 0x1

    monitor-exit p0

    return p1

    :cond_61
    :goto_61
    :try_start_61
    const-string v0, "Ad inspector cannot be opened because it is already open."

    invoke-static {v0}, Lz5/d50;->zzi(Ljava/lang/String;)V
    :try_end_66
    .catchall {:try_start_61 .. :try_end_66} :catchall_71

    const/16 v0, 0x13

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

    move-result-object v0

    invoke-interface {p1, v0}, Lcom/google/android/gms/internal/ads/b0;->zze(Lz5/sj;)V
    :try_end_6f
    .catch Landroid/os/RemoteException; {:try_start_68 .. :try_end_6f} :catch_6f
    .catchall {:try_start_68 .. :try_end_6f} :catchall_71

    :catch_6f
    monitor-exit p0

    return v3

    :catchall_71
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public final declared-synchronized c()V
    .registers 3

    monitor-enter p0

    :try_start_1
    iget-boolean v0, p0, Lz5/qr0;->v:Z

    if-eqz v0, :cond_18

    iget-boolean v0, p0, Lz5/qr0;->w:Z

    if-nez v0, :cond_a

    goto :goto_18

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

    new-instance v1, Lz5/dc0;

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

    check-cast v0, Lz5/j50;

    invoke-virtual {v0, v1}, Lz5/j50;->execute(Ljava/lang/Runnable;)V
    :try_end_16
    .catchall {:try_start_1 .. :try_end_16} :catchall_1a

    monitor-exit p0

    return-void

    :cond_18
    :goto_18
    monitor-exit p0

    return-void

    :catchall_1a
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final declared-synchronized zza(Z)V
    .registers 5

    monitor-enter p0

    const/4 v0, 0x1

    if-eqz p1, :cond_10

    :try_start_4
    const-string p1, "Ad inspector loaded."

    invoke-static {p1}, Lcom/google/android/gms/ads/internal/util/zze;->zza(Ljava/lang/String;)V

    iput-boolean v0, p0, Lz5/qr0;->v:Z

    invoke-virtual {p0}, Lz5/qr0;->c()V
    :try_end_e
    .catchall {:try_start_4 .. :try_end_e} :catchall_2c

    monitor-exit p0

    return-void

    :cond_10
    :try_start_10
    const-string p1, "Ad inspector failed to load."

    invoke-static {p1}, Lz5/d50;->zzi(Ljava/lang/String;)V
    :try_end_15
    .catchall {:try_start_10 .. :try_end_15} :catchall_2c

    :try_start_15
    iget-object p1, p0, Lz5/qr0;->y:Lcom/google/android/gms/internal/ads/b0;

    if-eqz p1, :cond_23

    const/16 v1, 0x11

    const/4 v2, 0x0

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

    move-result-object v1

    invoke-interface {p1, v1}, Lcom/google/android/gms/internal/ads/b0;->zze(Lz5/sj;)V
    :try_end_23
    .catch Landroid/os/RemoteException; {:try_start_15 .. :try_end_23} :catch_23
    .catchall {:try_start_15 .. :try_end_23} :catchall_2c

    :catch_23
    :cond_23
    :try_start_23
    iput-boolean v0, p0, Lz5/qr0;->z:Z

    iget-object p1, p0, Lz5/qr0;->u:Lcom/google/android/gms/internal/ads/g2;

    invoke-interface {p1}, Lcom/google/android/gms/internal/ads/g2;->destroy()V
    :try_end_2a
    .catchall {:try_start_23 .. :try_end_2a} :catchall_2c

    monitor-exit p0

    return-void

    :catchall_2c
    move-exception p1

    monitor-exit p0

    throw p1
.end method

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

    monitor-enter p0

    const/4 v0, 0x1

    :try_start_2
    iput-boolean v0, p0, Lz5/qr0;->w:Z

    invoke-virtual {p0}, Lz5/qr0;->c()V
    :try_end_7
    .catchall {:try_start_2 .. :try_end_7} :catchall_9

    monitor-exit p0

    return-void

    :catchall_9
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final zzbq()V
    .registers 1

    return-void
.end method

.method public final zzbr()V
    .registers 1

    return-void
.end method

.method public final declared-synchronized zzbs(I)V
    .registers 5

    monitor-enter p0

    :try_start_1
    iget-object p1, p0, Lz5/qr0;->u:Lcom/google/android/gms/internal/ads/g2;

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

    iget-boolean p1, p0, Lz5/qr0;->z:Z

    const/4 v0, 0x0

    if-nez p1, :cond_17

    const-string p1, "Inspector closed."

    invoke-static {p1}, Lcom/google/android/gms/ads/internal/util/zze;->zza(Ljava/lang/String;)V

    iget-object p1, p0, Lz5/qr0;->y:Lcom/google/android/gms/internal/ads/b0;
    :try_end_12
    .catchall {:try_start_1 .. :try_end_12} :catchall_26

    if-eqz p1, :cond_17

    :try_start_14
    invoke-interface {p1, v0}, Lcom/google/android/gms/internal/ads/b0;->zze(Lz5/sj;)V
    :try_end_17
    .catch Landroid/os/RemoteException; {:try_start_14 .. :try_end_17} :catch_17
    .catchall {:try_start_14 .. :try_end_17} :catchall_26

    :catch_17
    :cond_17
    const/4 p1, 0x0

    :try_start_18
    iput-boolean p1, p0, Lz5/qr0;->w:Z

    iput-boolean p1, p0, Lz5/qr0;->v:Z

    const-wide/16 v1, 0x0

    iput-wide v1, p0, Lz5/qr0;->x:J

    iput-boolean p1, p0, Lz5/qr0;->z:Z

    iput-object v0, p0, Lz5/qr0;->y:Lcom/google/android/gms/internal/ads/b0;
    :try_end_24
    .catchall {:try_start_18 .. :try_end_24} :catchall_26

    monitor-exit p0

    return-void

    :catchall_26
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public final zzd()V
    .registers 1

    return-void
.end method

.method public final zze()V
    .registers 1

    return-void
.end method
