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


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

.field public b:Ljava/util/concurrent/ExecutorService;

.field public c:Ldalvik/system/DexClassLoader;

.field public d:Lz5/q;

.field public e:[B

.field public volatile f:Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;

.field public volatile g:Z

.field public h:Ljava/util/concurrent/Future;

.field public final i:Z

.field public volatile j:Lz5/v02;

.field public k:Ljava/util/concurrent/Future;

.field public l:Lz5/g;

.field public m:Z

.field public n:Z

.field public final o:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Landroid/util/Pair<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;",
            "Lz5/d1;",
            ">;"
        }
    .end annotation
.end field

.field public p:Z

.field public q:Lz5/w;


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

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

    const/4 v0, 0x0

    iput-object v0, p0, Lz5/b0;->f:Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;

    const/4 v1, 0x0

    iput-boolean v1, p0, Lz5/b0;->g:Z

    iput-object v0, p0, Lz5/b0;->h:Ljava/util/concurrent/Future;

    iput-object v0, p0, Lz5/b0;->j:Lz5/v02;

    iput-object v0, p0, Lz5/b0;->k:Ljava/util/concurrent/Future;

    iput-boolean v1, p0, Lz5/b0;->m:Z

    iput-boolean v1, p0, Lz5/b0;->n:Z

    iput-boolean v1, p0, Lz5/b0;->p:Z

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

    move-result-object v0

    if-eqz v0, :cond_1c

    const/4 v1, 0x1

    :cond_1c
    iput-boolean v1, p0, Lz5/b0;->i:Z

    if-eqz v0, :cond_21

    move-object p1, v0

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

    new-instance v0, Ljava/util/HashMap;

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

    iput-object v0, p0, Lz5/b0;->o:Ljava/util/Map;

    iget-object v0, p0, Lz5/b0;->q:Lz5/w;

    if-eqz v0, :cond_2f

    return-void

    :cond_2f
    new-instance v0, Lz5/w;

    invoke-direct {v0, p1}, Lz5/w;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lz5/b0;->q:Lz5/w;

    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Z)Lz5/b0;
    .registers 13

    const-string p1, "%s/%s.dex"

    const-string p2, "1629828815138"

    new-instance v0, Lz5/b0;

    invoke-direct {v0, p0}, Lz5/b0;-><init>(Landroid/content/Context;)V

    :try_start_9
    new-instance p0, Lz5/z;

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

    invoke-static {p0}, Ljava/util/concurrent/Executors;->newCachedThreadPool(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;

    move-result-object p0

    iput-object p0, v0, Lz5/b0;->b:Ljava/util/concurrent/ExecutorService;

    iput-boolean p3, v0, Lz5/b0;->g:Z

    const/4 p0, 0x0

    if-eqz p3, :cond_26

    iget-object p3, v0, Lz5/b0;->b:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lz5/a0;

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

    invoke-interface {p3, v1}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;

    move-result-object p3

    iput-object p3, v0, Lz5/b0;->h:Ljava/util/concurrent/Future;

    :cond_26
    iget-object p3, v0, Lz5/b0;->b:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lz5/a0;

    const/4 v2, 0x1

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

    invoke-interface {p3, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
    :try_end_31
    .catch Lz5/u; {:try_start_9 .. :try_end_31} :catch_17e

    .line 1
    :try_start_31
    sget-object p3, Lm5/f;->b:Lm5/f;

    .line 2
    iget-object v1, v0, Lz5/b0;->a:Landroid/content/Context;

    invoke-virtual {p3, v1}, Lm5/f;->a(Landroid/content/Context;)I

    move-result v1

    if-lez v1, :cond_3d

    move v1, v2

    goto :goto_3e

    :cond_3d
    move v1, p0

    :goto_3e
    iput-boolean v1, v0, Lz5/b0;->m:Z

    iget-object v1, v0, Lz5/b0;->a:Landroid/content/Context;

    .line 3
    sget v3, Lm5/f;->a:I

    invoke-virtual {p3, v1, v3}, Lm5/f;->c(Landroid/content/Context;I)I

    move-result p3

    if-nez p3, :cond_4c

    move p3, v2

    goto :goto_4d

    :cond_4c
    move p3, p0

    .line 4
    :goto_4d
    iput-boolean p3, v0, Lz5/b0;->n:Z
    :try_end_4f
    .catchall {:try_start_31 .. :try_end_4f} :catchall_4f

    .line 5
    :catchall_4f
    :try_start_4f
    iget-boolean p3, v0, Lz5/b0;->n:Z

    if-eqz p3, :cond_60

    iget-object p3, v0, Lz5/b0;->b:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lo5/o;

    invoke-direct {v1, v0, p0}, Lo5/o;-><init>(Lz5/b0;I)V

    invoke-interface {p3, v1}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;

    move-result-object p3

    iput-object p3, v0, Lz5/b0;->k:Ljava/util/concurrent/Future;

    .line 6
    :cond_60
    sget-object p3, Lz5/d0;->a:[C

    .line 7
    invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;

    move-result-object p3

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    if-ne p3, v1, :cond_6e

    move p3, v2

    goto :goto_6f

    :cond_6e
    move p3, p0

    :goto_6f
    if-eqz p3, :cond_8c

    .line 8
    sget-object p3, Lz5/so;->J1:Lz5/no;

    .line 9
    sget-object v1, Lz5/xk;->d:Lz5/xk;

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

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

    move-result-object p3

    check-cast p3, Ljava/lang/Boolean;

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

    move-result p3

    if-nez p3, :cond_84

    goto :goto_8c

    :cond_84
    new-instance p0, Ljava/lang/IllegalStateException;

    const-string p1, "Task Context initialization must not be called from the UI thread."

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

    throw p0

    :cond_8c
    :goto_8c
    new-instance p3, Lz5/q;

    invoke-direct {p3}, Lz5/q;-><init>()V

    iput-object p3, v0, Lz5/b0;->d:Lz5/q;
    :try_end_93
    .catch Lz5/u; {:try_start_4f .. :try_end_93} :catch_17e

    :try_start_93
    const-string p3, "NYpdto3gBV8HiZtFXi3NN2dSfPyfe2T+8tUnAUjRH8A="
    :try_end_95
    .catch Lz5/p; {:try_start_93 .. :try_end_95} :catch_177
    .catch Lz5/u; {:try_start_93 .. :try_end_95} :catch_17e

    :try_start_95
    invoke-static {p3, p0}, Lcom/google/android/gms/internal/ads/d;->i(Ljava/lang/String;Z)[B

    move-result-object p3

    array-length v1, p3

    const/16 v3, 0x20

    if-ne v1, v3, :cond_16a

    const/4 v1, 0x4

    const/16 v3, 0x10

    invoke-static {p3, v1, v3}, Ljava/nio/ByteBuffer;->wrap([BII)Ljava/nio/ByteBuffer;

    move-result-object p3

    new-array v1, v3, [B

    invoke-virtual {p3, v1}, Ljava/nio/ByteBuffer;->get([B)Ljava/nio/ByteBuffer;

    move p3, p0

    :goto_ab
    if-ge p3, v3, :cond_b7

    aget-byte v4, v1, p3

    xor-int/lit8 v4, v4, 0x44

    int-to-byte v4, v4

    aput-byte v4, v1, p3
    :try_end_b4
    .catch Ljava/lang/IllegalArgumentException; {:try_start_95 .. :try_end_b4} :catch_170
    .catch Lz5/p; {:try_start_95 .. :try_end_b4} :catch_177
    .catch Lz5/u; {:try_start_95 .. :try_end_b4} :catch_17e

    add-int/lit8 p3, p3, 0x1

    goto :goto_ab

    :cond_b7
    :try_start_b7
    iput-object v1, v0, Lz5/b0;->e:[B
    :try_end_b9
    .catch Lz5/p; {:try_start_b7 .. :try_end_b9} :catch_177
    .catch Lz5/u; {:try_start_b7 .. :try_end_b9} :catch_17e

    :try_start_b9
    iget-object p3, v0, Lz5/b0;->a:Landroid/content/Context;

    invoke-virtual {p3}, Landroid/content/Context;->getCacheDir()Ljava/io/File;

    move-result-object p3

    if-nez p3, :cond_d2

    iget-object p3, v0, Lz5/b0;->a:Landroid/content/Context;

    const-string v1, "dex"

    invoke-virtual {p3, v1, p0}, Landroid/content/Context;->getDir(Ljava/lang/String;I)Ljava/io/File;

    move-result-object p3

    if-eqz p3, :cond_cc

    goto :goto_d2

    :cond_cc
    new-instance p0, Lz5/u;

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

    throw p0

    :cond_d2
    :goto_d2
    const-string v1, "[encoded data, 12504 characters]"

    new-instance v3, Ljava/io/File;

    const/4 v4, 0x2

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

    aput-object p3, v5, p0

    aput-object p2, v5, v2

    const-string v6, "%s/%s.jar"

    invoke-static {v6, v5}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v3, v5}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3}, Ljava/io/File;->exists()Z

    move-result v5

    if-nez v5, :cond_103

    iget-object v5, v0, Lz5/b0;->d:Lz5/q;

    iget-object v6, v0, Lz5/b0;->e:[B

    invoke-virtual {v5, v6, v1}, Lz5/q;->b([BLjava/lang/String;)[B

    move-result-object v1

    invoke-virtual {v3}, Ljava/io/File;->createNewFile()Z

    new-instance v5, Ljava/io/FileOutputStream;

    invoke-direct {v5, v3}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V

    array-length v6, v1

    invoke-virtual {v5, v1, p0, v6}, Ljava/io/FileOutputStream;->write([BII)V

    invoke-virtual {v5}, Ljava/io/FileOutputStream;->close()V

    :cond_103
    invoke-virtual {v0, p3, p2}, Lz5/b0;->f(Ljava/io/File;Ljava/lang/String;)Z
    :try_end_106
    .catch Ljava/io/FileNotFoundException; {:try_start_b9 .. :try_end_106} :catch_163
    .catch Ljava/io/IOException; {:try_start_b9 .. :try_end_106} :catch_15c
    .catch Lz5/p; {:try_start_b9 .. :try_end_106} :catch_155
    .catch Ljava/lang/NullPointerException; {:try_start_b9 .. :try_end_106} :catch_14e
    .catch Lz5/u; {:try_start_b9 .. :try_end_106} :catch_17e

    :try_start_106
    new-instance v1, Ldalvik/system/DexClassLoader;

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

    move-result-object v5

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

    move-result-object v6

    const/4 v7, 0x0

    iget-object v8, v0, Lz5/b0;->a:Landroid/content/Context;

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

    move-result-object v8

    invoke-direct {v1, v5, v6, v7, v8}, Ldalvik/system/DexClassLoader;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;)V

    iput-object v1, v0, Lz5/b0;->c:Ldalvik/system/DexClassLoader;
    :try_end_11c
    .catchall {:try_start_106 .. :try_end_11c} :catchall_139

    :try_start_11c
    invoke-static {v3}, Lz5/b0;->g(Ljava/io/File;)V

    invoke-virtual {v0, p3, p2}, Lz5/b0;->e(Ljava/io/File;Ljava/lang/String;)V

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

    aput-object p3, v1, p0

    aput-object p2, v1, v2

    invoke-static {p1, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p0

    invoke-static {p0}, Lz5/b0;->h(Ljava/lang/String;)V
    :try_end_12f
    .catch Ljava/io/FileNotFoundException; {:try_start_11c .. :try_end_12f} :catch_163
    .catch Ljava/io/IOException; {:try_start_11c .. :try_end_12f} :catch_15c
    .catch Lz5/p; {:try_start_11c .. :try_end_12f} :catch_155
    .catch Ljava/lang/NullPointerException; {:try_start_11c .. :try_end_12f} :catch_14e
    .catch Lz5/u; {:try_start_11c .. :try_end_12f} :catch_17e

    :try_start_12f
    new-instance p0, Lz5/g;

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

    iput-object p0, v0, Lz5/b0;->l:Lz5/g;

    iput-boolean v2, v0, Lz5/b0;->p:Z
    :try_end_138
    .catch Lz5/u; {:try_start_12f .. :try_end_138} :catch_17e

    goto :goto_17e

    :catchall_139
    move-exception v1

    :try_start_13a
    invoke-static {v3}, Lz5/b0;->g(Ljava/io/File;)V

    invoke-virtual {v0, p3, p2}, Lz5/b0;->e(Ljava/io/File;Ljava/lang/String;)V

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

    aput-object p3, v3, p0

    aput-object p2, v3, v2

    invoke-static {p1, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p0

    invoke-static {p0}, Lz5/b0;->h(Ljava/lang/String;)V

    throw v1
    :try_end_14e
    .catch Ljava/io/FileNotFoundException; {:try_start_13a .. :try_end_14e} :catch_163
    .catch Ljava/io/IOException; {:try_start_13a .. :try_end_14e} :catch_15c
    .catch Lz5/p; {:try_start_13a .. :try_end_14e} :catch_155
    .catch Ljava/lang/NullPointerException; {:try_start_13a .. :try_end_14e} :catch_14e
    .catch Lz5/u; {:try_start_13a .. :try_end_14e} :catch_17e

    :catch_14e
    move-exception p0

    :try_start_14f
    new-instance p1, Lz5/u;

    invoke-direct {p1, p0}, Lz5/u;-><init>(Ljava/lang/Throwable;)V

    throw p1

    :catch_155
    move-exception p0

    new-instance p1, Lz5/u;

    invoke-direct {p1, p0}, Lz5/u;-><init>(Ljava/lang/Throwable;)V

    throw p1

    :catch_15c
    move-exception p0

    new-instance p1, Lz5/u;

    invoke-direct {p1, p0}, Lz5/u;-><init>(Ljava/lang/Throwable;)V

    throw p1

    :catch_163
    move-exception p0

    new-instance p1, Lz5/u;

    invoke-direct {p1, p0}, Lz5/u;-><init>(Ljava/lang/Throwable;)V

    throw p1
    :try_end_16a
    .catch Lz5/u; {:try_start_14f .. :try_end_16a} :catch_17e

    :cond_16a
    :try_start_16a
    new-instance p0, Lz5/p;

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

    throw p0
    :try_end_170
    .catch Ljava/lang/IllegalArgumentException; {:try_start_16a .. :try_end_170} :catch_170
    .catch Lz5/p; {:try_start_16a .. :try_end_170} :catch_177
    .catch Lz5/u; {:try_start_16a .. :try_end_170} :catch_17e

    :catch_170
    move-exception p0

    :try_start_171
    new-instance p1, Lz5/p;

    invoke-direct {p1, p0}, Lz5/p;-><init>(Ljava/lang/Throwable;)V

    throw p1
    :try_end_177
    .catch Lz5/p; {:try_start_171 .. :try_end_177} :catch_177
    .catch Lz5/u; {:try_start_171 .. :try_end_177} :catch_17e

    :catch_177
    move-exception p0

    :try_start_178
    new-instance p1, Lz5/u;

    invoke-direct {p1, p0}, Lz5/u;-><init>(Ljava/lang/Throwable;)V

    throw p1
    :try_end_17e
    .catch Lz5/u; {:try_start_178 .. :try_end_17e} :catch_17e

    :catch_17e
    :goto_17e
    return-object v0
.end method

.method public static final g(Ljava/io/File;)V
    .registers 4

    invoke-virtual {p0}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_1c

    const-string v0, "b0"

    const/4 v1, 0x1

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

    const/4 v2, 0x0

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

    move-result-object p0

    aput-object p0, v1, v2

    const-string p0, "File %s not found. No need for deletion"

    invoke-static {p0, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p0

    invoke-static {v0, p0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    return-void

    :cond_1c
    invoke-virtual {p0}, Ljava/io/File;->delete()Z

    return-void
.end method

.method public static final h(Ljava/lang/String;)V
    .registers 2

    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {v0}, Lz5/b0;->g(Ljava/io/File;)V

    return-void
.end method


# virtual methods
.method public final varargs b(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Class;)Z
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "[",
            "Ljava/lang/Class<",
            "*>;)Z"
        }
    .end annotation

    iget-object v0, p0, Lz5/b0;->o:Ljava/util/Map;

    new-instance v1, Landroid/util/Pair;

    invoke-direct {v1, p1, p2}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    invoke-interface {v0, v1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1e

    iget-object v0, p0, Lz5/b0;->o:Ljava/util/Map;

    new-instance v1, Landroid/util/Pair;

    invoke-direct {v1, p1, p2}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    new-instance v2, Lz5/d1;

    invoke-direct {v2, p0, p1, p2, p3}, Lz5/d1;-><init>(Lz5/b0;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Class;)V

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const/4 p1, 0x1

    return p1

    :cond_1e
    const/4 p1, 0x0

    return p1
.end method

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

    iget-object v0, p0, Lz5/b0;->o:Ljava/util/Map;

    new-instance v1, Landroid/util/Pair;

    invoke-direct {v1, p1, p2}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

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

    move-result-object p1

    check-cast p1, Lz5/d1;

    const/4 p2, 0x0

    if-nez p1, :cond_11

    return-object p2

    .line 1
    :cond_11
    iget-object v0, p1, Lz5/d1;->d:Ljava/lang/reflect/Method;

    if-eqz v0, :cond_18

    iget-object p2, p1, Lz5/d1;->d:Ljava/lang/reflect/Method;

    goto :goto_27

    :cond_18
    :try_start_18
    iget-object v0, p1, Lz5/d1;->f:Ljava/util/concurrent/CountDownLatch;

    const-wide/16 v1, 0x2

    sget-object v3, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-virtual {v0, v1, v2, v3}, Ljava/util/concurrent/CountDownLatch;->await(JLjava/util/concurrent/TimeUnit;)Z

    move-result v0

    if-nez v0, :cond_25

    goto :goto_27

    :cond_25
    iget-object p2, p1, Lz5/d1;->d:Ljava/lang/reflect/Method;
    :try_end_27
    .catch Ljava/lang/InterruptedException; {:try_start_18 .. :try_end_27} :catch_27

    :catch_27
    :goto_27
    return-object p2
.end method

.method public final d()I
    .registers 2

    iget-object v0, p0, Lz5/b0;->l:Lz5/g;

    if-eqz v0, :cond_18

    sget-object v0, Lz5/g;->c:Landroid/os/ConditionVariable;

    .line 1
    :try_start_6
    invoke-static {}, Ljava/util/concurrent/ThreadLocalRandom;->current()Ljava/util/concurrent/ThreadLocalRandom;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/concurrent/ThreadLocalRandom;->nextInt()I

    move-result v0
    :try_end_e
    .catch Ljava/lang/RuntimeException; {:try_start_6 .. :try_end_e} :catch_f

    goto :goto_17

    :catch_f
    invoke-static {}, Lz5/g;->b()Ljava/util/Random;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/Random;->nextInt()I

    move-result v0

    :goto_17
    return v0

    :cond_18
    const/high16 v0, -0x80000000

    return v0
.end method

.method public final e(Ljava/io/File;Ljava/lang/String;)V
    .registers 13

    const-string p2, "test"

    new-instance v0, Ljava/io/File;

    const/4 v1, 0x2

    new-array v2, v1, [Ljava/lang/Object;

    const/4 v3, 0x0

    aput-object p1, v2, v3

    const/4 v4, 0x1

    const-string v5, "1629828815138"

    aput-object v5, v2, v4

    const-string v6, "%s/%s.tmp"

    invoke-static {v6, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_1f

    return-void

    :cond_1f
    new-instance v2, Ljava/io/File;

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

    aput-object p1, v1, v3

    aput-object v5, v1, v4

    const-string p1, "%s/%s.dex"

    invoke-static {p1, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-direct {v2, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

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

    move-result p1

    if-nez p1, :cond_37

    return-void

    :cond_37
    invoke-virtual {v2}, Ljava/io/File;->length()J

    move-result-wide v6

    const-wide/16 v8, 0x0

    cmp-long p1, v6, v8

    if-gtz p1, :cond_42

    return-void

    :cond_42
    long-to-int p1, v6

    new-array p1, p1, [B

    const/4 v1, 0x0

    :try_start_46
    new-instance v4, Ljava/io/FileInputStream;

    invoke-direct {v4, v2}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
    :try_end_4b
    .catch Ljava/io/IOException; {:try_start_46 .. :try_end_4b} :catch_e2
    .catch Ljava/security/NoSuchAlgorithmException; {:try_start_46 .. :try_end_4b} :catch_e2
    .catch Lz5/p; {:try_start_46 .. :try_end_4b} :catch_e2
    .catchall {:try_start_46 .. :try_end_4b} :catchall_d1

    :try_start_4b
    invoke-virtual {v4, p1}, Ljava/io/FileInputStream;->read([B)I

    move-result v6
    :try_end_4f
    .catch Ljava/io/IOException; {:try_start_4b .. :try_end_4f} :catch_ce
    .catch Ljava/security/NoSuchAlgorithmException; {:try_start_4b .. :try_end_4f} :catch_ce
    .catch Lz5/p; {:try_start_4b .. :try_end_4f} :catch_ce
    .catchall {:try_start_4b .. :try_end_4f} :catchall_c9

    if-gtz v6, :cond_58

    :try_start_51
    invoke-virtual {v4}, Ljava/io/FileInputStream;->close()V
    :try_end_54
    .catch Ljava/io/IOException; {:try_start_51 .. :try_end_54} :catch_54

    :catch_54
    invoke-static {v2}, Lz5/b0;->g(Ljava/io/File;)V

    return-void

    :cond_58
    :try_start_58
    sget-object v6, Ljava/lang/System;->out:Ljava/io/PrintStream;

    invoke-virtual {v6, p2}, Ljava/io/PrintStream;->print(Ljava/lang/String;)V

    sget-object v6, Ljava/lang/System;->out:Ljava/io/PrintStream;

    invoke-virtual {v6, p2}, Ljava/io/PrintStream;->print(Ljava/lang/String;)V

    sget-object v6, Ljava/lang/System;->out:Ljava/io/PrintStream;

    invoke-virtual {v6, p2}, Ljava/io/PrintStream;->print(Ljava/lang/String;)V

    invoke-static {}, Lz5/y02;->B()Lz5/x02;

    move-result-object p2

    sget-object v6, Landroid/os/Build$VERSION;->SDK:Ljava/lang/String;

    invoke-virtual {v6}, Ljava/lang/String;->getBytes()[B

    move-result-object v6

    invoke-static {v6}, Lz5/zj1;->l0([B)Lz5/zj1;

    move-result-object v6

    invoke-virtual {p2, v6}, Lz5/x02;->t(Lz5/zj1;)Lz5/x02;

    invoke-virtual {v5}, Ljava/lang/String;->getBytes()[B

    move-result-object v5

    invoke-static {v5}, Lz5/zj1;->l0([B)Lz5/zj1;

    move-result-object v5

    invoke-virtual {p2, v5}, Lz5/x02;->s(Lz5/zj1;)Lz5/x02;

    iget-object v5, p0, Lz5/b0;->d:Lz5/q;

    iget-object v6, p0, Lz5/b0;->e:[B

    invoke-virtual {v5, v6, p1}, Lz5/q;->a([B[B)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/String;->getBytes()[B

    move-result-object p1

    invoke-static {p1}, Lz5/zj1;->l0([B)Lz5/zj1;

    move-result-object v5

    invoke-virtual {p2, v5}, Lz5/x02;->q(Lz5/zj1;)Lz5/x02;

    invoke-static {p1}, Lz5/k12;->c([B)[B

    move-result-object p1

    invoke-static {p1}, Lz5/zj1;->l0([B)Lz5/zj1;

    move-result-object p1

    invoke-virtual {p2, p1}, Lz5/x02;->r(Lz5/zj1;)Lz5/x02;

    invoke-virtual {v0}, Ljava/io/File;->createNewFile()Z

    new-instance p1, Ljava/io/FileOutputStream;

    invoke-direct {p1, v0}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
    :try_end_a9
    .catch Ljava/io/IOException; {:try_start_58 .. :try_end_a9} :catch_ce
    .catch Ljava/security/NoSuchAlgorithmException; {:try_start_58 .. :try_end_a9} :catch_ce
    .catch Lz5/p; {:try_start_58 .. :try_end_a9} :catch_ce
    .catchall {:try_start_58 .. :try_end_a9} :catchall_c9

    :try_start_a9
    invoke-virtual {p2}, Lz5/uk1;->m()Lz5/xk1;

    move-result-object p2

    check-cast p2, Lz5/y02;

    invoke-virtual {p2}, Lz5/pj1;->j()[B

    move-result-object p2

    array-length v0, p2

    invoke-virtual {p1, p2, v3, v0}, Ljava/io/FileOutputStream;->write([BII)V

    invoke-virtual {p1}, Ljava/io/FileOutputStream;->close()V
    :try_end_ba
    .catch Ljava/io/IOException; {:try_start_a9 .. :try_end_ba} :catch_c7
    .catch Ljava/security/NoSuchAlgorithmException; {:try_start_a9 .. :try_end_ba} :catch_c7
    .catch Lz5/p; {:try_start_a9 .. :try_end_ba} :catch_c7
    .catchall {:try_start_a9 .. :try_end_ba} :catchall_c4

    :try_start_ba
    invoke-virtual {v4}, Ljava/io/FileInputStream;->close()V
    :try_end_bd
    .catch Ljava/io/IOException; {:try_start_ba .. :try_end_bd} :catch_bd

    :catch_bd
    :try_start_bd
    invoke-virtual {p1}, Ljava/io/FileOutputStream;->close()V
    :try_end_c0
    .catch Ljava/io/IOException; {:try_start_bd .. :try_end_c0} :catch_c0

    :catch_c0
    invoke-static {v2}, Lz5/b0;->g(Ljava/io/File;)V

    return-void

    :catchall_c4
    move-exception p2

    move-object v1, p1

    goto :goto_cb

    :catch_c7
    move-object v1, p1

    goto :goto_ce

    :catchall_c9
    move-exception p1

    move-object p2, p1

    :goto_cb
    move-object p1, v1

    move-object v1, v4

    goto :goto_d4

    :catch_ce
    :goto_ce
    move-object p1, v1

    move-object v1, v4

    goto :goto_e3

    :catchall_d1
    move-exception p1

    move-object p2, p1

    move-object p1, v1

    :goto_d4
    if-eqz v1, :cond_d9

    :try_start_d6
    invoke-virtual {v1}, Ljava/io/FileInputStream;->close()V
    :try_end_d9
    .catch Ljava/io/IOException; {:try_start_d6 .. :try_end_d9} :catch_d9

    :catch_d9
    :cond_d9
    if-eqz p1, :cond_de

    :try_start_db
    invoke-virtual {p1}, Ljava/io/FileOutputStream;->close()V
    :try_end_de
    .catch Ljava/io/IOException; {:try_start_db .. :try_end_de} :catch_de

    :catch_de
    :cond_de
    invoke-static {v2}, Lz5/b0;->g(Ljava/io/File;)V

    throw p2

    :catch_e2
    move-object p1, v1

    :goto_e3
    if-eqz v1, :cond_e8

    :try_start_e5
    invoke-virtual {v1}, Ljava/io/FileInputStream;->close()V
    :try_end_e8
    .catch Ljava/io/IOException; {:try_start_e5 .. :try_end_e8} :catch_e8

    :catch_e8
    :cond_e8
    if-eqz p1, :cond_ed

    :try_start_ea
    invoke-virtual {p1}, Ljava/io/FileOutputStream;->close()V
    :try_end_ed
    .catch Ljava/io/IOException; {:try_start_ea .. :try_end_ed} :catch_ed

    :catch_ed
    :cond_ed
    invoke-static {v2}, Lz5/b0;->g(Ljava/io/File;)V

    return-void
.end method

.method public final f(Ljava/io/File;Ljava/lang/String;)Z
    .registers 12

    new-instance p2, Ljava/io/File;

    const/4 v0, 0x2

    new-array v1, v0, [Ljava/lang/Object;

    const/4 v2, 0x0

    aput-object p1, v1, v2

    const/4 v3, 0x1

    const-string v4, "1629828815138"

    aput-object v4, v1, v3

    const-string v5, "%s/%s.tmp"

    invoke-static {v5, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {p2, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {p2}, Ljava/io/File;->exists()Z

    move-result v1

    if-nez v1, :cond_1d

    return v2

    :cond_1d
    new-instance v1, Ljava/io/File;

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

    aput-object p1, v0, v2

    aput-object v4, v0, v3

    const-string p1, "%s/%s.dex"

    invoke-static {p1, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-direct {v1, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result p1

    if-nez p1, :cond_103

    const/4 p1, 0x0

    :try_start_35
    invoke-virtual {p2}, Ljava/io/File;->length()J

    move-result-wide v5

    const-wide/16 v7, 0x0

    cmp-long v0, v5, v7

    if-gtz v0, :cond_43

    invoke-static {p2}, Lz5/b0;->g(Ljava/io/File;)V

    return v2

    :cond_43
    long-to-int v0, v5

    new-array v0, v0, [B

    new-instance v5, Ljava/io/FileInputStream;

    invoke-direct {v5, p2}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
    :try_end_4b
    .catch Ljava/io/IOException; {:try_start_35 .. :try_end_4b} :catch_f8
    .catch Ljava/security/NoSuchAlgorithmException; {:try_start_35 .. :try_end_4b} :catch_f8
    .catch Lz5/p; {:try_start_35 .. :try_end_4b} :catch_f8
    .catchall {:try_start_35 .. :try_end_4b} :catchall_ea

    :try_start_4b
    invoke-virtual {v5, v0}, Ljava/io/FileInputStream;->read([B)I

    move-result v6

    if-gtz v6, :cond_5f

    const-string v0, "b0"

    const-string v1, "Cannot read the cache data."

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    invoke-static {p2}, Lz5/b0;->g(Ljava/io/File;)V
    :try_end_5b
    .catch Ljava/io/IOException; {:try_start_4b .. :try_end_5b} :catch_e7
    .catch Ljava/security/NoSuchAlgorithmException; {:try_start_4b .. :try_end_5b} :catch_e7
    .catch Lz5/p; {:try_start_4b .. :try_end_5b} :catch_e7
    .catchall {:try_start_4b .. :try_end_5b} :catchall_e2

    :try_start_5b
    invoke-virtual {v5}, Ljava/io/FileInputStream;->close()V
    :try_end_5e
    .catch Ljava/io/IOException; {:try_start_5b .. :try_end_5e} :catch_5e

    :catch_5e
    return v2

    :cond_5f
    :try_start_5f
    invoke-static {}, Lz5/lk1;->a()Lz5/lk1;

    move-result-object v6

    invoke-static {v0, v6}, Lz5/y02;->A([BLz5/lk1;)Lz5/y02;

    move-result-object v0
    :try_end_67
    .catch Ljava/lang/NullPointerException; {:try_start_5f .. :try_end_67} :catch_de
    .catch Ljava/io/IOException; {:try_start_5f .. :try_end_67} :catch_e7
    .catch Ljava/security/NoSuchAlgorithmException; {:try_start_5f .. :try_end_67} :catch_e7
    .catch Lz5/p; {:try_start_5f .. :try_end_67} :catch_e7
    .catchall {:try_start_5f .. :try_end_67} :catchall_e2

    :try_start_67
    new-instance v6, Ljava/lang/String;

    invoke-virtual {v0}, Lz5/y02;->y()Lz5/zj1;

    move-result-object v7

    invoke-virtual {v7}, Lz5/zj1;->p0()[B

    move-result-object v7

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

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

    move-result v4

    if-eqz v4, :cond_d7

    invoke-virtual {v0}, Lz5/y02;->x()Lz5/zj1;

    move-result-object v4

    invoke-virtual {v4}, Lz5/zj1;->p0()[B

    move-result-object v4

    invoke-virtual {v0}, Lz5/y02;->w()Lz5/zj1;

    move-result-object v6

    invoke-virtual {v6}, Lz5/zj1;->p0()[B

    move-result-object v6

    invoke-static {v6}, Lz5/k12;->c([B)[B

    move-result-object v6

    invoke-static {v4, v6}, Ljava/util/Arrays;->equals([B[B)Z

    move-result v4

    if-eqz v4, :cond_d7

    invoke-virtual {v0}, Lz5/y02;->z()Lz5/zj1;

    move-result-object v4

    invoke-virtual {v4}, Lz5/zj1;->p0()[B

    move-result-object v4

    sget-object v6, Landroid/os/Build$VERSION;->SDK:Ljava/lang/String;

    invoke-virtual {v6}, Ljava/lang/String;->getBytes()[B

    move-result-object v6

    invoke-static {v4, v6}, Ljava/util/Arrays;->equals([B[B)Z

    move-result v4

    if-nez v4, :cond_a9

    goto :goto_d7

    :cond_a9
    iget-object p2, p0, Lz5/b0;->d:Lz5/q;

    iget-object v4, p0, Lz5/b0;->e:[B

    new-instance v6, Ljava/lang/String;

    invoke-virtual {v0}, Lz5/y02;->w()Lz5/zj1;

    move-result-object v0

    invoke-virtual {v0}, Lz5/zj1;->p0()[B

    move-result-object v0

    invoke-direct {v6, v0}, Ljava/lang/String;-><init>([B)V

    invoke-virtual {p2, v4, v6}, Lz5/q;->b([BLjava/lang/String;)[B

    move-result-object p2

    invoke-virtual {v1}, Ljava/io/File;->createNewFile()Z

    new-instance v0, Ljava/io/FileOutputStream;

    invoke-direct {v0, v1}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
    :try_end_c6
    .catch Ljava/io/IOException; {:try_start_67 .. :try_end_c6} :catch_e7
    .catch Ljava/security/NoSuchAlgorithmException; {:try_start_67 .. :try_end_c6} :catch_e7
    .catch Lz5/p; {:try_start_67 .. :try_end_c6} :catch_e7
    .catchall {:try_start_67 .. :try_end_c6} :catchall_e2

    :try_start_c6
    array-length p1, p2

    invoke-virtual {v0, p2, v2, p1}, Ljava/io/FileOutputStream;->write([BII)V
    :try_end_ca
    .catch Ljava/io/IOException; {:try_start_c6 .. :try_end_ca} :catch_d5
    .catch Ljava/security/NoSuchAlgorithmException; {:try_start_c6 .. :try_end_ca} :catch_d5
    .catch Lz5/p; {:try_start_c6 .. :try_end_ca} :catch_d5
    .catchall {:try_start_c6 .. :try_end_ca} :catchall_d1

    :try_start_ca
    invoke-virtual {v5}, Ljava/io/FileInputStream;->close()V
    :try_end_cd
    .catch Ljava/io/IOException; {:try_start_ca .. :try_end_cd} :catch_cd

    :catch_cd
    :try_start_cd
    invoke-virtual {v0}, Ljava/io/FileOutputStream;->close()V
    :try_end_d0
    .catch Ljava/io/IOException; {:try_start_cd .. :try_end_d0} :catch_d0

    :catch_d0
    return v3

    :catchall_d1
    move-exception p1

    move-object p2, p1

    move-object p1, v0

    goto :goto_e3

    :catch_d5
    move-object p1, v0

    goto :goto_e7

    :cond_d7
    :goto_d7
    :try_start_d7
    invoke-static {p2}, Lz5/b0;->g(Ljava/io/File;)V
    :try_end_da
    .catch Ljava/io/IOException; {:try_start_d7 .. :try_end_da} :catch_e7
    .catch Ljava/security/NoSuchAlgorithmException; {:try_start_d7 .. :try_end_da} :catch_e7
    .catch Lz5/p; {:try_start_d7 .. :try_end_da} :catch_e7
    .catchall {:try_start_d7 .. :try_end_da} :catchall_e2

    :try_start_da
    invoke-virtual {v5}, Ljava/io/FileInputStream;->close()V
    :try_end_dd
    .catch Ljava/io/IOException; {:try_start_da .. :try_end_dd} :catch_dd

    :catch_dd
    return v2

    :catch_de
    :try_start_de
    invoke-virtual {v5}, Ljava/io/FileInputStream;->close()V
    :try_end_e1
    .catch Ljava/io/IOException; {:try_start_de .. :try_end_e1} :catch_e1

    :catch_e1
    return v2

    :catchall_e2
    move-exception p2

    :goto_e3
    move-object v0, p2

    move-object p2, p1

    move-object p1, v5

    goto :goto_ed

    :catch_e7
    :goto_e7
    move-object p2, p1

    move-object p1, v5

    goto :goto_f9

    :catchall_ea
    move-exception p2

    move-object v0, p2

    move-object p2, p1

    :goto_ed
    if-eqz p1, :cond_f2

    :try_start_ef
    invoke-virtual {p1}, Ljava/io/FileInputStream;->close()V
    :try_end_f2
    .catch Ljava/io/IOException; {:try_start_ef .. :try_end_f2} :catch_f2

    :catch_f2
    :cond_f2
    if-eqz p2, :cond_f7

    :try_start_f4
    invoke-virtual {p2}, Ljava/io/FileOutputStream;->close()V
    :try_end_f7
    .catch Ljava/io/IOException; {:try_start_f4 .. :try_end_f7} :catch_f7

    :catch_f7
    :cond_f7
    throw v0

    :catch_f8
    move-object p2, p1

    :goto_f9
    if-eqz p1, :cond_fe

    :try_start_fb
    invoke-virtual {p1}, Ljava/io/FileInputStream;->close()V
    :try_end_fe
    .catch Ljava/io/IOException; {:try_start_fb .. :try_end_fe} :catch_fe

    :catch_fe
    :cond_fe
    if-eqz p2, :cond_103

    :try_start_100
    invoke-virtual {p2}, Ljava/io/FileOutputStream;->close()V
    :try_end_103
    .catch Ljava/io/IOException; {:try_start_100 .. :try_end_103} :catch_103

    :catch_103
    :cond_103
    return v2
.end method
