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


# static fields
.field public static final g:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/Class<",
            "*>;>;"
        }
    .end annotation
.end field


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

.field public final b:Lz5/x;

.field public final c:Lz5/t71;

.field public final d:Lz5/q71;

.field public e:Lcom/google/android/gms/internal/ads/v3;

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


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

    new-instance v0, Ljava/util/HashMap;

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

    sput-object v0, Lz5/c91;->g:Ljava/util/HashMap;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Lz5/x;Lz5/t71;Lz5/q71;)V
    .registers 6

    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, Lz5/c91;->f:Ljava/lang/Object;

    iput-object p1, p0, Lz5/c91;->a:Landroid/content/Context;

    iput-object p2, p0, Lz5/c91;->b:Lz5/x;

    iput-object p3, p0, Lz5/c91;->c:Lz5/t71;

    iput-object p4, p0, Lz5/c91;->d:Lz5/q71;

    return-void
.end method


# virtual methods
.method public final a(Lz5/x;)Z
    .registers 14

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    const/4 v2, 0x0

    :try_start_5
    invoke-virtual {p0, p1}, Lz5/c91;->c(Lz5/x;)Ljava/lang/Class;

    move-result-object v3
    :try_end_9
    .catch Lz5/b91; {:try_start_5 .. :try_end_9} :catch_c2
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_9} :catch_bc

    const/4 v4, 0x6

    :try_start_a
    new-array v5, v4, [Ljava/lang/Class;

    const-class v6, Landroid/content/Context;

    aput-object v6, v5, v2

    const-class v6, Ljava/lang/String;

    const/4 v7, 0x1

    aput-object v6, v5, v7

    const-class v6, [B

    const/4 v8, 0x2

    aput-object v6, v5, v8

    const-class v6, Ljava/lang/Object;

    const/4 v9, 0x3

    aput-object v6, v5, v9

    const-class v6, Landroid/os/Bundle;

    const/4 v10, 0x4

    aput-object v6, v5, v10

    sget-object v6, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;

    const/4 v11, 0x5

    aput-object v6, v5, v11

    invoke-virtual {v3, v5}, Ljava/lang/Class;->getDeclaredConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;

    move-result-object v3

    new-array v4, v4, [Ljava/lang/Object;

    iget-object v5, p0, Lz5/c91;->a:Landroid/content/Context;

    aput-object v5, v4, v2

    const-string v5, "msa-r"

    aput-object v5, v4, v7

    invoke-virtual {p1}, Lz5/x;->d()[B

    move-result-object v5

    aput-object v5, v4, v8

    const/4 v5, 0x0

    aput-object v5, v4, v9

    new-instance v5, Landroid/os/Bundle;

    invoke-direct {v5}, Landroid/os/Bundle;-><init>()V

    aput-object v5, v4, v10

    invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v4, v11

    invoke-virtual {v3, v4}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3
    :try_end_51
    .catch Ljava/lang/Exception; {:try_start_a .. :try_end_51} :catch_b3

    :try_start_51
    new-instance v4, Lcom/google/android/gms/internal/ads/v3;

    iget-object v5, p0, Lz5/c91;->b:Lz5/x;

    iget-object v6, p0, Lz5/c91;->c:Lz5/t71;

    invoke-direct {v4, v3, p1, v5, v6}, Lcom/google/android/gms/internal/ads/v3;-><init>(Ljava/lang/Object;Lz5/x;Lz5/x;Lz5/t71;)V

    invoke-virtual {v4}, Lcom/google/android/gms/internal/ads/v3;->p()Z

    move-result p1

    if-eqz p1, :cond_a9

    invoke-virtual {v4}, Lcom/google/android/gms/internal/ads/v3;->s()I

    move-result p1

    if-nez p1, :cond_8e

    iget-object p1, p0, Lz5/c91;->f:Ljava/lang/Object;

    monitor-enter p1
    :try_end_69
    .catch Lz5/b91; {:try_start_51 .. :try_end_69} :catch_c2
    .catch Ljava/lang/Exception; {:try_start_51 .. :try_end_69} :catch_bc

    :try_start_69
    iget-object v3, p0, Lz5/c91;->e:Lcom/google/android/gms/internal/ads/v3;
    :try_end_6b
    .catchall {:try_start_69 .. :try_end_6b} :catchall_8b

    if-eqz v3, :cond_7b

    :try_start_6d
    invoke-virtual {v3}, Lcom/google/android/gms/internal/ads/v3;->r()V
    :try_end_70
    .catch Lz5/b91; {:try_start_6d .. :try_end_70} :catch_71
    .catchall {:try_start_6d .. :try_end_70} :catchall_8b

    goto :goto_7b

    :catch_71
    move-exception v3

    :try_start_72
    iget-object v5, p0, Lz5/c91;->c:Lz5/t71;

    .line 1
    iget v6, v3, Lz5/b91;->r:I

    const-wide/16 v8, -0x1

    .line 2
    invoke-virtual {v5, v6, v8, v9, v3}, Lz5/t71;->b(IJLjava/lang/Exception;)Ln6/i;

    :cond_7b
    :goto_7b
    iput-object v4, p0, Lz5/c91;->e:Lcom/google/android/gms/internal/ads/v3;

    monitor-exit p1
    :try_end_7e
    .catchall {:try_start_72 .. :try_end_7e} :catchall_8b

    :try_start_7e
    iget-object p1, p0, Lz5/c91;->c:Lz5/t71;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    sub-long/2addr v3, v0

    const/16 v5, 0xbb8

    invoke-virtual {p1, v5, v3, v4}, Lz5/t71;->a(IJ)Ln6/i;
    :try_end_8a
    .catch Lz5/b91; {:try_start_7e .. :try_end_8a} :catch_c2
    .catch Ljava/lang/Exception; {:try_start_7e .. :try_end_8a} :catch_bc

    return v7

    :catchall_8b
    move-exception v3

    :try_start_8c
    monitor-exit p1
    :try_end_8d
    .catchall {:try_start_8c .. :try_end_8d} :catchall_8b

    :try_start_8d
    throw v3

    :cond_8e
    new-instance v3, Lz5/b91;

    new-instance v4, Ljava/lang/StringBuilder;

    const/16 v5, 0xf

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(I)V

    const-string v5, "ci: "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const/16 p1, 0xfa1

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, p1, v4}, Lz5/b91;-><init>(ILjava/lang/String;)V

    throw v3

    :cond_a9
    new-instance p1, Lz5/b91;

    const/16 v3, 0xfa0

    const-string v4, "init failed"

    invoke-direct {p1, v3, v4}, Lz5/b91;-><init>(ILjava/lang/String;)V

    throw p1

    :catch_b3
    move-exception p1

    new-instance v3, Lz5/b91;

    const/16 v4, 0x7d4

    invoke-direct {v3, v4, p1}, Lz5/b91;-><init>(ILjava/lang/Throwable;)V

    throw v3
    :try_end_bc
    .catch Lz5/b91; {:try_start_8d .. :try_end_bc} :catch_c2
    .catch Ljava/lang/Exception; {:try_start_8d .. :try_end_bc} :catch_bc

    :catch_bc
    move-exception p1

    iget-object v3, p0, Lz5/c91;->c:Lz5/t71;

    const/16 v4, 0xfaa

    goto :goto_c7

    :catch_c2
    move-exception p1

    iget-object v3, p0, Lz5/c91;->c:Lz5/t71;

    .line 3
    iget v4, p1, Lz5/b91;->r:I

    .line 4
    :goto_c7
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v5

    sub-long/2addr v5, v0

    invoke-virtual {v3, v4, v5, v6, p1}, Lz5/t71;->b(IJLjava/lang/Exception;)Ln6/i;

    return v2
.end method

.method public final b()Lcom/google/android/gms/internal/ads/v3;
    .registers 3

    iget-object v0, p0, Lz5/c91;->f:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lz5/c91;->e:Lcom/google/android/gms/internal/ads/v3;

    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 declared-synchronized c(Lz5/x;)Ljava/lang/Class;
    .registers 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lz5/x;",
            ")",
            "Ljava/lang/Class<",
            "*>;"
        }
    .end annotation

    monitor-enter p0

    .line 1
    :try_start_1
    iget-object v0, p1, Lz5/x;->s:Ljava/lang/Object;

    check-cast v0, Lz5/l1;

    .line 2
    invoke-virtual {v0}, Lz5/l1;->w()Ljava/lang/String;

    move-result-object v0

    sget-object v1, Lz5/c91;->g:Ljava/util/HashMap;

    invoke-virtual {v1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Class;
    :try_end_11
    .catchall {:try_start_1 .. :try_end_11} :catchall_6f

    if-eqz v2, :cond_15

    monitor-exit p0

    return-object v2

    :cond_15
    const/16 v2, 0x7ea

    :try_start_17
    iget-object v3, p0, Lz5/c91;->d:Lz5/q71;

    .line 3
    iget-object v4, p1, Lz5/x;->t:Ljava/lang/Object;

    check-cast v4, Ljava/io/File;

    .line 4
    invoke-virtual {v3, v4}, Lz5/q71;->a(Ljava/io/File;)Z

    move-result v3
    :try_end_21
    .catch Ljava/security/GeneralSecurityException; {:try_start_17 .. :try_end_21} :catch_68
    .catchall {:try_start_17 .. :try_end_21} :catchall_6f

    if-eqz v3, :cond_60

    .line 5
    :try_start_23
    iget-object v2, p1, Lz5/x;->u:Ljava/lang/Object;

    check-cast v2, Ljava/io/File;

    .line 6
    invoke-virtual {v2}, Ljava/io/File;->exists()Z

    move-result v3

    if-nez v3, :cond_30

    invoke-virtual {v2}, Ljava/io/File;->mkdirs()Z

    :cond_30
    new-instance v3, Ldalvik/system/DexClassLoader;

    .line 7
    iget-object p1, p1, Lz5/x;->t:Ljava/lang/Object;

    check-cast p1, Ljava/io/File;

    .line 8
    invoke-virtual {p1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v2

    const/4 v4, 0x0

    iget-object v5, p0, Lz5/c91;->a:Landroid/content/Context;

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

    move-result-object v5

    invoke-direct {v3, p1, v2, v4, v5}, Ldalvik/system/DexClassLoader;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;)V

    const-string p1, "com.google.ccc.abuse.droidguard.DroidGuard"

    invoke-virtual {v3, p1}, Ldalvik/system/DexClassLoader;->loadClass(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object p1
    :try_end_4e
    .catch Ljava/lang/ClassNotFoundException; {:try_start_23 .. :try_end_4e} :catch_57
    .catch Ljava/lang/SecurityException; {:try_start_23 .. :try_end_4e} :catch_55
    .catch Ljava/lang/IllegalArgumentException; {:try_start_23 .. :try_end_4e} :catch_53
    .catchall {:try_start_23 .. :try_end_4e} :catchall_6f

    :try_start_4e
    invoke-virtual {v1, v0, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_51
    .catchall {:try_start_4e .. :try_end_51} :catchall_6f

    monitor-exit p0

    return-object p1

    :catch_53
    move-exception p1

    goto :goto_58

    :catch_55
    move-exception p1

    goto :goto_58

    :catch_57
    move-exception p1

    :goto_58
    :try_start_58
    new-instance v0, Lz5/b91;

    const/16 v1, 0x7d8

    invoke-direct {v0, v1, p1}, Lz5/b91;-><init>(ILjava/lang/Throwable;)V

    throw v0
    :try_end_60
    .catchall {:try_start_58 .. :try_end_60} :catchall_6f

    :cond_60
    :try_start_60
    new-instance p1, Lz5/b91;

    const-string v0, "VM did not pass signature verification"

    invoke-direct {p1, v2, v0}, Lz5/b91;-><init>(ILjava/lang/String;)V

    throw p1
    :try_end_68
    .catch Ljava/security/GeneralSecurityException; {:try_start_60 .. :try_end_68} :catch_68
    .catchall {:try_start_60 .. :try_end_68} :catchall_6f

    :catch_68
    move-exception p1

    :try_start_69
    new-instance v0, Lz5/b91;

    invoke-direct {v0, v2, p1}, Lz5/b91;-><init>(ILjava/lang/Throwable;)V

    throw v0
    :try_end_6f
    .catchall {:try_start_69 .. :try_end_6f} :catchall_6f

    :catchall_6f
    move-exception p1

    monitor-exit p0

    throw p1
.end method
