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


# static fields
.field public static final c:Landroid/os/ConditionVariable;

.field public static volatile d:Lz5/d91;

.field public static volatile e:Ljava/util/Random;


# instance fields
.field public final a:Lz5/b0;

.field public volatile b:Ljava/lang/Boolean;


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

    new-instance v0, Landroid/os/ConditionVariable;

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

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

    const/4 v0, 0x0

    sput-object v0, Lz5/g;->d:Lz5/d91;

    sput-object v0, Lz5/g;->e:Ljava/util/Random;

    return-void
.end method

.method public constructor <init>(Lz5/b0;)V
    .registers 3

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

    iput-object p1, p0, Lz5/g;->a:Lz5/b0;

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

    .line 2
    new-instance v0, Ll5/x;

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

    invoke-interface {p1, v0}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public static b()Ljava/util/Random;
    .registers 2

    sget-object v0, Lz5/g;->e:Ljava/util/Random;

    if-nez v0, :cond_17

    const-class v0, Lz5/g;

    monitor-enter v0

    :try_start_7
    sget-object v1, Lz5/g;->e:Ljava/util/Random;

    if-nez v1, :cond_12

    new-instance v1, Ljava/util/Random;

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

    sput-object v1, Lz5/g;->e:Ljava/util/Random;

    :cond_12
    monitor-exit v0

    goto :goto_17

    :catchall_14
    move-exception v1

    monitor-exit v0
    :try_end_16
    .catchall {:try_start_7 .. :try_end_16} :catchall_14

    throw v1

    :cond_17
    :goto_17
    sget-object v0, Lz5/g;->e:Ljava/util/Random;

    return-object v0
.end method


