c.smali

.class public Lcom/sdk/plus/f/c;
.super Ljava/lang/Object;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/sdk/plus/f/c$b;,
        Lcom/sdk/plus/f/c$a;
    }
.end annotation


# static fields
.field static final synthetic a:Z


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

    const-class v0, Lcom/sdk/plus/f/c;

    invoke-virtual {v0}, Ljava/lang/Class;->desiredAssertionStatus()Z

    move-result v0

    if-nez v0, :cond_c

    const/4 v0, 0x1

    :goto_9
    sput-boolean v0, Lcom/sdk/plus/f/c;->a:Z

    return-void

    :cond_c
    const/4 v0, 0x0

    goto :goto_9
.end method

.method private constructor <init>()V
    .registers 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static a(Ljava/lang/String;)[B
    .registers 16

    const/4 v14, -0x2

    const/4 v13, -0x1

    const/4 v12, 0x6

    const/4 v3, 0x0

    invoke-virtual {p0}, Ljava/lang/String;->getBytes()[B

    move-result-object v6

    array-length v0, v6

    new-instance v7, Lcom/sdk/plus/f/c$b;

    mul-int/lit8 v1, v0, 0x3

    div-int/lit8 v1, v1, 0x4

    new-array v1, v1, [B

    invoke-direct {v7, v1}, Lcom/sdk/plus/f/c$b;-><init>([B)V

    iget v1, v7, Lcom/sdk/plus/f/c$b;->c:I

    if-ne v1, v12, :cond_23

    move v0, v3

    :goto_19
    if-nez v0, :cond_140

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "bad base-64"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_23
    add-int/lit8 v8, v0, 0x0

    iget v0, v7, Lcom/sdk/plus/f/c$b;->c:I

    iget v1, v7, Lcom/sdk/plus/f/c$b;->d:I

    iget-object v9, v7, Lcom/sdk/plus/f/c$b;->a:[B

    iget-object v10, v7, Lcom/sdk/plus/f/c$b;->e:[I

    move v2, v3

    move v5, v0

    move v0, v3

    :goto_30
    if-ge v2, v8, :cond_113

    if-nez v5, :cond_79

    :goto_34
    add-int/lit8 v4, v2, 0x4

    if-gt v4, v8, :cond_77

    aget-byte v1, v6, v2

    and-int/lit16 v1, v1, 0xff

    aget v1, v10, v1

    shl-int/lit8 v1, v1, 0x12

    add-int/lit8 v4, v2, 0x1

    aget-byte v4, v6, v4

    and-int/lit16 v4, v4, 0xff

    aget v4, v10, v4

    shl-int/lit8 v4, v4, 0xc

    or-int/2addr v1, v4

    add-int/lit8 v4, v2, 0x2

    aget-byte v4, v6, v4

    and-int/lit16 v4, v4, 0xff

    aget v4, v10, v4

    shl-int/lit8 v4, v4, 0x6

    or-int/2addr v1, v4

    add-int/lit8 v4, v2, 0x3

    aget-byte v4, v6, v4

    and-int/lit16 v4, v4, 0xff

    aget v4, v10, v4

    or-int/2addr v1, v4

    if-ltz v1, :cond_77

    add-int/lit8 v4, v0, 0x2

    int-to-byte v11, v1

    aput-byte v11, v9, v4

    add-int/lit8 v4, v0, 0x1

    shr-int/lit8 v11, v1, 0x8

    int-to-byte v11, v11

    aput-byte v11, v9, v4

    shr-int/lit8 v4, v1, 0x10

    int-to-byte v4, v4

    aput-byte v4, v9, v0

    add-int/lit8 v0, v0, 0x3

    add-int/lit8 v2, v2, 0x4

    goto :goto_34

    :cond_77
    if-ge v2, v8, :cond_113

    :cond_79
    add-int/lit8 v4, v2, 0x1

    aget-byte v2, v6, v2

    and-int/lit16 v2, v2, 0xff

    aget v2, v10, v2

    packed-switch v5, :pswitch_data_156

    :cond_84
    move v2, v4

    goto :goto_30

    :pswitch_86
    if-ltz v2, :cond_8e

    add-int/lit8 v1, v5, 0x1

    move v5, v1

    move v1, v2

    move v2, v4

    goto :goto_30

    :cond_8e
    if-eq v2, v13, :cond_84

    iput v12, v7, Lcom/sdk/plus/f/c$b;->c:I

    move v0, v3

    goto :goto_19

    :pswitch_94
    if-ltz v2, :cond_9e

    shl-int/lit8 v1, v1, 0x6

    or-int/2addr v1, v2

    add-int/lit8 v2, v5, 0x1

    move v5, v2

    move v2, v4

    goto :goto_30

    :cond_9e
    if-eq v2, v13, :cond_84

    iput v12, v7, Lcom/sdk/plus/f/c$b;->c:I

    move v0, v3

    goto/16 :goto_19

    :pswitch_a5
    if-ltz v2, :cond_af

    shl-int/lit8 v1, v1, 0x6

    or-int/2addr v1, v2

    add-int/lit8 v2, v5, 0x1

    move v5, v2

    move v2, v4

    goto :goto_30

    :cond_af
    if-ne v2, v14, :cond_be

    add-int/lit8 v2, v0, 0x1

    shr-int/lit8 v5, v1, 0x4

    int-to-byte v5, v5

    aput-byte v5, v9, v0

    const/4 v0, 0x4

    move v5, v0

    move v0, v2

    move v2, v4

    goto/16 :goto_30

    :cond_be
    if-eq v2, v13, :cond_84

    iput v12, v7, Lcom/sdk/plus/f/c$b;->c:I

    move v0, v3

    goto/16 :goto_19

    :pswitch_c5
    if-ltz v2, :cond_e1

    shl-int/lit8 v1, v1, 0x6

    or-int/2addr v1, v2

    add-int/lit8 v2, v0, 0x2

    int-to-byte v5, v1

    aput-byte v5, v9, v2

    add-int/lit8 v2, v0, 0x1

    shr-int/lit8 v5, v1, 0x8

    int-to-byte v5, v5

    aput-byte v5, v9, v2

    shr-int/lit8 v2, v1, 0x10

    int-to-byte v2, v2

    aput-byte v2, v9, v0

    add-int/lit8 v0, v0, 0x3

    move v2, v4

    move v5, v3

    goto/16 :goto_30

    :cond_e1
    if-ne v2, v14, :cond_f6

    add-int/lit8 v2, v0, 0x1

    shr-int/lit8 v5, v1, 0x2

    int-to-byte v5, v5

    aput-byte v5, v9, v2

    shr-int/lit8 v2, v1, 0xa

    int-to-byte v2, v2

    aput-byte v2, v9, v0

    add-int/lit8 v0, v0, 0x2

    const/4 v2, 0x5

    move v5, v2

    move v2, v4

    goto/16 :goto_30

    :cond_f6
    if-eq v2, v13, :cond_84

    iput v12, v7, Lcom/sdk/plus/f/c$b;->c:I

    move v0, v3

    goto/16 :goto_19

    :pswitch_fd
    if-ne v2, v14, :cond_105

    add-int/lit8 v2, v5, 0x1

    move v5, v2

    move v2, v4

    goto/16 :goto_30

    :cond_105
    if-eq v2, v13, :cond_84

    iput v12, v7, Lcom/sdk/plus/f/c$b;->c:I

    move v0, v3

    goto/16 :goto_19

    :pswitch_10c
    if-eq v2, v13, :cond_84

    iput v12, v7, Lcom/sdk/plus/f/c$b;->c:I

    move v0, v3

    goto/16 :goto_19

    :cond_113
    move v2, v1

    packed-switch v5, :pswitch_data_166

    :goto_117
    :pswitch_117
    iput v5, v7, Lcom/sdk/plus/f/c$b;->c:I

    iput v0, v7, Lcom/sdk/plus/f/c$b;->b:I

    const/4 v0, 0x1

    goto/16 :goto_19

    :pswitch_11e
    iput v12, v7, Lcom/sdk/plus/f/c$b;->c:I

    move v0, v3

    goto/16 :goto_19

    :pswitch_123
    add-int/lit8 v1, v0, 0x1

    shr-int/lit8 v2, v2, 0x4

    int-to-byte v2, v2

    aput-byte v2, v9, v0

    move v0, v1

    goto :goto_117

    :pswitch_12c
    add-int/lit8 v1, v0, 0x1

    shr-int/lit8 v4, v2, 0xa

    int-to-byte v4, v4

    aput-byte v4, v9, v0

    add-int/lit8 v0, v1, 0x1

    shr-int/lit8 v2, v2, 0x2

    int-to-byte v2, v2

    aput-byte v2, v9, v1

    goto :goto_117

    :pswitch_13b
    iput v12, v7, Lcom/sdk/plus/f/c$b;->c:I

    move v0, v3

    goto/16 :goto_19

    :cond_140
    iget v0, v7, Lcom/sdk/plus/f/c$b;->b:I

    iget-object v1, v7, Lcom/sdk/plus/f/c$b;->a:[B

    array-length v1, v1

    if-ne v0, v1, :cond_14a

    iget-object v0, v7, Lcom/sdk/plus/f/c$b;->a:[B

    :goto_149
    return-object v0

    :cond_14a
    iget v0, v7, Lcom/sdk/plus/f/c$b;->b:I

    new-array v0, v0, [B

    iget-object v1, v7, Lcom/sdk/plus/f/c$b;->a:[B

    iget v2, v7, Lcom/sdk/plus/f/c$b;->b:I

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

    goto :goto_149

    :pswitch_data_156
    .packed-switch 0x0
        :pswitch_86
        :pswitch_94
        :pswitch_a5
        :pswitch_c5
        :pswitch_fd
        :pswitch_10c
    .end packed-switch

    :pswitch_data_166
    .packed-switch 0x0
        :pswitch_117
        :pswitch_11e
        :pswitch_123
        :pswitch_12c
        :pswitch_13b
    .end packed-switch
.end method