apkfuckery/com.discord/smali/com/airbnb/lottie/c.smali

194 lines
3.9 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Lcom/airbnb/lottie/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 DBG:Z = false
2019-07-31 00:08:31 +00:00
.field private static fl:Z = false
2019-07-24 11:27:29 +00:00
2019-07-31 00:08:31 +00:00
.field private static fm:[Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-07-31 00:08:31 +00:00
.field private static fn:[J
2019-07-24 11:27:29 +00:00
2019-07-31 00:08:31 +00:00
.field private static fo:I
2019-07-24 11:27:29 +00:00
2019-07-31 00:08:31 +00:00
.field private static fp:I
2019-07-24 11:27:29 +00:00
# direct methods
.method static constructor <clinit>()V
.locals 0
return-void
.end method
.method public static beginSection(Ljava/lang/String;)V
.locals 4
2019-07-31 00:08:31 +00:00
sget-boolean v0, Lcom/airbnb/lottie/c;->fl:Z
2019-07-24 11:27:29 +00:00
if-nez v0, :cond_0
return-void
:cond_0
2019-07-31 00:08:31 +00:00
sget v0, Lcom/airbnb/lottie/c;->fo:I
2019-07-24 11:27:29 +00:00
const/16 v1, 0x14
if-ne v0, v1, :cond_1
2019-07-31 00:08:31 +00:00
sget p0, Lcom/airbnb/lottie/c;->fp:I
2019-07-24 11:27:29 +00:00
add-int/lit8 p0, p0, 0x1
2019-07-31 00:08:31 +00:00
sput p0, Lcom/airbnb/lottie/c;->fp:I
2019-07-24 11:27:29 +00:00
return-void
:cond_1
2019-07-31 00:08:31 +00:00
sget-object v1, Lcom/airbnb/lottie/c;->fm:[Ljava/lang/String;
2019-07-24 11:27:29 +00:00
aput-object p0, v1, v0
2019-07-31 00:08:31 +00:00
sget-object v1, Lcom/airbnb/lottie/c;->fn:[J
2019-07-24 11:27:29 +00:00
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
2019-07-31 00:08:31 +00:00
sget p0, Lcom/airbnb/lottie/c;->fo:I
2019-07-24 11:27:29 +00:00
add-int/lit8 p0, p0, 0x1
2019-07-31 00:08:31 +00:00
sput p0, Lcom/airbnb/lottie/c;->fo:I
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public static q(Ljava/lang/String;)F
.locals 4
2019-07-31 00:08:31 +00:00
sget v0, Lcom/airbnb/lottie/c;->fp:I
2019-07-24 11:27:29 +00:00
const/4 v1, 0x0
if-lez v0, :cond_0
add-int/lit8 v0, v0, -0x1
2019-07-31 00:08:31 +00:00
sput v0, Lcom/airbnb/lottie/c;->fp:I
2019-07-24 11:27:29 +00:00
return v1
:cond_0
2019-07-31 00:08:31 +00:00
sget-boolean v0, Lcom/airbnb/lottie/c;->fl:Z
2019-07-24 11:27:29 +00:00
if-nez v0, :cond_1
return v1
:cond_1
2019-07-31 00:08:31 +00:00
sget v0, Lcom/airbnb/lottie/c;->fo:I
2019-07-24 11:27:29 +00:00
add-int/lit8 v0, v0, -0x1
2019-07-31 00:08:31 +00:00
sput v0, Lcom/airbnb/lottie/c;->fo:I
2019-07-24 11:27:29 +00:00
const/4 v1, -0x1
if-eq v0, v1, :cond_3
2019-07-31 00:08:31 +00:00
sget-object v0, Lcom/airbnb/lottie/c;->fm:[Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-07-31 00:08:31 +00:00
sget v1, Lcom/airbnb/lottie/c;->fo:I
2019-07-24 11:27:29 +00:00
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
2019-07-31 00:08:31 +00:00
sget-object p0, Lcom/airbnb/lottie/c;->fn:[J
2019-07-24 11:27:29 +00:00
2019-07-31 00:08:31 +00:00
sget v2, Lcom/airbnb/lottie/c;->fo:I
2019-07-24 11:27:29 +00:00
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;
2019-07-31 00:08:31 +00:00
sget-object p0, Lcom/airbnb/lottie/c;->fm:[Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-07-31 00:08:31 +00:00
sget v2, Lcom/airbnb/lottie/c;->fo:I
2019-07-24 11:27:29 +00:00
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