.class public final Lcom/google/android/gms/internal/ads/u1;
.super Ljava/lang/Object;
.source ""


# annotations
.annotation runtime Ljavax/annotation/ParametersAreNonnullByDefault;
.end annotation


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

.field public final b:Lcom/google/android/gms/ads/internal/util/zzj;

.field public final c:Lz5/w40;

.field public d:Z

.field public e:Landroid/content/Context;

.field public f:Lz5/g50;

.field public g:Lcom/google/android/gms/internal/ads/h0;

.field public h:Ljava/lang/Boolean;

.field public final i:Ljava/util/concurrent/atomic/AtomicInteger;

.field public final j:Lz5/u40;

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

.field public l:Lz5/fc1;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lz5/fc1<",
            "Ljava/util/ArrayList<",
            "Ljava/lang/String;",
            ">;>;"
        }
    .end annotation
.end field


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

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

    new-instance v0, Ljava/lang/Object;

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

    iput-object v0, p0, Lcom/google/android/gms/internal/ads/u1;->a:Ljava/lang/Object;

    new-instance v0, Lcom/google/android/gms/ads/internal/util/zzj;

    invoke-direct {v0}, Lcom/google/android/gms/ads/internal/util/zzj;-><init>()V

    iput-object v0, p0, Lcom/google/android/gms/internal/ads/u1;->b:Lcom/google/android/gms/ads/internal/util/zzj;

    new-instance v1, Lz5/w40;

    .line 1
    sget-object v2, Lz5/wk;->f:Lz5/wk;

    iget-object v2, v2, Lz5/wk;->c:Ljava/lang/String;

    .line 2
    invoke-direct {v1, v2, v0}, Lz5/w40;-><init>(Ljava/lang/String;Lcom/google/android/gms/ads/internal/util/zzg;)V

    iput-object v1, p0, Lcom/google/android/gms/internal/ads/u1;->c:Lz5/w40;

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/google/android/gms/internal/ads/u1;->d:Z

    const/4 v1, 0x0

    iput-object v1, p0, Lcom/google/android/gms/internal/ads/u1;->g:Lcom/google/android/gms/internal/ads/h0;

    iput-object v1, p0, Lcom/google/android/gms/internal/ads/u1;->h:Ljava/lang/Boolean;

    new-instance v1, Ljava/util/concurrent/atomic/AtomicInteger;

    invoke-direct {v1, v0}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V

    iput-object v1, p0, Lcom/google/android/gms/internal/ads/u1;->i:Ljava/util/concurrent/atomic/AtomicInteger;

    new-instance v0, Lz5/u40;

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

    iput-object v0, p0, Lcom/google/android/gms/internal/ads/u1;->j:Lz5/u40;

    new-instance v0, Ljava/lang/Object;

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

    iput-object v0, p0, Lcom/google/android/gms/internal/ads/u1;->k:Ljava/lang/Object;

    return-void
.end method


# virtual methods
.method public final a()Lcom/google/android/gms/internal/ads/h0;
    .registers 3

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/u1;->a:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lcom/google/android/gms/internal/ads/u1;->g:Lcom/google/android/gms/internal/ads/h0;

    monitor-exit v0

    return-object v1

    :catchall_7
    move-exception v1

    monitor-exit v0
    :try_end_9
    .catchall {:try_start_3 .. :try_end_9} :catchall_7

    throw v1
.end method

