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

259 lines
4.1 KiB
Smali
Raw Normal View History

2020-09-02 04:07:20 +00:00
.class public final Lp0/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
iget-object v0, v0, Lokio/ByteString;->data:[B
sput-object v0, Lp0/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;
return-void
.end method
.method public static a([B[BI)Ljava/lang/String;
2020-09-08 08:16:32 +00:00
.locals 10
2020-09-02 04:07:20 +00:00
const/4 p1, 0x1
and-int/2addr p2, p1
if-eqz p2, :cond_0
sget-object p2, Lp0/a;->a:[B
goto :goto_0
:cond_0
2020-09-09 19:21:20 +00:00
const/4 p2, 0x0
2020-09-02 04:07:20 +00:00
:goto_0
2020-09-09 19:21:20 +00:00
const-string v0, "$this$encodeBase64"
invoke-static {p0, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "map"
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {p2, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
array-length v0, p0
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
const/4 v1, 0x2
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
add-int/2addr v0, v1
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
div-int/lit8 v0, v0, 0x3
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
mul-int/lit8 v0, v0, 0x4
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
new-array v0, v0, [B
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
array-length v2, p0
2020-09-02 04:07:20 +00:00
array-length v3, p0
2020-09-08 08:16:32 +00:00
rem-int/lit8 v3, v3, 0x3
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
sub-int/2addr v2, v3
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
const/4 v3, 0x0
2020-09-02 04:07:20 +00:00
const/4 v4, 0x0
:goto_1
2020-09-08 08:16:32 +00:00
if-ge v3, v2, :cond_1
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
add-int/lit8 v5, v3, 0x1
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
aget-byte v3, p0, v3
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
add-int/lit8 v6, v5, 0x1
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
aget-byte v5, p0, v5
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
add-int/lit8 v7, v6, 0x1
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
aget-byte v6, p0, v6
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
add-int/lit8 v8, v4, 0x1
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
and-int/lit16 v9, v3, 0xff
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
shr-int/2addr v9, v1
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
aget-byte v9, p2, v9
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
aput-byte v9, v0, v4
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
add-int/lit8 v4, v8, 0x1
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
and-int/lit8 v3, v3, 0x3
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
shl-int/lit8 v3, v3, 0x4
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
and-int/lit16 v9, v5, 0xff
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
shr-int/lit8 v9, v9, 0x4
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
or-int/2addr v3, v9
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
aget-byte v3, p2, v3
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
aput-byte v3, v0, v8
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
add-int/lit8 v3, v4, 0x1
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
and-int/lit8 v5, v5, 0xf
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
shl-int/2addr v5, v1
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
and-int/lit16 v8, v6, 0xff
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
shr-int/lit8 v8, v8, 0x6
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
or-int/2addr v5, v8
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
aget-byte v5, p2, v5
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
aput-byte v5, v0, v4
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
add-int/lit8 v4, v3, 0x1
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
and-int/lit8 v5, v6, 0x3f
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
aget-byte v5, p2, v5
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
aput-byte v5, v0, v3
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
move v3, v7
2020-09-02 04:07:20 +00:00
goto :goto_1
:cond_1
2020-09-08 08:16:32 +00:00
array-length v5, p0
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
sub-int/2addr v5, v2
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
const/16 v2, 0x3d
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
if-eq v5, p1, :cond_3
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
if-eq v5, v1, :cond_2
2020-09-02 04:07:20 +00:00
goto :goto_2
:cond_2
2020-09-08 08:16:32 +00:00
add-int/lit8 p1, v3, 0x1
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
aget-byte v3, p0, v3
2020-09-02 04:07:20 +00:00
aget-byte p0, p0, p1
2020-09-08 08:16:32 +00:00
add-int/lit8 p1, v4, 0x1
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
and-int/lit16 v5, v3, 0xff
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
shr-int/2addr v5, v1
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
aget-byte v5, p2, v5
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
aput-byte v5, v0, v4
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
add-int/lit8 v4, p1, 0x1
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
and-int/lit8 v3, v3, 0x3
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
shl-int/lit8 v3, v3, 0x4
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
and-int/lit16 v5, p0, 0xff
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
shr-int/lit8 v5, v5, 0x4
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
or-int/2addr v3, v5
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
aget-byte v3, p2, v3
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
aput-byte v3, v0, p1
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
add-int/lit8 p1, v4, 0x1
2020-09-02 04:07:20 +00:00
and-int/lit8 p0, p0, 0xf
2020-09-08 08:16:32 +00:00
shl-int/2addr p0, v1
2020-09-02 04:07:20 +00:00
aget-byte p0, p2, p0
2020-09-08 08:16:32 +00:00
aput-byte p0, v0, v4
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
int-to-byte p0, v2
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
aput-byte p0, v0, p1
2020-09-02 04:07:20 +00:00
goto :goto_2
:cond_3
2020-09-08 08:16:32 +00:00
aget-byte p0, p0, v3
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
add-int/lit8 p1, v4, 0x1
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
and-int/lit16 v3, p0, 0xff
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
shr-int/lit8 v1, v3, 0x2
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
aget-byte v1, p2, v1
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
aput-byte v1, v0, v4
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
add-int/lit8 v1, p1, 0x1
2020-09-02 04:07:20 +00:00
and-int/lit8 p0, p0, 0x3
shl-int/lit8 p0, p0, 0x4
aget-byte p0, p2, p0
2020-09-08 08:16:32 +00:00
aput-byte p0, v0, p1
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
add-int/lit8 p0, v1, 0x1
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
int-to-byte p1, v2
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
aput-byte p1, v0, v1
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
aput-byte p1, v0, p0
2020-09-02 04:07:20 +00:00
:goto_2
2020-09-09 19:21:20 +00:00
const-string p0, "$this$toUtf8String"
invoke-static {v0, p0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-08 08:16:32 +00:00
sget-object p0, Lk0/t/a;->a:Ljava/nio/charset/Charset;
2020-09-02 04:07:20 +00:00
new-instance p1, Ljava/lang/String;
2020-09-08 08:16:32 +00:00
invoke-direct {p1, v0, p0}, Ljava/lang/String;-><init>([BLjava/nio/charset/Charset;)V
2020-09-02 04:07:20 +00:00
return-object p1
.end method