.class public final Lak/f; .super Ljava/lang/Object; .source "-Utf8.kt" # annotations .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\n-Utf8.kt\nKotlin\n*S Kotlin\n*F\n+ 1 -Utf8.kt\nokio/internal/_Utf8Kt\n+ 2 Utf8.kt\nokio/Utf8\n+ 3 -Util.kt\nokio/-Util\n*L\n1#1,60:1\n256#2,16:61\n273#2:78\n393#2,9:79\n127#2:88\n402#2,18:90\n275#2,3:108\n434#2,4:111\n127#2:115\n440#2,10:116\n127#2:126\n450#2,5:127\n127#2:132\n455#2,22:133\n279#2,3:155\n492#2,3:158\n282#2,12:161\n495#2:173\n127#2:174\n498#2,2:175\n127#2:177\n502#2,10:178\n127#2:188\n512#2,5:189\n127#2:194\n517#2,5:195\n127#2:200\n522#2,26:201\n298#2,6:227\n138#2,64:233\n60#3:77\n66#3:89\n*E\n*S KotlinDebug\n*F\n+ 1 -Utf8.kt\nokio/internal/_Utf8Kt\n*L\n34#1,16:61\n34#1:78\n34#1,9:79\n34#1:88\n34#1,18:90\n34#1,3:108\n34#1,4:111\n34#1:115\n34#1,10:116\n34#1:126\n34#1,5:127\n34#1:132\n34#1,22:133\n34#1,3:155\n34#1,3:158\n34#1,12:161\n34#1:173\n34#1:174\n34#1,2:175\n34#1:177\n34#1,10:178\n34#1:188\n34#1,5:189\n34#1:194\n34#1,5:195\n34#1:200\n34#1,26:201\n34#1,6:227\n50#1,64:233\n34#1:77\n34#1:89\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; bv = {} d1 = { "\u0000\u0014\n\u0002\u0010\u0012\n\u0002\u0010\u0008\n\u0002\u0008\u0002\n\u0002\u0010\u000e\n\u0002\u0008\u0003\u001a\u001e\u0010\u0005\u001a\u00020\u0004*\u00020\u00002\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u00012\u0008\u0008\u0002\u0010\u0003\u001a\u00020\u0001\u001a\n\u0010\u0006\u001a\u00020\u0000*\u00020\u0004\u00a8\u0006\u0007" } d2 = { "", "", "beginIndex", "endIndex", "", "b", "a", "okio" } k = 0x2 mv = { 0x1, 0x4, 0x0 } .end annotation # direct methods .method public static final a(Ljava/lang/String;)[B .locals 12 .param p0 # Ljava/lang/String; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation const-string v0, "$this$commonAsUtf8ToByteArray" invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V .line 1 invoke-virtual {p0}, Ljava/lang/String;->length()I move-result v0 mul-int/lit8 v0, v0, 0x4 new-array v0, v0, [B .line 2 invoke-virtual {p0}, Ljava/lang/String;->length()I move-result v1 const/4 v2, 0x0 :goto_0 const-string v3, "java.util.Arrays.copyOf(this, newSize)" if-ge v2, v1, :cond_9 .line 3 invoke-virtual {p0, v2}, Ljava/lang/String;->charAt(I)C move-result v4 const/16 v5, 0x80 .line 4 invoke-static {v4, v5}, Lkotlin/jvm/internal/f0;->t(II)I move-result v6 if-ltz v6, :cond_8 .line 5 invoke-virtual {p0}, Ljava/lang/String;->length()I move-result v1 move v4, v2 :goto_1 if-ge v2, v1, :cond_7 .line 6 invoke-virtual {p0, v2}, Ljava/lang/String;->charAt(I)C move-result v6 .line 7 invoke-static {v6, v5}, Lkotlin/jvm/internal/f0;->t(II)I move-result v7 if-gez v7, :cond_1 int-to-byte v6, v6 add-int/lit8 v7, v4, 0x1 .line 8 aput-byte v6, v0, v4 add-int/lit8 v2, v2, 0x1 :goto_2 if-ge v2, v1, :cond_0 .line 9 invoke-virtual {p0, v2}, Ljava/lang/String;->charAt(I)C move-result v4 invoke-static {v4, v5}, Lkotlin/jvm/internal/f0;->t(II)I move-result v4 if-gez v4, :cond_0 add-int/lit8 v4, v2, 0x1 .line 10 invoke-virtual {p0, v2}, Ljava/lang/String;->charAt(I)C move-result v2 int-to-byte v2, v2 add-int/lit8 v6, v7, 0x1 .line 11 aput-byte v2, v0, v7 move v2, v4 move v7, v6 goto :goto_2 :cond_0 move v4, v7 goto :goto_1 :cond_1 const/16 v7, 0x800 .line 12 invoke-static {v6, v7}, Lkotlin/jvm/internal/f0;->t(II)I move-result v7 if-gez v7, :cond_2 shr-int/lit8 v7, v6, 0x6 or-int/lit16 v7, v7, 0xc0 int-to-byte v7, v7 add-int/lit8 v8, v4, 0x1 .line 13 aput-byte v7, v0, v4 and-int/lit8 v4, v6, 0x3f or-int/2addr v4, v5 int-to-byte v4, v4 add-int/lit8 v6, v8, 0x1 aput-byte v4, v0, v8 :goto_3 add-int/lit8 v2, v2, 0x1 :goto_4 move v4, v6 goto :goto_1 :cond_2 const v7, 0xd800 const/16 v8, 0x3f if-gt v7, v6, :cond_6 const v7, 0xdfff if-ge v7, v6, :cond_3 goto :goto_6 :cond_3 const v9, 0xdbff .line 14 invoke-static {v6, v9}, Lkotlin/jvm/internal/f0;->t(II)I move-result v9 if-gtz v9, :cond_5 add-int/lit8 v9, v2, 0x1 if-le v1, v9, :cond_5 const v10, 0xdc00 .line 15 invoke-virtual {p0, v9}, Ljava/lang/String;->charAt(I)C move-result v11 if-gt v10, v11, :cond_5 if-ge v7, v11, :cond_4 goto :goto_5 :cond_4 shl-int/lit8 v6, v6, 0xa .line 16 invoke-virtual {p0, v9}, Ljava/lang/String;->charAt(I)C move-result v7 add-int/2addr v7, v6 const v6, -0x35fdc00 add-int/2addr v7, v6 shr-int/lit8 v6, v7, 0x12 or-int/lit16 v6, v6, 0xf0 int-to-byte v6, v6 add-int/lit8 v9, v4, 0x1 .line 17 aput-byte v6, v0, v4 shr-int/lit8 v4, v7, 0xc and-int/2addr v4, v8 or-int/2addr v4, v5 int-to-byte v4, v4 add-int/lit8 v6, v9, 0x1 aput-byte v4, v0, v9 shr-int/lit8 v4, v7, 0x6 and-int/2addr v4, v8 or-int/2addr v4, v5 int-to-byte v4, v4 add-int/lit8 v9, v6, 0x1 aput-byte v4, v0, v6 and-int/lit8 v4, v7, 0x3f or-int/2addr v4, v5 int-to-byte v4, v4 add-int/lit8 v6, v9, 0x1 aput-byte v4, v0, v9 add-int/lit8 v2, v2, 0x2 goto :goto_4 :cond_5 :goto_5 add-int/lit8 v6, v4, 0x1 aput-byte v8, v0, v4 goto :goto_3 :cond_6 :goto_6 shr-int/lit8 v7, v6, 0xc or-int/lit16 v7, v7, 0xe0 int-to-byte v7, v7 add-int/lit8 v9, v4, 0x1 aput-byte v7, v0, v4 shr-int/lit8 v4, v6, 0x6 and-int/2addr v4, v8 or-int/2addr v4, v5 int-to-byte v4, v4 add-int/lit8 v7, v9, 0x1 aput-byte v4, v0, v9 and-int/lit8 v4, v6, 0x3f or-int/2addr v4, v5 int-to-byte v4, v4 add-int/lit8 v6, v7, 0x1 aput-byte v4, v0, v7 goto :goto_3 .line 18 :cond_7 invoke-static {v0, v4}, Ljava/util/Arrays;->copyOf([BI)[B move-result-object p0 invoke-static {p0, v3}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V return-object p0 :cond_8 int-to-byte v3, v4 .line 19 aput-byte v3, v0, v2 add-int/lit8 v2, v2, 0x1 goto/16 :goto_0 .line 20 :cond_9 invoke-virtual {p0}, Ljava/lang/String;->length()I move-result p0 invoke-static {v0, p0}, Ljava/util/Arrays;->copyOf([BI)[B move-result-object p0 invoke-static {p0, v3}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V return-object p0 .end method .method public static final b([BII)Ljava/lang/String; .locals 13 .param p0 # [B .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation const-string v0, "$this$commonToUtf8String" invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V if-ltz p1, :cond_27 .line 1 array-length v0, p0 if-gt p2, v0, :cond_27 if-gt p1, p2, :cond_27 sub-int v0, p2, p1 .line 2 new-array v0, v0, [C const/4 v1, 0x0 move v2, v1 :goto_0 if-ge p1, p2, :cond_26 .line 3 aget-byte v3, p0, p1 if-ltz v3, :cond_1 int-to-char v3, v3 add-int/lit8 v4, v2, 0x1 .line 4 aput-char v3, v0, v2 add-int/lit8 p1, p1, 0x1 :goto_1 if-ge p1, p2, :cond_0 .line 5 aget-byte v2, p0, p1 if-ltz v2, :cond_0 add-int/lit8 v2, p1, 0x1 .line 6 aget-byte p1, p0, p1 int-to-char p1, p1 add-int/lit8 v3, v4, 0x1 .line 7 aput-char p1, v0, v4 move p1, v2 move v4, v3 goto :goto_1 :cond_0 :goto_2 move v2, v4 goto :goto_0 :cond_1 shr-int/lit8 v4, v3, 0x5 const/4 v5, -0x2 const/16 v6, 0x80 const v7, 0xfffd if-ne v4, v5, :cond_6 add-int/lit8 v3, p1, 0x1 if-gt p2, v3, :cond_2 int-to-char v3, v7 add-int/lit8 v4, v2, 0x1 aput-char v3, v0, v2 goto :goto_4 .line 8 :cond_2 aget-byte v4, p0, p1 .line 9 aget-byte v3, p0, v3 and-int/lit16 v5, v3, 0xc0 if-ne v5, v6, :cond_3 const/4 v5, 0x1 goto :goto_3 :cond_3 move v5, v1 :goto_3 if-nez v5, :cond_4 int-to-char v3, v7 add-int/lit8 v4, v2, 0x1 .line 10 aput-char v3, v0, v2 .line 11 :goto_4 sget-object v2, Lkotlin/d1;->a:Lkotlin/d1; goto :goto_8 :cond_4 xor-int/lit16 v3, v3, 0xf80 shl-int/lit8 v4, v4, 0x6 xor-int/2addr v3, v4 if-ge v3, v6, :cond_5 int-to-char v3, v7 add-int/lit8 v4, v2, 0x1 .line 12 aput-char v3, v0, v2 goto :goto_5 :cond_5 int-to-char v3, v3 add-int/lit8 v4, v2, 0x1 aput-char v3, v0, v2 .line 13 :goto_5 sget-object v2, Lkotlin/d1;->a:Lkotlin/d1; goto :goto_a :cond_6 shr-int/lit8 v4, v3, 0x4 const v8, 0xd800 const v9, 0xdfff const/4 v10, 0x3 if-ne v4, v5, :cond_12 add-int/lit8 v3, p1, 0x2 if-gt p2, v3, :cond_8 int-to-char v3, v7 add-int/lit8 v4, v2, 0x1 .line 14 aput-char v3, v0, v2 .line 15 sget-object v2, Lkotlin/d1;->a:Lkotlin/d1; add-int/lit8 v2, p1, 0x1 if-le p2, v2, :cond_a .line 16 aget-byte v2, p0, v2 and-int/lit16 v2, v2, 0xc0 if-ne v2, v6, :cond_7 const/4 v2, 0x1 goto :goto_6 :cond_7 move v2, v1 :goto_6 if-nez v2, :cond_d goto :goto_8 .line 17 :cond_8 aget-byte v4, p0, p1 add-int/lit8 v5, p1, 0x1 .line 18 aget-byte v5, p0, v5 and-int/lit16 v11, v5, 0xc0 if-ne v11, v6, :cond_9 const/4 v11, 0x1 goto :goto_7 :cond_9 move v11, v1 :goto_7 if-nez v11, :cond_b int-to-char v3, v7 add-int/lit8 v4, v2, 0x1 .line 19 aput-char v3, v0, v2 goto :goto_4 :cond_a :goto_8 const/4 v10, 0x1 goto :goto_d .line 20 :cond_b aget-byte v3, p0, v3 and-int/lit16 v11, v3, 0xc0 if-ne v11, v6, :cond_c const/4 v6, 0x1 goto :goto_9 :cond_c move v6, v1 :goto_9 if-nez v6, :cond_e int-to-char v3, v7 add-int/lit8 v4, v2, 0x1 .line 21 aput-char v3, v0, v2 goto :goto_5 :cond_d :goto_a const/4 v10, 0x2 goto :goto_d :cond_e const v6, -0x1e080 xor-int/2addr v3, v6 shl-int/lit8 v5, v5, 0x6 xor-int/2addr v3, v5 shl-int/lit8 v4, v4, 0xc xor-int/2addr v3, v4 const/16 v4, 0x800 if-ge v3, v4, :cond_f int-to-char v3, v7 add-int/lit8 v4, v2, 0x1 aput-char v3, v0, v2 goto :goto_c :cond_f if-le v8, v3, :cond_10 goto :goto_b :cond_10 if-lt v9, v3, :cond_11 int-to-char v3, v7 add-int/lit8 v4, v2, 0x1 aput-char v3, v0, v2 goto :goto_c :cond_11 :goto_b int-to-char v3, v3 add-int/lit8 v4, v2, 0x1 aput-char v3, v0, v2 .line 22 :goto_c sget-object v2, Lkotlin/d1;->a:Lkotlin/d1; :goto_d add-int/2addr p1, v10 goto/16 :goto_2 :cond_12 shr-int/lit8 v3, v3, 0x3 if-ne v3, v5, :cond_25 add-int/lit8 v3, p1, 0x3 if-gt p2, v3, :cond_16 add-int/lit8 v3, v2, 0x1 .line 23 aput-char v7, v0, v2 .line 24 sget-object v2, Lkotlin/d1;->a:Lkotlin/d1; add-int/lit8 v2, p1, 0x1 if-le p2, v2, :cond_18 .line 25 aget-byte v2, p0, v2 and-int/lit16 v2, v2, 0xc0 if-ne v2, v6, :cond_13 const/4 v2, 0x1 goto :goto_e :cond_13 move v2, v1 :goto_e if-nez v2, :cond_14 goto :goto_11 :cond_14 add-int/lit8 v2, p1, 0x2 if-le p2, v2, :cond_1b .line 26 aget-byte v2, p0, v2 and-int/lit16 v2, v2, 0xc0 if-ne v2, v6, :cond_15 const/4 v2, 0x1 goto :goto_f :cond_15 move v2, v1 :goto_f if-nez v2, :cond_24 goto :goto_13 .line 27 :cond_16 aget-byte v4, p0, p1 add-int/lit8 v5, p1, 0x1 .line 28 aget-byte v5, p0, v5 and-int/lit16 v11, v5, 0xc0 if-ne v11, v6, :cond_17 const/4 v11, 0x1 goto :goto_10 :cond_17 move v11, v1 :goto_10 if-nez v11, :cond_19 add-int/lit8 v3, v2, 0x1 .line 29 aput-char v7, v0, v2 .line 30 sget-object v2, Lkotlin/d1;->a:Lkotlin/d1; :cond_18 :goto_11 const/4 v10, 0x1 goto/16 :goto_17 :cond_19 add-int/lit8 v11, p1, 0x2 .line 31 aget-byte v11, p0, v11 and-int/lit16 v12, v11, 0xc0 if-ne v12, v6, :cond_1a const/4 v12, 0x1 goto :goto_12 :cond_1a move v12, v1 :goto_12 if-nez v12, :cond_1c add-int/lit8 v3, v2, 0x1 .line 32 aput-char v7, v0, v2 .line 33 sget-object v2, Lkotlin/d1;->a:Lkotlin/d1; :cond_1b :goto_13 const/4 v10, 0x2 goto :goto_17 .line 34 :cond_1c aget-byte v3, p0, v3 and-int/lit16 v12, v3, 0xc0 if-ne v12, v6, :cond_1d const/4 v6, 0x1 goto :goto_14 :cond_1d move v6, v1 :goto_14 if-nez v6, :cond_1e add-int/lit8 v3, v2, 0x1 .line 35 aput-char v7, v0, v2 .line 36 sget-object v2, Lkotlin/d1;->a:Lkotlin/d1; goto :goto_17 :cond_1e const v6, 0x381f80 xor-int/2addr v3, v6 shl-int/lit8 v6, v11, 0x6 xor-int/2addr v3, v6 shl-int/lit8 v5, v5, 0xc xor-int/2addr v3, v5 shl-int/lit8 v4, v4, 0x12 xor-int/2addr v3, v4 const v4, 0x10ffff if-le v3, v4, :cond_1f add-int/lit8 v3, v2, 0x1 .line 37 aput-char v7, v0, v2 goto :goto_16 :cond_1f if-le v8, v3, :cond_20 goto :goto_15 :cond_20 if-lt v9, v3, :cond_21 add-int/lit8 v3, v2, 0x1 aput-char v7, v0, v2 goto :goto_16 :cond_21 :goto_15 const/high16 v4, 0x10000 if-ge v3, v4, :cond_22 add-int/lit8 v3, v2, 0x1 aput-char v7, v0, v2 goto :goto_16 :cond_22 if-eq v3, v7, :cond_23 ushr-int/lit8 v4, v3, 0xa const v5, 0xd7c0 add-int/2addr v4, v5 int-to-char v4, v4 add-int/lit8 v5, v2, 0x1 aput-char v4, v0, v2 and-int/lit16 v2, v3, 0x3ff const v3, 0xdc00 add-int/2addr v2, v3 int-to-char v2, v2 add-int/lit8 v3, v5, 0x1 aput-char v2, v0, v5 goto :goto_16 :cond_23 add-int/lit8 v3, v2, 0x1 aput-char v7, v0, v2 .line 38 :goto_16 sget-object v2, Lkotlin/d1;->a:Lkotlin/d1; const/4 v10, 0x4 :cond_24 :goto_17 add-int/2addr p1, v10 goto :goto_18 :cond_25 add-int/lit8 v3, v2, 0x1 .line 39 aput-char v7, v0, v2 add-int/lit8 p1, p1, 0x1 :goto_18 move v2, v3 goto/16 :goto_0 .line 40 :cond_26 new-instance p0, Ljava/lang/String; invoke-direct {p0, v0, v1, v2}, Ljava/lang/String;->([CII)V return-object p0 .line 41 :cond_27 new-instance v0, Ljava/lang/ArrayIndexOutOfBoundsException; const-string v1, "size=" invoke-static {v1}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 array-length p0, p0 const-string v2, " beginIndex=" const-string v3, " endIndex=" invoke-static {v1, p0, v2, p1, v3}, Lt0/b;->a(Ljava/lang/StringBuilder;ILjava/lang/String;ILjava/lang/String;)V invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 invoke-direct {v0, p0}, Ljava/lang/ArrayIndexOutOfBoundsException;->(Ljava/lang/String;)V throw v0 .end method .method public static synthetic c([BIIILjava/lang/Object;)Ljava/lang/String; .locals 0 and-int/lit8 p4, p3, 0x1 if-eqz p4, :cond_0 const/4 p1, 0x0 :cond_0 and-int/lit8 p3, p3, 0x2 if-eqz p3, :cond_1 .line 1 array-length p2, p0 :cond_1 invoke-static {p0, p1, p2}, Lak/f;->b([BII)Ljava/lang/String; move-result-object p0 return-object p0 .end method