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