apkfuckery/com.discord/smali_classes2/okio/b.smali
2019-03-16 02:04:31 +01:00

402 lines
5.8 KiB
Smali

.class final Lokio/b;
.super Ljava/lang/Object;
.source "Base64.java"
# static fields
.field private static final buP:[B
.field private static final buQ:[B
# direct methods
.method static constructor <clinit>()V
.locals 2
const/16 v0, 0x40
new-array v1, v0, [B
fill-array-data v1, :array_0
sput-object v1, Lokio/b;->buP:[B
new-array v0, v0, [B
fill-array-data v0, :array_1
sput-object v0, Lokio/b;->buQ:[B
return-void
nop
:array_0
.array-data 1
0x41t
0x42t
0x43t
0x44t
0x45t
0x46t
0x47t
0x48t
0x49t
0x4at
0x4bt
0x4ct
0x4dt
0x4et
0x4ft
0x50t
0x51t
0x52t
0x53t
0x54t
0x55t
0x56t
0x57t
0x58t
0x59t
0x5at
0x61t
0x62t
0x63t
0x64t
0x65t
0x66t
0x67t
0x68t
0x69t
0x6at
0x6bt
0x6ct
0x6dt
0x6et
0x6ft
0x70t
0x71t
0x72t
0x73t
0x74t
0x75t
0x76t
0x77t
0x78t
0x79t
0x7at
0x30t
0x31t
0x32t
0x33t
0x34t
0x35t
0x36t
0x37t
0x38t
0x39t
0x2bt
0x2ft
.end array-data
:array_1
.array-data 1
0x41t
0x42t
0x43t
0x44t
0x45t
0x46t
0x47t
0x48t
0x49t
0x4at
0x4bt
0x4ct
0x4dt
0x4et
0x4ft
0x50t
0x51t
0x52t
0x53t
0x54t
0x55t
0x56t
0x57t
0x58t
0x59t
0x5at
0x61t
0x62t
0x63t
0x64t
0x65t
0x66t
0x67t
0x68t
0x69t
0x6at
0x6bt
0x6ct
0x6dt
0x6et
0x6ft
0x70t
0x71t
0x72t
0x73t
0x74t
0x75t
0x76t
0x77t
0x78t
0x79t
0x7at
0x30t
0x31t
0x32t
0x33t
0x34t
0x35t
0x36t
0x37t
0x38t
0x39t
0x2dt
0x5ft
.end array-data
.end method
.method private static b([B[B)Ljava/lang/String;
.locals 8
array-length v0, p0
add-int/lit8 v0, v0, 0x2
div-int/lit8 v0, v0, 0x3
mul-int/lit8 v0, v0, 0x4
new-array v0, v0, [B
array-length v1, p0
array-length v2, p0
rem-int/lit8 v2, v2, 0x3
sub-int/2addr v1, v2
const/4 v2, 0x0
const/4 v3, 0x0
:goto_0
if-ge v2, v1, :cond_0
add-int/lit8 v4, v3, 0x1
aget-byte v5, p0, v2
and-int/lit16 v5, v5, 0xff
shr-int/lit8 v5, v5, 0x2
aget-byte v5, p1, v5
aput-byte v5, v0, v3
add-int/lit8 v3, v4, 0x1
aget-byte v5, p0, v2
and-int/lit8 v5, v5, 0x3
shl-int/lit8 v5, v5, 0x4
add-int/lit8 v6, v2, 0x1
aget-byte v7, p0, v6
and-int/lit16 v7, v7, 0xff
shr-int/lit8 v7, v7, 0x4
or-int/2addr v5, v7
aget-byte v5, p1, v5
aput-byte v5, v0, v4
add-int/lit8 v4, v3, 0x1
aget-byte v5, p0, v6
and-int/lit8 v5, v5, 0xf
shl-int/lit8 v5, v5, 0x2
add-int/lit8 v6, v2, 0x2
aget-byte v7, p0, v6
and-int/lit16 v7, v7, 0xff
shr-int/lit8 v7, v7, 0x6
or-int/2addr v5, v7
aget-byte v5, p1, v5
aput-byte v5, v0, v3
add-int/lit8 v3, v4, 0x1
aget-byte v5, p0, v6
and-int/lit8 v5, v5, 0x3f
aget-byte v5, p1, v5
aput-byte v5, v0, v4
add-int/lit8 v2, v2, 0x3
goto :goto_0
:cond_0
array-length v2, p0
rem-int/lit8 v2, v2, 0x3
const/16 v4, 0x3d
packed-switch v2, :pswitch_data_0
goto :goto_1
:pswitch_0
add-int/lit8 v2, v3, 0x1
aget-byte v5, p0, v1
and-int/lit16 v5, v5, 0xff
shr-int/lit8 v5, v5, 0x2
aget-byte v5, p1, v5
aput-byte v5, v0, v3
add-int/lit8 v3, v2, 0x1
aget-byte v5, p0, v1
and-int/lit8 v5, v5, 0x3
shl-int/lit8 v5, v5, 0x4
add-int/lit8 v1, v1, 0x1
aget-byte v6, p0, v1
and-int/lit16 v6, v6, 0xff
shr-int/lit8 v6, v6, 0x4
or-int/2addr v5, v6
aget-byte v5, p1, v5
aput-byte v5, v0, v2
add-int/lit8 v2, v3, 0x1
aget-byte p0, p0, v1
and-int/lit8 p0, p0, 0xf
shl-int/lit8 p0, p0, 0x2
aget-byte p0, p1, p0
aput-byte p0, v0, v3
aput-byte v4, v0, v2
goto :goto_1
:pswitch_1
add-int/lit8 v2, v3, 0x1
aget-byte v5, p0, v1
and-int/lit16 v5, v5, 0xff
shr-int/lit8 v5, v5, 0x2
aget-byte v5, p1, v5
aput-byte v5, v0, v3
add-int/lit8 v3, v2, 0x1
aget-byte p0, p0, v1
and-int/lit8 p0, p0, 0x3
shl-int/lit8 p0, p0, 0x4
aget-byte p0, p1, p0
aput-byte p0, v0, v2
add-int/lit8 p0, v3, 0x1
aput-byte v4, v0, v3
aput-byte v4, v0, p0
:goto_1
:try_start_0
new-instance p0, Ljava/lang/String;
const-string p1, "US-ASCII"
invoke-direct {p0, v0, p1}, Ljava/lang/String;-><init>([BLjava/lang/String;)V
:try_end_0
.catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_0} :catch_0
return-object p0
:catch_0
move-exception p0
new-instance p1, Ljava/lang/AssertionError;
invoke-direct {p1, p0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
throw p1
return-void
:pswitch_data_0
.packed-switch 0x1
:pswitch_1
:pswitch_0
.end packed-switch
.end method
.method public static y([B)Ljava/lang/String;
.locals 1
sget-object v0, Lokio/b;->buP:[B
invoke-static {p0, v0}, Lokio/b;->b([B[B)Ljava/lang/String;
move-result-object p0
return-object p0
.end method