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

# interfaces
.implements Lz5/hl0;


# instance fields
.field public final r:Ljava/lang/Object;

.field public final s:Ljava/lang/Object;

.field public t:Z

.field public u:Ljava/lang/Object;


# direct methods
.method public constructor <init>(Lz5/b31;Lz5/bz;Z)V
    .registers 5

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

    const/4 v0, 0x0

    iput-object v0, p0, Lz5/sv0;->u:Ljava/lang/Object;

    iput-object p1, p0, Lz5/sv0;->r:Ljava/lang/Object;

    iput-object p2, p0, Lz5/sv0;->s:Ljava/lang/Object;

    iput-boolean p3, p0, Lz5/sv0;->t:Z

    return-void
.end method

.method public constructor <init>(Lz5/gv0;Lz5/wu0;Lcom/google/android/gms/internal/ads/y1;)V
    .registers 4

    .line 1
    iput-object p1, p0, Lz5/sv0;->u:Ljava/lang/Object;

    iput-object p2, p0, Lz5/sv0;->r:Ljava/lang/Object;

    iput-object p3, p0, Lz5/sv0;->s:Ljava/lang/Object;

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

    const/4 p1, 0x0

    iput-boolean p1, p0, Lz5/sv0;->t:Z

    return-void
.end method


# virtual methods
.method public a(I)V
    .registers 9

    iget-boolean v0, p0, Lz5/sv0;->t:Z

    if-eqz v0, :cond_5

    return-void

    :cond_5
    iget-object v0, p0, Lz5/sv0;->r:Ljava/lang/Object;

    check-cast v0, Lz5/wu0;

    iget-object v0, v0, Lz5/wu0;->a:Ljava/lang/String;

    invoke-static {v0, p1}, Lz5/gv0;->c(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v3

    new-instance v0, Lz5/sj;

    const/4 v5, 0x0

    const/4 v6, 0x0

    const-string v4, "undefined"

    move-object v1, v0

    move v2, p1

    invoke-direct/range {v1 .. v6}, Lz5/sj;-><init>(ILjava/lang/String;Ljava/lang/String;Lz5/sj;Landroid/os/IBinder;)V

    invoke-virtual {p0, v0}, Lz5/sv0;->c(Lz5/sj;)V

    return-void
.end method

.method public declared-synchronized b(ILjava/lang/String;)V
    .registers 9

    monitor-enter p0

    :try_start_1
    iget-boolean v0, p0, Lz5/sv0;->t:Z
    :try_end_3
    .catchall {:try_start_1 .. :try_end_3} :catchall_27

    if-eqz v0, :cond_7

    monitor-exit p0

    return-void

    :cond_7
    const/4 v0, 0x1

    :try_start_8
    iput-boolean v0, p0, Lz5/sv0;->t:Z

    if-nez p2, :cond_16

    iget-object p2, p0, Lz5/sv0;->r:Ljava/lang/Object;

    check-cast p2, Lz5/wu0;

    iget-object p2, p2, Lz5/wu0;->a:Ljava/lang/String;

    invoke-static {p2, p1}, Lz5/gv0;->c(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object p2

    :cond_16
    move-object v2, p2

    new-instance p2, Lz5/sj;

    const-string v3, "undefined"

    const/4 v4, 0x0

    const/4 v5, 0x0

    move-object v0, p2

    move v1, p1

    invoke-direct/range {v0 .. v5}, Lz5/sj;-><init>(ILjava/lang/String;Ljava/lang/String;Lz5/sj;Landroid/os/IBinder;)V

    invoke-virtual {p0, p2}, Lz5/sv0;->c(Lz5/sj;)V
    :try_end_25
    .catchall {:try_start_8 .. :try_end_25} :catchall_27

    monitor-exit p0

    return-void

    :catchall_27
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public c(Lz5/sj;)V
    .registers 5

    sget-object v0, Lz5/so;->m3: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, 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 v1, 0x1

    if-eq v1, v0, :cond_14

    goto :goto_15

    :cond_14
    const/4 v1, 0x3

    :goto_15
    iget-object v0, p0, Lz5/sv0;->s:Ljava/lang/Object;

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

    new-instance v2, Lz5/xu0;

    invoke-direct {v2, v1, p1}, Lz5/xu0;-><init>(ILz5/sj;)V

    invoke-virtual {v0, v2}, Lcom/google/android/gms/internal/ads/y1;->zzd(Ljava/lang/Throwable;)Z

    return-void
.end method

.method public d(ZLandroid/content/Context;Lz5/kg0;)V
    .registers 4

    :try_start_0
    iget-boolean p1, p0, Lz5/sv0;->t:Z

    if-eqz p1, :cond_12

    iget-object p1, p0, Lz5/sv0;->s:Ljava/lang/Object;

    check-cast p1, Lz5/bz;

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

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

    .line 2
    invoke-interface {p1, p3}, Lz5/bz;->V(Lx5/a;)Z

    move-result p1

    goto :goto_1f

    :cond_12
    iget-object p1, p0, Lz5/sv0;->s:Ljava/lang/Object;

    check-cast p1, Lz5/bz;

    .line 3
    new-instance p3, Lx5/b;

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

    .line 4
    invoke-interface {p1, p3}, Lz5/bz;->E1(Lx5/a;)Z

    move-result p1
    :try_end_1f
    .catchall {:try_start_0 .. :try_end_1f} :catchall_53

    :goto_1f
    if-eqz p1, :cond_4b

    iget-object p1, p0, Lz5/sv0;->u:Ljava/lang/Object;

    check-cast p1, Lz5/og0;

    if-nez p1, :cond_28

    return-void

    :cond_28
    sget-object p1, Lz5/so;->U0:Lz5/no;

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

    iget-object p2, p2, 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-nez p1, :cond_4a

    iget-object p1, p0, Lz5/sv0;->r:Ljava/lang/Object;

    check-cast p1, Lz5/b31;

    iget p1, p1, Lz5/b31;->U:I

    const/4 p2, 0x2

    if-ne p1, p2, :cond_4a

    iget-object p1, p0, Lz5/sv0;->u:Ljava/lang/Object;

    check-cast p1, Lz5/og0;

    invoke-virtual {p1}, Lz5/og0;->zza()V

    :cond_4a
    return-void

    :cond_4b
    new-instance p1, Lz5/gl0;

    const-string p2, "Adapter failed to show."

    invoke-direct {p1, p2}, Lz5/gl0;-><init>(Ljava/lang/String;)V

    throw p1

    :catchall_53
    move-exception p1

    new-instance p2, Lz5/gl0;

    invoke-direct {p2, p1}, Lz5/gl0;-><init>(Ljava/lang/Throwable;)V

    throw p2
.end method
