-Util.smali
.class public final Lokio/-Util;
.super Ljava/lang/Object;
.source "-Util.kt"
# annotations
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u0000:\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0012\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0004\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\t\n\u0002\u0008\u0003\n\u0002\u0010\u0005\n\u0002\u0008\u0002\n\u0002\u0010\n\n\u0002\u0008\u0003\n\u0002\u0010\u000e\n\u0000\u001a0\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u00032\u0006\u0010\u0007\u001a\u00020\u00052\u0006\u0010\u0008\u001a\u00020\u0005H\u0000\u001a \u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\u000c2\u0006\u0010\r\u001a\u00020\u000c2\u0006\u0010\u0008\u001a\u00020\u000cH\u0000\u001a\u0019\u0010\u000e\u001a\u00020\u000c2\u0006\u0010\u0002\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u000cH\u0080\u0008\u001a\u0019\u0010\u000e\u001a\u00020\u000c2\u0006\u0010\u0002\u001a\u00020\u000c2\u0006\u0010\u0006\u001a\u00020\u0005H\u0080\u0008\u001a\u0015\u0010\u000f\u001a\u00020\u0005*\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u0005H\u0080\u000c\u001a\u0015\u0010\u000f\u001a\u00020\u000c*\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u000cH\u0080\u000c\u001a\u0015\u0010\u000f\u001a\u00020\u000c*\u00020\u00052\u0006\u0010\u0011\u001a\u00020\u000cH\u0080\u000c\u001a\u000c\u0010\u0012\u001a\u00020\u0005*\u00020\u0005H\u0000\u001a\u000c\u0010\u0012\u001a\u00020\u000c*\u00020\u000cH\u0000\u001a\u000c\u0010\u0012\u001a\u00020\u0013*\u00020\u0013H\u0000\u001a\u0015\u0010\u0014\u001a\u00020\u0005*\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u0005H\u0080\u000c\u001a\u0015\u0010\u0015\u001a\u00020\u0005*\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u0005H\u0080\u000c\u001a\u000c\u0010\u0016\u001a\u00020\u0017*\u00020\u0010H\u0000\u001a\u000c\u0010\u0016\u001a\u00020\u0017*\u00020\u0005H\u0000\u001a\u000c\u0010\u0016\u001a\u00020\u0017*\u00020\u000cH\u0000\u00a8\u0006\u0018"
}
d2 = {
"arrayRangeEquals",
"",
"a",
"",
"aOffset",
"",
"b",
"bOffset",
"byteCount",
"checkOffsetAndCount",
"",
"size",
"",
"offset",
"minOf",
"and",
"",
"other",
"reverseBytes",
"",
"shl",
"shr",
"toHexString",
"",
"okio"
}
k = 0x2
mv = {
0x1,
0x1,
0x10
}
.end annotation
.annotation build Lkotlin/jvm/JvmName;
name = "-Util"
.end annotation
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public static final and(BI)I
.registers 2
and-int/2addr p0, p1
return p0
.end method
.method public static final and(BJ)J
.registers 5
int-to-long v0, p0
and-long/2addr p1, v0
return-wide p1
.end method
.method public static final and(IJ)J
.registers 5
int-to-long v0, p0
and-long/2addr p1, v0
return-wide p1
.end method
.method public static final arrayRangeEquals([BI[BII)Z
.registers 9
const/4 v0, 0x0
const/4 v1, 0x0
:goto_2
if-ge v1, p4, :cond_12
add-int v2, v1, p1
aget-byte v2, p0, v2
add-int v3, v1, p3
aget-byte v3, p2, v3
if-eq v2, v3, :cond_f
return v0
:cond_f
add-int/lit8 v1, v1, 0x1
goto :goto_2
:cond_12
const/4 p0, 0x1
return p0
.end method
.method public static final checkOffsetAndCount(JJJ)V
.registers 11
or-long v0, p2, p4
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-ltz v4, :cond_13
cmp-long v0, p2, p0
if-gtz v0, :cond_13
sub-long v0, p0, p2
cmp-long v2, v0, p4
if-ltz v2, :cond_13
return-void
:cond_13
new-instance v0, Ljava/lang/ArrayIndexOutOfBoundsException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string/jumbo v2, "size="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0, p1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string p0, " offset="
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string p0, " byteCount="
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p4, p5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static final minOf(IJ)J
.registers 5
int-to-long v0, p0
invoke-static {v0, v1, p1, p2}, Ljava/lang/Math;->min(JJ)J
move-result-wide p0
return-wide p0
.end method
.method public static final minOf(JI)J
.registers 5
int-to-long v0, p2
invoke-static {p0, p1, v0, v1}, Ljava/lang/Math;->min(JJ)J
move-result-wide p0
return-wide p0
.end method
.method public static final reverseBytes(I)I
.registers 3
const/high16 v0, -0x1000000
and-int/2addr v0, p0
ushr-int/lit8 v0, v0, 0x18
const/high16 v1, 0xff0000
and-int/2addr v1, p0
ushr-int/lit8 v1, v1, 0x8
or-int/2addr v0, v1
const v1, 0xff00
and-int/2addr v1, p0
shl-int/lit8 v1, v1, 0x8
or-int/2addr v0, v1
and-int/lit16 p0, p0, 0xff
shl-int/lit8 p0, p0, 0x18
or-int/2addr p0, v0
return p0
.end method
.method public static final reverseBytes(J)J
.registers 10
const-wide/high16 v0, -0x100000000000000L
and-long/2addr v0, p0
const/16 v2, 0x38
ushr-long/2addr v0, v2
const-wide/high16 v3, 0xff000000000000L
and-long/2addr v3, p0
const/16 v5, 0x28
ushr-long/2addr v3, v5
or-long/2addr v0, v3
const-wide v3, 0xff0000000000L
and-long/2addr v3, p0
const/16 v6, 0x18
ushr-long/2addr v3, v6
or-long/2addr v0, v3
const-wide v3, 0xff00000000L
and-long/2addr v3, p0
const/16 v7, 0x8
ushr-long/2addr v3, v7
or-long/2addr v0, v3
const-wide v3, 0xff000000L
and-long/2addr v3, p0
shl-long/2addr v3, v7
or-long/2addr v0, v3
const-wide/32 v3, 0xff0000
and-long/2addr v3, p0
shl-long/2addr v3, v6
or-long/2addr v0, v3
const-wide/32 v3, 0xff00
and-long/2addr v3, p0
shl-long/2addr v3, v5
or-long/2addr v0, v3
const-wide/16 v3, 0xff
and-long/2addr p0, v3
shl-long/2addr p0, v2
or-long/2addr p0, v0
return-wide p0
.end method
.method public static final reverseBytes(S)S
.registers 2
const v0, 0xffff
and-int/2addr p0, v0
const v0, 0xff00
and-int/2addr v0, p0
ushr-int/lit8 v0, v0, 0x8
and-int/lit16 p0, p0, 0xff
shl-int/lit8 p0, p0, 0x8
or-int/2addr p0, v0
int-to-short p0, p0
return p0
.end method
.method public static final shl(BI)I
.registers 2
shl-int/2addr p0, p1
return p0
.end method
.method public static final shr(BI)I
.registers 2
shr-int/2addr p0, p1
return p0
.end method
.method public static final toHexString(B)Ljava/lang/String;
.registers 4
const/4 v0, 0x2
new-array v0, v0, [C
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v1
shr-int/lit8 v2, p0, 0x4
and-int/lit8 v2, v2, 0xf
aget-char v1, v1, v2
const/4 v2, 0x0
aput-char v1, v0, v2
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v1
and-int/lit8 p0, p0, 0xf
aget-char p0, v1, p0
const/4 v1, 0x1
aput-char p0, v0, v1
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 toHexString(I)Ljava/lang/String;
.registers 7
if-nez p0, :cond_5
const-string p0, "0"
return-object p0
:cond_5
const/16 v0, 0x8
new-array v1, v0, [C
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v2
shr-int/lit8 v3, p0, 0x1c
and-int/lit8 v3, v3, 0xf
aget-char v2, v2, v3
const/4 v3, 0x0
aput-char v2, v1, v3
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v2
shr-int/lit8 v4, p0, 0x18
and-int/lit8 v4, v4, 0xf
aget-char v2, v2, v4
const/4 v4, 0x1
aput-char v2, v1, v4
const/4 v2, 0x2
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v4
shr-int/lit8 v5, p0, 0x14
and-int/lit8 v5, v5, 0xf
aget-char v4, v4, v5
aput-char v4, v1, v2
const/4 v2, 0x3
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v4
shr-int/lit8 v5, p0, 0x10
and-int/lit8 v5, v5, 0xf
aget-char v4, v4, v5
aput-char v4, v1, v2
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v2
shr-int/lit8 v4, p0, 0xc
and-int/lit8 v4, v4, 0xf
aget-char v2, v2, v4
const/4 v4, 0x4
aput-char v2, v1, v4
const/4 v2, 0x5
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v4
shr-int/lit8 v5, p0, 0x8
and-int/lit8 v5, v5, 0xf
aget-char v4, v4, v5
aput-char v4, v1, v2
const/4 v2, 0x6
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v4
shr-int/lit8 v5, p0, 0x4
and-int/lit8 v5, v5, 0xf
aget-char v4, v4, v5
aput-char v4, v1, v2
const/4 v2, 0x7
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v4
and-int/lit8 p0, p0, 0xf
aget-char p0, v4, p0
aput-char p0, v1, v2
:goto_6f
if-ge v3, v0, :cond_7b
aget-char p0, v1, v3
const/16 v2, 0x30
if-eq p0, v2, :cond_78
goto :goto_7b
:cond_78
add-int/lit8 v3, v3, 0x1
goto :goto_6f
:cond_7b
:goto_7b
sub-int/2addr v0, v3
new-instance p0, Ljava/lang/String;
invoke-direct {p0, v1, v3, v0}, Ljava/lang/String;-><init>([CII)V
return-object p0
.end method
.method public static final toHexString(J)Ljava/lang/String;
.registers 14
const-wide/16 v0, 0x0
cmp-long v2, p0, v0
if-nez v2, :cond_9
const-string p0, "0"
return-object p0
:cond_9
const/16 v0, 0x10
new-array v1, v0, [C
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v2
const/16 v3, 0x3c
shr-long v3, p0, v3
const-wide/16 v5, 0xf
and-long/2addr v3, v5
long-to-int v4, v3
aget-char v2, v2, v4
const/4 v3, 0x0
aput-char v2, v1, v3
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v2
const/16 v4, 0x38
shr-long v7, p0, v4
and-long/2addr v7, v5
long-to-int v4, v7
aget-char v2, v2, v4
const/4 v4, 0x1
aput-char v2, v1, v4
const/4 v2, 0x2
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v4
const/16 v7, 0x34
shr-long v7, p0, v7
and-long/2addr v7, v5
long-to-int v8, v7
aget-char v4, v4, v8
aput-char v4, v1, v2
const/4 v2, 0x3
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v4
const/16 v7, 0x30
shr-long v8, p0, v7
and-long/2addr v8, v5
long-to-int v9, v8
aget-char v4, v4, v9
aput-char v4, v1, v2
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v2
const/16 v4, 0x2c
shr-long v8, p0, v4
and-long/2addr v8, v5
long-to-int v4, v8
aget-char v2, v2, v4
const/4 v4, 0x4
aput-char v2, v1, v4
const/4 v2, 0x5
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v8
const/16 v9, 0x28
shr-long v9, p0, v9
and-long/2addr v9, v5
long-to-int v10, v9
aget-char v8, v8, v10
aput-char v8, v1, v2
const/4 v2, 0x6
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v8
const/16 v9, 0x24
shr-long v9, p0, v9
and-long/2addr v9, v5
long-to-int v10, v9
aget-char v8, v8, v10
aput-char v8, v1, v2
const/4 v2, 0x7
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v8
const/16 v9, 0x20
shr-long v9, p0, v9
and-long/2addr v9, v5
long-to-int v10, v9
aget-char v8, v8, v10
aput-char v8, v1, v2
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v2
const/16 v8, 0x1c
shr-long v8, p0, v8
and-long/2addr v8, v5
long-to-int v9, v8
aget-char v2, v2, v9
const/16 v8, 0x8
aput-char v2, v1, v8
const/16 v2, 0x9
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v9
const/16 v10, 0x18
shr-long v10, p0, v10
and-long/2addr v10, v5
long-to-int v11, v10
aget-char v9, v9, v11
aput-char v9, v1, v2
const/16 v2, 0xa
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v9
const/16 v10, 0x14
shr-long v10, p0, v10
and-long/2addr v10, v5
long-to-int v11, v10
aget-char v9, v9, v11
aput-char v9, v1, v2
const/16 v2, 0xb
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v9
shr-long v10, p0, v0
and-long/2addr v10, v5
long-to-int v11, v10
aget-char v9, v9, v11
aput-char v9, v1, v2
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v2
const/16 v9, 0xc
shr-long v10, p0, v9
and-long/2addr v10, v5
long-to-int v11, v10
aget-char v2, v2, v11
aput-char v2, v1, v9
const/16 v2, 0xd
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v9
shr-long v10, p0, v8
and-long/2addr v10, v5
long-to-int v8, v10
aget-char v8, v9, v8
aput-char v8, v1, v2
const/16 v2, 0xe
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v8
shr-long v9, p0, v4
and-long/2addr v9, v5
long-to-int v4, v9
aget-char v4, v8, v4
aput-char v4, v1, v2
const/16 v2, 0xf
invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C
move-result-object v4
and-long/2addr p0, v5
long-to-int p1, p0
aget-char p0, v4, p1
aput-char p0, v1, v2
:goto_fb
if-ge v3, v0, :cond_105
aget-char p0, v1, v3
if-eq p0, v7, :cond_102
goto :goto_105
:cond_102
add-int/lit8 v3, v3, 0x1
goto :goto_fb
:cond_105
:goto_105
sub-int/2addr v0, v3
new-instance p0, Ljava/lang/String;
invoke-direct {p0, v1, v3, v0}, Ljava/lang/String;-><init>([CII)V
return-object p0
.end method