.class public final Lha/i$a;
.super Ljava/lang/Object;
.source ""


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lha/i;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = "a"
.end annotation


# direct methods
.method public constructor <init>(Li9/c;)V
    .registers 2

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

    return-void
.end method

.method public static c(Lha/i$a;[BIII)Lha/i;
    .registers 11

    and-int/lit8 p0, p4, 0x1

    if-eqz p0, :cond_5

    const/4 p2, 0x0

    :cond_5
    and-int/lit8 p0, p4, 0x2

    if-eqz p0, :cond_a

    array-length p3, p1

    .line 1
    :cond_a
    array-length p0, p1

    int-to-long v0, p0

    int-to-long v2, p2

    int-to-long v4, p3

    invoke-static/range {v0 .. v5}, Le/g;->b(JJJ)V

    new-instance p0, Lha/i;

    add-int/2addr p3, p2

    invoke-static {p1, p2, p3}, Lz8/d;->C([BII)[B

    move-result-object p1

    invoke-direct {p0, p1}, Lha/i;-><init>([B)V

    return-object p0
.end method


# virtual methods
.method public final a(Ljava/lang/String;)Lha/i;
    .registers 8

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    rem-int/lit8 v0, v0, 0x2

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-nez v0, :cond_c

    move v0, v2

    goto :goto_d

    :cond_c
    move v0, v1

    :goto_d
    if-eqz v0, :cond_3b

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    div-int/lit8 v0, v0, 0x2

    new-array v3, v0, [B

    :goto_17
    if-ge v1, v0, :cond_35

    mul-int/lit8 v4, v1, 0x2

    invoke-virtual {p1, v4}, Ljava/lang/String;->charAt(I)C

    move-result v5

    invoke-static {v5}, Lia/b;->a(C)I

    move-result v5

    shl-int/lit8 v5, v5, 0x4

    add-int/2addr v4, v2

    invoke-virtual {p1, v4}, Ljava/lang/String;->charAt(I)C

    move-result v4

    invoke-static {v4}, Lia/b;->a(C)I

    move-result v4

    add-int/2addr v4, v5

    int-to-byte v4, v4

    aput-byte v4, v3, v1

    add-int/lit8 v1, v1, 0x1

    goto :goto_17

    :cond_35
    new-instance p1, Lha/i;

    invoke-direct {p1, v3}, Lha/i;-><init>([B)V

    return-object p1

    :cond_3b
    const-string v0, "Unexpected hex string: "

    invoke-static {v0, p1}, Le/a;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    new-instance v0, Ljava/lang/IllegalArgumentException;

    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p1

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

    throw v0
.end method

.method public final b(Ljava/lang/String;)Lha/i;
    .registers 5

    new-instance v0, Lha/i;

    .line 1
    sget-object v1, Lp9/a;->a:Ljava/nio/charset/Charset;

    invoke-virtual {p1, v1}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B

    move-result-object v1

    const-string v2, "(this as java.lang.String).getBytes(charset)"

    invoke-static {v1, v2}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    .line 2
    invoke-direct {v0, v1}, Lha/i;-><init>([B)V

    .line 3
    iput-object p1, v0, Lha/i;->s:Ljava/lang/String;

    return-object v0
.end method
