apkfuckery/com.discord/smali/com/airbnb/lottie/c.smali
2019-12-04 23:43:03 +01:00

185 lines
3.7 KiB
Smali

.class public final Lcom/airbnb/lottie/c;
.super Ljava/lang/Object;
.source "L.java"
# static fields
.field public static DBG:Z = false
.field private static dC:Z = false
.field private static dD:[Ljava/lang/String;
.field private static dE:[J
.field private static dF:I
.field private static dG:I
# direct methods
.method static constructor <clinit>()V
.locals 0
return-void
.end method
.method public static beginSection(Ljava/lang/String;)V
.locals 4
sget-boolean v0, Lcom/airbnb/lottie/c;->dC:Z
if-nez v0, :cond_0
return-void
:cond_0
sget v0, Lcom/airbnb/lottie/c;->dF:I
const/16 v1, 0x14
if-ne v0, v1, :cond_1
sget p0, Lcom/airbnb/lottie/c;->dG:I
add-int/lit8 p0, p0, 0x1
sput p0, Lcom/airbnb/lottie/c;->dG:I
return-void
:cond_1
sget-object v1, Lcom/airbnb/lottie/c;->dD:[Ljava/lang/String;
aput-object p0, v1, v0
sget-object v1, Lcom/airbnb/lottie/c;->dE:[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, Lcom/airbnb/lottie/c;->dF:I
add-int/lit8 p0, p0, 0x1
sput p0, Lcom/airbnb/lottie/c;->dF:I
return-void
.end method
.method public static r(Ljava/lang/String;)F
.locals 4
sget v0, Lcom/airbnb/lottie/c;->dG:I
const/4 v1, 0x0
if-lez v0, :cond_0
add-int/lit8 v0, v0, -0x1
sput v0, Lcom/airbnb/lottie/c;->dG:I
return v1
:cond_0
sget-boolean v0, Lcom/airbnb/lottie/c;->dC:Z
if-nez v0, :cond_1
return v1
:cond_1
sget v0, Lcom/airbnb/lottie/c;->dF:I
add-int/lit8 v0, v0, -0x1
sput v0, Lcom/airbnb/lottie/c;->dF:I
const/4 v1, -0x1
if-eq v0, v1, :cond_3
sget-object v0, Lcom/airbnb/lottie/c;->dD:[Ljava/lang/String;
sget v1, Lcom/airbnb/lottie/c;->dF:I
aget-object v0, v0, v1
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_2
invoke-static {}, Landroidx/core/os/TraceCompat;->endSection()V
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v0
sget-object p0, Lcom/airbnb/lottie/c;->dE:[J
sget v2, Lcom/airbnb/lottie/c;->dF: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_2
new-instance v0, Ljava/lang/IllegalStateException;
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "Unbalanced trace call "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
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, Lcom/airbnb/lottie/c;->dD:[Ljava/lang/String;
sget v2, Lcom/airbnb/lottie/c;->dF: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_3
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