.class public final Lz5/yj;
.super Lx5/c;
.source ""


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lx5/c<",
        "Lz5/sl;",
        ">;"
    }
.end annotation


# direct methods
.method public constructor <init>()V
    .registers 2

    const-string v0, "com.google.android.gms.ads.AdManagerCreatorImpl"

    invoke-direct {p0, v0}, Lx5/c;-><init>(Ljava/lang/String;)V

    return-void
.end method


# virtual methods
.method public final bridge synthetic a(Landroid/os/IBinder;)Ljava/lang/Object;
    .registers 4

    if-nez p1, :cond_4

    const/4 p1, 0x0

    goto :goto_18

    :cond_4
    const-string v0, "com.google.android.gms.ads.internal.client.IAdManagerCreator"

    invoke-interface {p1, v0}, Landroid/os/IBinder;->queryLocalInterface(Ljava/lang/String;)Landroid/os/IInterface;

    move-result-object v0

    instance-of v1, v0, Lz5/sl;

    if-eqz v1, :cond_12

    move-object p1, v0

    check-cast p1, Lz5/sl;

    goto :goto_18

    :cond_12
    new-instance v0, Lz5/sl;

    invoke-direct {v0, p1}, Lz5/sl;-><init>(Landroid/os/IBinder;)V

    move-object p1, v0

    :goto_18
    return-object p1
.end method

