.class public final Lz5/tk;
.super Lz5/vk;
.source ""


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lz5/vk<",
        "Lz5/gm;",
        ">;"
    }
.end annotation


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

.field public final synthetic c:Lz5/uk;


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

    iput-object p1, p0, Lz5/tk;->c:Lz5/uk;

    iput-object p2, p0, Lz5/tk;->b:Landroid/content/Context;

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

    return-void
.end method


# virtual methods
.method public final bridge synthetic a()Ljava/lang/Object;
    .registers 3

    iget-object v0, p0, Lz5/tk;->b:Landroid/content/Context;

    const-string v1, "mobile_ads_settings"

    invoke-static {v0, v1}, Lz5/uk;->f(Landroid/content/Context;Ljava/lang/String;)V

    new-instance v0, Lz5/sn;

    invoke-direct {v0}, Lz5/sn;-><init>()V

    return-object v0
.end method

.method public final b()Ljava/lang/Object;
    .registers 9

    iget-object v0, p0, Lz5/tk;->b:Landroid/content/Context;

    invoke-static {v0}, 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.IMobileAdsSettingManager"

    const v2, 0xcbe6bb0

    const/4 v3, 0x0

    if-eqz v0, :cond_8e

    :try_start_1d
    iget-object v0, p0, Lz5/tk;->b:Landroid/content/Context;

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

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

    .line 4
    iget-object v0, p0, Lz5/tk;->b:Landroid/content/Context;

    const-string v5, "com.google.android.gms.ads.ChimeraMobileAdsSettingManagerCreatorImpl"
    :try_end_28
    .catch Lz5/e50; {:try_start_1d .. :try_end_28} :catch_77
    .catch Landroid/os/RemoteException; {:try_start_1d .. :try_end_28} :catch_75
    .catch Ljava/lang/NullPointerException; {:try_start_1d .. :try_end_28} :catch_73

    .line 5
    :try_start_28
    sget-object v6, Lcom/google/android/gms/dynamite/DynamiteModule;->b:Lcom/google/android/gms/dynamite/DynamiteModule$b;

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

    invoke-static {v0, v6, v7}, 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 v0
    :try_end_30
    .catch Ljava/lang/Exception; {:try_start_28 .. :try_end_30} :catch_66

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

    move-result-object v0

    if-nez v0, :cond_38

    move-object v5, v3

    goto :goto_4c

    :cond_38
    const-string v5, "com.google.android.gms.ads.internal.client.IMobileAdsSettingManagerCreator"

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

    move-result-object v5

    instance-of v6, v5, Lz5/hm;

    if-eqz v6, :cond_47

    check-cast v5, Lz5/hm;

    goto :goto_4c

    :catch_45
    move-exception v0

    goto :goto_6d

    :cond_47
    new-instance v5, Lz5/hm;

    invoke-direct {v5, v0}, Lz5/hm;-><init>(Landroid/os/IBinder;)V
    :try_end_4c
    .catch Ljava/lang/Exception; {:try_start_30 .. :try_end_4c} :catch_45

    .line 8
    :goto_4c
    :try_start_4c
    invoke-virtual {v5, v4, v2}, Lz5/hm;->l(Lx5/a;I)Landroid/os/IBinder;

    move-result-object v0

    if-nez v0, :cond_54

    goto/16 :goto_c4

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

    move-result-object v1

    instance-of v2, v1, Lz5/gm;

    if-eqz v2, :cond_60

    check-cast v1, Lz5/gm;

    :goto_5e
    move-object v3, v1

    goto :goto_c4

    :cond_60
    new-instance v1, Lz5/em;

    invoke-direct {v1, v0}, Lz5/em;-><init>(Landroid/os/IBinder;)V
    :try_end_65
    .catch Lz5/e50; {:try_start_4c .. :try_end_65} :catch_77
    .catch Landroid/os/RemoteException; {:try_start_4c .. :try_end_65} :catch_75
    .catch Ljava/lang/NullPointerException; {:try_start_4c .. :try_end_65} :catch_73

    goto :goto_5e

    :catch_66
    move-exception v0

    .line 9
    :try_start_67
    new-instance v1, Lz5/e50;

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

    throw v1
    :try_end_6d
    .catch Ljava/lang/Exception; {:try_start_67 .. :try_end_6d} :catch_45

    .line 10
    :goto_6d
    :try_start_6d
    new-instance v1, Lz5/e50;

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

    throw v1
    :try_end_73
    .catch Lz5/e50; {:try_start_6d .. :try_end_73} :catch_77
    .catch Landroid/os/RemoteException; {:try_start_6d .. :try_end_73} :catch_75
    .catch Ljava/lang/NullPointerException; {:try_start_6d .. :try_end_73} :catch_73

    :catch_73
    move-exception v0

    goto :goto_78

    :catch_75
    move-exception v0

    goto :goto_78

    :catch_77
    move-exception v0

    .line 11
    :goto_78
    iget-object v1, p0, Lz5/tk;->c:Lz5/uk;

    iget-object v2, p0, Lz5/tk;->b:Landroid/content/Context;

    invoke-static {v2}, Lcom/google/android/gms/internal/ads/h1;->b(Landroid/content/Context;)Lz5/f10;

    move-result-object v2

    .line 12
    iput-object v2, v1, Lz5/uk;->h:Ljava/lang/Object;

    .line 13
    iget-object v1, p0, Lz5/tk;->c:Lz5/uk;

    .line 14
    iget-object v1, v1, Lz5/uk;->h:Ljava/lang/Object;

    check-cast v1, Lz5/f10;

    const-string v2, "ClientApiBroker.getMobileAdsSettingsManager"

    .line 15
    invoke-interface {v1, v0, v2}, Lz5/f10;->a(Ljava/lang/Throwable;Ljava/lang/String;)V

    goto :goto_c4

    :cond_8e
    iget-object v0, p0, Lz5/tk;->c:Lz5/uk;

    .line 16
    iget-object v0, v0, Lz5/uk;->c:Ljava/lang/Object;

    check-cast v0, Lz5/on;

    .line 17
    iget-object v4, p0, Lz5/tk;->b:Landroid/content/Context;

    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 18
    :try_start_99
    new-instance v5, Lx5/b;

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

    .line 19
    invoke-virtual {v0, v4}, Lx5/c;->b(Landroid/content/Context;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lz5/hm;

    invoke-virtual {v0, v5, v2}, Lz5/hm;->l(Lx5/a;I)Landroid/os/IBinder;

    move-result-object v0

    if-nez v0, :cond_ab

    goto :goto_c4

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

    move-result-object v1

    instance-of v2, v1, Lz5/gm;

    if-eqz v2, :cond_b6

    check-cast v1, Lz5/gm;

    goto :goto_5e

    :cond_b6
    new-instance v1, Lz5/em;

    invoke-direct {v1, v0}, Lz5/em;-><init>(Landroid/os/IBinder;)V
    :try_end_bb
    .catch Landroid/os/RemoteException; {:try_start_99 .. :try_end_bb} :catch_be
    .catch Lx5/c$a; {:try_start_99 .. :try_end_bb} :catch_bc

    goto :goto_5e

    :catch_bc
    move-exception v0

    goto :goto_bf

    :catch_be
    move-exception v0

    :goto_bf
    const-string v1, "Could not get remote MobileAdsSettingManager."

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

    :goto_c4
    return-object v3
.end method

.method public final c(Lz5/zl;)Ljava/lang/Object;
    .registers 4

    iget-object v0, p0, Lz5/tk;->b:Landroid/content/Context;

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

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

    const v0, 0xcbe6bb0

    .line 2
    invoke-interface {p1, v1, v0}, Lz5/zl;->zzh(Lx5/a;I)Lz5/gm;

    move-result-object p1

    return-object p1
.end method
