Rabbit-R1/switch port/smali/smali_classes3/okio/internal/ByteStringKt.smali

2549 lines
53 KiB
Smali
Raw Normal View History

2024-05-21 16:08:36 -05:00
.class public final Lokio/internal/ByteStringKt;
.super Ljava/lang/Object;
.source "ByteString.kt"
# annotations
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nByteString.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ByteString.kt\nokio/internal/ByteStringKt\n+ 2 -Util.kt\nokio/-Util\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 Utf8.kt\nokio/Utf8\n*L\n1#1,342:1\n126#1:348\n127#1,9:350\n60#2:343\n66#2:344\n66#2:346\n66#2:347\n60#2:374\n66#2:386\n60#2:406\n66#2:414\n60#2:456\n66#2:464\n1#3:345\n1#3:349\n209#4,7:359\n122#4:366\n216#4,5:367\n122#4:372\n223#4:373\n225#4:375\n393#4,2:376\n122#4:378\n396#4,6:379\n127#4:385\n402#4:387\n122#4:388\n403#4,11:389\n122#4:400\n416#4:401\n122#4:402\n418#4,2:403\n227#4:405\n229#4:407\n434#4,3:408\n122#4:411\n437#4:412\n127#4:413\n440#4,10:415\n127#4:425\n450#4:426\n122#4:427\n451#4,4:428\n127#4:432\n455#4:433\n122#4:434\n456#4,12:435\n122#4:447\n469#4,2:448\n122#4:450\n473#4:451\n122#4:452\n475#4,2:453\n231#4:455\n233#4:457\n492#4,3:458\n122#4:461\n495#4:462\n127#4:463\n498#4,2:465\n127#4:467\n502#4,10:468\n127#4:478\n512#4:479\n122#4:480\n513#4,4:481\n127#4:485\n517#4:486\n122#4:487\n518#4,4:488\n127#4:492\n522#4:493\n122#4:494\n523#4,13:495\n122#4:508\n537#4,2:509\n122#4:511\n540#4,2:512\n122#4:514\n544#4:515\n122#4:516\n546#4,2:517\n238#4:519\n122#4:520\n239#4,5:521\n*E\n*S KotlinDebug\n*F\n+ 1 ByteString.kt\nokio/internal/ByteStringKt\n*L\n309#1:348\n309#1,9:350\n62#1:343\n63#1:344\n239#1:346\n240#1:347\n328#1:374\n328#1:386\n328#1:406\n328#1:414\n328#1:456\n328#1:464\n309#1:349\n328#1,7:359\n333#1:366\n328#1,5:367\n333#1:372\n328#1:373\n328#1:375\n328#1,2:376\n333#1:378\n328#1,6:379\n328#1:385\n328#1:387\n333#1:388\n328#1,11:389\n333#1:400\n328#1:401\n333#1:402\n328#1,2:403\n328#1:405\n328#1:407\n328#1,3:408\n333#1:411\n328#1:412\n328#1:413\n328#1,10:415\n328#1:425\n328#1:426\n333#1:427\n328#1,4:428\n328#1:432\n328#1:433\n333#1:434\n328#1,12:435\n333#1:447\n328#1,2:448\n333#1:450\n328#1:451\n333#1:452\n328#1,2:453\n328#1:455\n328#1:457\n328#1,3:458\n333#1:461\n328#1:462\n328#1:463\n328#1,2:465\n328#1:467\n328#1,10:468\n328#1:478\n328#1:479\n333#1:480\n328#1,4:481\n328#1:485\n328#1:486\n333#1:487\n328#1,4:488\n328#1:492\n328#1:493\n333#1:494\n328#1,13:495\n333#1:508\n328#1,2:509\n333#1:511\n328#1,2:512\n333#1:514\n328#1:515\n333#1:516\n328#1,2:517\n328#1:519\n333#1:520\n328#1,5:521\n*E\n"
.end annotation
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u0000P\n\u0000\n\u0002\u0010\u0019\n\u0002\u0008\u0003\n\u0002\u0010\u0008\n\u0000\n\u0002\u0010\u0012\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\u000c\n\u0000\n\u0002\u0010\u000e\n\u0002\u0008\u0007\n\u0002\u0010\u000b\n\u0002\u0008\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0005\n\u0002\u0008\u0018\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u001a\u0018\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u00072\u0006\u0010\u0008\u001a\u00020\u0005H\u0002\u001a\u0011\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\u0007H\u0080\u0008\u001a\u0010\u0010\u000c\u001a\u00020\u00052\u0006\u0010\r\u001a\u00020\u000eH\u0002\u001a\r\u0010\u000f\u001a\u00020\u0010*\u00020\nH\u0080\u0008\u001a\r\u0010\u0011\u001a\u00020\u0010*\u00020\nH\u0080\u0008\u001a\u0015\u0010\u0012\u001a\u00020\u0005*\u00020\n2\u0006\u0010\u0013\u001a\u00020\nH\u0080\u0008\u001a\u000f\u0010\u0014\u001a\u0004\u0018\u00010\n*\u00020\u0010H\u0080\u0008\u001a\r\u0010\u0015\u001a\u00020\n*\u00020\u0010H\u0080\u0008\u001a\r\u0010\u0016\u001a\u00020\n*\u00020\u0010H\u0080\u0008\u001a\u0015\u0010\u0017\u001a\u00020\u0018*\u00020\n2\u0006\u0010\u0019\u001a\u00020\u0007H\u0080\u0008\u001a\u0015\u0010\u0017\u001a\u00020\u0018*\u00020\n2\u0006\u0010\u0019\u001a\u00020\nH\u0080\u0008\u001a\u0017\u0010\u001a\u001a\u00020\u0018*\u00020\n2\u0008\u0010\u0013\u001a\u0004\u0018\u00010\u001bH\u0080\u0008\u001a\u0015\u0010\u001c\u001a\u00020\u001d*\u00020\n2\u0006\u0010\u001e\u001a\u00020\u0005H\u0080\u0008\u001a\r\u0010\u001f\u001a\u00020\u0005*\u00020\nH\u0080\u0008\u001a\r\u0010 \u001a\u00020\u0005*\u00020\nH\u0080\u0008\u001a\r\u0010!\u001a\u00020\u0010*\u00020\nH\u0080\u0008\u001a\u001d\u0010\"\u001a\u00020\u0005*\u00020\n2\u0006\u0010\u0013\u001a\u00020\u00072\u0006\u0010#\u001a\u00020\u0005H\u0080\u0008\u001a\r\u0010$\u001a\u00020\u0007*\u00020\nH\u0080\u0008\u001a\u001d\u0010%\u001a\u00020\u0005*\u00020\n2\u0006\u0010\u0013\u001a\u00020\u00072\u0006\u0010#\u001a\u00020\u0005H\u0080\u0008\u001a\u001d\u0010%\u001a\u00020\u0005*\u00020\n2\u0006\u0010\u0013\u001a\u00020\n2\u0006\u0010#\u001a\u00020\u0005H\u0080\u0008\u001a-\u0010&\u001a\u00020\u0018*\u00020\n2\u0006\u0010\'\u001a\u00020\u00052\u0006\u0010\u0013\u001a\u00020\u00072\u0006\u0010(\u001a\u00020\u00052\u0006\u0010)\u001a\u00020\u0005H\u0080\u0008\u001a-\u0010&\u001a\u00020\u0018*\u00020\n2\u0006\u0010\'\u001a\u00020\u00052\u0006\u0010\u0013\u001a\u00020\n2\u0006\u0010(\u001a\u00020\u00052\u0006\u0010)\u001a\u00020\u0005H\u0080\u0008\u001a\u0015\u0010*\u001a\u00020\u0018*\u00020\n2\u0006\u0010+\u001a\u00020\u0007H\u0080\u0008\u001a\u0015\u0010*\u001a\u00020\u0018*\u00020\n2\u0006\u0010+\u001a\u00020\nH\u0080\u0008\u001a\u001d\u0010,\u001a\u00020\n*\u00020\n2\u0006\u0010-\u001a\u00020\u00052\u0006\u0010.\u001a\u00020\u0005H\u0080\u0008\u001a\r\u0010/\u001a\u00020\n*\u00020\nH\u0080\u0008\u001a\r\u00100\u001a\u00020\n*\u00020\nH\u0080\u0008\u001a\r\u00101\u001a\u00020\u0007*\u00020\nH\u0080\u0008\u001a\u001d\u00102\u001a\u00020\n*\u00020\u00072\u0006\u0010\'\u001a\u00020\u00052\u0006\u0010)\u001a\u00020\u0005H\u0080\u0008\u001a\r\u00103\u001a\u00020\u0010*\u00020\nH\u0080\u0008\u001a\r\u00104\u001a\u00020\u0010*\u00020\nH\u0080\u0008\u001a$\u00105\u001a\u000206*\u00020\n2\u0006\u00107\u001a\u0002082\u0006\u0010\'\u001a\u00020\u00052\u0006\u0010)\u001a\u00020\u0005H\u0000\"\u0014\u0010\u0000\u001a\u00020\u0001X\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0002\u0010\u0003\u00a8\u00069"
}
d2 = {
"HEX_DIGIT_CHARS",
"",
"getHEX_DIGIT_CHARS",
"()[C",
"codePointIndexToCharIndex",
"",
"s",
"",
"codePointCount",
"commonOf",
"Lokio/ByteString;",
"data",
"decodeHexDigit",
"c",
"",
"commonBase64",
"",
"commonBase64Url",
"commonCompareTo",
"other",
"commonDecodeBase64",
"commonDecodeHex",
"commonEncodeUtf8",
"commonEndsWith",
"",
"suffix",
"commonEquals",
"",
"commonGetByte",
"",
"pos",
"commonGetSize",
"commonHashCode",
"commonHex",
"commonIndexOf",
"fromIndex",
"commonInternalArray",
"commonLastIndexOf",
"commonRangeEquals",
"offset",
"otherOffset",
"byteCount",
"commonStartsWith",
"prefix",
"commonSubstring",
"beginIndex",
"endIndex",
"commonToAsciiLowercase",
"commonToAsciiUppercase",
"commonToByteArray",
"commonToByteString",
"commonToString",
"commonUtf8",
"commonWrite",
"",
"buffer",
"Lokio/Buffer;",
"okio"
}
k = 0x2
mv = {
0x1,
0x4,
0x0
}
.end annotation
# static fields
.field private static final HEX_DIGIT_CHARS:[C
# direct methods
.method static constructor <clinit>()V
.locals 1
const/16 v0, 0x10
new-array v0, v0, [C
fill-array-data v0, :array_0
sput-object v0, Lokio/internal/ByteStringKt;->HEX_DIGIT_CHARS:[C
return-void
:array_0
.array-data 2
0x30s
0x31s
0x32s
0x33s
0x34s
0x35s
0x36s
0x37s
0x38s
0x39s
0x61s
0x62s
0x63s
0x64s
0x65s
0x66s
.end array-data
.end method
.method public static final synthetic access$codePointIndexToCharIndex([BI)I
.locals 0
.line 1
invoke-static {p0, p1}, Lokio/internal/ByteStringKt;->codePointIndexToCharIndex([BI)I
move-result p0
return p0
.end method
.method public static final synthetic access$decodeHexDigit(C)I
.locals 0
.line 1
invoke-static {p0}, Lokio/internal/ByteStringKt;->decodeHexDigit(C)I
move-result p0
return p0
.end method
.method private static final codePointIndexToCharIndex([BI)I
.locals 18
move-object/from16 v0, p0
move/from16 v1, p1
.line 328
array-length v2, v0
const/4 v3, 0x0
move v4, v3
move v5, v4
:cond_0
:goto_0
if-ge v3, v2, :cond_49
.line 361
aget-byte v6, v0, v3
const/16 v7, 0x7f
const/16 v8, 0x9f
const/16 v9, 0x1f
const/16 v10, 0xd
const v11, 0xfffd
const/16 v12, 0xa
const/high16 v13, 0x10000
const/16 v16, -0x1
if-ltz v6, :cond_f
add-int/lit8 v17, v5, 0x1
if-ne v5, v1, :cond_1
return v4
:cond_1
if-eq v6, v12, :cond_4
if-eq v6, v10, :cond_4
if-ltz v6, :cond_2
if-ge v9, v6, :cond_5
:cond_2
if-le v7, v6, :cond_3
goto :goto_1
:cond_3
if-lt v8, v6, :cond_4
goto :goto_2
:cond_4
:goto_1
if-ne v6, v11, :cond_6
:cond_5
:goto_2
return v16
:cond_6
if-ge v6, v13, :cond_7
const/4 v5, 0x1
goto :goto_3
:cond_7
const/4 v5, 0x2
:goto_3
add-int/2addr v4, v5
add-int/lit8 v3, v3, 0x1
:goto_4
move/from16 v5, v17
if-ge v3, v2, :cond_0
.line 370
aget-byte v6, v0, v3
if-ltz v6, :cond_0
add-int/lit8 v3, v3, 0x1
add-int/lit8 v17, v5, 0x1
if-ne v5, v1, :cond_8
return v4
:cond_8
if-eq v6, v12, :cond_b
if-eq v6, v10, :cond_b
if-ltz v6, :cond_9
if-ge v9, v6, :cond_c
:cond_9
if-le v7, v6, :cond_a
goto :goto_5
:cond_a
if-lt v8, v6, :cond_b
goto :goto_6
:cond_b
:goto_5
if-ne v6, v11, :cond_d
:cond_c
:goto_6
return v16
:cond_d
if-ge v6, v13, :cond_e
const/4 v5, 0x1
goto :goto_7
:cond_e
const/4 v5, 0x2
:goto_7
add-int/2addr v4, v5
goto :goto_4
:cond_f
shr-int/lit8 v14, v6, 0x5
const/4 v15, -0x2
const/16 v13, 0x80
if-ne v14, v15, :cond_1d
add-int/lit8 v14, v3, 0x1
if-gt v2, v14, :cond_11
if-ne v5, v1, :cond_10
return v4
:cond_10
return v16
.line 383
:cond_11
aget-byte v14, v0, v14
and-int/lit16 v15, v14, 0xc0
if-ne v15, v13, :cond_1b
xor-int/lit16 v14, v14, 0xf80
shl-int/lit8 v6, v6, 0x6
xor-int/2addr v6, v14
if-ge v6, v13, :cond_13
if-ne v5, v1, :cond_12
return v4
:cond_12
return v16
:cond_13
add-int/lit8 v13, v5, 0x1
if-ne v5, v1, :cond_14
return v4
:cond_14
if-eq v6, v12, :cond_17
if-eq v6, v10, :cond_17
if-ltz v6, :cond_15
if-ge v9, v6, :cond_18
:cond_15
if-le v7, v6, :cond_16
goto :goto_8
:cond_16
if-lt v8, v6, :cond_17
goto :goto_9
:cond_17
:goto_8
if-ne v6, v11, :cond_19
:cond_18
:goto_9
return v16
:cond_19
const/high16 v5, 0x10000
if-ge v6, v5, :cond_1a
const/4 v14, 0x1
goto :goto_a
:cond_1a
const/4 v14, 0x2
:goto_a
add-int/2addr v4, v14
.line 339
sget-object v5, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
add-int/lit8 v3, v3, 0x2
move v5, v13
goto/16 :goto_0
:cond_1b
if-ne v5, v1, :cond_1c
return v4
:cond_1c
return v16
:cond_1d
shr-int/lit8 v14, v6, 0x4
const v11, 0xd800
const v8, 0xdfff
if-ne v14, v15, :cond_30
add-int/lit8 v14, v3, 0x2
if-gt v2, v14, :cond_1f
if-ne v5, v1, :cond_1e
return v4
:cond_1e
return v16
:cond_1f
add-int/lit8 v15, v3, 0x1
.line 423
aget-byte v15, v0, v15
and-int/lit16 v7, v15, 0xc0
if-ne v7, v13, :cond_2e
.line 430
aget-byte v7, v0, v14
and-int/lit16 v14, v7, 0xc0
if-ne v14, v13, :cond_2c
const v13, -0x1e080
xor-int/2addr v7, v13
shl-int/lit8 v13, v15, 0x6
xor-int/2addr v7, v13
shl-int/lit8 v6, v6, 0xc
xor-int/2addr v6, v7
const/16 v7, 0x800
if-ge v6, v7, :cond_21
if-ne v5, v1, :cond_20
return v4
:cond_20
return v16
:cond_21
if-le v11, v6, :cond_22
goto :goto_b
:cond_22
if-lt v8, v6, :cond_24
if-ne v5, v1, :cond_23
return v4
:cond_23
return v16
:cond_24
:goto_b
add-int/lit8 v7, v5, 0x1
if-ne v5, v1, :cond_25
return v4
:cond_25
if-eq v6, v12, :cond_28
if-eq v6, v10, :cond_28
if-ltz v6, :cond_26
if-ge v9, v6, :cond_29
:cond_26
const/16 v5, 0x7f
if-le v5, v6, :cond_27
goto :goto_c
:cond_27
const/16 v5, 0x9f
if-lt v5, v6, :cond_28
goto :goto_d
:cond_28
:goto_c
const v5, 0xfffd
if-ne v6, v5, :cond_2a
:cond_29
:goto_d
return v16
:cond_2a
const/high16 v5, 0x10000
if-ge v6, v5, :cond_2b
const/4 v14, 0x1
goto :goto_e
:cond_2b
const/4 v14, 0x2
:goto_e
add-int/2addr v4, v14
.line 339
sget-object v5, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
add-int/lit8 v3, v3, 0x3
:goto_f
move v5, v7
goto/16 :goto_0
:cond_2c
if-ne v5, v1, :cond_2d
return v4
:cond_2d
return v16
:cond_2e
if-ne v5, v1, :cond_2f
return v4
:cond_2f
return v16
:cond_30
shr-int/lit8 v7, v6, 0x3
if-ne v7, v15, :cond_47
add-int/lit8 v7, v3, 0x3
if-gt v2, v7, :cond_32
if-ne v5, v1, :cond_31
return v4
:cond_31
return v16
:cond_32
add-int/lit8 v14, v3, 0x1
.line 476
aget-byte v14, v0, v14
and-int/lit16 v15, v14, 0xc0
if-ne v15, v13, :cond_45
add-int/lit8 v15, v3, 0x2
.line 483
aget-byte v15, v0, v15
and-int/lit16 v9, v15, 0xc0
if-ne v9, v13, :cond_43
.line 490
aget-byte v7, v0, v7
and-int/lit16 v9, v7, 0xc0
if-ne v9, v13, :cond_41
const v9, 0x381f80
xor-int/2addr v7, v9
shl-int/lit8 v9, v15, 0x6
xor-int/2addr v7, v9
shl-int/lit8 v9, v14, 0xc
xor-int/2addr v7, v9
shl-int/lit8 v6, v6, 0x12
xor-int/2addr v6, v7
const v7, 0x10ffff
if-le v6, v7, :cond_34
if-ne v5, v1, :cond_33
return v4
:cond_33
return v16
:cond_34
if-le v11, v6, :cond_35
goto :goto_10
:cond_35
if-lt v8, v6, :cond_37
if-ne v5, v1, :cond_36
return v4
:cond_36
return v16
:cond_37
:goto_10
const/high16 v7, 0x10000
if-ge v6, v7, :cond_39
if-ne v5, v1, :cond_38
return v4
:cond_38
return v16
:cond_39
add-int/lit8 v7, v5, 0x1
if-ne v5, v1, :cond_3a
return v4
:cond_3a
if-eq v6, v12, :cond_3d
if-eq v6, v10, :cond_3d
if-ltz v6, :cond_3b
const/16 v5, 0x1f
if-ge v5, v6, :cond_3e
:cond_3b
const/16 v5, 0x7f
if-le v5, v6, :cond_3c
goto :goto_11
:cond_3c
const/16 v5, 0x9f
if-lt v5, v6, :cond_3d
goto :goto_12
:cond_3d
:goto_11
const v5, 0xfffd
if-ne v6, v5, :cond_3f
:cond_3e
:goto_12
return v16
:cond_3f
const/high16 v5, 0x10000
if-ge v6, v5, :cond_40
const/4 v14, 0x1
goto :goto_13
:cond_40
const/4 v14, 0x2
:goto_13
add-int/2addr v4, v14
.line 339
sget-object v5, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
add-int/lit8 v3, v3, 0x4
goto :goto_f
:cond_41
if-ne v5, v1, :cond_42
return v4
:cond_42
return v16
:cond_43
if-ne v5, v1, :cond_44
return v4
:cond_44
return v16
:cond_45
if-ne v5, v1, :cond_46
return v4
:cond_46
return v16
:cond_47
if-ne v5, v1, :cond_48
return v4
:cond_48
return v16
:cond_49
return v4
.end method
.method public static final commonBase64(Lokio/ByteString;)Ljava/lang/String;
.locals 2
const-string v0, "$this$commonBase64"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 49
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object p0
const/4 v0, 0x0
const/4 v1, 0x1
invoke-static {p0, v0, v1, v0}, Lokio/-Base64;->encodeBase64$default([B[BILjava/lang/Object;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static final commonBase64Url(Lokio/ByteString;)Ljava/lang/String;
.locals 1
const-string v0, "$this$commonBase64Url"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 52
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object p0
invoke-static {}, Lokio/-Base64;->getBASE64_URL_SAFE()[B
move-result-object v0
invoke-static {p0, v0}, Lokio/-Base64;->encodeBase64([B[B)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static final commonCompareTo(Lokio/ByteString;Lokio/ByteString;)I
.locals 9
const-string v0, "$this$commonCompareTo"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "other"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 234
invoke-virtual {p0}, Lokio/ByteString;->size()I
move-result v0
.line 235
invoke-virtual {p1}, Lokio/ByteString;->size()I
move-result v1
.line 237
invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I
move-result v2
const/4 v3, 0x0
move v4, v3
:goto_0
const/4 v5, -0x1
const/4 v6, 0x1
if-ge v4, v2, :cond_2
.line 239
invoke-virtual {p0, v4}, Lokio/ByteString;->getByte(I)B
move-result v7
and-int/lit16 v7, v7, 0xff
.line 240
invoke-virtual {p1, v4}, Lokio/ByteString;->getByte(I)B
move-result v8
and-int/lit16 v8, v8, 0xff
if-ne v7, v8, :cond_0
add-int/lit8 v4, v4, 0x1
goto :goto_0
:cond_0
if-ge v7, v8, :cond_1
goto :goto_1
:cond_1
move v5, v6
:goto_1
return v5
:cond_2
if-ne v0, v1, :cond_3
return v3
:cond_3
if-ge v0, v1, :cond_4
goto :goto_2
:cond_4
move v5, v6
:goto_2
return v5
.end method
.method public static final commonDecodeBase64(Ljava/lang/String;)Lokio/ByteString;
.locals 1
const-string v0, "$this$commonDecodeBase64"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 269
invoke-static {p0}, Lokio/-Base64;->decodeBase64ToArray(Ljava/lang/String;)[B
move-result-object p0
if-eqz p0, :cond_0
.line 270
new-instance v0, Lokio/ByteString;
invoke-direct {v0, p0}, Lokio/ByteString;-><init>([B)V
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return-object v0
.end method
.method public static final commonDecodeHex(Ljava/lang/String;)Lokio/ByteString;
.locals 6
const-string v0, "$this$commonDecodeHex"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 275
invoke-virtual {p0}, 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_0
move v0, v2
goto :goto_0
:cond_0
move v0, v1
:goto_0
if-eqz v0, :cond_2
.line 277
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v0
div-int/lit8 v0, v0, 0x2
new-array v3, v0, [B
:goto_1
if-ge v1, v0, :cond_1
mul-int/lit8 v4, v1, 0x2
.line 279
invoke-virtual {p0, v4}, Ljava/lang/String;->charAt(I)C
move-result v5
invoke-static {v5}, Lokio/internal/ByteStringKt;->access$decodeHexDigit(C)I
move-result v5
shl-int/lit8 v5, v5, 0x4
add-int/2addr v4, v2
.line 280
invoke-virtual {p0, v4}, Ljava/lang/String;->charAt(I)C
move-result v4
invoke-static {v4}, Lokio/internal/ByteStringKt;->access$decodeHexDigit(C)I
move-result v4
add-int/2addr v5, v4
int-to-byte v4, v5
.line 281
aput-byte v4, v3, v1
add-int/lit8 v1, v1, 0x1
goto :goto_1
.line 283
:cond_1
new-instance p0, Lokio/ByteString;
invoke-direct {p0, v3}, Lokio/ByteString;-><init>([B)V
return-object p0
.line 275
:cond_2
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Unexpected hex string: "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, 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
new-instance v0, Ljava/lang/IllegalArgumentException;
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast v0, Ljava/lang/Throwable;
throw v0
.end method
.method public static final commonEncodeUtf8(Ljava/lang/String;)Lokio/ByteString;
.locals 2
const-string v0, "$this$commonEncodeUtf8"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 262
new-instance v0, Lokio/ByteString;
invoke-static {p0}, Lokio/-Platform;->asUtf8ToByteArray(Ljava/lang/String;)[B
move-result-object v1
invoke-direct {v0, v1}, Lokio/ByteString;-><init>([B)V
.line 263
invoke-virtual {v0, p0}, Lokio/ByteString;->setUtf8$okio(Ljava/lang/String;)V
return-object v0
.end method
.method public static final commonEndsWith(Lokio/ByteString;Lokio/ByteString;)Z
.locals 3
const-string v0, "$this$commonEndsWith"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "suffix"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 180
invoke-virtual {p0}, Lokio/ByteString;->size()I
move-result v0
invoke-virtual {p1}, Lokio/ByteString;->size()I
move-result v1
sub-int/2addr v0, v1
const/4 v1, 0x0
invoke-virtual {p1}, Lokio/ByteString;->size()I
move-result v2
invoke-virtual {p0, v0, p1, v1, v2}, Lokio/ByteString;->rangeEquals(ILokio/ByteString;II)Z
move-result p0
return p0
.end method
.method public static final commonEndsWith(Lokio/ByteString;[B)Z
.locals 3
const-string v0, "$this$commonEndsWith"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "suffix"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 184
invoke-virtual {p0}, Lokio/ByteString;->size()I
move-result v0
array-length v1, p1
sub-int/2addr v0, v1
const/4 v1, 0x0
array-length v2, p1
invoke-virtual {p0, v0, p1, v1, v2}, Lokio/ByteString;->rangeEquals(I[BII)Z
move-result p0
return p0
.end method
.method public static final commonEquals(Lokio/ByteString;Ljava/lang/Object;)Z
.locals 4
const-string v0, "$this$commonEquals"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x1
if-ne p1, p0, :cond_0
goto :goto_0
.line 218
:cond_0
instance-of v1, p1, Lokio/ByteString;
const/4 v2, 0x0
if-eqz v1, :cond_1
check-cast p1, Lokio/ByteString;
invoke-virtual {p1}, Lokio/ByteString;->size()I
move-result v1
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v3
array-length v3, v3
if-ne v1, v3, :cond_1
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v1
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object p0
array-length p0, p0
invoke-virtual {p1, v2, v1, v2, p0}, Lokio/ByteString;->rangeEquals(I[BII)Z
move-result p0
if-eqz p0, :cond_1
goto :goto_0
:cond_1
move v0, v2
:goto_0
return v0
.end method
.method public static final commonGetByte(Lokio/ByteString;I)B
.locals 1
const-string v0, "$this$commonGetByte"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 139
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object p0
aget-byte p0, p0, p1
return p0
.end method
.method public static final commonGetSize(Lokio/ByteString;)I
.locals 1
const-string v0, "$this$commonGetSize"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 142
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object p0
array-length p0, p0
return p0
.end method
.method public static final commonHashCode(Lokio/ByteString;)I
.locals 1
const-string v0, "$this$commonHashCode"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 225
invoke-virtual {p0}, Lokio/ByteString;->getHashCode$okio()I
move-result v0
if-eqz v0, :cond_0
return v0
.line 227
:cond_0
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v0
invoke-static {v0}, Ljava/util/Arrays;->hashCode([B)I
move-result v0
.line 228
invoke-virtual {p0, v0}, Lokio/ByteString;->setHashCode$okio(I)V
return v0
.end method
.method public static final commonHex(Lokio/ByteString;)Ljava/lang/String;
.locals 8
const-string v0, "$this$commonHex"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 59
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v0
array-length v0, v0
mul-int/lit8 v0, v0, 0x2
new-array v0, v0, [C
.line 61
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object p0
array-length v1, p0
const/4 v2, 0x0
move v3, v2
:goto_0
if-ge v2, v1, :cond_0
aget-byte v4, p0, v2
add-int/lit8 v5, v3, 0x1
.line 62
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v6
shr-int/lit8 v7, v4, 0x4
and-int/lit8 v7, v7, 0xf
aget-char v6, v6, v7
aput-char v6, v0, v3
add-int/lit8 v3, v3, 0x2
.line 63
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v6
and-int/lit8 v4, v4, 0xf
.line 344
aget-char v4, v6, v4
aput-char v4, v0, v5
add-int/lit8 v2, v2, 0x1
goto :goto_0
.line 65
:cond_0
new-instance p0, Ljava/lang/String;
invoke-direct {p0, v0}, Ljava/lang/String;-><init>([C)V
return-object p0
.end method
.method public static final commonIndexOf(Lokio/ByteString;[BI)I
.locals 4
const-string v0, "$this$commonIndexOf"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "other"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 188
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v0
array-length v0, v0
array-length v1, p1
sub-int/2addr v0, v1
const/4 v1, 0x0
.line 189
invoke-static {p2, v1}, Ljava/lang/Math;->max(II)I
move-result p2
if-gt p2, v0, :cond_1
.line 190
:goto_0
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v2
array-length v3, p1
invoke-static {v2, p2, p1, v1, v3}, Lokio/-Util;->arrayRangeEquals([BI[BII)Z
move-result v2
if-eqz v2, :cond_0
return p2
:cond_0
if-eq p2, v0, :cond_1
add-int/lit8 p2, p2, 0x1
goto :goto_0
:cond_1
const/4 p0, -0x1
return p0
.end method
.method public static final commonInternalArray(Lokio/ByteString;)[B
.locals 1
const-string v0, "$this$commonInternalArray"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 148
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object p0
return-object p0
.end method
.method public static final commonLastIndexOf(Lokio/ByteString;Lokio/ByteString;I)I
.locals 1
const-string v0, "$this$commonLastIndexOf"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "other"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 201
invoke-virtual {p1}, Lokio/ByteString;->internalArray$okio()[B
move-result-object p1
invoke-virtual {p0, p1, p2}, Lokio/ByteString;->lastIndexOf([BI)I
move-result p0
return p0
.end method
.method public static final commonLastIndexOf(Lokio/ByteString;[BI)I
.locals 3
const-string v0, "$this$commonLastIndexOf"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "other"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 205
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v0
array-length v0, v0
array-length v1, p1
sub-int/2addr v0, v1
.line 206
invoke-static {p2, v0}, Ljava/lang/Math;->min(II)I
move-result p2
:goto_0
if-ltz p2, :cond_1
.line 207
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v0
const/4 v1, 0x0
array-length v2, p1
invoke-static {v0, p2, p1, v1, v2}, Lokio/-Util;->arrayRangeEquals([BI[BII)Z
move-result v0
if-eqz v0, :cond_0
return p2
:cond_0
add-int/lit8 p2, p2, -0x1
goto :goto_0
:cond_1
const/4 p0, -0x1
return p0
.end method
.method public static final commonOf([B)Lokio/ByteString;
.locals 2
const-string v0, "data"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 252
new-instance v0, Lokio/ByteString;
array-length v1, p0
invoke-static {p0, v1}, Ljava/util/Arrays;->copyOf([BI)[B
move-result-object p0
const-string v1, "java.util.Arrays.copyOf(this, size)"
invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {v0, p0}, Lokio/ByteString;-><init>([B)V
return-object v0
.end method
.method public static final commonRangeEquals(Lokio/ByteString;ILokio/ByteString;II)Z
.locals 1
const-string v0, "$this$commonRangeEquals"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "other"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 156
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object p0
invoke-virtual {p2, p3, p0, p1, p4}, Lokio/ByteString;->rangeEquals(I[BII)Z
move-result p0
return p0
.end method
.method public static final commonRangeEquals(Lokio/ByteString;I[BII)Z
.locals 1
const-string v0, "$this$commonRangeEquals"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "other"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
if-ltz p1, :cond_0
.line 165
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v0
array-length v0, v0
sub-int/2addr v0, p4
if-gt p1, v0, :cond_0
if-ltz p3, :cond_0
.line 166
array-length v0, p2
sub-int/2addr v0, p4
if-gt p3, v0, :cond_0
.line 167
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object p0
invoke-static {p0, p1, p2, p3, p4}, Lokio/-Util;->arrayRangeEquals([BI[BII)Z
move-result p0
if-eqz p0, :cond_0
const/4 p0, 0x1
goto :goto_0
:cond_0
const/4 p0, 0x0
:goto_0
return p0
.end method
.method public static final commonStartsWith(Lokio/ByteString;Lokio/ByteString;)Z
.locals 2
const-string v0, "$this$commonStartsWith"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "prefix"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
.line 172
invoke-virtual {p1}, Lokio/ByteString;->size()I
move-result v1
invoke-virtual {p0, v0, p1, v0, v1}, Lokio/ByteString;->rangeEquals(ILokio/ByteString;II)Z
move-result p0
return p0
.end method
.method public static final commonStartsWith(Lokio/ByteString;[B)Z
.locals 2
const-string v0, "$this$commonStartsWith"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "prefix"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
.line 176
array-length v1, p1
invoke-virtual {p0, v0, p1, v0, v1}, Lokio/ByteString;->rangeEquals(I[BII)Z
move-result p0
return p0
.end method
.method public static final commonSubstring(Lokio/ByteString;II)Lokio/ByteString;
.locals 3
const-string v0, "$this$commonSubstring"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x1
const/4 v1, 0x0
if-ltz p1, :cond_0
move v2, v0
goto :goto_0
:cond_0
move v2, v1
:goto_0
if-eqz v2, :cond_6
.line 127
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v2
array-length v2, v2
if-gt p2, v2, :cond_1
move v2, v0
goto :goto_1
:cond_1
move v2, v1
:goto_1
if-eqz v2, :cond_5
sub-int v2, p2, p1
if-ltz v2, :cond_2
goto :goto_2
:cond_2
move v0, v1
:goto_2
if-eqz v0, :cond_4
if-nez p1, :cond_3
.line 132
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v0
array-length v0, v0
if-ne p2, v0, :cond_3
return-object p0
.line 135
:cond_3
new-instance v0, Lokio/ByteString;
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object p0
invoke-static {p0, p1, p2}, Lkotlin/collections/ArraysKt;->copyOfRange([BII)[B
move-result-object p0
invoke-direct {v0, p0}, Lokio/ByteString;-><init>([B)V
return-object v0
.line 130
:cond_4
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string p1, "endIndex < beginIndex"
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
check-cast p0, Ljava/lang/Throwable;
throw p0
.line 127
:cond_5
new-instance p1, Ljava/lang/StringBuilder;
const-string p2, "endIndex > length("
invoke-direct {p1, p2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object p0
array-length p0, p0
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object p0
const/16 p1, 0x29
invoke-virtual {p0, p1}, 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
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p1, Ljava/lang/Throwable;
throw p1
.line 126
:cond_6
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string p1, "beginIndex < 0"
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
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method public static final commonToAsciiLowercase(Lokio/ByteString;)Lokio/ByteString;
.locals 5
const-string v0, "$this$commonToAsciiLowercase"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
.line 72
:goto_0
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v1
array-length v1, v1
if-ge v0, v1, :cond_5
.line 73
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v1
aget-byte v1, v1, v0
const/16 v2, 0x41
int-to-byte v2, v2
if-lt v1, v2, :cond_4
const/16 v3, 0x5a
int-to-byte v3, v3
if-le v1, v3, :cond_0
goto :goto_3
.line 80
:cond_0
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object p0
array-length v4, p0
invoke-static {p0, v4}, Ljava/util/Arrays;->copyOf([BI)[B
move-result-object p0
const-string v4, "java.util.Arrays.copyOf(this, size)"
invoke-static {p0, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
add-int/lit8 v4, v0, 0x1
add-int/lit8 v1, v1, 0x20
int-to-byte v1, v1
.line 81
aput-byte v1, p0, v0
.line 82
:goto_1
array-length v0, p0
if-ge v4, v0, :cond_3
.line 83
aget-byte v0, p0, v4
if-lt v0, v2, :cond_2
if-le v0, v3, :cond_1
goto :goto_2
:cond_1
add-int/lit8 v0, v0, 0x20
int-to-byte v0, v0
.line 88
aput-byte v0, p0, v4
:cond_2
:goto_2
add-int/lit8 v4, v4, 0x1
goto :goto_1
.line 91
:cond_3
new-instance v0, Lokio/ByteString;
invoke-direct {v0, p0}, Lokio/ByteString;-><init>([B)V
return-object v0
:cond_4
:goto_3
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_5
return-object p0
.end method
.method public static final commonToAsciiUppercase(Lokio/ByteString;)Lokio/ByteString;
.locals 5
const-string v0, "$this$commonToAsciiUppercase"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
.line 100
:goto_0
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v1
array-length v1, v1
if-ge v0, v1, :cond_5
.line 101
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v1
aget-byte v1, v1, v0
const/16 v2, 0x61
int-to-byte v2, v2
if-lt v1, v2, :cond_4
const/16 v3, 0x7a
int-to-byte v3, v3
if-le v1, v3, :cond_0
goto :goto_3
.line 108
:cond_0
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object p0
array-length v4, p0
invoke-static {p0, v4}, Ljava/util/Arrays;->copyOf([BI)[B
move-result-object p0
const-string v4, "java.util.Arrays.copyOf(this, size)"
invoke-static {p0, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
add-int/lit8 v4, v0, 0x1
add-int/lit8 v1, v1, -0x20
int-to-byte v1, v1
.line 109
aput-byte v1, p0, v0
.line 110
:goto_1
array-length v0, p0
if-ge v4, v0, :cond_3
.line 111
aget-byte v0, p0, v4
if-lt v0, v2, :cond_2
if-le v0, v3, :cond_1
goto :goto_2
:cond_1
add-int/lit8 v0, v0, -0x20
int-to-byte v0, v0
.line 116
aput-byte v0, p0, v4
:cond_2
:goto_2
add-int/lit8 v4, v4, 0x1
goto :goto_1
.line 119
:cond_3
new-instance v0, Lokio/ByteString;
invoke-direct {v0, p0}, Lokio/ByteString;-><init>([B)V
return-object v0
:cond_4
:goto_3
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_5
return-object p0
.end method
.method public static final commonToByteArray(Lokio/ByteString;)[B
.locals 1
const-string v0, "$this$commonToByteArray"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 145
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object p0
array-length v0, p0
invoke-static {p0, v0}, Ljava/util/Arrays;->copyOf([BI)[B
move-result-object p0
const-string v0, "java.util.Arrays.copyOf(this, size)"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public static final commonToByteString([BII)Lokio/ByteString;
.locals 7
const-string v0, "$this$commonToByteString"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 256
array-length v0, p0
int-to-long v1, v0
int-to-long v3, p1
int-to-long v5, p2
invoke-static/range {v1 .. v6}, Lokio/-Util;->checkOffsetAndCount(JJJ)V
.line 257
new-instance v0, Lokio/ByteString;
add-int/2addr p2, p1
invoke-static {p0, p1, p2}, Lkotlin/collections/ArraysKt;->copyOfRange([BII)[B
move-result-object p0
invoke-direct {v0, p0}, Lokio/ByteString;-><init>([B)V
return-object v0
.end method
.method public static final commonToString(Lokio/ByteString;)Ljava/lang/String;
.locals 20
const-string v0, "$this$commonToString"
move-object/from16 v1, p0
invoke-static {v1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 302
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v0
array-length v0, v0
if-nez v0, :cond_0
const-string v0, "[size=0]"
return-object v0
.line 304
:cond_0
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v0
const/16 v2, 0x40
invoke-static {v0, v2}, Lokio/internal/ByteStringKt;->access$codePointIndexToCharIndex([BI)I
move-result v0
const/4 v3, -0x1
const-string v4, "\u2026]"
const/16 v5, 0x5d
const-string v6, "[size="
const/4 v7, 0x0
if-ne v0, v3, :cond_5
.line 306
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v0
array-length v0, v0
if-gt v0, v2, :cond_1
.line 307
new-instance v0, Ljava/lang/StringBuilder;
const-string v2, "[hex="
invoke-direct {v0, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->hex()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
goto :goto_2
.line 309
:cond_1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v3
array-length v3, v3
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
const-string v3, " hex="
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
.line 350
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v3
array-length v3, v3
if-gt v2, v3, :cond_2
const/4 v3, 0x1
goto :goto_0
:cond_2
move v3, v7
:goto_0
if-eqz v3, :cond_4
.line 355
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v3
array-length v3, v3
if-ne v2, v3, :cond_3
goto :goto_1
.line 358
:cond_3
new-instance v3, Lokio/ByteString;
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v1
invoke-static {v1, v7, v2}, Lkotlin/collections/ArraysKt;->copyOfRange([BII)[B
move-result-object v1
invoke-direct {v3, v1}, Lokio/ByteString;-><init>([B)V
move-object v1, v3
.line 309
:goto_1
invoke-virtual {v1}, Lokio/ByteString;->hex()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
:goto_2
return-object v0
.line 350
:cond_4
new-instance v0, Ljava/lang/StringBuilder;
const-string v2, "endIndex > length("
invoke-direct {v0, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v1
array-length v1, v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
const/16 v1, 0x29
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
new-instance v1, Ljava/lang/IllegalArgumentException;
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast v1, Ljava/lang/Throwable;
throw v1
.line 313
:cond_5
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->utf8()Ljava/lang/String;
move-result-object v2
if-eqz v2, :cond_7
.line 314
invoke-virtual {v2, v7, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v8
const-string v3, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"
invoke-static {v8, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
const-string v9, "\\"
const-string v10, "\\\\"
const/4 v11, 0x0
const/4 v12, 0x4
const/4 v13, 0x0
.line 315
invoke-static/range {v8 .. v13}, Lkotlin/text/StringsKt;->replace$default(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Ljava/lang/String;
move-result-object v14
const-string v15, "\n"
const-string v16, "\\n"
const/16 v17, 0x0
const/16 v18, 0x4
const/16 v19, 0x0
.line 316
invoke-static/range {v14 .. v19}, Lkotlin/text/StringsKt;->replace$default(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Ljava/lang/String;
move-result-object v7
const-string v8, "\r"
const-string v9, "\\r"
const/4 v10, 0x0
const/4 v11, 0x4
const/4 v12, 0x0
.line 317
invoke-static/range {v7 .. v12}, Lkotlin/text/StringsKt;->replace$default(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Ljava/lang/String;
move-result-object v3
.line 318
invoke-virtual {v2}, Ljava/lang/String;->length()I
move-result v2
if-ge v0, v2, :cond_6
.line 319
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B
move-result-object v1
array-length v1, v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, " text="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
goto :goto_3
.line 321
:cond_6
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "[text="
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
:goto_3
return-object v0
.line 314
:cond_7
new-instance v0, Ljava/lang/NullPointerException;
const-string v1, "null cannot be cast to non-null type java.lang.String"
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static final commonUtf8(Lokio/ByteString;)Ljava/lang/String;
.locals 1
const-string v0, "$this$commonUtf8"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 39
invoke-virtual {p0}, Lokio/ByteString;->getUtf8$okio()Ljava/lang/String;
move-result-object v0
if-nez v0, :cond_0
.line 42
invoke-virtual {p0}, Lokio/ByteString;->internalArray$okio()[B
move-result-object v0
invoke-static {v0}, Lokio/-Platform;->toUtf8String([B)Ljava/lang/String;
move-result-object v0
.line 43
invoke-virtual {p0, v0}, Lokio/ByteString;->setUtf8$okio(Ljava/lang/String;)V
:cond_0
return-object v0
.end method
.method public static final commonWrite(Lokio/ByteString;Lokio/Buffer;II)V
.locals 1
const-string v0, "$this$commonWrite"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "buffer"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 288
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
move-result-object p0
invoke-virtual {p1, p0, p2, p3}, Lokio/Buffer;->write([BII)Lokio/Buffer;
return-void
.end method
.method private static final decodeHexDigit(C)I
.locals 3
const/16 v0, 0x30
if-le v0, p0, :cond_0
goto :goto_0
:cond_0
const/16 v1, 0x39
if-lt v1, p0, :cond_1
sub-int/2addr p0, v0
goto :goto_2
:cond_1
:goto_0
const/16 v0, 0x61
if-le v0, p0, :cond_2
goto :goto_1
:cond_2
const/16 v0, 0x66
if-lt v0, p0, :cond_3
add-int/lit8 p0, p0, -0x57
goto :goto_2
:cond_3
:goto_1
const/16 v0, 0x41
if-gt v0, p0, :cond_4
const/16 v0, 0x46
if-lt v0, p0, :cond_4
add-int/lit8 p0, p0, -0x37
:goto_2
return p0
.line 296
:cond_4
new-instance v0, Ljava/lang/IllegalArgumentException;
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "Unexpected hex digit: "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
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/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast v0, Ljava/lang/Throwable;
throw v0
.end method
.method public static final getHEX_DIGIT_CHARS()[C
.locals 1
sget-object v0, Lokio/internal/ByteStringKt;->HEX_DIGIT_CHARS:[C
return-object v0
.end method