apkfuckery/com.discord/smali_classes2/d0/a.smali
2020-03-27 23:23:51 +01:00

265 lines
4 KiB
Smali

.class public final Ld0/a;
.super Ljava/lang/Object;
.source "-Base64.kt"
# static fields
.field public static final a:[B
# direct methods
.method public static constructor <clinit>()V
.locals 2
sget-object v0, Lokio/ByteString;->g:Lokio/ByteString$a;
const-string v1, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
invoke-virtual {v0, v1}, Lokio/ByteString$a;->b(Ljava/lang/String;)Lokio/ByteString;
move-result-object v0
invoke-virtual {v0}, Lokio/ByteString;->b()[B
move-result-object v0
sput-object v0, Ld0/a;->a:[B
sget-object v0, Lokio/ByteString;->g:Lokio/ByteString$a;
const-string v1, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
invoke-virtual {v0, v1}, Lokio/ByteString$a;->b(Ljava/lang/String;)Lokio/ByteString;
move-result-object v0
invoke-virtual {v0}, Lokio/ByteString;->b()[B
return-void
.end method
.method public static a([B[BI)Ljava/lang/String;
.locals 10
const/4 v0, 0x1
and-int/2addr p2, v0
if-eqz p2, :cond_0
sget-object p1, Ld0/a;->a:[B
:cond_0
const/4 p2, 0x0
if-eqz p0, :cond_5
if-eqz p1, :cond_4
array-length p2, p0
const/4 v1, 0x2
add-int/2addr p2, v1
div-int/lit8 p2, p2, 0x3
mul-int/lit8 p2, p2, 0x4
new-array p2, p2, [B
array-length v2, p0
array-length v3, p0
rem-int/lit8 v3, v3, 0x3
sub-int/2addr v2, v3
const/4 v3, 0x0
const/4 v4, 0x0
:goto_0
if-ge v3, v2, :cond_1
add-int/lit8 v5, v3, 0x1
aget-byte v3, p0, v3
add-int/lit8 v6, v5, 0x1
aget-byte v5, p0, v5
add-int/lit8 v7, v6, 0x1
aget-byte v6, p0, v6
add-int/lit8 v8, v4, 0x1
and-int/lit16 v9, v3, 0xff
shr-int/2addr v9, v1
aget-byte v9, p1, v9
aput-byte v9, p2, v4
add-int/lit8 v4, v8, 0x1
and-int/lit8 v3, v3, 0x3
shl-int/lit8 v3, v3, 0x4
and-int/lit16 v9, v5, 0xff
shr-int/lit8 v9, v9, 0x4
or-int/2addr v3, v9
aget-byte v3, p1, v3
aput-byte v3, p2, v8
add-int/lit8 v3, v4, 0x1
and-int/lit8 v5, v5, 0xf
shl-int/2addr v5, v1
and-int/lit16 v8, v6, 0xff
shr-int/lit8 v8, v8, 0x6
or-int/2addr v5, v8
aget-byte v5, p1, v5
aput-byte v5, p2, v4
add-int/lit8 v4, v3, 0x1
and-int/lit8 v5, v6, 0x3f
aget-byte v5, p1, v5
aput-byte v5, p2, v3
move v3, v7
goto :goto_0
:cond_1
array-length v5, p0
sub-int/2addr v5, v2
const/16 v2, 0x3d
if-eq v5, v0, :cond_3
if-eq v5, v1, :cond_2
goto :goto_1
:cond_2
add-int/lit8 v0, v3, 0x1
aget-byte v3, p0, v3
aget-byte p0, p0, v0
add-int/lit8 v0, v4, 0x1
and-int/lit16 v5, v3, 0xff
shr-int/2addr v5, v1
aget-byte v5, p1, v5
aput-byte v5, p2, v4
add-int/lit8 v4, v0, 0x1
and-int/lit8 v3, v3, 0x3
shl-int/lit8 v3, v3, 0x4
and-int/lit16 v5, p0, 0xff
shr-int/lit8 v5, v5, 0x4
or-int/2addr v3, v5
aget-byte v3, p1, v3
aput-byte v3, p2, v0
add-int/lit8 v0, v4, 0x1
and-int/lit8 p0, p0, 0xf
shl-int/2addr p0, v1
aget-byte p0, p1, p0
aput-byte p0, p2, v4
int-to-byte p0, v2
aput-byte p0, p2, v0
goto :goto_1
:cond_3
aget-byte p0, p0, v3
add-int/lit8 v0, v4, 0x1
and-int/lit16 v3, p0, 0xff
shr-int/lit8 v1, v3, 0x2
aget-byte v1, p1, v1
aput-byte v1, p2, v4
add-int/lit8 v1, v0, 0x1
and-int/lit8 p0, p0, 0x3
shl-int/lit8 p0, p0, 0x4
aget-byte p0, p1, p0
aput-byte p0, p2, v0
add-int/lit8 p0, v1, 0x1
int-to-byte p1, v2
aput-byte p1, p2, v1
aput-byte p1, p2, p0
:goto_1
invoke-static {p2}, Lz/a/a2/w;->b([B)Ljava/lang/String;
move-result-object p0
return-object p0
:cond_4
const-string p0, "map"
invoke-static {p0}, Ly/u/b/j;->a(Ljava/lang/String;)V
throw p2
:cond_5
const-string p0, "$receiver"
invoke-static {p0}, Ly/u/b/j;->a(Ljava/lang/String;)V
throw p2
.end method