apkfuckery/com.discord/smali_classes2/g0/z/b.smali

117 lines
1.9 KiB
Smali
Raw Normal View History

2020-09-29 21:44:44 +00:00
.class public final Lg0/z/b;
2020-09-16 23:45:23 +00:00
.super Ljava/lang/Object;
.source "ByteString.kt"
# static fields
.field public static final a:[C
# direct methods
.method public static constructor <clinit>()V
.locals 1
const/16 v0, 0x10
new-array v0, v0, [C
fill-array-data v0, :array_0
2020-09-29 21:44:44 +00:00
sput-object v0, Lg0/z/b;->a:[C
2020-09-16 23:45:23 +00:00
return-void
:array_0
.array-data 2
0x30s
0x31s
0x32s
0x33s
0x34s
0x35s
0x36s
0x37s
0x38s
0x39s
0x61s
0x62s
0x63s
0x64s
0x65s
0x66s
.end array-data
.end method
.method public static final a(C)I
.locals 3
const/16 v0, 0x30
if-le v0, p0, :cond_0
goto :goto_0
:cond_0
const/16 v1, 0x39
if-lt v1, p0, :cond_1
sub-int/2addr p0, v0
goto :goto_3
:cond_1
:goto_0
const/16 v0, 0x66
const/16 v1, 0x61
if-le v1, p0, :cond_2
goto :goto_1
:cond_2
if-lt v0, p0, :cond_3
goto :goto_2
:cond_3
:goto_1
const/16 v0, 0x46
const/16 v1, 0x41
if-gt v1, p0, :cond_4
if-lt v0, p0, :cond_4
:goto_2
sub-int/2addr p0, v1
add-int/lit8 p0, p0, 0xa
:goto_3
return p0
:cond_4
new-instance v0, Ljava/lang/IllegalArgumentException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected hex digit: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method