1907 lines
30 KiB
Smali
1907 lines
30 KiB
Smali
.class public final Lx/y/a;
|
|
.super Ljava/lang/Object;
|
|
.source "ByteString.kt"
|
|
|
|
|
|
# static fields
|
|
.field public static final a:[C
|
|
|
|
.field public static final b:Lokio/ByteString;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
const/16 v0, 0x10
|
|
|
|
new-array v0, v0, [C
|
|
|
|
fill-array-data v0, :array_0
|
|
|
|
sput-object v0, Lx/y/a;->a:[C
|
|
|
|
sget-object v0, Lokio/ByteString;->g:Lokio/ByteString$a;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
new-array v1, v1, [B
|
|
|
|
invoke-virtual {v0, v1}, Lokio/ByteString$a;->a([B)Lokio/ByteString;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lx/y/a;->b:Lokio/ByteString;
|
|
|
|
return-void
|
|
|
|
nop
|
|
|
|
: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 a(Lokio/ByteString;I)B
|
|
.locals 0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->b()[B
|
|
|
|
move-result-object p0
|
|
|
|
aget-byte p0, p0, p1
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const-string p0, "$receiver"
|
|
|
|
invoke-static {p0}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final a(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_3
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/16 v0, 0x66
|
|
|
|
const/16 v1, 0x61
|
|
|
|
if-le v1, p0, :cond_2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
if-lt v0, p0, :cond_3
|
|
|
|
:goto_1
|
|
sub-int/2addr p0, v1
|
|
|
|
add-int/lit8 p0, p0, 0xa
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
:goto_2
|
|
const/16 v0, 0x46
|
|
|
|
const/16 v1, 0x41
|
|
|
|
if-gt v1, p0, :cond_4
|
|
|
|
if-lt v0, p0, :cond_4
|
|
|
|
goto :goto_1
|
|
|
|
:goto_3
|
|
return p0
|
|
|
|
:cond_4
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Unexpected hex digit: "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final a(Lokio/ByteString;Lokio/ByteString;)I
|
|
.locals 9
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p0, :cond_6
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->j()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1}, Lokio/ByteString;->j()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
:goto_0
|
|
const/4 v5, -0x1
|
|
|
|
const/4 v6, 0x1
|
|
|
|
if-ge v4, v2, :cond_2
|
|
|
|
invoke-virtual {p0, v4}, Lokio/ByteString;->a(I)B
|
|
|
|
move-result v7
|
|
|
|
and-int/lit16 v7, v7, 0xff
|
|
|
|
invoke-virtual {p1, v4}, Lokio/ByteString;->a(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
|
|
const/4 v5, 0x1
|
|
|
|
: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
|
|
const/4 v5, 0x1
|
|
|
|
:goto_2
|
|
return v5
|
|
|
|
:cond_5
|
|
const-string p0, "other"
|
|
|
|
invoke-static {p0}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_6
|
|
const-string p0, "$receiver"
|
|
|
|
invoke-static {p0}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final a(Lokio/ByteString;)Ljava/lang/String;
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->b()[B
|
|
|
|
move-result-object p0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-static {p0, v0, v1}, Lx/a;->a([B[BI)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const-string p0, "$receiver"
|
|
|
|
invoke-static {p0}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final a(Ljava/lang/String;)Lokio/ByteString;
|
|
.locals 5
|
|
|
|
if-eqz p0, :cond_3
|
|
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
rem-int/lit8 v0, v0, 0x2
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
div-int/lit8 v0, v0, 0x2
|
|
|
|
new-array v0, v0, [B
|
|
|
|
array-length v2, v0
|
|
|
|
:goto_1
|
|
if-ge v1, v2, :cond_1
|
|
|
|
mul-int/lit8 v3, v1, 0x2
|
|
|
|
invoke-virtual {p0, v3}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v4
|
|
|
|
invoke-static {v4}, Lx/y/a;->a(C)I
|
|
|
|
move-result v4
|
|
|
|
shl-int/lit8 v4, v4, 0x4
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
invoke-virtual {p0, v3}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v3
|
|
|
|
invoke-static {v3}, Lx/y/a;->a(C)I
|
|
|
|
move-result v3
|
|
|
|
add-int/2addr v3, v4
|
|
|
|
int-to-byte v3, v3
|
|
|
|
aput-byte v3, v0, v1
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
new-instance p0, Lokio/ByteString;
|
|
|
|
invoke-direct {p0, v0}, Lokio/ByteString;-><init>([B)V
|
|
|
|
return-object p0
|
|
|
|
:cond_2
|
|
const-string v0, "Unexpected hex string: "
|
|
|
|
invoke-static {v0, p0}, Le/e/b/a/a;->a(Ljava/lang/String;Ljava/lang/String;)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
|
|
|
|
throw v0
|
|
|
|
:cond_3
|
|
const-string p0, "$receiver"
|
|
|
|
invoke-static {p0}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final a([B)Lokio/ByteString;
|
|
.locals 2
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
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}, Ls/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {v0, p0}, Lokio/ByteString;-><init>([B)V
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const-string p0, "data"
|
|
|
|
invoke-static {p0}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final a(Lokio/ByteString;ILokio/ByteString;II)Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->b()[B
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p2, p3, p0, p1, p4}, Lokio/ByteString;->a(I[BII)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const-string p0, "other"
|
|
|
|
invoke-static {p0}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p0, "$receiver"
|
|
|
|
invoke-static {p0}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final a(Lokio/ByteString;I[BII)Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->b()[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
|
|
|
|
array-length v0, p2
|
|
|
|
sub-int/2addr v0, p4
|
|
|
|
if-gt p3, v0, :cond_0
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->b()[B
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0, p1, p2, p3, p4}, Le/k/a/b/e/p/g;->a([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
|
|
|
|
:cond_1
|
|
const-string p0, "other"
|
|
|
|
invoke-static {p0}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
const-string p0, "$receiver"
|
|
|
|
invoke-static {p0}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final a(Lokio/ByteString;Ljava/lang/Object;)Z
|
|
.locals 4
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-ne p1, p0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
instance-of v2, p1, Lokio/ByteString;
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
check-cast p1, Lokio/ByteString;
|
|
|
|
invoke-virtual {p1}, Lokio/ByteString;->j()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->b()[B
|
|
|
|
move-result-object v3
|
|
|
|
array-length v3, v3
|
|
|
|
if-ne v2, v3, :cond_1
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->b()[B
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->b()[B
|
|
|
|
move-result-object p0
|
|
|
|
array-length p0, p0
|
|
|
|
invoke-virtual {p1, v1, v2, v1, p0}, Lokio/ByteString;->a(I[BII)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
|
|
:cond_2
|
|
const-string p0, "$receiver"
|
|
|
|
invoke-static {p0}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final b(Lokio/ByteString;)I
|
|
.locals 0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->b()[B
|
|
|
|
move-result-object p0
|
|
|
|
array-length p0, p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const-string p0, "$receiver"
|
|
|
|
invoke-static {p0}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final b(Ljava/lang/String;)Lokio/ByteString;
|
|
.locals 3
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
new-instance v0, Lokio/ByteString;
|
|
|
|
sget-object v1, Ls/a0/a;->a:Ljava/nio/charset/Charset;
|
|
|
|
invoke-virtual {p0, v1}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "(this as java.lang.String).getBytes(charset)"
|
|
|
|
invoke-static {v1, v2}, Ls/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {v0, v1}, Lokio/ByteString;-><init>([B)V
|
|
|
|
invoke-virtual {v0, p0}, Lokio/ByteString;->b(Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const-string p0, "$receiver"
|
|
|
|
invoke-static {p0}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final b(Lokio/ByteString;Lokio/ByteString;)Z
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1}, Lokio/ByteString;->j()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p0, v1, p1, v1, v0}, Lokio/ByteString;->a(ILokio/ByteString;II)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const-string p0, "prefix"
|
|
|
|
invoke-static {p0}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p0, "$receiver"
|
|
|
|
invoke-static {p0}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final c(Lokio/ByteString;)I
|
|
.locals 1
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->c()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lokio/ByteString;->b()[B
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Ljava/util/Arrays;->hashCode([B)I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0, v0}, Lokio/ByteString;->c(I)V
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->c()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_1
|
|
const-string p0, "$receiver"
|
|
|
|
invoke-static {p0}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final d(Lokio/ByteString;)Ljava/lang/String;
|
|
.locals 8
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->b()[B
|
|
|
|
move-result-object v0
|
|
|
|
array-length v0, v0
|
|
|
|
mul-int/lit8 v0, v0, 0x2
|
|
|
|
new-array v0, v0, [C
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->b()[B
|
|
|
|
move-result-object p0
|
|
|
|
array-length v1, p0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v1, :cond_0
|
|
|
|
aget-byte v4, p0, v2
|
|
|
|
add-int/lit8 v5, v3, 0x1
|
|
|
|
sget-object v6, Lx/y/a;->a:[C
|
|
|
|
shr-int/lit8 v7, v4, 0x4
|
|
|
|
and-int/lit8 v7, v7, 0xf
|
|
|
|
aget-char v7, v6, v7
|
|
|
|
aput-char v7, v0, v3
|
|
|
|
add-int/lit8 v3, v5, 0x1
|
|
|
|
and-int/lit8 v4, v4, 0xf
|
|
|
|
aget-char v4, v6, v4
|
|
|
|
aput-char v4, v0, v5
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/String;
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/String;-><init>([C)V
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
const-string p0, "$receiver"
|
|
|
|
invoke-static {p0}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final e(Lokio/ByteString;)[B
|
|
.locals 0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->b()[B
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const-string p0, "$receiver"
|
|
|
|
invoke-static {p0}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final f(Lokio/ByteString;)Lokio/ByteString;
|
|
.locals 5
|
|
|
|
if-eqz p0, :cond_6
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
invoke-virtual {p0}, Lokio/ByteString;->b()[B
|
|
|
|
move-result-object v1
|
|
|
|
array-length v1, v1
|
|
|
|
if-ge v0, v1, :cond_5
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->b()[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
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lokio/ByteString;->b()[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}, Ls/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
add-int/lit8 v4, v0, 0x1
|
|
|
|
add-int/lit8 v1, v1, 0x20
|
|
|
|
int-to-byte v1, v1
|
|
|
|
aput-byte v1, p0, v0
|
|
|
|
:goto_1
|
|
array-length v0, p0
|
|
|
|
if-ge v4, v0, :cond_3
|
|
|
|
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
|
|
|
|
aput-byte v0, p0, v4
|
|
|
|
:cond_2
|
|
:goto_2
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
: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
|
|
|
|
:cond_6
|
|
const-string p0, "$receiver"
|
|
|
|
invoke-static {p0}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final g(Lokio/ByteString;)Ljava/lang/String;
|
|
.locals 17
|
|
|
|
if-eqz p0, :cond_4f
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->b()[B
|
|
|
|
move-result-object v0
|
|
|
|
array-length v0, v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_1
|
|
|
|
const-string v0, "[size=0]"
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->b()[B
|
|
|
|
move-result-object v0
|
|
|
|
array-length v1, v0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
:cond_2
|
|
:goto_1
|
|
const/16 v5, 0x40
|
|
|
|
if-ge v2, v1, :cond_47
|
|
|
|
aget-byte v6, v0, v2
|
|
|
|
const/16 v7, 0x7f
|
|
|
|
const/16 v8, 0x1f
|
|
|
|
const/16 v9, 0xd
|
|
|
|
const/16 v10, 0xa
|
|
|
|
const/16 v11, 0x9f
|
|
|
|
const v12, 0xfffd
|
|
|
|
const/high16 v13, 0x10000
|
|
|
|
if-ltz v6, :cond_13
|
|
|
|
add-int/lit8 v14, v4, 0x1
|
|
|
|
if-ne v4, v5, :cond_3
|
|
|
|
goto/16 :goto_1c
|
|
|
|
:cond_3
|
|
if-eq v6, v10, :cond_8
|
|
|
|
if-eq v6, v9, :cond_8
|
|
|
|
if-ltz v6, :cond_4
|
|
|
|
if-ge v8, v6, :cond_6
|
|
|
|
:cond_4
|
|
if-le v7, v6, :cond_5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
if-lt v11, v6, :cond_7
|
|
|
|
:cond_6
|
|
const/4 v4, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_7
|
|
:goto_2
|
|
const/4 v4, 0x0
|
|
|
|
:goto_3
|
|
if-nez v4, :cond_46
|
|
|
|
:cond_8
|
|
if-ne v6, v12, :cond_9
|
|
|
|
goto/16 :goto_1b
|
|
|
|
:cond_9
|
|
if-ge v6, v13, :cond_a
|
|
|
|
const/4 v4, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_a
|
|
const/4 v4, 0x2
|
|
|
|
:goto_4
|
|
add-int/2addr v3, v4
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
:goto_5
|
|
move v4, v14
|
|
|
|
if-ge v2, v1, :cond_2
|
|
|
|
aget-byte v6, v0, v2
|
|
|
|
if-ltz v6, :cond_2
|
|
|
|
add-int/lit8 v6, v2, 0x1
|
|
|
|
aget-byte v2, v0, v2
|
|
|
|
add-int/lit8 v14, v4, 0x1
|
|
|
|
if-ne v4, v5, :cond_b
|
|
|
|
goto/16 :goto_1c
|
|
|
|
:cond_b
|
|
if-eq v2, v10, :cond_10
|
|
|
|
if-eq v2, v9, :cond_10
|
|
|
|
if-ltz v2, :cond_c
|
|
|
|
if-ge v8, v2, :cond_e
|
|
|
|
:cond_c
|
|
if-le v7, v2, :cond_d
|
|
|
|
goto :goto_6
|
|
|
|
:cond_d
|
|
if-lt v11, v2, :cond_f
|
|
|
|
:cond_e
|
|
const/4 v4, 0x1
|
|
|
|
goto :goto_7
|
|
|
|
:cond_f
|
|
:goto_6
|
|
const/4 v4, 0x0
|
|
|
|
:goto_7
|
|
if-nez v4, :cond_46
|
|
|
|
:cond_10
|
|
if-ne v2, v12, :cond_11
|
|
|
|
goto/16 :goto_1b
|
|
|
|
:cond_11
|
|
if-ge v2, v13, :cond_12
|
|
|
|
const/4 v2, 0x1
|
|
|
|
goto :goto_8
|
|
|
|
:cond_12
|
|
const/4 v2, 0x2
|
|
|
|
:goto_8
|
|
add-int/2addr v3, v2
|
|
|
|
move v2, v6
|
|
|
|
goto :goto_5
|
|
|
|
:cond_13
|
|
shr-int/lit8 v13, v6, 0x5
|
|
|
|
const/4 v15, -0x2
|
|
|
|
const/16 v14, 0x80
|
|
|
|
if-ne v13, v15, :cond_20
|
|
|
|
add-int/lit8 v6, v2, 0x1
|
|
|
|
if-gt v1, v6, :cond_14
|
|
|
|
if-ne v4, v5, :cond_46
|
|
|
|
goto/16 :goto_1c
|
|
|
|
:cond_14
|
|
aget-byte v13, v0, v2
|
|
|
|
aget-byte v6, v0, v6
|
|
|
|
and-int/lit16 v15, v6, 0xc0
|
|
|
|
if-ne v15, v14, :cond_15
|
|
|
|
const/4 v15, 0x1
|
|
|
|
goto :goto_9
|
|
|
|
:cond_15
|
|
const/4 v15, 0x0
|
|
|
|
:goto_9
|
|
if-nez v15, :cond_16
|
|
|
|
if-ne v4, v5, :cond_46
|
|
|
|
goto/16 :goto_1c
|
|
|
|
:cond_16
|
|
xor-int/lit16 v6, v6, 0xf80
|
|
|
|
shl-int/lit8 v13, v13, 0x6
|
|
|
|
xor-int/2addr v6, v13
|
|
|
|
if-ge v6, v14, :cond_17
|
|
|
|
if-ne v4, v5, :cond_46
|
|
|
|
goto/16 :goto_1c
|
|
|
|
:cond_17
|
|
add-int/lit8 v13, v4, 0x1
|
|
|
|
if-ne v4, v5, :cond_18
|
|
|
|
goto/16 :goto_1c
|
|
|
|
:cond_18
|
|
if-eq v6, v10, :cond_1d
|
|
|
|
if-eq v6, v9, :cond_1d
|
|
|
|
if-ltz v6, :cond_19
|
|
|
|
if-ge v8, v6, :cond_1b
|
|
|
|
:cond_19
|
|
if-le v7, v6, :cond_1a
|
|
|
|
goto :goto_a
|
|
|
|
:cond_1a
|
|
if-lt v11, v6, :cond_1c
|
|
|
|
:cond_1b
|
|
const/4 v4, 0x1
|
|
|
|
goto :goto_b
|
|
|
|
:cond_1c
|
|
:goto_a
|
|
const/4 v4, 0x0
|
|
|
|
:goto_b
|
|
if-nez v4, :cond_46
|
|
|
|
:cond_1d
|
|
if-ne v6, v12, :cond_1e
|
|
|
|
goto/16 :goto_1b
|
|
|
|
:cond_1e
|
|
const/high16 v4, 0x10000
|
|
|
|
if-ge v6, v4, :cond_1f
|
|
|
|
const/4 v14, 0x1
|
|
|
|
const/16 v16, 0x1
|
|
|
|
goto :goto_c
|
|
|
|
:cond_1f
|
|
const/16 v16, 0x2
|
|
|
|
:goto_c
|
|
add-int v3, v3, v16
|
|
|
|
add-int/lit8 v2, v2, 0x2
|
|
|
|
move v4, v13
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_20
|
|
shr-int/lit8 v7, v6, 0x4
|
|
|
|
const v11, 0xd800
|
|
|
|
const v12, 0xdfff
|
|
|
|
if-ne v7, v15, :cond_31
|
|
|
|
add-int/lit8 v6, v2, 0x2
|
|
|
|
if-gt v1, v6, :cond_21
|
|
|
|
if-ne v4, v5, :cond_46
|
|
|
|
goto/16 :goto_1c
|
|
|
|
:cond_21
|
|
aget-byte v7, v0, v2
|
|
|
|
add-int/lit8 v13, v2, 0x1
|
|
|
|
aget-byte v13, v0, v13
|
|
|
|
and-int/lit16 v15, v13, 0xc0
|
|
|
|
if-ne v15, v14, :cond_22
|
|
|
|
const/4 v15, 0x1
|
|
|
|
goto :goto_d
|
|
|
|
:cond_22
|
|
const/4 v15, 0x0
|
|
|
|
:goto_d
|
|
if-nez v15, :cond_23
|
|
|
|
if-ne v4, v5, :cond_46
|
|
|
|
goto/16 :goto_1c
|
|
|
|
:cond_23
|
|
aget-byte v6, v0, v6
|
|
|
|
and-int/lit16 v15, v6, 0xc0
|
|
|
|
if-ne v15, v14, :cond_24
|
|
|
|
const/4 v14, 0x1
|
|
|
|
goto :goto_e
|
|
|
|
:cond_24
|
|
const/4 v14, 0x0
|
|
|
|
:goto_e
|
|
if-nez v14, :cond_25
|
|
|
|
if-ne v4, v5, :cond_46
|
|
|
|
goto/16 :goto_1c
|
|
|
|
:cond_25
|
|
const v14, -0x1e080
|
|
|
|
xor-int/2addr v6, v14
|
|
|
|
shl-int/lit8 v13, v13, 0x6
|
|
|
|
xor-int/2addr v6, v13
|
|
|
|
shl-int/lit8 v7, v7, 0xc
|
|
|
|
xor-int/2addr v6, v7
|
|
|
|
const/16 v7, 0x800
|
|
|
|
if-ge v6, v7, :cond_26
|
|
|
|
if-ne v4, v5, :cond_46
|
|
|
|
goto/16 :goto_1c
|
|
|
|
:cond_26
|
|
if-le v11, v6, :cond_27
|
|
|
|
goto :goto_f
|
|
|
|
:cond_27
|
|
if-lt v12, v6, :cond_28
|
|
|
|
if-ne v4, v5, :cond_46
|
|
|
|
goto/16 :goto_1c
|
|
|
|
:cond_28
|
|
:goto_f
|
|
add-int/lit8 v7, v4, 0x1
|
|
|
|
if-ne v4, v5, :cond_29
|
|
|
|
goto/16 :goto_1c
|
|
|
|
:cond_29
|
|
if-eq v6, v10, :cond_2e
|
|
|
|
if-eq v6, v9, :cond_2e
|
|
|
|
if-ltz v6, :cond_2a
|
|
|
|
if-ge v8, v6, :cond_2c
|
|
|
|
:cond_2a
|
|
const/16 v4, 0x7f
|
|
|
|
if-le v4, v6, :cond_2b
|
|
|
|
goto :goto_10
|
|
|
|
:cond_2b
|
|
const/16 v4, 0x9f
|
|
|
|
if-lt v4, v6, :cond_2d
|
|
|
|
:cond_2c
|
|
const/4 v4, 0x1
|
|
|
|
goto :goto_11
|
|
|
|
:cond_2d
|
|
:goto_10
|
|
const/4 v4, 0x0
|
|
|
|
:goto_11
|
|
if-nez v4, :cond_46
|
|
|
|
:cond_2e
|
|
const v4, 0xfffd
|
|
|
|
if-ne v6, v4, :cond_2f
|
|
|
|
goto/16 :goto_1b
|
|
|
|
:cond_2f
|
|
const/high16 v4, 0x10000
|
|
|
|
if-ge v6, v4, :cond_30
|
|
|
|
const/4 v14, 0x1
|
|
|
|
const/16 v16, 0x1
|
|
|
|
goto :goto_12
|
|
|
|
:cond_30
|
|
const/16 v16, 0x2
|
|
|
|
:goto_12
|
|
add-int v3, v3, v16
|
|
|
|
add-int/lit8 v2, v2, 0x3
|
|
|
|
:goto_13
|
|
move v4, v7
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_31
|
|
shr-int/lit8 v6, v6, 0x3
|
|
|
|
if-ne v6, v15, :cond_45
|
|
|
|
add-int/lit8 v6, v2, 0x3
|
|
|
|
if-gt v1, v6, :cond_32
|
|
|
|
if-ne v4, v5, :cond_46
|
|
|
|
goto/16 :goto_1c
|
|
|
|
:cond_32
|
|
aget-byte v7, v0, v2
|
|
|
|
add-int/lit8 v8, v2, 0x1
|
|
|
|
aget-byte v8, v0, v8
|
|
|
|
and-int/lit16 v13, v8, 0xc0
|
|
|
|
if-ne v13, v14, :cond_33
|
|
|
|
const/4 v13, 0x1
|
|
|
|
goto :goto_14
|
|
|
|
:cond_33
|
|
const/4 v13, 0x0
|
|
|
|
:goto_14
|
|
if-nez v13, :cond_34
|
|
|
|
if-ne v4, v5, :cond_46
|
|
|
|
goto/16 :goto_1c
|
|
|
|
:cond_34
|
|
add-int/lit8 v13, v2, 0x2
|
|
|
|
aget-byte v13, v0, v13
|
|
|
|
and-int/lit16 v15, v13, 0xc0
|
|
|
|
if-ne v15, v14, :cond_35
|
|
|
|
const/4 v15, 0x1
|
|
|
|
goto :goto_15
|
|
|
|
:cond_35
|
|
const/4 v15, 0x0
|
|
|
|
:goto_15
|
|
if-nez v15, :cond_36
|
|
|
|
if-ne v4, v5, :cond_46
|
|
|
|
goto/16 :goto_1c
|
|
|
|
:cond_36
|
|
aget-byte v6, v0, v6
|
|
|
|
and-int/lit16 v15, v6, 0xc0
|
|
|
|
if-ne v15, v14, :cond_37
|
|
|
|
const/4 v14, 0x1
|
|
|
|
goto :goto_16
|
|
|
|
:cond_37
|
|
const/4 v14, 0x0
|
|
|
|
:goto_16
|
|
if-nez v14, :cond_38
|
|
|
|
if-ne v4, v5, :cond_46
|
|
|
|
goto/16 :goto_1c
|
|
|
|
:cond_38
|
|
const v14, 0x381f80
|
|
|
|
xor-int/2addr v6, v14
|
|
|
|
shl-int/lit8 v13, v13, 0x6
|
|
|
|
xor-int/2addr v6, v13
|
|
|
|
shl-int/lit8 v8, v8, 0xc
|
|
|
|
xor-int/2addr v6, v8
|
|
|
|
shl-int/lit8 v7, v7, 0x12
|
|
|
|
xor-int/2addr v6, v7
|
|
|
|
const v7, 0x10ffff
|
|
|
|
if-le v6, v7, :cond_39
|
|
|
|
if-ne v4, v5, :cond_46
|
|
|
|
goto :goto_1c
|
|
|
|
:cond_39
|
|
if-le v11, v6, :cond_3a
|
|
|
|
goto :goto_17
|
|
|
|
:cond_3a
|
|
if-lt v12, v6, :cond_3b
|
|
|
|
if-ne v4, v5, :cond_46
|
|
|
|
goto :goto_1c
|
|
|
|
:cond_3b
|
|
:goto_17
|
|
const/high16 v7, 0x10000
|
|
|
|
if-ge v6, v7, :cond_3c
|
|
|
|
if-ne v4, v5, :cond_46
|
|
|
|
goto :goto_1c
|
|
|
|
:cond_3c
|
|
add-int/lit8 v7, v4, 0x1
|
|
|
|
if-ne v4, v5, :cond_3d
|
|
|
|
goto :goto_1c
|
|
|
|
:cond_3d
|
|
if-eq v6, v10, :cond_42
|
|
|
|
if-eq v6, v9, :cond_42
|
|
|
|
if-ltz v6, :cond_3e
|
|
|
|
const/16 v4, 0x1f
|
|
|
|
if-ge v4, v6, :cond_40
|
|
|
|
:cond_3e
|
|
const/16 v4, 0x7f
|
|
|
|
if-le v4, v6, :cond_3f
|
|
|
|
goto :goto_18
|
|
|
|
:cond_3f
|
|
const/16 v4, 0x9f
|
|
|
|
if-lt v4, v6, :cond_41
|
|
|
|
:cond_40
|
|
const/4 v4, 0x1
|
|
|
|
goto :goto_19
|
|
|
|
:cond_41
|
|
:goto_18
|
|
const/4 v4, 0x0
|
|
|
|
:goto_19
|
|
if-nez v4, :cond_46
|
|
|
|
:cond_42
|
|
const v4, 0xfffd
|
|
|
|
if-ne v6, v4, :cond_43
|
|
|
|
goto :goto_1b
|
|
|
|
:cond_43
|
|
const/high16 v4, 0x10000
|
|
|
|
if-ge v6, v4, :cond_44
|
|
|
|
const/4 v14, 0x1
|
|
|
|
const/16 v16, 0x1
|
|
|
|
goto :goto_1a
|
|
|
|
:cond_44
|
|
const/16 v16, 0x2
|
|
|
|
:goto_1a
|
|
add-int v3, v3, v16
|
|
|
|
add-int/lit8 v2, v2, 0x4
|
|
|
|
goto/16 :goto_13
|
|
|
|
:cond_45
|
|
if-ne v4, v5, :cond_46
|
|
|
|
goto :goto_1c
|
|
|
|
:cond_46
|
|
:goto_1b
|
|
const/4 v3, -0x1
|
|
|
|
:cond_47
|
|
:goto_1c
|
|
const/4 v0, -0x1
|
|
|
|
if-ne v3, v0, :cond_4c
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->b()[B
|
|
|
|
move-result-object v0
|
|
|
|
array-length v0, v0
|
|
|
|
if-gt v0, v5, :cond_48
|
|
|
|
const-string v0, "[hex="
|
|
|
|
invoke-static {v0}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->f()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const/16 v1, 0x5d
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_1f
|
|
|
|
:cond_48
|
|
const-string v0, "[size="
|
|
|
|
invoke-static {v0}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->b()[B
|
|
|
|
move-result-object v1
|
|
|
|
array-length v1, v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, " hex="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->b()[B
|
|
|
|
move-result-object v1
|
|
|
|
array-length v1, v1
|
|
|
|
if-gt v5, v1, :cond_49
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_1d
|
|
|
|
:cond_49
|
|
const/4 v1, 0x0
|
|
|
|
:goto_1d
|
|
if-eqz v1, :cond_4b
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->b()[B
|
|
|
|
move-result-object v1
|
|
|
|
array-length v1, v1
|
|
|
|
if-ne v5, v1, :cond_4a
|
|
|
|
move-object/from16 v2, p0
|
|
|
|
goto :goto_1e
|
|
|
|
:cond_4a
|
|
new-array v1, v5, [B
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->b()[B
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-static {v2, v3, v1, v3, v5}, Le/k/a/b/e/p/g;->b([BI[BII)V
|
|
|
|
new-instance v2, Lokio/ByteString;
|
|
|
|
invoke-direct {v2, v1}, Lokio/ByteString;-><init>([B)V
|
|
|
|
:goto_1e
|
|
invoke-virtual {v2}, Lokio/ByteString;->f()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "\u2026]"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_1f
|
|
return-object v0
|
|
|
|
:cond_4b
|
|
const-string v0, "endIndex > length("
|
|
|
|
invoke-static {v0}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->b()[B
|
|
|
|
move-result-object v1
|
|
|
|
array-length v1, v1
|
|
|
|
const/16 v2, 0x29
|
|
|
|
invoke-static {v0, v1, v2}, Le/e/b/a/a;->a(Ljava/lang/StringBuilder;IC)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
|
|
|
|
throw v1
|
|
|
|
:cond_4c
|
|
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->l()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_4e
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v4, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"
|
|
|
|
invoke-static {v2, v4}, Ls/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v4, 0x4
|
|
|
|
const-string v5, "\\"
|
|
|
|
const-string v6, "\\\\"
|
|
|
|
invoke-static {v2, v5, v6, v1, v4}, Ls/a0/p;->replace$default(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZI)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v5, "\n"
|
|
|
|
const-string v6, "\\n"
|
|
|
|
invoke-static {v2, v5, v6, v1, v4}, Ls/a0/p;->replace$default(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZI)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v5, "\r"
|
|
|
|
const-string v6, "\\r"
|
|
|
|
invoke-static {v2, v5, v6, v1, v4}, Ls/a0/p;->replace$default(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZI)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
if-ge v3, v0, :cond_4d
|
|
|
|
const-string v0, "[size="
|
|
|
|
invoke-static {v0}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->b()[B
|
|
|
|
move-result-object v2
|
|
|
|
array-length v2, v2
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, " text="
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "\u2026]"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_20
|
|
|
|
:cond_4d
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "[text="
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const/16 v1, 0x5d
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_20
|
|
return-object v0
|
|
|
|
:cond_4e
|
|
new-instance v0, Ls/l;
|
|
|
|
const-string v1, "null cannot be cast to non-null type java.lang.String"
|
|
|
|
invoke-direct {v0, v1}, Ls/l;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_4f
|
|
const-string v0, "$receiver"
|
|
|
|
invoke-static {v0}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final h(Lokio/ByteString;)Ljava/lang/String;
|
|
.locals 3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const-string v1, "$receiver"
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->e()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->g()[B
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
sget-object v0, Ls/a0/a;->a:Ljava/nio/charset/Charset;
|
|
|
|
new-instance v1, Ljava/lang/String;
|
|
|
|
invoke-direct {v1, v2, v0}, Ljava/lang/String;-><init>([BLjava/nio/charset/Charset;)V
|
|
|
|
invoke-virtual {p0, v1}, Lokio/ByteString;->b(Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-static {v1}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
move-object v1, v2
|
|
|
|
:goto_0
|
|
return-object v1
|
|
|
|
:cond_2
|
|
invoke-static {v1}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|