c.smali

.class public Lj/c;
.super Ljava/lang/Object;
.source "L.java"


# annotations
.annotation build Landroidx/annotation/RestrictTo;
    value = {
        .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
    }
.end annotation


# static fields
.field public static a:Z

.field public static b:Z

.field public static c:[Ljava/lang/String;

.field public static d:[J

.field public static e:I

.field public static f:I

.field public static g:Ls/e;

.field public static h:Ls/d;

.field public static volatile i:Ls/g;

.field public static volatile j:Ls/f;


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

    return-void
.end method

.method public static a(Landroid/content/Context;)Ls/f;
    .registers 4
    .param p0    # Landroid/content/Context;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    sget-object v0, Lj/c;->j:Ls/f;

    if-nez v0, :cond_24

    const-class v1, Ls/f;

    monitor-enter v1

    :try_start_7
    sget-object v0, Lj/c;->j:Ls/f;

    if-nez v0, :cond_1f

    new-instance v0, Ls/f;

    sget-object v2, Lj/c;->h:Ls/d;

    if-eqz v2, :cond_14

    sget-object p0, Lj/c;->h:Ls/d;

    goto :goto_1a

    :cond_14
    new-instance v2, Lj/c$a;

    invoke-direct {v2, p0}, Lj/c$a;-><init>(Landroid/content/Context;)V

    move-object p0, v2

    :goto_1a
    invoke-direct {v0, p0}, Ls/f;-><init>(Ls/d;)V

    sput-object v0, Lj/c;->j:Ls/f;

    :cond_1f
    monitor-exit v1

    goto :goto_24

    :catchall_21
    move-exception p0

    monitor-exit v1
    :try_end_23
    .catchall {:try_start_7 .. :try_end_23} :catchall_21

    throw p0

    :cond_24
    :goto_24
    return-object v0
.end method

.method public static a(Ljava/lang/String;)V
    .registers 5

    sget-boolean v0, Lj/c;->b:Z

    if-nez v0, :cond_5

    return-void

    :cond_5
    sget v0, Lj/c;->e:I

    const/16 v1, 0x14

    if-ne v0, v1, :cond_12

    sget p0, Lj/c;->f:I

    add-int/lit8 p0, p0, 0x1

    sput p0, Lj/c;->f:I

    return-void

    :cond_12
    sget-object v1, Lj/c;->c:[Ljava/lang/String;

    aput-object p0, v1, v0

    sget-object v1, Lj/c;->d:[J

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

    move-result-wide v2

    aput-wide v2, v1, v0

    invoke-static {p0}, Landroidx/core/os/TraceCompat;->beginSection(Ljava/lang/String;)V

    sget p0, Lj/c;->e:I

    add-int/lit8 p0, p0, 0x1

    sput p0, Lj/c;->e:I

    return-void
.end method

.method public static b(Ljava/lang/String;)F
    .registers 5

    sget v0, Lj/c;->f:I

    const/4 v1, 0x0

    if-lez v0, :cond_a

    add-int/lit8 v0, v0, -0x1

    sput v0, Lj/c;->f:I

    return v1

    :cond_a
    sget-boolean v0, Lj/c;->b:Z

    if-nez v0, :cond_f

    return v1

    :cond_f
    sget v0, Lj/c;->e:I

    add-int/lit8 v0, v0, -0x1

    sput v0, Lj/c;->e:I

    const/4 v1, -0x1

    if-eq v0, v1, :cond_60

    sget-object v1, Lj/c;->c:[Ljava/lang/String;

    aget-object v0, v1, v0

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

    move-result v0

    if-eqz v0, :cond_36

    invoke-static {}, Landroidx/core/os/TraceCompat;->endSection()V

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

    move-result-wide v0

    sget-object p0, Lj/c;->d:[J

    sget v2, Lj/c;->e:I

    aget-wide v2, p0, v2

    sub-long/2addr v0, v2

    long-to-float p0, v0

    const v0, 0x49742400    # 1000000.0f

    div-float/2addr p0, v0

    return p0

    :cond_36
    new-instance v0, Ljava/lang/IllegalStateException;

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "Unbalanced trace call "

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

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

    const-string p0, ". Expected "

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

    sget-object p0, Lj/c;->c:[Ljava/lang/String;

    sget v2, Lj/c;->e:I

    aget-object p0, p0, v2

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

    const-string p0, "."

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

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

    move-result-object p0

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

    throw v0

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

    const-string v0, "Can\'t end trace section. There are none."

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

    throw p0
.end method

.method public static b(Landroid/content/Context;)Ls/g;
    .registers 4
    .param p0    # Landroid/content/Context;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    sget-object v0, Lj/c;->i:Ls/g;

    if-nez v0, :cond_27

    const-class v1, Ls/g;

    monitor-enter v1

    :try_start_7
    sget-object v0, Lj/c;->i:Ls/g;

    if-nez v0, :cond_22

    new-instance v0, Ls/g;

    invoke-static {p0}, Lj/c;->a(Landroid/content/Context;)Ls/f;

    move-result-object p0

    sget-object v2, Lj/c;->g:Ls/e;

    if-eqz v2, :cond_18

    sget-object v2, Lj/c;->g:Ls/e;

    goto :goto_1d

    :cond_18
    new-instance v2, Ls/b;

    invoke-direct {v2}, Ls/b;-><init>()V

    :goto_1d
    invoke-direct {v0, p0, v2}, Ls/g;-><init>(Ls/f;Ls/e;)V

    sput-object v0, Lj/c;->i:Ls/g;

    :cond_22
    monitor-exit v1

    goto :goto_27

    :catchall_24
    move-exception p0

    monitor-exit v1
    :try_end_26
    .catchall {:try_start_7 .. :try_end_26} :catchall_24

    throw p0

    :cond_27
    :goto_27
    return-object v0
.end method