.class public final Lz5/l0;
.super Lz5/e1;
.source ""


# static fields
.field public static final i:Lz5/ex0;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lz5/ex0<",
            "Lz5/i12;",
            ">;"
        }
    .end annotation
.end field


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


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

    new-instance v0, Lz5/ex0;

    const/4 v1, 0x2

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

    sput-object v0, Lz5/l0;->i:Lz5/ex0;

    return-void
.end method

.method public constructor <init>(Lz5/b0;Lz5/j02;ILandroid/content/Context;)V
    .registers 12

    const-string v2, "NK1iwlHEHCICBCLEvTy0TnuhgEeSXovnPs9zKPvVW8trSfaaB+/inefY+5AxSSUI"

    const-string v3, "/qulcnd5BAOc2NixUFmrPgx+DAD1V/hpoK4nowHOBbg="

    const/16 v6, 0x1b

    move-object v0, p0

    move-object v1, p1

    move-object v4, p2

    move v5, p3

    invoke-direct/range {v0 .. v6}, Lz5/e1;-><init>(Lz5/b0;Ljava/lang/String;Ljava/lang/String;Lz5/j02;II)V

    iput-object p4, p0, Lz5/l0;->h:Landroid/content/Context;

    return-void
.end method


# virtual methods
.method public final a()V
    .registers 13

    sget-object v0, Lz5/l0;->i:Lz5/ex0;

    iget-object v1, p0, Lz5/l0;->h:Landroid/content/Context;

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

    move-result-object v1

    invoke-virtual {v0, v1}, Lz5/ex0;->c(Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicReference;

    move-result-object v0

    monitor-enter v0

    :try_start_d
    invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lz5/i12;

    const/4 v2, 0x0

    if-eqz v1, :cond_32

    iget-object v3, v1, Lz5/i12;->a:Ljava/lang/String;

    invoke-static {v3}, Lz5/d0;->b(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_32

    iget-object v3, v1, Lz5/i12;->a:Ljava/lang/String;

    const-string v4, "E"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_32

    iget-object v1, v1, Lz5/i12;->a:Ljava/lang/String;

    const-string v3, "0000000000000000000000000000000000000000000000000000000000000000"

    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_c3

    :cond_32
    const/4 v1, 0x0

    invoke-static {v1}, Lz5/d0;->b(Ljava/lang/String;)Z

    move-result v3

    const/4 v4, 0x4

    const/4 v5, 0x3

    if-nez v3, :cond_3d

    const/4 v3, 0x5

    goto :goto_40

    :cond_3d
    sget-object v3, Lz5/d0;->a:[C

    move v3, v5

    :goto_40
    const/4 v6, 0x1

    if-ne v3, v5, :cond_45

    move v7, v6

    goto :goto_46

    :cond_45
    move v7, v2

    .line 1
    :goto_46
    invoke-static {v7}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v7

    sget-object v8, Lz5/so;->t1:Lz5/no;

    .line 2
    sget-object v9, Lz5/xk;->d:Lz5/xk;

    iget-object v10, v9, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 3
    invoke-virtual {v10, v8}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Ljava/lang/Boolean;

    sget-object v10, Lz5/so;->s1:Lz5/no;

    .line 4
    iget-object v9, v9, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 5
    invoke-virtual {v9, v10}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Ljava/lang/Boolean;

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

    move-result v9

    if-eqz v9, :cond_6b

    invoke-virtual {p0}, Lz5/l0;->c()Ljava/lang/String;

    move-result-object v9

    goto :goto_6c

    :cond_6b
    move-object v9, v1

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

    move-result v8

    if-eqz v8, :cond_82

    iget-object v8, p0, Lz5/e1;->a:Lz5/b0;

    .line 6
    iget-boolean v8, v8, Lz5/b0;->n:Z

    if-eqz v8, :cond_82

    .line 7
    invoke-static {v9}, Lz5/d0;->b(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_82

    invoke-virtual {p0}, Lz5/l0;->d()Ljava/lang/String;

    move-result-object v9

    :cond_82
    iget-object v8, p0, Lz5/e1;->e:Ljava/lang/reflect/Method;

    new-array v10, v5, [Ljava/lang/Object;

    iget-object v11, p0, Lz5/l0;->h:Landroid/content/Context;

    aput-object v11, v10, v2

    aput-object v7, v10, v6

    const/4 v6, 0x2

    aput-object v9, v10, v6

    invoke-virtual {v8, v1, v10}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/lang/String;

    new-instance v7, Lz5/i12;

    invoke-direct {v7, v6}, Lz5/i12;-><init>(Ljava/lang/String;)V

    iget-object v6, v7, Lz5/i12;->a:Ljava/lang/String;

    invoke-static {v6}, Lz5/d0;->b(Ljava/lang/String;)Z

    move-result v6

    if-nez v6, :cond_ac

    iget-object v6, v7, Lz5/i12;->a:Ljava/lang/String;

    const-string v8, "E"

    invoke-virtual {v6, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_c0

    :cond_ac
    add-int/lit8 v3, v3, -0x1

    if-eq v3, v5, :cond_b4

    if-eq v3, v4, :cond_b3

    goto :goto_c0

    :cond_b3
    throw v1

    :cond_b4
    invoke-virtual {p0}, Lz5/l0;->d()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lz5/d0;->b(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_c0

    iput-object v1, v7, Lz5/i12;->a:Ljava/lang/String;

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

    :cond_c3
    invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lz5/i12;

    monitor-exit v0
    :try_end_ca
    .catchall {:try_start_d .. :try_end_ca} :catchall_138

    iget-object v3, p0, Lz5/e1;->d:Lz5/j02;

    monitor-enter v3

    if-eqz v1, :cond_133

    :try_start_cf
    iget-object v0, p0, Lz5/e1;->d:Lz5/j02;

    iget-object v4, v1, Lz5/i12;->a:Ljava/lang/String;

    .line 8
    iget-boolean v5, v0, Lz5/uk1;->t:Z

    if-eqz v5, :cond_dc

    invoke-virtual {v0}, Lz5/uk1;->i()V

    iput-boolean v2, v0, Lz5/uk1;->t:Z

    :cond_dc
    iget-object v0, v0, Lz5/uk1;->s:Lz5/xk1;

    check-cast v0, Lz5/v02;

    invoke-static {v0, v4}, Lz5/v02;->H0(Lz5/v02;Ljava/lang/String;)V

    .line 9
    iget-object v0, p0, Lz5/e1;->d:Lz5/j02;

    iget-wide v4, v1, Lz5/i12;->b:J

    .line 10
    iget-boolean v6, v0, Lz5/uk1;->t:Z

    if-eqz v6, :cond_f0

    invoke-virtual {v0}, Lz5/uk1;->i()V

    iput-boolean v2, v0, Lz5/uk1;->t:Z

    :cond_f0
    iget-object v0, v0, Lz5/uk1;->s:Lz5/xk1;

    check-cast v0, Lz5/v02;

    invoke-static {v0, v4, v5}, Lz5/v02;->B(Lz5/v02;J)V

    .line 11
    iget-object v0, p0, Lz5/e1;->d:Lz5/j02;

    iget-object v4, v1, Lz5/i12;->c:Ljava/lang/String;

    .line 12
    iget-boolean v5, v0, Lz5/uk1;->t:Z

    if-eqz v5, :cond_104

    invoke-virtual {v0}, Lz5/uk1;->i()V

    iput-boolean v2, v0, Lz5/uk1;->t:Z

    :cond_104
    iget-object v0, v0, Lz5/uk1;->s:Lz5/xk1;

    check-cast v0, Lz5/v02;

    invoke-static {v0, v4}, Lz5/v02;->A(Lz5/v02;Ljava/lang/String;)V

    .line 13
    iget-object v0, p0, Lz5/e1;->d:Lz5/j02;

    iget-object v4, v1, Lz5/i12;->d:Ljava/lang/String;

    .line 14
    iget-boolean v5, v0, Lz5/uk1;->t:Z

    if-eqz v5, :cond_118

    invoke-virtual {v0}, Lz5/uk1;->i()V

    iput-boolean v2, v0, Lz5/uk1;->t:Z

    :cond_118
    iget-object v0, v0, Lz5/uk1;->s:Lz5/xk1;

    check-cast v0, Lz5/v02;

    invoke-static {v0, v4}, Lz5/v02;->K(Lz5/v02;Ljava/lang/String;)V

    .line 15
    iget-object v0, p0, Lz5/e1;->d:Lz5/j02;

    iget-object v1, v1, Lz5/i12;->e:Ljava/lang/String;

    .line 16
    iget-boolean v4, v0, Lz5/uk1;->t:Z

    if-eqz v4, :cond_12c

    invoke-virtual {v0}, Lz5/uk1;->i()V

    iput-boolean v2, v0, Lz5/uk1;->t:Z

    :cond_12c
    iget-object v0, v0, Lz5/uk1;->s:Lz5/xk1;

    check-cast v0, Lz5/v02;

    invoke-static {v0, v1}, Lz5/v02;->L(Lz5/v02;Ljava/lang/String;)V

    .line 17
    :cond_133
    monitor-exit v3

    return-void

    :catchall_135
    move-exception v0

    monitor-exit v3
    :try_end_137
    .catchall {:try_start_cf .. :try_end_137} :catchall_135

    throw v0

    :catchall_138
    move-exception v1

    :try_start_139
    monitor-exit v0
    :try_end_13a
    .catchall {:try_start_139 .. :try_end_13a} :catchall_138

    throw v1
.end method

.method public final c()Ljava/lang/String;
    .registers 7

    const/4 v0, 0x0

    :try_start_1
    const-string v1, "X.509"

    invoke-static {v1}, Ljava/security/cert/CertificateFactory;->getInstance(Ljava/lang/String;)Ljava/security/cert/CertificateFactory;

    move-result-object v1

    sget-object v2, Lz5/so;->u1:Lz5/no;

    .line 1
    sget-object v3, Lz5/xk;->d:Lz5/xk;

    iget-object v4, v3, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 2
    invoke-virtual {v4, v2}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    invoke-static {v2}, Lz5/d0;->a(Ljava/lang/String;)[B

    move-result-object v2

    new-instance v4, Ljava/util/ArrayList;

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

    new-instance v5, Ljava/io/ByteArrayInputStream;

    invoke-direct {v5, v2}, Ljava/io/ByteArrayInputStream;-><init>([B)V

    invoke-virtual {v1, v5}, Ljava/security/cert/CertificateFactory;->generateCertificate(Ljava/io/InputStream;)Ljava/security/cert/Certificate;

    move-result-object v2

    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    sget-object v2, Landroid/os/Build;->TYPE:Ljava/lang/String;

    const-string v5, "user"

    invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_4c

    sget-object v2, Lz5/so;->v1:Lz5/no;

    .line 3
    iget-object v3, v3, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 4
    invoke-virtual {v3, v2}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    invoke-static {v2}, Lz5/d0;->a(Ljava/lang/String;)[B

    move-result-object v2

    new-instance v3, Ljava/io/ByteArrayInputStream;

    invoke-direct {v3, v2}, Ljava/io/ByteArrayInputStream;-><init>([B)V

    invoke-virtual {v1, v3}, Ljava/security/cert/CertificateFactory;->generateCertificate(Ljava/io/InputStream;)Ljava/security/cert/Certificate;

    move-result-object v1

    invoke-virtual {v4, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_4c
    iget-object v1, p0, Lz5/l0;->h:Landroid/content/Context;

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

    move-result-object v2

    iget-object v3, p0, Lz5/e1;->a:Lz5/b0;

    .line 5
    iget-object v3, v3, Lz5/b0;->b:Ljava/util/concurrent/ExecutorService;

    .line 6
    invoke-static {v1, v2, v4, v3}, Lz5/h1;->a(Landroid/content/Context;Ljava/lang/String;Ljava/util/List;Ljava/util/concurrent/Executor;)Ljava/lang/String;

    move-result-object v0
    :try_end_5a
    .catch Ljava/security/cert/CertificateEncodingException; {:try_start_1 .. :try_end_5a} :catch_5a
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_1 .. :try_end_5a} :catch_5a
    .catch Ljava/util/concurrent/ExecutionException; {:try_start_1 .. :try_end_5a} :catch_5a
    .catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_5a} :catch_5a
    .catch Ljava/security/cert/CertificateException; {:try_start_1 .. :try_end_5a} :catch_5a
    .catch Ljava/lang/NoClassDefFoundError; {:try_start_1 .. :try_end_5a} :catch_5a

    :catch_5a
    return-object v0
.end method

.method public final d()Ljava/lang/String;
    .registers 3

    :try_start_0
    iget-object v0, p0, Lz5/e1;->a:Lz5/b0;

    .line 1
    iget-object v0, v0, Lz5/b0;->k:Ljava/util/concurrent/Future;

    if-eqz v0, :cond_9

    .line 2
    invoke-interface {v0}, Ljava/util/concurrent/Future;->get()Ljava/lang/Object;

    :cond_9
    iget-object v0, p0, Lz5/e1;->a:Lz5/b0;

    .line 3
    iget-object v0, v0, Lz5/b0;->j:Lz5/v02;

    if-eqz v0, :cond_1a

    .line 4
    invoke-virtual {v0}, Lz5/v02;->W()Z

    move-result v1

    if-eqz v1, :cond_1a

    invoke-virtual {v0}, Lz5/v02;->k0()Ljava/lang/String;

    move-result-object v0
    :try_end_19
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_19} :catch_1a
    .catch Ljava/util/concurrent/ExecutionException; {:try_start_0 .. :try_end_19} :catch_1a

    return-object v0

    :catch_1a
    :cond_1a
    const/4 v0, 0x0

    return-object v0
.end method
