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

# interfaces
.implements Lz5/u91;
.implements Lz5/fj0;


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


# direct methods
.method public constructor <init>(Landroid/content/Context;I)V
    .registers 4

    const/4 v0, 0x1

    if-eq p2, v0, :cond_9

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

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

    return-void

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

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

    return-void
.end method


# virtual methods
.method public zza()Ljava/lang/Object;
    .registers 8

    iget-object v0, p0, Lz5/ro;->r:Landroid/content/Context;

    sget-object v1, Lz5/so;->a: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
    iget-boolean v2, v1, Lcom/google/android/gms/internal/ads/g0;->c:Z

    if-eqz v2, :cond_d

    goto :goto_75

    :cond_d
    iget-object v2, v1, Lcom/google/android/gms/internal/ads/g0;->a:Ljava/lang/Object;

    monitor-enter v2

    :try_start_10
    iget-boolean v3, v1, Lcom/google/android/gms/internal/ads/g0;->c:Z

    if-eqz v3, :cond_16

    :goto_14
    monitor-exit v2

    goto :goto_75

    :cond_16
    iget-boolean v3, v1, Lcom/google/android/gms/internal/ads/g0;->d:Z

    const/4 v4, 0x1

    if-nez v3, :cond_1d

    iput-boolean v4, v1, Lcom/google/android/gms/internal/ads/g0;->d:Z

    :cond_1d
    invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v3

    if-nez v3, :cond_25

    move-object v3, v0

    goto :goto_29

    :cond_25
    invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v3

    :goto_29
    iput-object v3, v1, Lcom/google/android/gms/internal/ads/g0;->g:Landroid/content/Context;
    :try_end_2b
    .catchall {:try_start_10 .. :try_end_2b} :catchall_80

    :try_start_2b
    invoke-static {v3}, Lw5/c;->a(Landroid/content/Context;)Lw5/b;

    move-result-object v3

    iget-object v5, v1, Lcom/google/android/gms/internal/ads/g0;->g:Landroid/content/Context;

    invoke-virtual {v5}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v5

    const/16 v6, 0x80

    invoke-virtual {v3, v5, v6}, Lw5/b;->a(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;

    move-result-object v3

    iget-object v3, v3, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;

    iput-object v3, v1, Lcom/google/android/gms/internal/ads/g0;->f:Landroid/os/Bundle;
    :try_end_3f
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_2b .. :try_end_3f} :catch_3f
    .catch Ljava/lang/NullPointerException; {:try_start_2b .. :try_end_3f} :catch_3f
    .catchall {:try_start_2b .. :try_end_3f} :catchall_80

    :catch_3f
    const/4 v3, 0x0

    :try_start_40
    invoke-static {v0}, Lm5/i;->a(Landroid/content/Context;)Landroid/content/Context;

    move-result-object v5

    if-nez v5, :cond_4c

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

    move-result-object v5

    if-eqz v5, :cond_4d

    :cond_4c
    move-object v0, v5

    .line 3
    :cond_4d
    sget-object v5, Lz5/xk;->d:Lz5/xk;

    iget-object v5, v5, Lz5/xk;->b:Lz5/po;

    const-string v5, "google_ads_flags"

    .line 4
    invoke-virtual {v0, v5, v3}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 5
    iput-object v0, v1, Lcom/google/android/gms/internal/ads/g0;->e:Landroid/content/SharedPreferences;

    if-eqz v0, :cond_5e

    invoke-interface {v0, v1}, Landroid/content/SharedPreferences;->registerOnSharedPreferenceChangeListener(Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;)V

    :cond_5e
    new-instance v0, Lz5/qo;

    invoke-direct {v0, v1}, Lz5/qo;-><init>(Lcom/google/android/gms/internal/ads/g0;)V

    .line 6
    sget-object v5, Lz5/iq;->a:Ljava/util/concurrent/atomic/AtomicReference;

    invoke-virtual {v5, v0}, Ljava/util/concurrent/atomic/AtomicReference;->set(Ljava/lang/Object;)V

    .line 7
    invoke-virtual {v1}, Lcom/google/android/gms/internal/ads/g0;->b()V

    iput-boolean v4, v1, Lcom/google/android/gms/internal/ads/g0;->c:Z
    :try_end_6d
    .catchall {:try_start_40 .. :try_end_6d} :catchall_77

    :try_start_6d
    iput-boolean v3, v1, Lcom/google/android/gms/internal/ads/g0;->d:Z

    iget-object v0, v1, Lcom/google/android/gms/internal/ads/g0;->b:Landroid/os/ConditionVariable;

    invoke-virtual {v0}, Landroid/os/ConditionVariable;->open()V

    goto :goto_14

    :goto_75
    const/4 v0, 0x0

    return-object v0

    :catchall_77
    move-exception v0

    iput-boolean v3, v1, Lcom/google/android/gms/internal/ads/g0;->d:Z

    iget-object v1, v1, Lcom/google/android/gms/internal/ads/g0;->b:Landroid/os/ConditionVariable;

    invoke-virtual {v1}, Landroid/os/ConditionVariable;->open()V

    throw v0

    :catchall_80
    move-exception v0

    monitor-exit v2
    :try_end_82
    .catchall {:try_start_6d .. :try_end_82} :catchall_80

    throw v0
.end method

.method public zza(Ljava/lang/Object;)V
    .registers 3

    iget-object v0, p0, Lz5/ro;->r:Landroid/content/Context;

    check-cast p1, Lz5/qg0;

    invoke-interface {p1, v0}, Lz5/qg0;->h(Landroid/content/Context;)V

    return-void
.end method
