Rabbit-R1/switch port/smali/smali_classes3/kotlin/text/HexExtensionsKt.smali
2024-05-21 17:08:36 -04:00

2411 lines
58 KiB
Smali

.class public final Lkotlin/text/HexExtensionsKt;
.super Ljava/lang/Object;
.source "HexExtensions.kt"
# annotations
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nHexExtensions.kt\nKotlin\n*S Kotlin\n*F\n+ 1 HexExtensions.kt\nkotlin/text/HexExtensionsKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 _Strings.kt\nkotlin/text/StringsKt___StringsKt\n*L\n1#1,591:1\n1#2:592\n1183#3,3:593\n1183#3,3:596\n*S KotlinDebug\n*F\n+ 1 HexExtensions.kt\nkotlin/text/HexExtensionsKt\n*L\n13#1:593,3\n14#1:596,3\n*E\n"
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000L\n\u0000\n\u0002\u0010\u0015\n\u0000\n\u0002\u0010\u000e\n\u0002\u0008\u0002\n\u0002\u0010\t\n\u0002\u0008\u0002\n\u0002\u0010\u0008\n\u0002\u0008\u0012\n\u0002\u0010\u0002\n\u0002\u0008\u0003\n\u0002\u0010\u000b\n\u0002\u0008\u0003\n\u0002\u0010\u0005\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0012\n\u0002\u0008\u0004\n\u0002\u0010\n\n\u0002\u0008\u0004\u001a \u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0008\u001a\u00020\t2\u0006\u0010\n\u001a\u00020\tH\u0002\u001a@\u0010\u000b\u001a\u00020\t2\u0006\u0010\u000c\u001a\u00020\t2\u0006\u0010\r\u001a\u00020\t2\u0006\u0010\u000e\u001a\u00020\t2\u0006\u0010\u000f\u001a\u00020\t2\u0006\u0010\u0010\u001a\u00020\t2\u0006\u0010\u0011\u001a\u00020\t2\u0006\u0010\u0012\u001a\u00020\tH\u0000\u001a@\u0010\u0013\u001a\u00020\t2\u0006\u0010\u0014\u001a\u00020\t2\u0006\u0010\r\u001a\u00020\t2\u0006\u0010\u000e\u001a\u00020\t2\u0006\u0010\u000f\u001a\u00020\t2\u0006\u0010\u0010\u001a\u00020\t2\u0006\u0010\u0011\u001a\u00020\t2\u0006\u0010\u0012\u001a\u00020\tH\u0000\u001a \u0010\u0015\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u00062\u0006\u0010\n\u001a\u00020\tH\u0002\u001a,\u0010\u0016\u001a\u00020\t*\u00020\u00032\u0006\u0010\u0017\u001a\u00020\u00032\u0006\u0010\u0018\u001a\u00020\t2\u0006\u0010\u0019\u001a\u00020\t2\u0006\u0010\u001a\u001a\u00020\u0003H\u0002\u001a,\u0010\u001b\u001a\u00020\u001c*\u00020\u00032\u0006\u0010\u001d\u001a\u00020\t2\u0006\u0010\u0019\u001a\u00020\t2\u0006\u0010\u001e\u001a\u00020\t2\u0006\u0010\u001f\u001a\u00020 H\u0002\u001a\u001c\u0010!\u001a\u00020\t*\u00020\u00032\u0006\u0010\u0018\u001a\u00020\t2\u0006\u0010\u0019\u001a\u00020\tH\u0002\u001a\u0014\u0010\"\u001a\u00020\t*\u00020\u00032\u0006\u0010\u0018\u001a\u00020\tH\u0002\u001a*\u0010#\u001a\u00020$*\u00020\u00032\u0008\u0008\u0002\u0010\u001d\u001a\u00020\t2\u0008\u0008\u0002\u0010\u0019\u001a\u00020\t2\u0008\u0008\u0002\u0010%\u001a\u00020&H\u0003\u001a\u0016\u0010#\u001a\u00020$*\u00020\u00032\u0008\u0008\u0002\u0010%\u001a\u00020&H\u0007\u001a*\u0010\'\u001a\u00020(*\u00020\u00032\u0008\u0008\u0002\u0010\u001d\u001a\u00020\t2\u0008\u0008\u0002\u0010\u0019\u001a\u00020\t2\u0008\u0008\u0002\u0010%\u001a\u00020&H\u0003\u001a\u0016\u0010\'\u001a\u00020(*\u00020\u00032\u0008\u0008\u0002\u0010%\u001a\u00020&H\u0007\u001a*\u0010)\u001a\u00020\t*\u00020\u00032\u0008\u0008\u0002\u0010\u001d\u001a\u00020\t2\u0008\u0008\u0002\u0010\u0019\u001a\u00020\t2\u0008\u0008\u0002\u0010%\u001a\u00020&H\u0003\u001a\u0016\u0010)\u001a\u00020\t*\u00020\u00032\u0008\u0008\u0002\u0010%\u001a\u00020&H\u0007\u001a*\u0010*\u001a\u00020\u0006*\u00020\u00032\u0008\u0008\u0002\u0010\u001d\u001a\u00020\t2\u0008\u0008\u0002\u0010\u0019\u001a\u00020\t2\u0008\u0008\u0002\u0010%\u001a\u00020&H\u0003\u001a\u0016\u0010*\u001a\u00020\u0006*\u00020\u00032\u0008\u0008\u0002\u0010%\u001a\u00020&H\u0007\u001a0\u0010+\u001a\u00020\u0006*\u00020\u00032\u0008\u0008\u0002\u0010\u001d\u001a\u00020\t2\u0008\u0008\u0002\u0010\u0019\u001a\u00020\t2\u0006\u0010%\u001a\u00020&2\u0006\u0010\u001e\u001a\u00020\tH\u0003\u001a*\u0010,\u001a\u00020-*\u00020\u00032\u0008\u0008\u0002\u0010\u001d\u001a\u00020\t2\u0008\u0008\u0002\u0010\u0019\u001a\u00020\t2\u0008\u0008\u0002\u0010%\u001a\u00020&H\u0003\u001a\u0016\u0010,\u001a\u00020-*\u00020\u00032\u0008\u0008\u0002\u0010%\u001a\u00020&H\u0007\u001a\u0016\u0010.\u001a\u00020\u0003*\u00020$2\u0008\u0008\u0002\u0010%\u001a\u00020&H\u0007\u001a*\u0010.\u001a\u00020\u0003*\u00020(2\u0008\u0008\u0002\u0010\u001d\u001a\u00020\t2\u0008\u0008\u0002\u0010\u0019\u001a\u00020\t2\u0008\u0008\u0002\u0010%\u001a\u00020&H\u0007\u001a\u0016\u0010.\u001a\u00020\u0003*\u00020(2\u0008\u0008\u0002\u0010%\u001a\u00020&H\u0007\u001a\u0016\u0010.\u001a\u00020\u0003*\u00020\t2\u0008\u0008\u0002\u0010%\u001a\u00020&H\u0007\u001a\u0016\u0010.\u001a\u00020\u0003*\u00020\u00062\u0008\u0008\u0002\u0010%\u001a\u00020&H\u0007\u001a\u0016\u0010.\u001a\u00020\u0003*\u00020-2\u0008\u0008\u0002\u0010%\u001a\u00020&H\u0007\u001a\u001c\u0010/\u001a\u00020\u0003*\u00020\u00062\u0006\u0010%\u001a\u00020&2\u0006\u00100\u001a\u00020\tH\u0003\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0082\u0004\u00a2\u0006\u0002\n\u0000\"\u000e\u0010\u0002\u001a\u00020\u0003X\u0082T\u00a2\u0006\u0002\n\u0000\"\u000e\u0010\u0004\u001a\u00020\u0003X\u0082T\u00a2\u0006\u0002\n\u0000\u00a8\u00061"
}
d2 = {
"HEX_DIGITS_TO_DECIMAL",
"",
"LOWER_CASE_HEX_DIGITS",
"",
"UPPER_CASE_HEX_DIGITS",
"charsPerSet",
"",
"charsPerElement",
"elementsPerSet",
"",
"elementSeparatorLength",
"formattedStringLength",
"totalBytes",
"bytesPerLine",
"bytesPerGroup",
"groupSeparatorLength",
"byteSeparatorLength",
"bytePrefixLength",
"byteSuffixLength",
"parsedByteArrayMaxSize",
"stringLength",
"wholeElementsPerSet",
"checkContainsAt",
"part",
"index",
"endIndex",
"partName",
"checkHexLength",
"",
"startIndex",
"maxDigits",
"requireMaxLength",
"",
"checkNewLineAt",
"decimalFromHexDigitAt",
"hexToByte",
"",
"format",
"Lkotlin/text/HexFormat;",
"hexToByteArray",
"",
"hexToInt",
"hexToLong",
"hexToLongImpl",
"hexToShort",
"",
"toHexString",
"toHexStringImpl",
"bits",
"kotlin-stdlib"
}
k = 0x2
mv = {
0x1,
0x9,
0x0
}
xi = 0x30
.end annotation
# static fields
.field private static final HEX_DIGITS_TO_DECIMAL:[I
.field private static final LOWER_CASE_HEX_DIGITS:Ljava/lang/String; = "0123456789abcdef"
.field private static final UPPER_CASE_HEX_DIGITS:Ljava/lang/String; = "0123456789ABCDEF"
# direct methods
.method static constructor <clinit>()V
.locals 7
const/16 v0, 0x80
new-array v1, v0, [I
const/4 v2, 0x0
move v3, v2
:goto_0
if-ge v3, v0, :cond_0
const/4 v4, -0x1
.line 12
aput v4, v1, v3
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_0
const-string v0, "0123456789abcdef"
.line 13
check-cast v0, Ljava/lang/CharSequence;
move v3, v2
move v4, v3
.line 594
:goto_1
invoke-interface {v0}, Ljava/lang/CharSequence;->length()I
move-result v5
if-ge v3, v5, :cond_1
invoke-interface {v0, v3}, Ljava/lang/CharSequence;->charAt(I)C
move-result v5
add-int/lit8 v6, v4, 0x1
.line 13
aput v4, v1, v5
add-int/lit8 v3, v3, 0x1
move v4, v6
goto :goto_1
:cond_1
const-string v0, "0123456789ABCDEF"
.line 14
check-cast v0, Ljava/lang/CharSequence;
move v3, v2
.line 597
:goto_2
invoke-interface {v0}, Ljava/lang/CharSequence;->length()I
move-result v4
if-ge v2, v4, :cond_2
invoke-interface {v0, v2}, Ljava/lang/CharSequence;->charAt(I)C
move-result v4
add-int/lit8 v5, v3, 0x1
.line 14
aput v3, v1, v4
add-int/lit8 v2, v2, 0x1
move v3, v5
goto :goto_2
:cond_2
sput-object v1, Lkotlin/text/HexExtensionsKt;->HEX_DIGITS_TO_DECIMAL:[I
return-void
.end method
.method private static final charsPerSet(JII)J
.locals 4
if-lez p2, :cond_0
int-to-long v0, p2
mul-long/2addr p0, v0
int-to-long p2, p3
const-wide/16 v2, 0x1
sub-long/2addr v0, v2
mul-long/2addr p2, v0
add-long/2addr p0, p2
return-wide p0
.line 302
:cond_0
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string p1, "Failed requirement."
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method private static final checkContainsAt(Ljava/lang/String;Ljava/lang/String;IILjava/lang/String;)I
.locals 7
.line 563
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v0
add-int/2addr v0, p2
if-gt v0, p3, :cond_0
const/4 v4, 0x0
.line 564
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v5
const/4 v6, 0x1
move-object v1, p0
move v2, p2
move-object v3, p1
invoke-static/range {v1 .. v6}, Lkotlin/text/StringsKt;->regionMatches(Ljava/lang/String;ILjava/lang/String;IIZ)Z
move-result v1
if-eqz v1, :cond_0
return v0
.line 565
:cond_0
new-instance v1, Ljava/lang/NumberFormatException;
.line 566
new-instance v2, Ljava/lang/StringBuilder;
const-string v3, "Expected "
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v2, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p4
const-string v2, " \""
invoke-virtual {p4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p4
invoke-virtual {p4, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
const-string p4, "\" at index "
invoke-virtual {p1, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object p1
const-string p4, ", but was "
invoke-virtual {p1, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-static {v0, p3}, Lkotlin/ranges/RangesKt;->coerceAtMost(II)I
move-result p3
const-string p4, "null cannot be cast to non-null type java.lang.String"
invoke-static {p0, p4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p0, p2, p3}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object p0
const-string p2, "substring(...)"
invoke-static {p0, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
.line 565
invoke-direct {v1, p0}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
throw v1
.end method
.method private static final checkHexLength(Ljava/lang/String;IIIZ)V
.locals 3
sub-int v0, p2, p1
if-eqz p4, :cond_0
if-ne v0, p3, :cond_1
goto :goto_0
:cond_0
if-gt v0, p3, :cond_1
:goto_0
return-void
:cond_1
if-eqz p4, :cond_2
const-string p4, "exactly"
goto :goto_1
:cond_2
const-string p4, "at most"
:goto_1
const-string v1, "null cannot be cast to non-null type java.lang.String"
.line 577
invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p0, p1, p2}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object p0
const-string p2, "substring(...)"
invoke-static {p0, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
.line 578
new-instance p2, Ljava/lang/NumberFormatException;
.line 579
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "Expected "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p4
const/16 v1, 0x20
invoke-virtual {p4, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
move-result-object p4
invoke-virtual {p4, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object p3
const-string p4, " hexadecimal digits at index "
invoke-virtual {p3, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p3
invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object p1
const-string p3, ", but was "
invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p0
const-string p1, " of length "
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
.line 578
invoke-direct {p2, p0}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
throw p2
.end method
.method private static final checkNewLineAt(Ljava/lang/String;II)I
.locals 3
.line 312
invoke-virtual {p0, p1}, Ljava/lang/String;->charAt(I)C
move-result v0
const/16 v1, 0xd
const/16 v2, 0xa
if-ne v0, v1, :cond_0
add-int/lit8 v0, p1, 0x1
if-ge v0, p2, :cond_1
.line 313
invoke-virtual {p0, v0}, Ljava/lang/String;->charAt(I)C
move-result p0
if-ne p0, v2, :cond_1
add-int/lit8 v0, p1, 0x2
goto :goto_0
.line 314
:cond_0
invoke-virtual {p0, p1}, Ljava/lang/String;->charAt(I)C
move-result p2
if-ne p2, v2, :cond_2
add-int/lit8 v0, p1, 0x1
:cond_1
:goto_0
return v0
.line 317
:cond_2
new-instance p2, Ljava/lang/NumberFormatException;
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Expected a new line at index "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ", but was "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {p0, p1}, Ljava/lang/String;->charAt(I)C
move-result p0
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {p2, p0}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
throw p2
.end method
.method private static final decimalFromHexDigitAt(Ljava/lang/String;I)I
.locals 3
.line 585
invoke-virtual {p0, p1}, Ljava/lang/String;->charAt(I)C
move-result v0
const/16 v1, 0x7f
if-gt v0, v1, :cond_0
sget-object v1, Lkotlin/text/HexExtensionsKt;->HEX_DIGITS_TO_DECIMAL:[I
.line 586
aget v0, v1, v0
if-ltz v0, :cond_0
return v0
.line 587
:cond_0
new-instance v0, Ljava/lang/NumberFormatException;
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "Expected a hexadecimal digit at index "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, ", but was "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {p0, p1}, Ljava/lang/String;->charAt(I)C
move-result p0
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static final formattedStringLength(IIIIIII)I
.locals 5
if-lez p0, :cond_2
add-int/lit8 v0, p0, -0x1
.line 123
div-int v1, v0, p1
add-int/lit8 v2, p1, -0x1
.line 125
div-int/2addr v2, p2
.line 126
rem-int v3, p0, p1
if-nez v3, :cond_0
goto :goto_0
:cond_0
move p1, v3
:goto_0
add-int/lit8 p1, p1, -0x1
.line 127
div-int/2addr p1, p2
mul-int/2addr v2, v1
add-int/2addr v2, p1
sub-int/2addr v0, v1
sub-int/2addr v0, v2
int-to-long p1, v1
int-to-long v1, v2
int-to-long v3, p3
mul-long/2addr v1, v3
add-long/2addr p1, v1
int-to-long v0, v0
int-to-long p3, p4
mul-long/2addr v0, p3
add-long/2addr p1, v0
int-to-long p3, p0
int-to-long v0, p5
const-wide/16 v2, 0x2
add-long/2addr v0, v2
int-to-long p5, p6
add-long/2addr v0, p5
mul-long/2addr p3, v0
add-long/2addr p1, p3
.line 142
new-instance p0, Lkotlin/ranges/IntRange;
const/4 p3, 0x0
const p4, 0x7fffffff
invoke-direct {p0, p3, p4}, Lkotlin/ranges/IntRange;-><init>(II)V
check-cast p0, Lkotlin/ranges/ClosedRange;
invoke-static {p0, p1, p2}, Lkotlin/ranges/RangesKt;->intRangeContains(Lkotlin/ranges/ClosedRange;J)Z
move-result p0
if-eqz p0, :cond_1
long-to-int p0, p1
return p0
.line 144
:cond_1
new-instance p0, Ljava/lang/IllegalArgumentException;
new-instance p3, Ljava/lang/StringBuilder;
const-string p4, "The resulting string length is too big: "
invoke-direct {p3, p4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-static {p1, p2}, Lkotlin/ULong;->constructor-impl(J)J
move-result-wide p1
invoke-static {p1, p2}, Lkotlin/ULong;->toString-impl(J)Ljava/lang/String;
move-result-object p1
invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.line 120
:cond_2
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string p1, "Failed requirement."
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method private static final hexToByte(Ljava/lang/String;IILkotlin/text/HexFormat;)B
.locals 1
const/4 v0, 0x2
.line 365
invoke-static {p0, p1, p2, p3, v0}, Lkotlin/text/HexExtensionsKt;->hexToLongImpl(Ljava/lang/String;IILkotlin/text/HexFormat;I)J
move-result-wide p0
long-to-int p0, p0
int-to-byte p0, p0
return p0
.end method
.method public static final hexToByte(Ljava/lang/String;Lkotlin/text/HexFormat;)B
.locals 2
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "format"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
.line 346
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v1
invoke-static {p0, v0, v1, p1}, Lkotlin/text/HexExtensionsKt;->hexToByte(Ljava/lang/String;IILkotlin/text/HexFormat;)B
move-result p0
return p0
.end method
.method static synthetic hexToByte$default(Ljava/lang/String;IILkotlin/text/HexFormat;ILjava/lang/Object;)B
.locals 0
and-int/lit8 p5, p4, 0x1
if-eqz p5, :cond_0
const/4 p1, 0x0
:cond_0
and-int/lit8 p5, p4, 0x2
if-eqz p5, :cond_1
.line 364
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result p2
:cond_1
and-int/lit8 p4, p4, 0x4
if-eqz p4, :cond_2
sget-object p3, Lkotlin/text/HexFormat;->Companion:Lkotlin/text/HexFormat$Companion;
invoke-virtual {p3}, Lkotlin/text/HexFormat$Companion;->getDefault()Lkotlin/text/HexFormat;
move-result-object p3
:cond_2
invoke-static {p0, p1, p2, p3}, Lkotlin/text/HexExtensionsKt;->hexToByte(Ljava/lang/String;IILkotlin/text/HexFormat;)B
move-result p0
return p0
.end method
.method public static synthetic hexToByte$default(Ljava/lang/String;Lkotlin/text/HexFormat;ILjava/lang/Object;)B
.locals 0
and-int/lit8 p2, p2, 0x1
if-eqz p2, :cond_0
.line 346
sget-object p1, Lkotlin/text/HexFormat;->Companion:Lkotlin/text/HexFormat$Companion;
invoke-virtual {p1}, Lkotlin/text/HexFormat$Companion;->getDefault()Lkotlin/text/HexFormat;
move-result-object p1
:cond_0
invoke-static {p0, p1}, Lkotlin/text/HexExtensionsKt;->hexToByte(Ljava/lang/String;Lkotlin/text/HexFormat;)B
move-result p0
return p0
.end method
.method private static final hexToByteArray(Ljava/lang/String;IILkotlin/text/HexFormat;)[B
.locals 18
move-object/from16 v0, p0
move/from16 v1, p1
move/from16 v2, p2
.line 187
sget-object v3, Lkotlin/collections/AbstractList;->Companion:Lkotlin/collections/AbstractList$Companion;
invoke-virtual/range {p0 .. p0}, Ljava/lang/String;->length()I
move-result v4
invoke-virtual {v3, v1, v2, v4}, Lkotlin/collections/AbstractList$Companion;->checkBoundsIndexes$kotlin_stdlib(III)V
const/4 v3, 0x0
if-ne v1, v2, :cond_0
new-array v0, v3, [B
return-object v0
.line 193
:cond_0
invoke-virtual/range {p3 .. p3}, Lkotlin/text/HexFormat;->getBytes()Lkotlin/text/HexFormat$BytesHexFormat;
move-result-object v4
.line 194
invoke-virtual {v4}, Lkotlin/text/HexFormat$BytesHexFormat;->getBytesPerLine()I
move-result v12
.line 195
invoke-virtual {v4}, Lkotlin/text/HexFormat$BytesHexFormat;->getBytesPerGroup()I
move-result v13
.line 196
invoke-virtual {v4}, Lkotlin/text/HexFormat$BytesHexFormat;->getBytePrefix()Ljava/lang/String;
move-result-object v14
.line 197
invoke-virtual {v4}, Lkotlin/text/HexFormat$BytesHexFormat;->getByteSuffix()Ljava/lang/String;
move-result-object v15
.line 198
invoke-virtual {v4}, Lkotlin/text/HexFormat$BytesHexFormat;->getByteSeparator()Ljava/lang/String;
move-result-object v11
.line 199
invoke-virtual {v4}, Lkotlin/text/HexFormat$BytesHexFormat;->getGroupSeparator()Ljava/lang/String;
move-result-object v4
sub-int v5, v2, v1
.line 205
invoke-virtual {v4}, Ljava/lang/String;->length()I
move-result v8
.line 206
invoke-virtual {v11}, Ljava/lang/String;->length()I
move-result v9
.line 207
invoke-virtual {v14}, Ljava/lang/String;->length()I
move-result v10
.line 208
invoke-virtual {v15}, Ljava/lang/String;->length()I
move-result v16
move v6, v12
move v7, v13
move-object v3, v11
move/from16 v11, v16
.line 201
invoke-static/range {v5 .. v11}, Lkotlin/text/HexExtensionsKt;->parsedByteArrayMaxSize(IIIIIII)I
move-result v5
.line 210
new-array v6, v5, [B
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
:goto_0
if-ge v1, v2, :cond_4
if-ne v8, v12, :cond_1
.line 219
invoke-static {v0, v1, v2}, Lkotlin/text/HexExtensionsKt;->checkNewLineAt(Ljava/lang/String;II)I
move-result v1
const/4 v8, 0x0
:goto_1
const/4 v9, 0x0
goto :goto_2
:cond_1
if-ne v9, v13, :cond_2
const-string v9, "group separator"
.line 223
invoke-static {v0, v4, v1, v2, v9}, Lkotlin/text/HexExtensionsKt;->checkContainsAt(Ljava/lang/String;Ljava/lang/String;IILjava/lang/String;)I
move-result v1
goto :goto_1
:cond_2
if-eqz v9, :cond_3
const-string v10, "byte separator"
.line 226
invoke-static {v0, v3, v1, v2, v10}, Lkotlin/text/HexExtensionsKt;->checkContainsAt(Ljava/lang/String;Ljava/lang/String;IILjava/lang/String;)I
move-result v1
:cond_3
:goto_2
const/4 v10, 0x1
add-int/2addr v8, v10
add-int/2addr v9, v10
const-string v11, "byte prefix"
.line 231
invoke-static {v0, v14, v1, v2, v11}, Lkotlin/text/HexExtensionsKt;->checkContainsAt(Ljava/lang/String;Ljava/lang/String;IILjava/lang/String;)I
move-result v1
add-int/lit8 v11, v1, 0x2
.line 233
invoke-static {v11, v2}, Lkotlin/ranges/RangesKt;->coerceAtMost(II)I
move-result v11
move-object/from16 v16, v3
const/4 v3, 0x2
invoke-static {v0, v1, v11, v3, v10}, Lkotlin/text/HexExtensionsKt;->checkHexLength(Ljava/lang/String;IIIZ)V
add-int/lit8 v10, v7, 0x1
add-int/lit8 v11, v1, 0x1
.line 235
invoke-static {v0, v1}, Lkotlin/text/HexExtensionsKt;->decimalFromHexDigitAt(Ljava/lang/String;I)I
move-result v17
shl-int/lit8 v17, v17, 0x4
add-int/2addr v1, v3
invoke-static {v0, v11}, Lkotlin/text/HexExtensionsKt;->decimalFromHexDigitAt(Ljava/lang/String;I)I
move-result v3
or-int v3, v17, v3
int-to-byte v3, v3
aput-byte v3, v6, v7
const-string v3, "byte suffix"
.line 237
invoke-static {v0, v15, v1, v2, v3}, Lkotlin/text/HexExtensionsKt;->checkContainsAt(Ljava/lang/String;Ljava/lang/String;IILjava/lang/String;)I
move-result v1
move v7, v10
move-object/from16 v3, v16
goto :goto_0
:cond_4
if-ne v7, v5, :cond_5
goto :goto_3
.line 240
:cond_5
invoke-static {v6, v7}, Ljava/util/Arrays;->copyOf([BI)[B
move-result-object v6
const-string v0, "copyOf(...)"
invoke-static {v6, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
:goto_3
return-object v6
.end method
.method public static final hexToByteArray(Ljava/lang/String;Lkotlin/text/HexFormat;)[B
.locals 2
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "format"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
.line 163
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v1
invoke-static {p0, v0, v1, p1}, Lkotlin/text/HexExtensionsKt;->hexToByteArray(Ljava/lang/String;IILkotlin/text/HexFormat;)[B
move-result-object p0
return-object p0
.end method
.method static synthetic hexToByteArray$default(Ljava/lang/String;IILkotlin/text/HexFormat;ILjava/lang/Object;)[B
.locals 0
and-int/lit8 p5, p4, 0x1
if-eqz p5, :cond_0
const/4 p1, 0x0
:cond_0
and-int/lit8 p5, p4, 0x2
if-eqz p5, :cond_1
.line 184
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result p2
:cond_1
and-int/lit8 p4, p4, 0x4
if-eqz p4, :cond_2
.line 185
sget-object p3, Lkotlin/text/HexFormat;->Companion:Lkotlin/text/HexFormat$Companion;
invoke-virtual {p3}, Lkotlin/text/HexFormat$Companion;->getDefault()Lkotlin/text/HexFormat;
move-result-object p3
.line 182
:cond_2
invoke-static {p0, p1, p2, p3}, Lkotlin/text/HexExtensionsKt;->hexToByteArray(Ljava/lang/String;IILkotlin/text/HexFormat;)[B
move-result-object p0
return-object p0
.end method
.method public static synthetic hexToByteArray$default(Ljava/lang/String;Lkotlin/text/HexFormat;ILjava/lang/Object;)[B
.locals 0
and-int/lit8 p2, p2, 0x1
if-eqz p2, :cond_0
.line 163
sget-object p1, Lkotlin/text/HexFormat;->Companion:Lkotlin/text/HexFormat$Companion;
invoke-virtual {p1}, Lkotlin/text/HexFormat$Companion;->getDefault()Lkotlin/text/HexFormat;
move-result-object p1
:cond_0
invoke-static {p0, p1}, Lkotlin/text/HexExtensionsKt;->hexToByteArray(Ljava/lang/String;Lkotlin/text/HexFormat;)[B
move-result-object p0
return-object p0
.end method
.method private static final hexToInt(Ljava/lang/String;IILkotlin/text/HexFormat;)I
.locals 1
const/16 v0, 0x8
.line 457
invoke-static {p0, p1, p2, p3, v0}, Lkotlin/text/HexExtensionsKt;->hexToLongImpl(Ljava/lang/String;IILkotlin/text/HexFormat;I)J
move-result-wide p0
long-to-int p0, p0
return p0
.end method
.method public static final hexToInt(Ljava/lang/String;Lkotlin/text/HexFormat;)I
.locals 2
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "format"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
.line 438
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v1
invoke-static {p0, v0, v1, p1}, Lkotlin/text/HexExtensionsKt;->hexToInt(Ljava/lang/String;IILkotlin/text/HexFormat;)I
move-result p0
return p0
.end method
.method static synthetic hexToInt$default(Ljava/lang/String;IILkotlin/text/HexFormat;ILjava/lang/Object;)I
.locals 0
and-int/lit8 p5, p4, 0x1
if-eqz p5, :cond_0
const/4 p1, 0x0
:cond_0
and-int/lit8 p5, p4, 0x2
if-eqz p5, :cond_1
.line 456
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result p2
:cond_1
and-int/lit8 p4, p4, 0x4
if-eqz p4, :cond_2
sget-object p3, Lkotlin/text/HexFormat;->Companion:Lkotlin/text/HexFormat$Companion;
invoke-virtual {p3}, Lkotlin/text/HexFormat$Companion;->getDefault()Lkotlin/text/HexFormat;
move-result-object p3
:cond_2
invoke-static {p0, p1, p2, p3}, Lkotlin/text/HexExtensionsKt;->hexToInt(Ljava/lang/String;IILkotlin/text/HexFormat;)I
move-result p0
return p0
.end method
.method public static synthetic hexToInt$default(Ljava/lang/String;Lkotlin/text/HexFormat;ILjava/lang/Object;)I
.locals 0
and-int/lit8 p2, p2, 0x1
if-eqz p2, :cond_0
.line 438
sget-object p1, Lkotlin/text/HexFormat;->Companion:Lkotlin/text/HexFormat$Companion;
invoke-virtual {p1}, Lkotlin/text/HexFormat$Companion;->getDefault()Lkotlin/text/HexFormat;
move-result-object p1
:cond_0
invoke-static {p0, p1}, Lkotlin/text/HexExtensionsKt;->hexToInt(Ljava/lang/String;Lkotlin/text/HexFormat;)I
move-result p0
return p0
.end method
.method private static final hexToLong(Ljava/lang/String;IILkotlin/text/HexFormat;)J
.locals 1
const/16 v0, 0x10
.line 503
invoke-static {p0, p1, p2, p3, v0}, Lkotlin/text/HexExtensionsKt;->hexToLongImpl(Ljava/lang/String;IILkotlin/text/HexFormat;I)J
move-result-wide p0
return-wide p0
.end method
.method public static final hexToLong(Ljava/lang/String;Lkotlin/text/HexFormat;)J
.locals 2
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "format"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
.line 484
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v1
invoke-static {p0, v0, v1, p1}, Lkotlin/text/HexExtensionsKt;->hexToLong(Ljava/lang/String;IILkotlin/text/HexFormat;)J
move-result-wide p0
return-wide p0
.end method
.method static synthetic hexToLong$default(Ljava/lang/String;IILkotlin/text/HexFormat;ILjava/lang/Object;)J
.locals 0
and-int/lit8 p5, p4, 0x1
if-eqz p5, :cond_0
const/4 p1, 0x0
:cond_0
and-int/lit8 p5, p4, 0x2
if-eqz p5, :cond_1
.line 502
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result p2
:cond_1
and-int/lit8 p4, p4, 0x4
if-eqz p4, :cond_2
sget-object p3, Lkotlin/text/HexFormat;->Companion:Lkotlin/text/HexFormat$Companion;
invoke-virtual {p3}, Lkotlin/text/HexFormat$Companion;->getDefault()Lkotlin/text/HexFormat;
move-result-object p3
:cond_2
invoke-static {p0, p1, p2, p3}, Lkotlin/text/HexExtensionsKt;->hexToLong(Ljava/lang/String;IILkotlin/text/HexFormat;)J
move-result-wide p0
return-wide p0
.end method
.method public static synthetic hexToLong$default(Ljava/lang/String;Lkotlin/text/HexFormat;ILjava/lang/Object;)J
.locals 0
and-int/lit8 p2, p2, 0x1
if-eqz p2, :cond_0
.line 484
sget-object p1, Lkotlin/text/HexFormat;->Companion:Lkotlin/text/HexFormat$Companion;
invoke-virtual {p1}, Lkotlin/text/HexFormat$Companion;->getDefault()Lkotlin/text/HexFormat;
move-result-object p1
:cond_0
invoke-static {p0, p1}, Lkotlin/text/HexExtensionsKt;->hexToLong(Ljava/lang/String;Lkotlin/text/HexFormat;)J
move-result-wide p0
return-wide p0
.end method
.method private static final hexToLongImpl(Ljava/lang/String;IILkotlin/text/HexFormat;I)J
.locals 3
.line 538
sget-object v0, Lkotlin/collections/AbstractList;->Companion:Lkotlin/collections/AbstractList$Companion;
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v1
invoke-virtual {v0, p1, p2, v1}, Lkotlin/collections/AbstractList$Companion;->checkBoundsIndexes$kotlin_stdlib(III)V
.line 540
invoke-virtual {p3}, Lkotlin/text/HexFormat;->getNumber()Lkotlin/text/HexFormat$NumberHexFormat;
move-result-object v0
invoke-virtual {v0}, Lkotlin/text/HexFormat$NumberHexFormat;->getPrefix()Ljava/lang/String;
move-result-object v0
.line 541
invoke-virtual {p3}, Lkotlin/text/HexFormat;->getNumber()Lkotlin/text/HexFormat$NumberHexFormat;
move-result-object p3
invoke-virtual {p3}, Lkotlin/text/HexFormat$NumberHexFormat;->getSuffix()Ljava/lang/String;
move-result-object p3
.line 543
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v1
invoke-virtual {p3}, Ljava/lang/String;->length()I
move-result v2
add-int/2addr v1, v2
sub-int v2, p2, p1
if-ge v1, v2, :cond_1
const-string v1, "prefix"
.line 549
invoke-static {p0, v0, p1, p2, v1}, Lkotlin/text/HexExtensionsKt;->checkContainsAt(Ljava/lang/String;Ljava/lang/String;IILjava/lang/String;)I
move-result p1
.line 550
invoke-virtual {p3}, Ljava/lang/String;->length()I
move-result v0
sub-int v0, p2, v0
const-string v1, "suffix"
.line 551
invoke-static {p0, p3, v0, p2, v1}, Lkotlin/text/HexExtensionsKt;->checkContainsAt(Ljava/lang/String;Ljava/lang/String;IILjava/lang/String;)I
const/4 p2, 0x0
.line 553
invoke-static {p0, p1, v0, p4, p2}, Lkotlin/text/HexExtensionsKt;->checkHexLength(Ljava/lang/String;IIIZ)V
const-wide/16 p2, 0x0
:goto_0
if-ge p1, v0, :cond_0
const/4 p4, 0x4
shl-long/2addr p2, p4
.line 557
invoke-static {p0, p1}, Lkotlin/text/HexExtensionsKt;->decimalFromHexDigitAt(Ljava/lang/String;I)I
move-result p4
int-to-long v1, p4
or-long/2addr p2, v1
add-int/lit8 p1, p1, 0x1
goto :goto_0
:cond_0
return-wide p2
.line 544
:cond_1
new-instance p4, Ljava/lang/NumberFormatException;
.line 545
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "Expected a hexadecimal number with prefix \""
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "\" and suffix \""
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p3
const-string v0, "\", but was "
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p3
const-string v0, "null cannot be cast to non-null type java.lang.String"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p0, p1, p2}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object p0
const-string p1, "substring(...)"
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p3, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
.line 544
invoke-direct {p4, p0}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
throw p4
.end method
.method static synthetic hexToLongImpl$default(Ljava/lang/String;IILkotlin/text/HexFormat;IILjava/lang/Object;)J
.locals 0
and-int/lit8 p6, p5, 0x1
if-eqz p6, :cond_0
const/4 p1, 0x0
:cond_0
and-int/lit8 p5, p5, 0x2
if-eqz p5, :cond_1
.line 537
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result p2
:cond_1
invoke-static {p0, p1, p2, p3, p4}, Lkotlin/text/HexExtensionsKt;->hexToLongImpl(Ljava/lang/String;IILkotlin/text/HexFormat;I)J
move-result-wide p0
return-wide p0
.end method
.method private static final hexToShort(Ljava/lang/String;IILkotlin/text/HexFormat;)S
.locals 1
const/4 v0, 0x4
.line 411
invoke-static {p0, p1, p2, p3, v0}, Lkotlin/text/HexExtensionsKt;->hexToLongImpl(Ljava/lang/String;IILkotlin/text/HexFormat;I)J
move-result-wide p0
long-to-int p0, p0
int-to-short p0, p0
return p0
.end method
.method public static final hexToShort(Ljava/lang/String;Lkotlin/text/HexFormat;)S
.locals 2
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "format"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
.line 392
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v1
invoke-static {p0, v0, v1, p1}, Lkotlin/text/HexExtensionsKt;->hexToShort(Ljava/lang/String;IILkotlin/text/HexFormat;)S
move-result p0
return p0
.end method
.method static synthetic hexToShort$default(Ljava/lang/String;IILkotlin/text/HexFormat;ILjava/lang/Object;)S
.locals 0
and-int/lit8 p5, p4, 0x1
if-eqz p5, :cond_0
const/4 p1, 0x0
:cond_0
and-int/lit8 p5, p4, 0x2
if-eqz p5, :cond_1
.line 410
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result p2
:cond_1
and-int/lit8 p4, p4, 0x4
if-eqz p4, :cond_2
sget-object p3, Lkotlin/text/HexFormat;->Companion:Lkotlin/text/HexFormat$Companion;
invoke-virtual {p3}, Lkotlin/text/HexFormat$Companion;->getDefault()Lkotlin/text/HexFormat;
move-result-object p3
:cond_2
invoke-static {p0, p1, p2, p3}, Lkotlin/text/HexExtensionsKt;->hexToShort(Ljava/lang/String;IILkotlin/text/HexFormat;)S
move-result p0
return p0
.end method
.method public static synthetic hexToShort$default(Ljava/lang/String;Lkotlin/text/HexFormat;ILjava/lang/Object;)S
.locals 0
and-int/lit8 p2, p2, 0x1
if-eqz p2, :cond_0
.line 392
sget-object p1, Lkotlin/text/HexFormat;->Companion:Lkotlin/text/HexFormat$Companion;
invoke-virtual {p1}, Lkotlin/text/HexFormat$Companion;->getDefault()Lkotlin/text/HexFormat;
move-result-object p1
:cond_0
invoke-static {p0, p1}, Lkotlin/text/HexExtensionsKt;->hexToShort(Ljava/lang/String;Lkotlin/text/HexFormat;)S
move-result p0
return p0
.end method
.method public static final parsedByteArrayMaxSize(IIIIIII)I
.locals 17
move/from16 v0, p0
move/from16 v1, p1
move/from16 v2, p2
move/from16 v3, p3
move/from16 v4, p4
if-lez v0, :cond_3
move/from16 v5, p5
int-to-long v5, v5
const-wide/16 v7, 0x2
add-long/2addr v5, v7
move/from16 v7, p6
int-to-long v7, v7
add-long/2addr v5, v7
.line 263
invoke-static {v5, v6, v2, v4}, Lkotlin/text/HexExtensionsKt;->charsPerSet(JII)J
move-result-wide v7
if-gt v1, v2, :cond_0
.line 266
invoke-static {v5, v6, v1, v4}, Lkotlin/text/HexExtensionsKt;->charsPerSet(JII)J
move-result-wide v9
goto :goto_0
.line 268
:cond_0
div-int v9, v1, v2
.line 269
invoke-static {v7, v8, v9, v3}, Lkotlin/text/HexExtensionsKt;->charsPerSet(JII)J
move-result-wide v9
.line 270
rem-int v11, v1, v2
if-eqz v11, :cond_1
int-to-long v12, v3
add-long/2addr v9, v12
.line 273
invoke-static {v5, v6, v11, v4}, Lkotlin/text/HexExtensionsKt;->charsPerSet(JII)J
move-result-wide v11
add-long/2addr v9, v11
:cond_1
:goto_0
int-to-long v11, v0
const/4 v0, 0x1
.line 281
invoke-static {v11, v12, v9, v10, v0}, Lkotlin/text/HexExtensionsKt;->wholeElementsPerSet(JJI)J
move-result-wide v13
const-wide/16 v15, 0x1
add-long/2addr v9, v15
mul-long/2addr v9, v13
sub-long/2addr v11, v9
.line 284
invoke-static {v11, v12, v7, v8, v3}, Lkotlin/text/HexExtensionsKt;->wholeElementsPerSet(JJI)J
move-result-wide v9
int-to-long v0, v3
add-long/2addr v7, v0
mul-long/2addr v7, v9
sub-long/2addr v11, v7
.line 287
invoke-static {v11, v12, v5, v6, v4}, Lkotlin/text/HexExtensionsKt;->wholeElementsPerSet(JJI)J
move-result-wide v0
int-to-long v3, v4
add-long/2addr v5, v3
mul-long/2addr v5, v0
sub-long/2addr v11, v5
const-wide/16 v3, 0x0
cmp-long v3, v11, v3
if-lez v3, :cond_2
move/from16 v4, p1
const/4 v3, 0x1
goto :goto_1
:cond_2
const/4 v3, 0x0
move/from16 v4, p1
:goto_1
int-to-long v4, v4
mul-long/2addr v13, v4
int-to-long v4, v2
mul-long/2addr v9, v4
add-long/2addr v13, v9
add-long/2addr v13, v0
int-to-long v0, v3
add-long/2addr v13, v0
long-to-int v0, v13
return v0
.line 253
:cond_3
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Failed requirement."
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static final toHexString(BLkotlin/text/HexFormat;)Ljava/lang/String;
.locals 2
const-string v0, "format"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
int-to-long v0, p0
const/16 p0, 0x8
.line 332
invoke-static {v0, v1, p1, p0}, Lkotlin/text/HexExtensionsKt;->toHexStringImpl(JLkotlin/text/HexFormat;I)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static final toHexString(ILkotlin/text/HexFormat;)Ljava/lang/String;
.locals 2
const-string v0, "format"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
int-to-long v0, p0
const/16 p0, 0x20
.line 424
invoke-static {v0, v1, p1, p0}, Lkotlin/text/HexExtensionsKt;->toHexStringImpl(JLkotlin/text/HexFormat;I)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static final toHexString(JLkotlin/text/HexFormat;)Ljava/lang/String;
.locals 1
const-string v0, "format"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/16 v0, 0x40
.line 470
invoke-static {p0, p1, p2, v0}, Lkotlin/text/HexExtensionsKt;->toHexStringImpl(JLkotlin/text/HexFormat;I)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static final toHexString(SLkotlin/text/HexFormat;)Ljava/lang/String;
.locals 2
const-string v0, "format"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
int-to-long v0, p0
const/16 p0, 0x10
.line 378
invoke-static {v0, v1, p1, p0}, Lkotlin/text/HexExtensionsKt;->toHexStringImpl(JLkotlin/text/HexFormat;I)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static final toHexString([BIILkotlin/text/HexFormat;)Ljava/lang/String;
.locals 17
move-object/from16 v0, p0
move/from16 v1, p1
move/from16 v2, p2
const-string v3, "<this>"
invoke-static {v0, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v3, "format"
move-object/from16 v4, p3
invoke-static {v4, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 52
sget-object v3, Lkotlin/collections/AbstractList;->Companion:Lkotlin/collections/AbstractList$Companion;
array-length v5, v0
invoke-virtual {v3, v1, v2, v5}, Lkotlin/collections/AbstractList$Companion;->checkBoundsIndexes$kotlin_stdlib(III)V
if-ne v1, v2, :cond_0
const-string v0, ""
return-object v0
.line 58
:cond_0
invoke-virtual/range {p3 .. p3}, Lkotlin/text/HexFormat;->getUpperCase()Z
move-result v3
if-eqz v3, :cond_1
const-string v3, "0123456789ABCDEF"
goto :goto_0
:cond_1
const-string v3, "0123456789abcdef"
.line 60
:goto_0
invoke-virtual/range {p3 .. p3}, Lkotlin/text/HexFormat;->getBytes()Lkotlin/text/HexFormat$BytesHexFormat;
move-result-object v4
.line 61
invoke-virtual {v4}, Lkotlin/text/HexFormat$BytesHexFormat;->getBytesPerLine()I
move-result v12
.line 62
invoke-virtual {v4}, Lkotlin/text/HexFormat$BytesHexFormat;->getBytesPerGroup()I
move-result v13
.line 63
invoke-virtual {v4}, Lkotlin/text/HexFormat$BytesHexFormat;->getBytePrefix()Ljava/lang/String;
move-result-object v14
.line 64
invoke-virtual {v4}, Lkotlin/text/HexFormat$BytesHexFormat;->getByteSuffix()Ljava/lang/String;
move-result-object v15
.line 65
invoke-virtual {v4}, Lkotlin/text/HexFormat$BytesHexFormat;->getByteSeparator()Ljava/lang/String;
move-result-object v11
.line 66
invoke-virtual {v4}, Lkotlin/text/HexFormat$BytesHexFormat;->getGroupSeparator()Ljava/lang/String;
move-result-object v4
sub-int v5, v2, v1
.line 72
invoke-virtual {v4}, Ljava/lang/String;->length()I
move-result v8
.line 73
invoke-virtual {v11}, Ljava/lang/String;->length()I
move-result v9
.line 74
invoke-virtual {v14}, Ljava/lang/String;->length()I
move-result v10
.line 75
invoke-virtual {v15}, Ljava/lang/String;->length()I
move-result v16
move v6, v12
move v7, v13
move-object v1, v11
move/from16 v11, v16
.line 68
invoke-static/range {v5 .. v11}, Lkotlin/text/HexExtensionsKt;->formattedStringLength(IIIIIII)I
move-result v5
.line 81
new-instance v6, Ljava/lang/StringBuilder;
invoke-direct {v6, v5}, Ljava/lang/StringBuilder;-><init>(I)V
move/from16 v8, p1
const/4 v9, 0x0
const/4 v10, 0x0
:goto_1
if-ge v8, v2, :cond_5
.line 83
aget-byte v11, v0, v8
and-int/lit16 v7, v11, 0xff
if-ne v9, v12, :cond_2
const/16 v9, 0xa
.line 86
invoke-virtual {v6, v9}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
const/4 v9, 0x0
:goto_2
const/4 v10, 0x0
goto :goto_3
:cond_2
if-ne v10, v13, :cond_3
.line 90
invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_2
:cond_3
:goto_3
if-eqz v10, :cond_4
.line 94
invoke-virtual {v6, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 97
:cond_4
invoke-virtual {v6, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
shr-int/lit8 v7, v7, 0x4
.line 98
invoke-virtual {v3, v7}, Ljava/lang/String;->charAt(I)C
move-result v7
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
and-int/lit8 v7, v11, 0xf
.line 99
invoke-virtual {v3, v7}, Ljava/lang/String;->charAt(I)C
move-result v7
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 100
invoke-virtual {v6, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
add-int/lit8 v10, v10, 0x1
add-int/lit8 v9, v9, 0x1
add-int/lit8 v8, v8, 0x1
goto :goto_1
.line 106
:cond_5
invoke-virtual {v6}, Ljava/lang/StringBuilder;->length()I
move-result v0
if-ne v5, v0, :cond_6
.line 81
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
const-string v1, "toString(...)"
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
return-object v0
.line 106
:cond_6
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Check failed."
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static final toHexString([BLkotlin/text/HexFormat;)Ljava/lang/String;
.locals 2
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "format"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
.line 30
array-length v1, p0
invoke-static {p0, v0, v1, p1}, Lkotlin/text/HexExtensionsKt;->toHexString([BIILkotlin/text/HexFormat;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static synthetic toHexString$default(BLkotlin/text/HexFormat;ILjava/lang/Object;)Ljava/lang/String;
.locals 0
and-int/lit8 p2, p2, 0x1
if-eqz p2, :cond_0
.line 332
sget-object p1, Lkotlin/text/HexFormat;->Companion:Lkotlin/text/HexFormat$Companion;
invoke-virtual {p1}, Lkotlin/text/HexFormat$Companion;->getDefault()Lkotlin/text/HexFormat;
move-result-object p1
:cond_0
invoke-static {p0, p1}, Lkotlin/text/HexExtensionsKt;->toHexString(BLkotlin/text/HexFormat;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static synthetic toHexString$default(ILkotlin/text/HexFormat;ILjava/lang/Object;)Ljava/lang/String;
.locals 0
and-int/lit8 p2, p2, 0x1
if-eqz p2, :cond_0
.line 424
sget-object p1, Lkotlin/text/HexFormat;->Companion:Lkotlin/text/HexFormat$Companion;
invoke-virtual {p1}, Lkotlin/text/HexFormat$Companion;->getDefault()Lkotlin/text/HexFormat;
move-result-object p1
:cond_0
invoke-static {p0, p1}, Lkotlin/text/HexExtensionsKt;->toHexString(ILkotlin/text/HexFormat;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static synthetic toHexString$default(JLkotlin/text/HexFormat;ILjava/lang/Object;)Ljava/lang/String;
.locals 0
and-int/lit8 p3, p3, 0x1
if-eqz p3, :cond_0
.line 470
sget-object p2, Lkotlin/text/HexFormat;->Companion:Lkotlin/text/HexFormat$Companion;
invoke-virtual {p2}, Lkotlin/text/HexFormat$Companion;->getDefault()Lkotlin/text/HexFormat;
move-result-object p2
:cond_0
invoke-static {p0, p1, p2}, Lkotlin/text/HexExtensionsKt;->toHexString(JLkotlin/text/HexFormat;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static synthetic toHexString$default(SLkotlin/text/HexFormat;ILjava/lang/Object;)Ljava/lang/String;
.locals 0
and-int/lit8 p2, p2, 0x1
if-eqz p2, :cond_0
.line 378
sget-object p1, Lkotlin/text/HexFormat;->Companion:Lkotlin/text/HexFormat$Companion;
invoke-virtual {p1}, Lkotlin/text/HexFormat$Companion;->getDefault()Lkotlin/text/HexFormat;
move-result-object p1
:cond_0
invoke-static {p0, p1}, Lkotlin/text/HexExtensionsKt;->toHexString(SLkotlin/text/HexFormat;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static synthetic toHexString$default([BIILkotlin/text/HexFormat;ILjava/lang/Object;)Ljava/lang/String;
.locals 0
and-int/lit8 p5, p4, 0x1
if-eqz p5, :cond_0
const/4 p1, 0x0
:cond_0
and-int/lit8 p5, p4, 0x2
if-eqz p5, :cond_1
.line 49
array-length p2, p0
:cond_1
and-int/lit8 p4, p4, 0x4
if-eqz p4, :cond_2
.line 50
sget-object p3, Lkotlin/text/HexFormat;->Companion:Lkotlin/text/HexFormat$Companion;
invoke-virtual {p3}, Lkotlin/text/HexFormat$Companion;->getDefault()Lkotlin/text/HexFormat;
move-result-object p3
.line 47
:cond_2
invoke-static {p0, p1, p2, p3}, Lkotlin/text/HexExtensionsKt;->toHexString([BIILkotlin/text/HexFormat;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static synthetic toHexString$default([BLkotlin/text/HexFormat;ILjava/lang/Object;)Ljava/lang/String;
.locals 0
and-int/lit8 p2, p2, 0x1
if-eqz p2, :cond_0
.line 30
sget-object p1, Lkotlin/text/HexFormat;->Companion:Lkotlin/text/HexFormat$Companion;
invoke-virtual {p1}, Lkotlin/text/HexFormat$Companion;->getDefault()Lkotlin/text/HexFormat;
move-result-object p1
:cond_0
invoke-static {p0, p1}, Lkotlin/text/HexExtensionsKt;->toHexString([BLkotlin/text/HexFormat;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method private static final toHexStringImpl(JLkotlin/text/HexFormat;I)Ljava/lang/String;
.locals 9
and-int/lit8 v0, p3, 0x3
if-nez v0, :cond_4
.line 511
invoke-virtual {p2}, Lkotlin/text/HexFormat;->getUpperCase()Z
move-result v0
if-eqz v0, :cond_0
const-string v0, "0123456789ABCDEF"
goto :goto_0
:cond_0
const-string v0, "0123456789abcdef"
.line 514
:goto_0
invoke-virtual {p2}, Lkotlin/text/HexFormat;->getNumber()Lkotlin/text/HexFormat$NumberHexFormat;
move-result-object v1
invoke-virtual {v1}, Lkotlin/text/HexFormat$NumberHexFormat;->getPrefix()Ljava/lang/String;
move-result-object v1
.line 515
invoke-virtual {p2}, Lkotlin/text/HexFormat;->getNumber()Lkotlin/text/HexFormat$NumberHexFormat;
move-result-object v2
invoke-virtual {v2}, Lkotlin/text/HexFormat$NumberHexFormat;->getSuffix()Ljava/lang/String;
move-result-object v2
.line 516
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v3
shr-int/lit8 v4, p3, 0x2
add-int/2addr v3, v4
invoke-virtual {v2}, Ljava/lang/String;->length()I
move-result v4
add-int/2addr v3, v4
.line 517
invoke-virtual {p2}, Lkotlin/text/HexFormat;->getNumber()Lkotlin/text/HexFormat$NumberHexFormat;
move-result-object p2
invoke-virtual {p2}, Lkotlin/text/HexFormat$NumberHexFormat;->getRemoveLeadingZeros()Z
move-result p2
.line 519
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4, v3}, Ljava/lang/StringBuilder;-><init>(I)V
.line 520
invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_1
:goto_1
if-lez p3, :cond_3
add-int/lit8 p3, p3, -0x4
shr-long v5, p0, p3
const-wide/16 v7, 0xf
and-long/2addr v5, v7
long-to-int v1, v5
if-eqz p2, :cond_2
if-nez v1, :cond_2
if-lez p3, :cond_2
const/4 p2, 0x1
goto :goto_2
:cond_2
const/4 p2, 0x0
:goto_2
if-nez p2, :cond_1
.line 528
invoke-virtual {v0, v1}, Ljava/lang/String;->charAt(I)C
move-result v1
invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
goto :goto_1
.line 532
:cond_3
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 519
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
const-string p1, "toString(...)"
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.line 509
:cond_4
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string p1, "Failed requirement."
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method private static final wholeElementsPerSet(JJI)J
.locals 3
const-wide/16 v0, 0x0
cmp-long v2, p0, v0
if-lez v2, :cond_1
cmp-long v2, p2, v0
if-gtz v2, :cond_0
goto :goto_0
:cond_0
int-to-long v0, p4
add-long/2addr p0, v0
add-long/2addr p2, v0
.line 308
div-long v0, p0, p2
:cond_1
:goto_0
return-wide v0
.end method