.method public final c(Landroid/content/Context;Lz5/dk;Ljava/lang/String;Lz5/ox;I)Lz5/rl;
    .registers 16

    invoke-static {p1}, Lz5/so;->a(Landroid/content/Context;)V

    sget-object v0, Lz5/so;->r6: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-string v1, "com.google.android.gms.ads.internal.client.IAdManager"

    const/4 v2, 0x0

    if-eqz v0, :cond_83

    .line 3
    :try_start_18
    new-instance v4, Lx5/b;

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

    const-string v0, "com.google.android.gms.ads.ChimeraAdManagerCreatorImpl"
    :try_end_1f
    .catch Lz5/e50; {:try_start_18 .. :try_end_1f} :catch_73
    .catch Landroid/os/RemoteException; {:try_start_18 .. :try_end_1f} :catch_71
    .catch Ljava/lang/NullPointerException; {:try_start_18 .. :try_end_1f} :catch_6f

    .line 4
    :try_start_1f
    sget-object v3, Lcom/google/android/gms/dynamite/DynamiteModule;->b:Lcom/google/android/gms/dynamite/DynamiteModule$b;

    const-string v5, "com.google.android.gms.ads.dynamite"

    invoke-static {p1, v3, v5}, Lcom/google/android/gms/dynamite/DynamiteModule;->d(Landroid/content/Context;Lcom/google/android/gms/dynamite/DynamiteModule$b;Ljava/lang/String;)Lcom/google/android/gms/dynamite/DynamiteModule;

    move-result-object v3
    :try_end_27
    .catch Ljava/lang/Exception; {:try_start_1f .. :try_end_27} :catch_61

    .line 5
    :try_start_27
    invoke-virtual {v3, v0}, Lcom/google/android/gms/dynamite/DynamiteModule;->c(Ljava/lang/String;)Landroid/os/IBinder;

    move-result-object v0

    if-nez v0, :cond_2f

    move-object v3, v2

    goto :goto_41

    :cond_2f
    const-string v3, "com.google.android.gms.ads.internal.client.IAdManagerCreator"

    .line 6
    invoke-interface {v0, v3}, Landroid/os/IBinder;->queryLocalInterface(Ljava/lang/String;)Landroid/os/IInterface;

    move-result-object v3

    instance-of v5, v3, Lz5/sl;

    if-eqz v5, :cond_3c

    check-cast v3, Lz5/sl;

    goto :goto_41

    :cond_3c
    new-instance v3, Lz5/sl;

    invoke-direct {v3, v0}, Lz5/sl;-><init>(Landroid/os/IBinder;)V
    :try_end_41
    .catch Ljava/lang/Exception; {:try_start_27 .. :try_end_41} :catch_68

    :goto_41
    const v8, 0xcbe6bb0

    move-object v5, p2

    move-object v6, p3

    move-object v7, p4

    move v9, p5

    .line 7
    :try_start_48
    invoke-virtual/range {v3 .. v9}, Lz5/sl;->l(Lx5/a;Lz5/dk;Ljava/lang/String;Lz5/ox;II)Landroid/os/IBinder;

    move-result-object p2

    if-nez p2, :cond_4f

    goto :goto_82

    :cond_4f
    invoke-interface {p2, v1}, Landroid/os/IBinder;->queryLocalInterface(Ljava/lang/String;)Landroid/os/IInterface;

    move-result-object p3

    instance-of p4, p3, Lz5/rl;

    if-eqz p4, :cond_5b

    check-cast p3, Lz5/rl;

    :goto_59
    move-object v2, p3

    goto :goto_82

    :cond_5b
    new-instance p3, Lz5/pl;

    invoke-direct {p3, p2}, Lz5/pl;-><init>(Landroid/os/IBinder;)V
    :try_end_60
    .catch Lz5/e50; {:try_start_48 .. :try_end_60} :catch_73
    .catch Landroid/os/RemoteException; {:try_start_48 .. :try_end_60} :catch_71
    .catch Ljava/lang/NullPointerException; {:try_start_48 .. :try_end_60} :catch_6f

    goto :goto_59

    :catch_61
    move-exception p2

    .line 8
    :try_start_62
    new-instance p3, Lz5/e50;

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

    throw p3
    :try_end_68
    .catch Ljava/lang/Exception; {:try_start_62 .. :try_end_68} :catch_68

    :catch_68
    move-exception p2

    .line 9
    :try_start_69
    new-instance p3, Lz5/e50;

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

    throw p3
    :try_end_6f
    .catch Lz5/e50; {:try_start_69 .. :try_end_6f} :catch_73
    .catch Landroid/os/RemoteException; {:try_start_69 .. :try_end_6f} :catch_71
    .catch Ljava/lang/NullPointerException; {:try_start_69 .. :try_end_6f} :catch_6f

    :catch_6f
    move-exception p2

    goto :goto_74

    :catch_71
    move-exception p2

    goto :goto_74

    :catch_73
    move-exception p2

    .line 10
    :goto_74
    invoke-static {p1}, Lcom/google/android/gms/internal/ads/h1;->b(Landroid/content/Context;)Lz5/f10;

    move-result-object p1

    const-string p3, "AdManagerCreator.newAdManagerByDynamiteLoader"

    invoke-interface {p1, p2, p3}, Lz5/f10;->a(Ljava/lang/Throwable;Ljava/lang/String;)V

    const-string p1, "#007 Could not call remote method."

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

    :goto_82
    return-object v2

    .line 11
    :cond_83
    :try_start_83
    new-instance v4, Lx5/b;

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

    .line 12
    invoke-virtual {p0, p1}, Lx5/c;->b(Landroid/content/Context;)Ljava/lang/Object;

    move-result-object p1

    move-object v3, p1

    check-cast v3, Lz5/sl;

    const v8, 0xcbe6bb0

    move-object v5, p2

    move-object v6, p3

    move-object v7, p4

    move v9, p5

    invoke-virtual/range {v3 .. v9}, Lz5/sl;->l(Lx5/a;Lz5/dk;Ljava/lang/String;Lz5/ox;II)Landroid/os/IBinder;

    move-result-object p1

    if-nez p1, :cond_9d

    goto :goto_af

    :cond_9d
    invoke-interface {p1, v1}, Landroid/os/IBinder;->queryLocalInterface(Ljava/lang/String;)Landroid/os/IInterface;

    move-result-object p2

    instance-of p3, p2, Lz5/rl;

    if-eqz p3, :cond_a9

    check-cast p2, Lz5/rl;

    :goto_a7
    move-object v2, p2

    goto :goto_af

    :cond_a9
    new-instance p2, Lz5/pl;

    invoke-direct {p2, p1}, Lz5/pl;-><init>(Landroid/os/IBinder;)V
    :try_end_ae
    .catch Landroid/os/RemoteException; {:try_start_83 .. :try_end_ae} :catch_b2
    .catch Lx5/c$a; {:try_start_83 .. :try_end_ae} :catch_b0

    goto :goto_a7

    :goto_af
    return-object v2

    :catch_b0
    move-exception p1

    goto :goto_b3

    :catch_b2
    move-exception p1

    :goto_b3
    const-string p2, "Could not create remote AdManager."

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

    return-object v2
.end method
