a.smali

.class public final Lcd/a;
.super Ljava/lang/Object;
.source "Base64Util.java"


# static fields
.field public static a:C = '='

.field public static b:[B

.field public static c:[C


# direct methods
.method public static constructor <clinit>()V
    .registers 10

    const/16 v0, 0x80

    new-array v1, v0, [B

    sput-object v1, Lcd/a;->b:[B

    const/16 v1, 0x40

    new-array v1, v1, [C

    sput-object v1, Lcd/a;->c:[C

    const/4 v1, 0x0

    const/4 v2, 0x0

    :goto_e
    if-ge v2, v0, :cond_18

    sget-object v3, Lcd/a;->b:[B

    const/4 v4, -0x1

    aput-byte v4, v3, v2

    add-int/lit8 v2, v2, 0x1

    goto :goto_e

    :cond_18
    const/16 v0, 0x5a

    :goto_1a
    const/16 v2, 0x41

    if-lt v0, v2, :cond_28

    sget-object v2, Lcd/a;->b:[B

    add-int/lit8 v3, v0, -0x41

    int-to-byte v3, v3

    aput-byte v3, v2, v0

    add-int/lit8 v0, v0, -0x1

    goto :goto_1a

    :cond_28
    const/16 v0, 0x7a

    :goto_2a
    const/16 v2, 0x1a

    const/16 v3, 0x61

    if-lt v0, v3, :cond_3b

    sget-object v3, Lcd/a;->b:[B

    add-int/lit8 v4, v0, -0x61

    add-int/2addr v4, v2

    int-to-byte v2, v4

    aput-byte v2, v3, v0

    add-int/lit8 v0, v0, -0x1

    goto :goto_2a

    :cond_3b
    const/16 v0, 0x39

    :goto_3d
    const/16 v3, 0x34

    const/16 v4, 0x30

    if-lt v0, v4, :cond_4e

    sget-object v4, Lcd/a;->b:[B

    add-int/lit8 v5, v0, -0x30

    add-int/2addr v5, v3

    int-to-byte v3, v5

    aput-byte v3, v4, v0

    add-int/lit8 v0, v0, -0x1

    goto :goto_3d

    :cond_4e
    sget-object v0, Lcd/a;->b:[B

    const/16 v4, 0x3e

    const/16 v5, 0x2b

    aput-byte v4, v0, v5

    const/16 v6, 0x3f

    const/16 v7, 0x2f

    aput-byte v6, v0, v7

    const/4 v0, 0x0

    :goto_5d
    const/16 v8, 0x19

    if-gt v0, v8, :cond_6b

    sget-object v8, Lcd/a;->c:[C

    add-int/lit8 v9, v0, 0x41

    int-to-char v9, v9

    aput-char v9, v8, v0

    add-int/lit8 v0, v0, 0x1

    goto :goto_5d

    :cond_6b
    const/4 v0, 0x0

    :goto_6c
    const/16 v8, 0x33

    if-gt v2, v8, :cond_7c

    sget-object v8, Lcd/a;->c:[C

    add-int/lit8 v9, v0, 0x61

    int-to-char v9, v9

    aput-char v9, v8, v2

    add-int/lit8 v2, v2, 0x1

    add-int/lit8 v0, v0, 0x1

    goto :goto_6c

    :cond_7c
    :goto_7c
    const/16 v0, 0x3d

    if-gt v3, v0, :cond_8c

    sget-object v0, Lcd/a;->c:[C

    add-int/lit8 v2, v1, 0x30

    int-to-char v2, v2

    aput-char v2, v0, v3

    add-int/lit8 v3, v3, 0x1

    add-int/lit8 v1, v1, 0x1

    goto :goto_7c

    :cond_8c
    sget-object v0, Lcd/a;->c:[C

    aput-char v5, v0, v4

    aput-char v7, v0, v6

    return-void
.end method

.method public static a([C)I
    .registers 6

    const/4 v0, 0x0

    if-nez p0, :cond_4

    return v0

    :cond_4
    array-length v1, p0

    const/4 v2, 0x0

    :goto_6
    if-ge v0, v1, :cond_1a

    aget-char v3, p0, v0

    invoke-static {v3}, Lcd/a;->c(C)Z

    move-result v3

    if-nez v3, :cond_17

    add-int/lit8 v3, v2, 0x1

    aget-char v4, p0, v0

    aput-char v4, p0, v2

    move v2, v3

    :cond_17
    add-int/lit8 v0, v0, 0x1

    goto :goto_6

    :cond_1a
    return v2
.end method

.method public static a(C)Z
    .registers 2

    const/16 v0, 0x80

    if-ge p0, v0, :cond_d

    sget-object v0, Lcd/a;->b:[B

    aget-byte p0, v0, p0

    const/4 v0, -0x1

    if-eq p0, v0, :cond_d

    const/4 p0, 0x1

    goto :goto_e

    :cond_d
    const/4 p0, 0x0

    :goto_e
    return p0
.end method

.method public static a(Ljava/lang/String;)[B
    .registers 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    invoke-static {p0}, Lcd/a;->b(Ljava/lang/String;)[B

    move-result-object p0

    return-object p0
.end method

.method public static b(C)Z
    .registers 2

    sget-char v0, Lcd/a;->a:C

    if-ne p0, v0, :cond_6

    const/4 p0, 0x1

    goto :goto_7

    :cond_6
    const/4 p0, 0x0

    :goto_7
    return p0
.end method

.method public static b(Ljava/lang/String;)[B
    .registers 14

    const/4 v0, 0x0

    if-nez p0, :cond_4

    return-object v0

    :cond_4
    invoke-virtual {p0}, Ljava/lang/String;->toCharArray()[C

    move-result-object p0

    invoke-static {p0}, Lcd/a;->a([C)I

    move-result v1

    rem-int/lit8 v2, v1, 0x4

    if-eqz v2, :cond_11

    return-object v0

    :cond_11
    div-int/lit8 v1, v1, 0x4

    const/4 v2, 0x0

    if-nez v1, :cond_19

    new-array p0, v2, [B

    return-object p0

    :cond_19
    mul-int/lit8 v3, v1, 0x3

    new-array v3, v3, [B

    const/4 v4, 0x0

    const/4 v5, 0x0

    const/4 v6, 0x0

    :goto_20
    add-int/lit8 v7, v1, -0x1

    if-ge v4, v7, :cond_7c

    add-int/lit8 v7, v5, 0x1

    aget-char v5, p0, v5

    invoke-static {v5}, Lcd/a;->a(C)Z

    move-result v8

    if-eqz v8, :cond_7b

    add-int/lit8 v8, v7, 0x1

    aget-char v7, p0, v7

    invoke-static {v7}, Lcd/a;->a(C)Z

    move-result v9

    if-eqz v9, :cond_7b

    add-int/lit8 v9, v8, 0x1

    aget-char v8, p0, v8

    invoke-static {v8}, Lcd/a;->a(C)Z

    move-result v10

    if-eqz v10, :cond_7b

    add-int/lit8 v10, v9, 0x1

    aget-char v9, p0, v9

    invoke-static {v9}, Lcd/a;->a(C)Z

    move-result v11

    if-nez v11, :cond_4d

    goto :goto_7b

    :cond_4d
    sget-object v11, Lcd/a;->b:[B

    aget-byte v5, v11, v5

    aget-byte v7, v11, v7

    aget-byte v8, v11, v8

    aget-byte v9, v11, v9

    add-int/lit8 v11, v6, 0x1

    shl-int/lit8 v5, v5, 0x2

    shr-int/lit8 v12, v7, 0x4

    or-int/2addr v5, v12

    int-to-byte v5, v5

    aput-byte v5, v3, v6

    add-int/lit8 v5, v11, 0x1

    and-int/lit8 v6, v7, 0xf

    shl-int/lit8 v6, v6, 0x4

    shr-int/lit8 v7, v8, 0x2

    and-int/lit8 v7, v7, 0xf

    or-int/2addr v6, v7

    int-to-byte v6, v6

    aput-byte v6, v3, v11

    add-int/lit8 v6, v5, 0x1

    shl-int/lit8 v7, v8, 0x6

    or-int/2addr v7, v9

    int-to-byte v7, v7

    aput-byte v7, v3, v5

    add-int/lit8 v4, v4, 0x1

    move v5, v10

    goto :goto_20

    :cond_7b
    :goto_7b
    return-object v0

    :cond_7c
    add-int/lit8 v1, v5, 0x1

    aget-char v5, p0, v5

    invoke-static {v5}, Lcd/a;->a(C)Z

    move-result v7

    if-eqz v7, :cond_127

    add-int/lit8 v7, v1, 0x1

    aget-char v1, p0, v1

    invoke-static {v1}, Lcd/a;->a(C)Z

    move-result v8

    if-nez v8, :cond_92

    goto/16 :goto_127

    :cond_92
    sget-object v8, Lcd/a;->b:[B

    aget-byte v5, v8, v5

    aget-byte v1, v8, v1

    add-int/lit8 v8, v7, 0x1

    aget-char v7, p0, v7

    aget-char p0, p0, v8

    invoke-static {v7}, Lcd/a;->a(C)Z

    move-result v8

    if-eqz v8, :cond_d0

    invoke-static {p0}, Lcd/a;->a(C)Z

    move-result v8

    if-nez v8, :cond_ab

    goto :goto_d0

    :cond_ab
    sget-object v0, Lcd/a;->b:[B

    aget-byte v2, v0, v7

    aget-byte p0, v0, p0

    add-int/lit8 v0, v6, 0x1

    shl-int/lit8 v4, v5, 0x2

    shr-int/lit8 v5, v1, 0x4

    or-int/2addr v4, v5

    int-to-byte v4, v4

    aput-byte v4, v3, v6

    add-int/lit8 v4, v0, 0x1

    and-int/lit8 v1, v1, 0xf

    shl-int/lit8 v1, v1, 0x4

    shr-int/lit8 v5, v2, 0x2

    and-int/lit8 v5, v5, 0xf

    or-int/2addr v1, v5

    int-to-byte v1, v1

    aput-byte v1, v3, v0

    shl-int/lit8 v0, v2, 0x6

    or-int/2addr p0, v0

    int-to-byte p0, p0

    aput-byte p0, v3, v4

    return-object v3

    :cond_d0
    :goto_d0
    invoke-static {v7}, Lcd/a;->b(C)Z

    move-result v8

    if-eqz v8, :cond_f3

    invoke-static {p0}, Lcd/a;->b(C)Z

    move-result v8

    if-eqz v8, :cond_f3

    and-int/lit8 p0, v1, 0xf

    if-eqz p0, :cond_e1

    return-object v0

    :cond_e1
    mul-int/lit8 v4, v4, 0x3

    add-int/lit8 p0, v4, 0x1

    new-array p0, p0, [B

    invoke-static {v3, v2, p0, v2, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    shl-int/lit8 v0, v5, 0x2

    shr-int/lit8 v1, v1, 0x4

    or-int/2addr v0, v1

    int-to-byte v0, v0

    aput-byte v0, p0, v6

    return-object p0

    :cond_f3
    invoke-static {v7}, Lcd/a;->b(C)Z

    move-result v8

    if-nez v8, :cond_127

    invoke-static {p0}, Lcd/a;->b(C)Z

    move-result p0

    if-eqz p0, :cond_127

    sget-object p0, Lcd/a;->b:[B

    aget-byte p0, p0, v7

    and-int/lit8 v7, p0, 0x3

    if-eqz v7, :cond_108

    return-object v0

    :cond_108
    mul-int/lit8 v4, v4, 0x3

    add-int/lit8 v0, v4, 0x2

    new-array v0, v0, [B

    invoke-static {v3, v2, v0, v2, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    add-int/lit8 v2, v6, 0x1

    shl-int/lit8 v3, v5, 0x2

    shr-int/lit8 v4, v1, 0x4

    or-int/2addr v3, v4

    int-to-byte v3, v3

    aput-byte v3, v0, v6

    and-int/lit8 v1, v1, 0xf

    shl-int/lit8 v1, v1, 0x4

    shr-int/lit8 p0, p0, 0x2

    and-int/lit8 p0, p0, 0xf

    or-int/2addr p0, v1

    int-to-byte p0, p0

    aput-byte p0, v0, v2

    :cond_127
    :goto_127
    return-object v0
.end method

.method public static c(C)Z
    .registers 2

    const/16 v0, 0x20

    if-eq p0, v0, :cond_13

    const/16 v0, 0xd

    if-eq p0, v0, :cond_13

    const/16 v0, 0xa

    if-eq p0, v0, :cond_13

    const/16 v0, 0x9

    if-ne p0, v0, :cond_11

    goto :goto_13

    :cond_11
    const/4 p0, 0x0

    goto :goto_14

    :cond_13
    :goto_13
    const/4 p0, 0x1

    :goto_14
    return p0
.end method