# virtual methods
.method public final a(IIJLjava/lang/String;Ljava/lang/Exception;)V
    .registers 11

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

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

    iget-object v0, p0, Lz5/g;->b:Ljava/lang/Boolean;

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

    move-result v0

    if-eqz v0, :cond_f1

    sget-object v0, Lz5/g;->d:Lz5/d91;

    if-eqz v0, :cond_f1

    invoke-static {}, Lz5/d02;->w()Lz5/a02;

    move-result-object v0

    iget-object v1, p0, Lz5/g;->a:Lz5/b0;

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

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

    move-result-object v1

    .line 1
    iget-boolean v2, v0, Lz5/uk1;->t:Z

    const/4 v3, 0x0

    if-eqz v2, :cond_27

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

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

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

    check-cast v2, Lz5/d02;

    invoke-static {v2, v1}, Lz5/d02;->y(Lz5/d02;Ljava/lang/String;)V

    .line 2
    iget-boolean v1, v0, Lz5/uk1;->t:Z

    if-eqz v1, :cond_37

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

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

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

    check-cast v1, Lz5/d02;

    invoke-static {v1, p3, p4}, Lz5/d02;->z(Lz5/d02;J)V

    if-eqz p5, :cond_50

    .line 3
    iget-boolean p3, v0, Lz5/uk1;->t:Z

    if-eqz p3, :cond_49

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

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

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

    check-cast p3, Lz5/d02;

    invoke-static {p3, p5}, Lz5/d02;->C(Lz5/d02;Ljava/lang/String;)V

    :cond_50
    if-eqz p6, :cond_8d

    .line 4
    new-instance p3, Ljava/io/StringWriter;

    invoke-direct {p3}, Ljava/io/StringWriter;-><init>()V

    new-instance p4, Ljava/io/PrintWriter;

    invoke-direct {p4, p3}, Ljava/io/PrintWriter;-><init>(Ljava/io/Writer;)V

    .line 5
    sget-object p5, Lz5/nj1;->a:Lz5/hj1;

    invoke-virtual {p5, p6, p4}, Lz5/hj1;->c(Ljava/lang/Throwable;Ljava/io/PrintWriter;)V

    .line 6
    invoke-virtual {p3}, Ljava/io/StringWriter;->toString()Ljava/lang/String;

    move-result-object p3

    .line 7
    iget-boolean p4, v0, Lz5/uk1;->t:Z

    if-eqz p4, :cond_6e

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

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

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

    check-cast p4, Lz5/d02;

    invoke-static {p4, p3}, Lz5/d02;->A(Lz5/d02;Ljava/lang/String;)V

    .line 8
    invoke-virtual {p6}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object p3

    invoke-virtual {p3}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object p3

    .line 9
    iget-boolean p4, v0, Lz5/uk1;->t:Z

    if-eqz p4, :cond_86

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

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

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

    check-cast p4, Lz5/d02;

    invoke-static {p4, p3}, Lz5/d02;->B(Lz5/d02;Ljava/lang/String;)V

    .line 10
    :cond_8d
    sget-object p3, Lz5/g;->d:Lz5/d91;

    invoke-virtual {v0}, Lz5/uk1;->m()Lz5/xk1;

    move-result-object p4

    check-cast p4, Lz5/d02;

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

    move-result-object p4

    invoke-static {p3}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_9c
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_9c} :catch_f1

    const/4 p5, -0x1

    if-eq p2, p5, :cond_a0

    goto :goto_a1

    :cond_a0
    move p2, v3

    .line 11
    :goto_a1
    :try_start_a1
    iget-boolean p5, p3, Lz5/d91;->a:Z

    if-eqz p5, :cond_ef

    iget-object p5, p3, Lz5/d91;->b:Lz5/e91;

    .line 12
    invoke-virtual {p5}, Lz5/m1;->zza()Landroid/os/Parcel;

    move-result-object p6

    invoke-virtual {p6, p4}, Landroid/os/Parcel;->writeByteArray([B)V

    const/4 p4, 0x5

    invoke-virtual {p5, p4, p6}, Lz5/m1;->zzbj(ILandroid/os/Parcel;)V

    .line 13
    iget-object p4, p3, Lz5/d91;->b:Lz5/e91;

    .line 14
    invoke-virtual {p4}, Lz5/m1;->zza()Landroid/os/Parcel;

    move-result-object p5

    invoke-virtual {p5, p2}, Landroid/os/Parcel;->writeInt(I)V

    const/4 p2, 0x6

    invoke-virtual {p4, p2, p5}, Lz5/m1;->zzbj(ILandroid/os/Parcel;)V

    .line 15
    iget-object p2, p3, Lz5/d91;->b:Lz5/e91;

    .line 16
    invoke-virtual {p2}, Lz5/m1;->zza()Landroid/os/Parcel;

    move-result-object p4

    invoke-virtual {p4, p1}, Landroid/os/Parcel;->writeInt(I)V

    const/4 p1, 0x7

    invoke-virtual {p2, p1, p4}, Lz5/m1;->zzbj(ILandroid/os/Parcel;)V

    .line 17
    iget-object p1, p3, Lz5/d91;->b:Lz5/e91;

    .line 18
    invoke-virtual {p1}, Lz5/m1;->zza()Landroid/os/Parcel;

    move-result-object p2

    const/4 p4, 0x0

    invoke-virtual {p2, p4}, Landroid/os/Parcel;->writeIntArray([I)V

    const/4 p4, 0x4

    invoke-virtual {p1, p4, p2}, Lz5/m1;->zzbj(ILandroid/os/Parcel;)V

    .line 19
    iget-object p1, p3, Lz5/d91;->b:Lz5/e91;

    .line 20
    invoke-virtual {p1}, Lz5/m1;->zza()Landroid/os/Parcel;

    move-result-object p2

    const/4 p3, 0x3

    invoke-virtual {p1, p3, p2}, Lz5/m1;->zzbj(ILandroid/os/Parcel;)V
    :try_end_e4
    .catch Landroid/os/RemoteException; {:try_start_a1 .. :try_end_e4} :catch_e7
    .catchall {:try_start_a1 .. :try_end_e4} :catchall_e5

    goto :goto_ef

    :catchall_e5
    move-exception p1

    goto :goto_f0

    :catch_e7
    move-exception p1

    :try_start_e8
    const-string p2, "GASS"

    const-string p3, "Clearcut log failed"

    .line 21
    invoke-static {p2, p3, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
    :try_end_ef
    .catchall {:try_start_e8 .. :try_end_ef} :catchall_e5

    :cond_ef
    :goto_ef
    return-void

    :goto_f0
    :try_start_f0
    throw p1
    :try_end_f1
    .catch Ljava/lang/Exception; {:try_start_f0 .. :try_end_f1} :catch_f1

    :catch_f1
    :cond_f1
    return-void
.end method
