340 lines
5 KiB
Smali
340 lines
5 KiB
Smali
.class public final Lh0/z/a;
|
|
.super Ljava/lang/Object;
|
|
.source "Buffer.kt"
|
|
|
|
|
|
# static fields
|
|
.field public static final a:[B
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
const-string v0, "0123456789abcdef"
|
|
|
|
const-string v1, "$this$asUtf8ToByteArray"
|
|
|
|
invoke-static {v0, v1}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sget-object v1, Lc0/t/a;->a:Ljava/nio/charset/Charset;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "(this as java.lang.String).getBytes(charset)"
|
|
|
|
invoke-static {v0, v1}, Lc0/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sput-object v0, Lh0/z/a;->a:[B
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Lh0/e;J)Ljava/lang/String;
|
|
.locals 6
|
|
|
|
const-string v0, "$this$readUtf8Line"
|
|
|
|
invoke-static {p0, v0}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x1
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v4, p1, v2
|
|
|
|
if-lez v4, :cond_0
|
|
|
|
sub-long v2, p1, v0
|
|
|
|
invoke-virtual {p0, v2, v3}, Lh0/e;->e(J)B
|
|
|
|
move-result v4
|
|
|
|
const/16 v5, 0xd
|
|
|
|
int-to-byte v5, v5
|
|
|
|
if-ne v4, v5, :cond_0
|
|
|
|
invoke-virtual {p0, v2, v3}, Lh0/e;->v(J)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-wide/16 v0, 0x2
|
|
|
|
invoke-virtual {p0, v0, v1}, Lh0/e;->skip(J)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, p1, p2}, Lh0/e;->v(J)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, v0, v1}, Lh0/e;->skip(J)V
|
|
|
|
:goto_0
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public static final b(Lh0/e;Lh0/o;Z)I
|
|
.locals 17
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
const-string v2, "$this$selectPrefix"
|
|
|
|
invoke-static {v0, v2}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v2, "options"
|
|
|
|
invoke-static {v1, v2}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v0, v0, Lh0/e;->d:Lh0/s;
|
|
|
|
const/4 v2, -0x2
|
|
|
|
const/4 v3, -0x1
|
|
|
|
if-eqz v0, :cond_11
|
|
|
|
iget-object v4, v0, Lh0/s;->a:[B
|
|
|
|
iget v5, v0, Lh0/s;->b:I
|
|
|
|
iget v6, v0, Lh0/s;->c:I
|
|
|
|
iget-object v1, v1, Lh0/o;->e:[I
|
|
|
|
const/4 v7, 0x0
|
|
|
|
move-object v9, v0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v10, -0x1
|
|
|
|
:goto_0
|
|
add-int/lit8 v11, v8, 0x1
|
|
|
|
aget v8, v1, v8
|
|
|
|
add-int/lit8 v12, v11, 0x1
|
|
|
|
aget v11, v1, v11
|
|
|
|
if-eq v11, v3, :cond_0
|
|
|
|
move v10, v11
|
|
|
|
:cond_0
|
|
if-nez v9, :cond_1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_1
|
|
const/4 v11, 0x0
|
|
|
|
if-gez v8, :cond_b
|
|
|
|
mul-int/lit8 v8, v8, -0x1
|
|
|
|
add-int v13, v8, v12
|
|
|
|
:goto_1
|
|
add-int/lit8 v8, v5, 0x1
|
|
|
|
aget-byte v5, v4, v5
|
|
|
|
and-int/lit16 v5, v5, 0xff
|
|
|
|
add-int/lit8 v14, v12, 0x1
|
|
|
|
aget v12, v1, v12
|
|
|
|
if-eq v5, v12, :cond_2
|
|
|
|
return v10
|
|
|
|
:cond_2
|
|
if-ne v14, v13, :cond_3
|
|
|
|
const/4 v5, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
const/4 v5, 0x0
|
|
|
|
:goto_2
|
|
if-ne v8, v6, :cond_9
|
|
|
|
if-eqz v9, :cond_8
|
|
|
|
iget-object v4, v9, Lh0/s;->f:Lh0/s;
|
|
|
|
if-eqz v4, :cond_7
|
|
|
|
iget v6, v4, Lh0/s;->b:I
|
|
|
|
iget-object v8, v4, Lh0/s;->a:[B
|
|
|
|
iget v9, v4, Lh0/s;->c:I
|
|
|
|
if-ne v4, v0, :cond_6
|
|
|
|
if-nez v5, :cond_5
|
|
|
|
:goto_3
|
|
if-eqz p2, :cond_4
|
|
|
|
return v2
|
|
|
|
:cond_4
|
|
return v10
|
|
|
|
:cond_5
|
|
move-object v4, v8
|
|
|
|
move-object v8, v11
|
|
|
|
goto :goto_4
|
|
|
|
:cond_6
|
|
move-object/from16 v16, v8
|
|
|
|
move-object v8, v4
|
|
|
|
move-object/from16 v4, v16
|
|
|
|
goto :goto_4
|
|
|
|
:cond_7
|
|
invoke-static {}, Lc0/n/c/j;->throwNpe()V
|
|
|
|
throw v11
|
|
|
|
:cond_8
|
|
invoke-static {}, Lc0/n/c/j;->throwNpe()V
|
|
|
|
throw v11
|
|
|
|
:cond_9
|
|
move-object/from16 v16, v9
|
|
|
|
move v9, v6
|
|
|
|
move v6, v8
|
|
|
|
move-object/from16 v8, v16
|
|
|
|
:goto_4
|
|
if-eqz v5, :cond_a
|
|
|
|
aget v5, v1, v14
|
|
|
|
move v13, v6
|
|
|
|
move v6, v9
|
|
|
|
move-object v9, v8
|
|
|
|
goto :goto_6
|
|
|
|
:cond_a
|
|
move v5, v6
|
|
|
|
move v6, v9
|
|
|
|
move v12, v14
|
|
|
|
move-object v9, v8
|
|
|
|
goto :goto_1
|
|
|
|
:cond_b
|
|
add-int/lit8 v13, v5, 0x1
|
|
|
|
aget-byte v5, v4, v5
|
|
|
|
and-int/lit16 v5, v5, 0xff
|
|
|
|
add-int v14, v12, v8
|
|
|
|
:goto_5
|
|
if-ne v12, v14, :cond_c
|
|
|
|
return v10
|
|
|
|
:cond_c
|
|
aget v15, v1, v12
|
|
|
|
if-ne v5, v15, :cond_10
|
|
|
|
add-int/2addr v12, v8
|
|
|
|
aget v5, v1, v12
|
|
|
|
if-ne v13, v6, :cond_e
|
|
|
|
iget-object v9, v9, Lh0/s;->f:Lh0/s;
|
|
|
|
if-eqz v9, :cond_d
|
|
|
|
iget v4, v9, Lh0/s;->b:I
|
|
|
|
iget-object v6, v9, Lh0/s;->a:[B
|
|
|
|
iget v8, v9, Lh0/s;->c:I
|
|
|
|
move v13, v4
|
|
|
|
move-object v4, v6
|
|
|
|
move v6, v8
|
|
|
|
if-ne v9, v0, :cond_e
|
|
|
|
move-object v9, v11
|
|
|
|
goto :goto_6
|
|
|
|
:cond_d
|
|
invoke-static {}, Lc0/n/c/j;->throwNpe()V
|
|
|
|
throw v11
|
|
|
|
:cond_e
|
|
:goto_6
|
|
if-ltz v5, :cond_f
|
|
|
|
return v5
|
|
|
|
:cond_f
|
|
neg-int v8, v5
|
|
|
|
move v5, v13
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_10
|
|
add-int/lit8 v12, v12, 0x1
|
|
|
|
goto :goto_5
|
|
|
|
:cond_11
|
|
if-eqz p2, :cond_12
|
|
|
|
goto :goto_7
|
|
|
|
:cond_12
|
|
const/4 v2, -0x1
|
|
|
|
:goto_7
|
|
return v2
|
|
.end method
|