apkfuckery/com.discord/smali_classes2/n0/a.smali

267 lines
4 KiB
Smali
Raw Normal View History

2020-07-08 16:44:49 +00:00
.class public final Ln0/a;
2020-05-17 12:40:10 +00:00
.super Ljava/lang/Object;
2020-07-22 00:04:40 +00:00
.source "-Base64.kt"
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
# static fields
.field public static final a:[B
2020-05-17 12:40:10 +00:00
# direct methods
2020-07-22 00:04:40 +00:00
.method public static constructor <clinit>()V
.locals 2
2020-07-16 19:51:49 +00:00
2020-07-22 00:04:40 +00:00
sget-object v0, Lokio/ByteString;->g:Lokio/ByteString$a;
2020-07-16 19:51:49 +00:00
2020-07-22 00:04:40 +00:00
const-string v1, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
2020-07-16 19:51:49 +00:00
2020-07-22 00:04:40 +00:00
invoke-virtual {v0, v1}, Lokio/ByteString$a;->b(Ljava/lang/String;)Lokio/ByteString;
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
iget-object v0, v0, Lokio/ByteString;->data:[B
2020-07-16 19:51:49 +00:00
2020-07-22 00:04:40 +00:00
sput-object v0, Ln0/a;->a:[B
2020-07-16 19:51:49 +00:00
2020-07-22 00:04:40 +00:00
sget-object v0, Lokio/ByteString;->g:Lokio/ByteString$a;
2020-07-16 19:51:49 +00:00
2020-07-22 00:04:40 +00:00
const-string v1, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
2020-07-16 19:51:49 +00:00
2020-07-22 00:04:40 +00:00
invoke-virtual {v0, v1}, Lokio/ByteString$a;->b(Ljava/lang/String;)Lokio/ByteString;
2020-05-17 12:40:10 +00:00
return-void
.end method
2020-07-22 00:04:40 +00:00
.method public static a([B[BI)Ljava/lang/String;
.locals 10
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
const/4 p1, 0x1
2020-07-16 19:51:49 +00:00
2020-07-22 00:04:40 +00:00
and-int/2addr p2, p1
2020-07-16 19:51:49 +00:00
2020-07-22 00:04:40 +00:00
const/4 v0, 0x0
2020-07-16 19:51:49 +00:00
2020-07-22 00:04:40 +00:00
if-eqz p2, :cond_0
2020-07-16 19:51:49 +00:00
2020-07-22 00:04:40 +00:00
sget-object p2, Ln0/a;->a:[B
2020-05-17 12:40:10 +00:00
goto :goto_0
:cond_0
2020-07-22 00:04:40 +00:00
move-object p2, v0
2020-05-17 12:40:10 +00:00
:goto_0
2020-07-22 00:04:40 +00:00
if-eqz p0, :cond_5
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
if-eqz p2, :cond_4
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
array-length v0, p0
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
const/4 v1, 0x2
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
add-int/2addr v0, v1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
div-int/lit8 v0, v0, 0x3
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
mul-int/lit8 v0, v0, 0x4
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
new-array v0, v0, [B
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
array-length v2, p0
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
array-length v3, p0
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
rem-int/lit8 v3, v3, 0x3
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
sub-int/2addr v2, v3
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
const/4 v3, 0x0
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
const/4 v4, 0x0
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
:goto_1
if-ge v3, v2, :cond_1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
add-int/lit8 v5, v3, 0x1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aget-byte v3, p0, v3
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
add-int/lit8 v6, v5, 0x1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aget-byte v5, p0, v5
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
add-int/lit8 v7, v6, 0x1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aget-byte v6, p0, v6
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
add-int/lit8 v8, v4, 0x1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
and-int/lit16 v9, v3, 0xff
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
shr-int/2addr v9, v1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aget-byte v9, p2, v9
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aput-byte v9, v0, v4
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
add-int/lit8 v4, v8, 0x1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
and-int/lit8 v3, v3, 0x3
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
shl-int/lit8 v3, v3, 0x4
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
and-int/lit16 v9, v5, 0xff
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
shr-int/lit8 v9, v9, 0x4
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
or-int/2addr v3, v9
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aget-byte v3, p2, v3
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aput-byte v3, v0, v8
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
add-int/lit8 v3, v4, 0x1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
and-int/lit8 v5, v5, 0xf
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
shl-int/2addr v5, v1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
and-int/lit16 v8, v6, 0xff
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
shr-int/lit8 v8, v8, 0x6
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
or-int/2addr v5, v8
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aget-byte v5, p2, v5
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aput-byte v5, v0, v4
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
add-int/lit8 v4, v3, 0x1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
and-int/lit8 v5, v6, 0x3f
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aget-byte v5, p2, v5
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aput-byte v5, v0, v3
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
move v3, v7
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
goto :goto_1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
:cond_1
array-length v5, p0
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
sub-int/2addr v5, v2
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
const/16 v2, 0x3d
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
if-eq v5, p1, :cond_3
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
if-eq v5, v1, :cond_2
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
goto :goto_2
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
:cond_2
add-int/lit8 p1, v3, 0x1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aget-byte v3, p0, v3
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aget-byte p0, p0, p1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
add-int/lit8 p1, v4, 0x1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
and-int/lit16 v5, v3, 0xff
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
shr-int/2addr v5, v1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aget-byte v5, p2, v5
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aput-byte v5, v0, v4
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
add-int/lit8 v4, p1, 0x1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
and-int/lit8 v3, v3, 0x3
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
shl-int/lit8 v3, v3, 0x4
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
and-int/lit16 v5, p0, 0xff
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
shr-int/lit8 v5, v5, 0x4
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
or-int/2addr v3, v5
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aget-byte v3, p2, v3
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aput-byte v3, v0, p1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
add-int/lit8 p1, v4, 0x1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
and-int/lit8 p0, p0, 0xf
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
shl-int/2addr p0, v1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aget-byte p0, p2, p0
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aput-byte p0, v0, v4
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
int-to-byte p0, v2
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aput-byte p0, v0, p1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
goto :goto_2
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
:cond_3
aget-byte p0, p0, v3
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
add-int/lit8 p1, v4, 0x1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
and-int/lit16 v3, p0, 0xff
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
shr-int/lit8 v1, v3, 0x2
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aget-byte v1, p2, v1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aput-byte v1, v0, v4
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
add-int/lit8 v1, p1, 0x1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
and-int/lit8 p0, p0, 0x3
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
shl-int/lit8 p0, p0, 0x4
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aget-byte p0, p2, p0
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aput-byte p0, v0, p1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
add-int/lit8 p0, v1, 0x1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
int-to-byte p1, v2
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aput-byte p1, v0, v1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
aput-byte p1, v0, p0
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
:goto_2
sget-object p0, Li0/t/a;->a:Ljava/nio/charset/Charset;
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
new-instance p1, Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
invoke-direct {p1, v0, p0}, Ljava/lang/String;-><init>([BLjava/nio/charset/Charset;)V
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
return-object p1
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
:cond_4
const-string p0, "map"
2020-07-16 19:51:49 +00:00
2020-07-22 00:04:40 +00:00
invoke-static {p0}, Li0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
throw v0
2020-07-16 19:51:49 +00:00
2020-07-22 00:04:40 +00:00
:cond_5
const-string p0, "$receiver"
2020-07-16 19:51:49 +00:00
2020-07-22 00:04:40 +00:00
invoke-static {p0}, Li0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
throw v0
2020-05-17 12:40:10 +00:00
.end method