v.smali
.class public final Lcom/baidu/techain/af/v;
.super Ljava/lang/Object;
# static fields
.field private static final a:Ljava/lang/String;
.field private static b:[C
.field private static c:[B
# direct methods
.method static constructor <clinit>()V
.registers 6
const/16 v5, 0x40
const/4 v1, 0x0
const-string v0, "line.separator"
invoke-static {v0}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/baidu/techain/af/v;->a:Ljava/lang/String;
new-array v0, v5, [C
sput-object v0, Lcom/baidu/techain/af/v;->b:[C
const/16 v0, 0x41
move v2, v1
:goto_12
const/16 v3, 0x5a
if-gt v0, v3, :cond_21
sget-object v4, Lcom/baidu/techain/af/v;->b:[C
add-int/lit8 v3, v2, 0x1
aput-char v0, v4, v2
add-int/lit8 v0, v0, 0x1
int-to-char v0, v0
move v2, v3
goto :goto_12
:cond_21
const/16 v0, 0x61
:goto_23
const/16 v3, 0x7a
if-gt v0, v3, :cond_32
sget-object v4, Lcom/baidu/techain/af/v;->b:[C
add-int/lit8 v3, v2, 0x1
aput-char v0, v4, v2
add-int/lit8 v0, v0, 0x1
int-to-char v0, v0
move v2, v3
goto :goto_23
:cond_32
const/16 v0, 0x30
:goto_34
const/16 v3, 0x39
if-gt v0, v3, :cond_43
sget-object v4, Lcom/baidu/techain/af/v;->b:[C
add-int/lit8 v3, v2, 0x1
aput-char v0, v4, v2
add-int/lit8 v0, v0, 0x1
int-to-char v0, v0
move v2, v3
goto :goto_34
:cond_43
sget-object v0, Lcom/baidu/techain/af/v;->b:[C
add-int/lit8 v3, v2, 0x1
const/16 v4, 0x2b
aput-char v4, v0, v2
sget-object v0, Lcom/baidu/techain/af/v;->b:[C
const/16 v2, 0x2f
aput-char v2, v0, v3
const/16 v0, 0x80
new-array v0, v0, [B
sput-object v0, Lcom/baidu/techain/af/v;->c:[B
move v0, v1
:goto_58
sget-object v2, Lcom/baidu/techain/af/v;->c:[B
array-length v2, v2
if-ge v0, v2, :cond_65
sget-object v2, Lcom/baidu/techain/af/v;->c:[B
const/4 v3, -0x1
aput-byte v3, v2, v0
add-int/lit8 v0, v0, 0x1
goto :goto_58
:cond_65
:goto_65
if-ge v1, v5, :cond_73
sget-object v0, Lcom/baidu/techain/af/v;->c:[B
sget-object v2, Lcom/baidu/techain/af/v;->b:[C
aget-char v2, v2, v1
int-to-byte v3, v1
aput-byte v3, v0, v2
add-int/lit8 v1, v1, 0x1
goto :goto_65
:cond_73
return-void
.end method
.method public static a(Ljava/lang/String;)[B
.registers 14
.prologue
const/16 v2, 0x41
const/4 v0, 0x0
const/16 v12, 0x7f
.line 0
invoke-virtual {p0}, Ljava/lang/String;->toCharArray()[C
move-result-object v6
.line 2000
array-length v1, v6
.line 3000
rem-int/lit8 v3, v1, 0x4
if-eqz v3, :cond_16
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Length of Base64 encoded input string is not a multiple of 4."
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
:cond_16
:goto_16
if-lez v1, :cond_25
add-int/lit8 v3, v1, 0x0
add-int/lit8 v3, v3, -0x1
aget-char v3, v6, v3
const/16 v4, 0x3d
if-ne v3, v4, :cond_25
add-int/lit8 v1, v1, -0x1
goto :goto_16
:cond_25
mul-int/lit8 v3, v1, 0x3
div-int/lit8 v7, v3, 0x4
new-array v8, v7, [B
add-int/lit8 v9, v1, 0x0
move v5, v0
:goto_2e
if-ge v0, v9, :cond_a3
add-int/lit8 v1, v0, 0x1
aget-char v10, v6, v0
add-int/lit8 v0, v1, 0x1
aget-char v11, v6, v1
if-ge v0, v9, :cond_57
add-int/lit8 v1, v0, 0x1
aget-char v0, v6, v0
move v4, v0
move v0, v1
:goto_40
if-ge v0, v9, :cond_59
add-int/lit8 v1, v0, 0x1
aget-char v0, v6, v0
move v3, v1
:goto_47
if-gt v10, v12, :cond_4f
if-gt v11, v12, :cond_4f
if-gt v4, v12, :cond_4f
if-le v0, v12, :cond_5c
:cond_4f
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Illegal character in Base64 encoded data."
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
:cond_57
move v4, v2
goto :goto_40
:cond_59
move v3, v0
move v0, v2
goto :goto_47
:cond_5c
sget-object v1, Lcom/baidu/techain/af/v;->c:[B
aget-byte v1, v1, v10
sget-object v10, Lcom/baidu/techain/af/v;->c:[B
aget-byte v10, v10, v11
sget-object v11, Lcom/baidu/techain/af/v;->c:[B
aget-byte v4, v11, v4
sget-object v11, Lcom/baidu/techain/af/v;->c:[B
aget-byte v0, v11, v0
if-ltz v1, :cond_74
if-ltz v10, :cond_74
if-ltz v4, :cond_74
if-gez v0, :cond_7c
:cond_74
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Illegal character in Base64 encoded data."
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
:cond_7c
shl-int/lit8 v1, v1, 0x2
ushr-int/lit8 v11, v10, 0x4
or-int/2addr v1, v11
and-int/lit8 v10, v10, 0xf
shl-int/lit8 v10, v10, 0x4
ushr-int/lit8 v11, v4, 0x2
or-int/2addr v10, v11
and-int/lit8 v4, v4, 0x3
shl-int/lit8 v4, v4, 0x6
or-int/2addr v4, v0
add-int/lit8 v0, v5, 0x1
int-to-byte v1, v1
aput-byte v1, v8, v5
if-ge v0, v7, :cond_a6
add-int/lit8 v1, v0, 0x1
int-to-byte v5, v10
aput-byte v5, v8, v0
:goto_99
if-ge v1, v7, :cond_a4
add-int/lit8 v0, v1, 0x1
int-to-byte v4, v4
aput-byte v4, v8, v1
:goto_a0
move v5, v0
move v0, v3
goto :goto_2e
.line 0
:cond_a3
return-object v8
:cond_a4
move v0, v1
goto :goto_a0
:cond_a6
move v1, v0
goto :goto_99
.end method
.method public static a([B)[C
.registers 14
.prologue
const/16 v3, 0x3d
const/4 v1, 0x0
.line 0
array-length v0, p0
.line 1000
mul-int/lit8 v2, v0, 0x4
add-int/lit8 v2, v2, 0x2
div-int/lit8 v6, v2, 0x3
add-int/lit8 v2, v0, 0x2
div-int/lit8 v2, v2, 0x3
mul-int/lit8 v2, v2, 0x4
new-array v7, v2, [C
add-int/lit8 v8, v0, 0x0
move v5, v1
move v2, v1
:goto_16
if-ge v2, v8, :cond_71
add-int/lit8 v0, v2, 0x1
aget-byte v2, p0, v2
and-int/lit16 v9, v2, 0xff
if-ge v0, v8, :cond_68
add-int/lit8 v2, v0, 0x1
aget-byte v0, p0, v0
and-int/lit16 v0, v0, 0xff
move v4, v0
move v0, v2
:goto_28
if-ge v0, v8, :cond_6a
add-int/lit8 v2, v0, 0x1
aget-byte v0, p0, v0
and-int/lit16 v0, v0, 0xff
:goto_30
ushr-int/lit8 v10, v9, 0x2
and-int/lit8 v9, v9, 0x3
shl-int/lit8 v9, v9, 0x4
ushr-int/lit8 v11, v4, 0x4
or-int/2addr v9, v11
and-int/lit8 v4, v4, 0xf
shl-int/lit8 v4, v4, 0x2
ushr-int/lit8 v11, v0, 0x6
or-int/2addr v4, v11
and-int/lit8 v11, v0, 0x3f
add-int/lit8 v0, v5, 0x1
sget-object v12, Lcom/baidu/techain/af/v;->b:[C
aget-char v10, v12, v10
aput-char v10, v7, v5
add-int/lit8 v5, v0, 0x1
sget-object v10, Lcom/baidu/techain/af/v;->b:[C
aget-char v9, v10, v9
aput-char v9, v7, v0
if-ge v5, v6, :cond_6d
sget-object v0, Lcom/baidu/techain/af/v;->b:[C
aget-char v0, v0, v4
:goto_58
aput-char v0, v7, v5
add-int/lit8 v4, v5, 0x1
if-ge v4, v6, :cond_6f
sget-object v0, Lcom/baidu/techain/af/v;->b:[C
aget-char v0, v0, v11
:goto_62
aput-char v0, v7, v4
add-int/lit8 v0, v4, 0x1
move v5, v0
goto :goto_16
:cond_68
move v4, v1
goto :goto_28
:cond_6a
move v2, v0
move v0, v1
goto :goto_30
:cond_6d
move v0, v3
goto :goto_58
:cond_6f
move v0, v3
goto :goto_62
.line 0
:cond_71
return-object v7
.end method