.method public final b(Landroid/content/Context;Lz5/g50;)V
    .registers 6
    .annotation build Landroid/annotation/TargetApi;
        value = 0x17
    .end annotation

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/u1;->a:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-boolean v1, p0, Lcom/google/android/gms/internal/ads/u1;->d:Z

    if-nez v1, :cond_5e

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

    move-result-object v1

    iput-object v1, p0, Lcom/google/android/gms/internal/ads/u1;->e:Landroid/content/Context;

    iput-object p2, p0, Lcom/google/android/gms/internal/ads/u1;->f:Lz5/g50;

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzf()Lcom/google/android/gms/internal/ads/m;

    move-result-object v1

    iget-object v2, p0, Lcom/google/android/gms/internal/ads/u1;->c:Lz5/w40;

    invoke-virtual {v1, v2}, Lcom/google/android/gms/internal/ads/m;->b(Lz5/ye;)V

    iget-object v1, p0, Lcom/google/android/gms/internal/ads/u1;->b:Lcom/google/android/gms/ads/internal/util/zzj;

    iget-object v2, p0, Lcom/google/android/gms/internal/ads/u1;->e:Landroid/content/Context;

    invoke-virtual {v1, v2}, Lcom/google/android/gms/ads/internal/util/zzj;->zza(Landroid/content/Context;)V

    iget-object v1, p0, Lcom/google/android/gms/internal/ads/u1;->e:Landroid/content/Context;

    iget-object v2, p0, Lcom/google/android/gms/internal/ads/u1;->f:Lz5/g50;

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

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzl()Lcom/google/android/gms/internal/ads/i0;

    sget-object v1, Lz5/np;->c:Lcom/google/android/gms/internal/ads/k;

    invoke-virtual {v1}, Lcom/google/android/gms/internal/ads/k;->l()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-nez v1, :cond_3e

    const-string v1, "CsiReporterFactory: CSI is not enabled. No CSI reporter created."

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

    const/4 v1, 0x0

    goto :goto_43

    :cond_3e
    new-instance v1, Lcom/google/android/gms/internal/ads/h0;

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

    :goto_43
    iput-object v1, p0, Lcom/google/android/gms/internal/ads/u1;->g:Lcom/google/android/gms/internal/ads/h0;

    if-eqz v1, :cond_55

    new-instance v1, Lz5/t40;

    invoke-direct {v1, p0}, Lz5/t40;-><init>(Lcom/google/android/gms/internal/ads/u1;)V

    invoke-virtual {v1}, Lcom/google/android/gms/ads/internal/util/zzb;->zzc()Lz5/fc1;

    move-result-object v1

    const-string v2, "AppState.registerCsiReporter"

    invoke-static {v1, v2}, Lcom/google/android/gms/internal/ads/p8;->b(Lz5/fc1;Ljava/lang/String;)V

    :cond_55
    const/4 v1, 0x1

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

    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/u1;->g()Lz5/fc1;

    goto :goto_5e

    :catchall_5c
    move-exception p1

    goto :goto_69

    :cond_5e
    :goto_5e
    monitor-exit v0
    :try_end_5f
    .catchall {:try_start_3 .. :try_end_5f} :catchall_5c

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzc()Lcom/google/android/gms/ads/internal/util/zzs;

    move-result-object v0

    iget-object p2, p2, Lz5/g50;->r:Ljava/lang/String;

    invoke-virtual {v0, p1, p2}, Lcom/google/android/gms/ads/internal/util/zzs;->zzi(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    return-void

    :goto_69
    :try_start_69
    monitor-exit v0
    :try_end_6a
    .catchall {:try_start_69 .. :try_end_6a} :catchall_5c

    throw p1
.end method

.method public final c()Landroid/content/res/Resources;
    .registers 5

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/u1;->f:Lz5/g50;

    iget-boolean v0, v0, Lz5/g50;->u:Z

    if-eqz v0, :cond_d

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/u1;->e:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    return-object v0

    :cond_d
    const/4 v0, 0x0

    :try_start_e
    iget-object v1, p0, Lcom/google/android/gms/internal/ads/u1;->e:Landroid/content/Context;
    :try_end_10
    .catch Lz5/e50; {:try_start_e .. :try_end_10} :catch_25

    .line 1
    :try_start_10
    sget-object v2, Lcom/google/android/gms/dynamite/DynamiteModule;->b:Lcom/google/android/gms/dynamite/DynamiteModule$b;

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

    invoke-static {v1, v2, v3}, 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 v1
    :try_end_18
    .catch Ljava/lang/Exception; {:try_start_10 .. :try_end_18} :catch_1e

    .line 2
    :try_start_18
    iget-object v1, v1, Lcom/google/android/gms/dynamite/DynamiteModule;->a:Landroid/content/Context;

    .line 3
    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    return-object v0

    :catch_1e
    move-exception v1

    .line 4
    new-instance v2, Lz5/e50;

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

    throw v2
    :try_end_25
    .catch Lz5/e50; {:try_start_18 .. :try_end_25} :catch_25

    :catch_25
    move-exception v1

    const-string v2, "Cannot load resource from dynamite apk or local jar"

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

    return-object v0
.end method

.method public final d(Ljava/lang/Throwable;Ljava/lang/String;)V
    .registers 5

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/u1;->e:Landroid/content/Context;

    iget-object v1, p0, Lcom/google/android/gms/internal/ads/u1;->f:Lz5/g50;

    invoke-static {v0, v1}, Lcom/google/android/gms/internal/ads/h1;->d(Landroid/content/Context;Lz5/g50;)Lz5/f10;

    move-result-object v0

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

    return-void
.end method

.method public final e(Ljava/lang/Throwable;Ljava/lang/String;)V
    .registers 5

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/u1;->e:Landroid/content/Context;

    iget-object v1, p0, Lcom/google/android/gms/internal/ads/u1;->f:Lz5/g50;

    invoke-static {v0, v1}, Lcom/google/android/gms/internal/ads/h1;->d(Landroid/content/Context;Lz5/g50;)Lz5/f10;

    move-result-object v0

    sget-object v1, Lz5/aq;->g:Lcom/google/android/gms/internal/ads/k;

    invoke-virtual {v1}, Lcom/google/android/gms/internal/ads/k;->l()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Double;

    invoke-virtual {v1}, Ljava/lang/Double;->floatValue()F

    move-result v1

    invoke-interface {v0, p1, p2, v1}, Lz5/f10;->c(Ljava/lang/Throwable;Ljava/lang/String;F)V

    return-void
.end method

.method public final f()Lcom/google/android/gms/ads/internal/util/zzg;
    .registers 3

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/u1;->a:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lcom/google/android/gms/internal/ads/u1;->b:Lcom/google/android/gms/ads/internal/util/zzj;

    monitor-exit v0

    return-object v1

    :catchall_7
    move-exception v1

    monitor-exit v0
    :try_end_9
    .catchall {:try_start_3 .. :try_end_9} :catchall_7

    throw v1
.end method

.method public final g()Lz5/fc1;
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lz5/fc1<",
            "Ljava/util/ArrayList<",
            "Ljava/lang/String;",
            ">;>;"
        }
    .end annotation

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/u1;->e:Landroid/content/Context;

    if-eqz v0, :cond_34

    sget-object v0, Lz5/so;->E1: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

    if-eqz v0, :cond_17

    goto :goto_34

    :cond_17
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/u1;->k:Ljava/lang/Object;

    monitor-enter v0

    :try_start_1a
    iget-object v1, p0, Lcom/google/android/gms/internal/ads/u1;->l:Lz5/fc1;

    if-eqz v1, :cond_20

    monitor-exit v0

    return-object v1

    :cond_20
    sget-object v1, Lz5/k50;->a:Lz5/gc1;

    new-instance v2, Lz5/v30;

    invoke-direct {v2, p0}, Lz5/v30;-><init>(Lcom/google/android/gms/internal/ads/u1;)V

    check-cast v1, Lz5/nb1;

    invoke-virtual {v1, v2}, Lz5/nb1;->Q(Ljava/util/concurrent/Callable;)Lz5/fc1;

    move-result-object v1

    iput-object v1, p0, Lcom/google/android/gms/internal/ads/u1;->l:Lz5/fc1;

    monitor-exit v0

    return-object v1

    :catchall_31
    move-exception v1

    monitor-exit v0
    :try_end_33
    .catchall {:try_start_1a .. :try_end_33} :catchall_31

    throw v1

    :cond_34
    :goto_34
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    invoke-static {v0}, Lcom/google/android/gms/internal/ads/h8;->e(Ljava/lang/Object;)Lz5/fc1;

    move-result-object v0

    return-object v0
.end method
