mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 09:02:34 -06:00
1432 lines
31 KiB
Smali
1432 lines
31 KiB
Smali
.class public final Lokio/internal/SegmentedByteStringKt;
|
|
.super Ljava/lang/Object;
|
|
.source "SegmentedByteString.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
|
value = "SMAP\nSegmentedByteString.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SegmentedByteString.kt\nokio/internal/SegmentedByteStringKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,224:1\n59#1,12:226\n81#1,14:238\n81#1,14:252\n81#1,14:266\n59#1,12:280\n1#2:225\n*E\n*S KotlinDebug\n*F\n+ 1 SegmentedByteString.kt\nokio/internal/SegmentedByteStringKt\n*L\n142#1,12:226\n151#1,14:238\n173#1,14:252\n192#1,14:266\n213#1,12:280\n*E\n"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {
|
|
0x1,
|
|
0x0,
|
|
0x3
|
|
}
|
|
d1 = {
|
|
"\u0000R\n\u0000\n\u0002\u0010\u0008\n\u0002\u0010\u0015\n\u0002\u0008\u0004\n\u0002\u0010\u000b\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\u0008\u0003\n\u0002\u0010\u0005\n\u0002\u0008\u0003\n\u0002\u0010\u0012\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0004\u001a$\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00012\u0006\u0010\u0004\u001a\u00020\u00012\u0006\u0010\u0005\u001a\u00020\u0001H\u0000\u001a\u0017\u0010\u0006\u001a\u00020\u0007*\u00020\u00082\u0008\u0010\t\u001a\u0004\u0018\u00010\nH\u0080\u0008\u001a\r\u0010\u000b\u001a\u00020\u0001*\u00020\u0008H\u0080\u0008\u001a\r\u0010\u000c\u001a\u00020\u0001*\u00020\u0008H\u0080\u0008\u001a\u0015\u0010\r\u001a\u00020\u000e*\u00020\u00082\u0006\u0010\u000f\u001a\u00020\u0001H\u0080\u0008\u001a-\u0010\u0010\u001a\u00020\u0007*\u00020\u00082\u0006\u0010\u0011\u001a\u00020\u00012\u0006\u0010\t\u001a\u00020\u00122\u0006\u0010\u0013\u001a\u00020\u00012\u0006\u0010\u0014\u001a\u00020\u0001H\u0080\u0008\u001a-\u0010\u0010\u001a\u00020\u0007*\u00020\u00082\u0006\u0010\u0011\u001a\u00020\u00012\u0006\u0010\t\u001a\u00020\u00152\u0006\u0010\u0013\u001a\u00020\u00012\u0006\u0010\u0014\u001a\u00020\u0001H\u0080\u0008\u001a\u001d\u0010\u0016\u001a\u00020\u0015*\u00020\u00082\u0006\u0010\u0017\u001a\u00020\u00012\u0006\u0010\u0018\u001a\u00020\u0001H\u0080\u0008\u001a\r\u0010\u0019\u001a\u00020\u0012*\u00020\u0008H\u0080\u0008\u001a%\u0010\u001a\u001a\u00020\u001b*\u00020\u00082\u0006\u0010\u001c\u001a\u00020\u001d2\u0006\u0010\u0011\u001a\u00020\u00012\u0006\u0010\u0014\u001a\u00020\u0001H\u0080\u0008\u001a]\u0010\u001e\u001a\u00020\u001b*\u00020\u00082K\u0010\u001f\u001aG\u0012\u0013\u0012\u00110\u0012\u00a2\u0006\u000c\u0008!\u0012\u0008\u0008\"\u0012\u0004\u0008\u0008(#\u0012\u0013\u0012\u00110\u0001\u00a2\u0006\u000c\u0008!\u0012\u0008\u0008\"\u0012\u0004\u0008\u0008(\u0011\u0012\u0013\u0012\u00110\u0001\u00a2\u0006\u000c\u0008!\u0012\u0008\u0008\"\u0012\u0004\u0008\u0008(\u0014\u0012\u0004\u0012\u00020\u001b0 H\u0080\u0008\u00f8\u0001\u0000\u001aj\u0010\u001e\u001a\u00020\u001b*\u00020\u00082\u0006\u0010\u0017\u001a\u00020\u00012\u0006\u0010\u0018\u001a\u00020\u00012K\u0010\u001f\u001aG\u0012\u0013\u0012\u00110\u0012\u00a2\u0006\u000c\u0008!\u0012\u0008\u0008\"\u0012\u0004\u0008\u0008(#\u0012\u0013\u0012\u00110\u0001\u00a2\u0006\u000c\u0008!\u0012\u0008\u0008\"\u0012\u0004\u0008\u0008(\u0011\u0012\u0013\u0012\u00110\u0001\u00a2\u0006\u000c\u0008!\u0012\u0008\u0008\"\u0012\u0004\u0008\u0008(\u0014\u0012\u0004\u0012\u00020\u001b0 H\u0082\u0008\u001a\u0014\u0010$\u001a\u00020\u0001*\u00020\u00082\u0006\u0010\u000f\u001a\u00020\u0001H\u0000\u0082\u0002\u0007\n\u0005\u0008\u009920\u0001\u00a8\u0006%"
|
|
}
|
|
d2 = {
|
|
"binarySearch",
|
|
"",
|
|
"",
|
|
"value",
|
|
"fromIndex",
|
|
"toIndex",
|
|
"commonEquals",
|
|
"",
|
|
"Lokio/SegmentedByteString;",
|
|
"other",
|
|
"",
|
|
"commonGetSize",
|
|
"commonHashCode",
|
|
"commonInternalGet",
|
|
"",
|
|
"pos",
|
|
"commonRangeEquals",
|
|
"offset",
|
|
"",
|
|
"otherOffset",
|
|
"byteCount",
|
|
"Lokio/ByteString;",
|
|
"commonSubstring",
|
|
"beginIndex",
|
|
"endIndex",
|
|
"commonToByteArray",
|
|
"commonWrite",
|
|
"",
|
|
"buffer",
|
|
"Lokio/Buffer;",
|
|
"forEachSegment",
|
|
"action",
|
|
"Lkotlin/Function3;",
|
|
"Lkotlin/ParameterName;",
|
|
"name",
|
|
"data",
|
|
"segment",
|
|
"okio"
|
|
}
|
|
k = 0x2
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public static final synthetic access$forEachSegment(Lokio/SegmentedByteString;IILkotlin/jvm/functions/Function3;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-static {p0, p1, p2, p3}, Lokio/internal/SegmentedByteStringKt;->forEachSegment(Lokio/SegmentedByteString;IILkotlin/jvm/functions/Function3;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final binarySearch([IIII)I
|
|
.locals 2
|
|
|
|
const-string v0, "$this$binarySearch"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
add-int/lit8 p3, p3, -0x1
|
|
|
|
:goto_0
|
|
if-gt p2, p3, :cond_2
|
|
|
|
add-int v0, p2, p3
|
|
|
|
ushr-int/lit8 v0, v0, 0x1
|
|
|
|
.line 35
|
|
aget v1, p0, v0
|
|
|
|
if-ge v1, p1, :cond_0
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
move p2, v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-le v1, p1, :cond_1
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
move p3, v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return v0
|
|
|
|
:cond_2
|
|
neg-int p0, p2
|
|
|
|
add-int/lit8 p0, p0, -0x1
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final commonEquals(Lokio/SegmentedByteString;Ljava/lang/Object;)Z
|
|
.locals 4
|
|
|
|
const-string v0, "$this$commonEquals"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-ne p1, p0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 202
|
|
:cond_0
|
|
instance-of v1, p1, Lokio/ByteString;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
check-cast p1, Lokio/ByteString;
|
|
|
|
invoke-virtual {p1}, Lokio/ByteString;->size()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->size()I
|
|
|
|
move-result v3
|
|
|
|
if-ne v1, v3, :cond_1
|
|
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->size()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0, v2, p1, v2, v1}, Lokio/SegmentedByteString;->rangeEquals(ILokio/ByteString;II)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move v0, v2
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public static final commonGetSize(Lokio/SegmentedByteString;)I
|
|
.locals 1
|
|
|
|
const-string v0, "$this$commonGetSize"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 137
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getSegments$okio()[[B
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, [Ljava/lang/Object;
|
|
|
|
array-length p0, p0
|
|
|
|
add-int/lit8 p0, p0, -0x1
|
|
|
|
aget p0, v0, p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final commonHashCode(Lokio/SegmentedByteString;)I
|
|
.locals 8
|
|
|
|
const-string v0, "$this$commonHashCode"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 208
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getHashCode$okio()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return v0
|
|
|
|
.line 280
|
|
:cond_0
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getSegments$okio()[[B
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, [Ljava/lang/Object;
|
|
|
|
array-length v0, v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
move v3, v2
|
|
|
|
move v2, v1
|
|
|
|
:goto_0
|
|
if-ge v1, v0, :cond_2
|
|
|
|
.line 284
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v4
|
|
|
|
add-int v5, v0, v1
|
|
|
|
aget v4, v4, v5
|
|
|
|
.line 285
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v5
|
|
|
|
aget v5, v5, v1
|
|
|
|
.line 287
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getSegments$okio()[[B
|
|
|
|
move-result-object v6
|
|
|
|
aget-object v6, v6, v1
|
|
|
|
sub-int v2, v5, v2
|
|
|
|
add-int/2addr v2, v4
|
|
|
|
:goto_1
|
|
if-ge v4, v2, :cond_1
|
|
|
|
mul-int/lit8 v3, v3, 0x1f
|
|
|
|
.line 217
|
|
aget-byte v7, v6, v4
|
|
|
|
add-int/2addr v3, v7
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
move v2, v5
|
|
|
|
goto :goto_0
|
|
|
|
.line 221
|
|
:cond_2
|
|
invoke-virtual {p0, v3}, Lokio/SegmentedByteString;->setHashCode$okio(I)V
|
|
|
|
return v3
|
|
.end method
|
|
|
|
.method public static final commonInternalGet(Lokio/SegmentedByteString;I)B
|
|
.locals 7
|
|
|
|
const-string v0, "$this$commonInternalGet"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 130
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getSegments$okio()[[B
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, [Ljava/lang/Object;
|
|
|
|
array-length v1, v1
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
aget v0, v0, v1
|
|
|
|
int-to-long v1, v0
|
|
|
|
int-to-long v3, p1
|
|
|
|
const-wide/16 v5, 0x1
|
|
|
|
invoke-static/range {v1 .. v6}, Lokio/-Util;->checkOffsetAndCount(JJJ)V
|
|
|
|
.line 131
|
|
invoke-static {p0, p1}, Lokio/internal/SegmentedByteStringKt;->segment(Lokio/SegmentedByteString;I)I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
.line 132
|
|
:cond_0
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v1
|
|
|
|
add-int/lit8 v2, v0, -0x1
|
|
|
|
aget v1, v1, v2
|
|
|
|
.line 133
|
|
:goto_0
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getSegments$okio()[[B
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, [Ljava/lang/Object;
|
|
|
|
array-length v3, v3
|
|
|
|
add-int/2addr v3, v0
|
|
|
|
aget v2, v2, v3
|
|
|
|
.line 134
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getSegments$okio()[[B
|
|
|
|
move-result-object p0
|
|
|
|
aget-object p0, p0, v0
|
|
|
|
sub-int/2addr p1, v1
|
|
|
|
add-int/2addr p1, v2
|
|
|
|
aget-byte p0, p0, p1
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final commonRangeEquals(Lokio/SegmentedByteString;ILokio/ByteString;II)Z
|
|
.locals 6
|
|
|
|
const-string v0, "$this$commonRangeEquals"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "other"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-ltz p1, :cond_4
|
|
|
|
.line 170
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->size()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v1, p4
|
|
|
|
if-le p1, v1, :cond_0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_0
|
|
add-int/2addr p4, p1
|
|
|
|
.line 252
|
|
invoke-static {p0, p1}, Lokio/internal/SegmentedByteStringKt;->segment(Lokio/SegmentedByteString;I)I
|
|
|
|
move-result v1
|
|
|
|
:goto_0
|
|
if-ge p1, p4, :cond_3
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
move v2, v0
|
|
|
|
goto :goto_1
|
|
|
|
.line 255
|
|
:cond_1
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v2
|
|
|
|
add-int/lit8 v3, v1, -0x1
|
|
|
|
aget v2, v2, v3
|
|
|
|
.line 256
|
|
:goto_1
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v3
|
|
|
|
aget v3, v3, v1
|
|
|
|
sub-int/2addr v3, v2
|
|
|
|
.line 257
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getSegments$okio()[[B
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, [Ljava/lang/Object;
|
|
|
|
array-length v5, v5
|
|
|
|
add-int/2addr v5, v1
|
|
|
|
aget v4, v4, v5
|
|
|
|
add-int/2addr v3, v2
|
|
|
|
.line 259
|
|
invoke-static {p4, v3}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v3
|
|
|
|
sub-int/2addr v3, p1
|
|
|
|
sub-int v2, p1, v2
|
|
|
|
add-int/2addr v4, v2
|
|
|
|
.line 261
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getSegments$okio()[[B
|
|
|
|
move-result-object v2
|
|
|
|
aget-object v2, v2, v1
|
|
|
|
.line 174
|
|
invoke-virtual {p2, p3, v2, v4, v3}, Lokio/ByteString;->rangeEquals(I[BII)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
return v0
|
|
|
|
:cond_2
|
|
add-int/2addr p3, v3
|
|
|
|
add-int/2addr p1, v3
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
|
|
:cond_4
|
|
:goto_2
|
|
return v0
|
|
.end method
|
|
|
|
.method public static final commonRangeEquals(Lokio/SegmentedByteString;I[BII)Z
|
|
.locals 6
|
|
|
|
const-string v0, "$this$commonRangeEquals"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "other"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-ltz p1, :cond_4
|
|
|
|
.line 186
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->size()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v1, p4
|
|
|
|
if-gt p1, v1, :cond_4
|
|
|
|
if-ltz p3, :cond_4
|
|
|
|
.line 187
|
|
array-length v1, p2
|
|
|
|
sub-int/2addr v1, p4
|
|
|
|
if-le p3, v1, :cond_0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_0
|
|
add-int/2addr p4, p1
|
|
|
|
.line 266
|
|
invoke-static {p0, p1}, Lokio/internal/SegmentedByteStringKt;->segment(Lokio/SegmentedByteString;I)I
|
|
|
|
move-result v1
|
|
|
|
:goto_0
|
|
if-ge p1, p4, :cond_3
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
move v2, v0
|
|
|
|
goto :goto_1
|
|
|
|
.line 269
|
|
:cond_1
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v2
|
|
|
|
add-int/lit8 v3, v1, -0x1
|
|
|
|
aget v2, v2, v3
|
|
|
|
.line 270
|
|
:goto_1
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v3
|
|
|
|
aget v3, v3, v1
|
|
|
|
sub-int/2addr v3, v2
|
|
|
|
.line 271
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getSegments$okio()[[B
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, [Ljava/lang/Object;
|
|
|
|
array-length v5, v5
|
|
|
|
add-int/2addr v5, v1
|
|
|
|
aget v4, v4, v5
|
|
|
|
add-int/2addr v3, v2
|
|
|
|
.line 273
|
|
invoke-static {p4, v3}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v3
|
|
|
|
sub-int/2addr v3, p1
|
|
|
|
sub-int v2, p1, v2
|
|
|
|
add-int/2addr v4, v2
|
|
|
|
.line 275
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getSegments$okio()[[B
|
|
|
|
move-result-object v2
|
|
|
|
aget-object v2, v2, v1
|
|
|
|
.line 193
|
|
invoke-static {v2, v4, p2, p3, v3}, Lokio/-Util;->arrayRangeEquals([BI[BII)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
return v0
|
|
|
|
:cond_2
|
|
add-int/2addr p3, v3
|
|
|
|
add-int/2addr p1, v3
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
|
|
:cond_4
|
|
:goto_2
|
|
return v0
|
|
.end method
|
|
|
|
.method public static final commonSubstring(Lokio/SegmentedByteString;II)Lokio/ByteString;
|
|
.locals 12
|
|
|
|
const-string v0, "$this$commonSubstring"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
move v2, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v2, v0
|
|
|
|
:goto_0
|
|
if-eqz v2, :cond_9
|
|
|
|
.line 101
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->size()I
|
|
|
|
move-result v2
|
|
|
|
if-gt p2, v2, :cond_1
|
|
|
|
move v2, v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v2, v0
|
|
|
|
:goto_1
|
|
const-string v3, "endIndex="
|
|
|
|
if-eqz v2, :cond_8
|
|
|
|
sub-int v2, p2, p1
|
|
|
|
if-ltz v2, :cond_2
|
|
|
|
move v4, v1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move v4, v0
|
|
|
|
:goto_2
|
|
if-eqz v4, :cond_7
|
|
|
|
if-nez p1, :cond_3
|
|
|
|
.line 107
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->size()I
|
|
|
|
move-result v3
|
|
|
|
if-ne p2, v3, :cond_3
|
|
|
|
check-cast p0, Lokio/ByteString;
|
|
|
|
return-object p0
|
|
|
|
:cond_3
|
|
if-ne p1, p2, :cond_4
|
|
|
|
.line 108
|
|
sget-object p0, Lokio/ByteString;->EMPTY:Lokio/ByteString;
|
|
|
|
return-object p0
|
|
|
|
.line 111
|
|
:cond_4
|
|
invoke-static {p0, p1}, Lokio/internal/SegmentedByteStringKt;->segment(Lokio/SegmentedByteString;I)I
|
|
|
|
move-result v3
|
|
|
|
sub-int/2addr p2, v1
|
|
|
|
.line 112
|
|
invoke-static {p0, p2}, Lokio/internal/SegmentedByteStringKt;->segment(Lokio/SegmentedByteString;I)I
|
|
|
|
move-result p2
|
|
|
|
.line 114
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getSegments$okio()[[B
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, [Ljava/lang/Object;
|
|
|
|
add-int/lit8 v5, p2, 0x1
|
|
|
|
invoke-static {v4, v3, v5}, Lkotlin/collections/ArraysKt;->copyOfRange([Ljava/lang/Object;II)[Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, [[B
|
|
|
|
.line 115
|
|
move-object v5, v4
|
|
|
|
check-cast v5, [Ljava/lang/Object;
|
|
|
|
array-length v6, v5
|
|
|
|
mul-int/lit8 v6, v6, 0x2
|
|
|
|
new-array v6, v6, [I
|
|
|
|
if-gt v3, p2, :cond_5
|
|
|
|
move v7, v0
|
|
|
|
move v8, v3
|
|
|
|
.line 118
|
|
:goto_3
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v9
|
|
|
|
aget v9, v9, v8
|
|
|
|
sub-int/2addr v9, p1
|
|
|
|
invoke-static {v9, v2}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v9
|
|
|
|
aput v9, v6, v7
|
|
|
|
add-int/lit8 v9, v7, 0x1
|
|
|
|
.line 119
|
|
array-length v10, v5
|
|
|
|
add-int/2addr v7, v10
|
|
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v10
|
|
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getSegments$okio()[[B
|
|
|
|
move-result-object v11
|
|
|
|
check-cast v11, [Ljava/lang/Object;
|
|
|
|
array-length v11, v11
|
|
|
|
add-int/2addr v11, v8
|
|
|
|
aget v10, v10, v11
|
|
|
|
aput v10, v6, v7
|
|
|
|
if-eq v8, p2, :cond_5
|
|
|
|
add-int/lit8 v8, v8, 0x1
|
|
|
|
move v7, v9
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
if-nez v3, :cond_6
|
|
|
|
goto :goto_4
|
|
|
|
.line 123
|
|
:cond_6
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object p0
|
|
|
|
sub-int/2addr v3, v1
|
|
|
|
aget v0, p0, v3
|
|
|
|
.line 124
|
|
:goto_4
|
|
array-length p0, v5
|
|
|
|
aget p2, v6, p0
|
|
|
|
sub-int/2addr p1, v0
|
|
|
|
add-int/2addr p2, p1
|
|
|
|
aput p2, v6, p0
|
|
|
|
.line 126
|
|
new-instance p0, Lokio/SegmentedByteString;
|
|
|
|
invoke-direct {p0, v4, v6}, Lokio/SegmentedByteString;-><init>([[B[I)V
|
|
|
|
check-cast p0, Lokio/ByteString;
|
|
|
|
return-object p0
|
|
|
|
.line 104
|
|
:cond_7
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p2, " < beginIndex="
|
|
|
|
invoke-virtual {p0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
|
|
.line 101
|
|
:cond_8
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p1, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, " > length("
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->size()I
|
|
|
|
move-result p0
|
|
|
|
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const/16 p1, 0x29
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
|
|
.line 100
|
|
:cond_9
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
const-string p2, "beginIndex="
|
|
|
|
invoke-direct {p0, p2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, " < 0"
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public static final commonToByteArray(Lokio/SegmentedByteString;)[B
|
|
.locals 9
|
|
|
|
const-string v0, "$this$commonToByteArray"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 140
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->size()I
|
|
|
|
move-result v0
|
|
|
|
new-array v0, v0, [B
|
|
|
|
.line 226
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getSegments$okio()[[B
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, [Ljava/lang/Object;
|
|
|
|
array-length v1, v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
move v3, v2
|
|
|
|
move v4, v3
|
|
|
|
:goto_0
|
|
if-ge v2, v1, :cond_0
|
|
|
|
.line 230
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v5
|
|
|
|
add-int v6, v1, v2
|
|
|
|
aget v5, v5, v6
|
|
|
|
.line 231
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v6
|
|
|
|
aget v6, v6, v2
|
|
|
|
.line 233
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getSegments$okio()[[B
|
|
|
|
move-result-object v7
|
|
|
|
aget-object v7, v7, v2
|
|
|
|
sub-int v3, v6, v3
|
|
|
|
add-int v8, v5, v3
|
|
|
|
.line 143
|
|
invoke-static {v7, v0, v4, v5, v8}, Lkotlin/collections/ArraysKt;->copyInto([B[BIII)[B
|
|
|
|
add-int/2addr v4, v3
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
move v3, v6
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final commonWrite(Lokio/SegmentedByteString;Lokio/Buffer;II)V
|
|
.locals 10
|
|
|
|
const-string v0, "$this$commonWrite"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "buffer"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
add-int/2addr p3, p2
|
|
|
|
.line 238
|
|
invoke-static {p0, p2}, Lokio/internal/SegmentedByteStringKt;->segment(Lokio/SegmentedByteString;I)I
|
|
|
|
move-result v0
|
|
|
|
:goto_0
|
|
if-ge p2, p3, :cond_2
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
.line 241
|
|
:cond_0
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v1
|
|
|
|
add-int/lit8 v2, v0, -0x1
|
|
|
|
aget v1, v1, v2
|
|
|
|
.line 242
|
|
:goto_1
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v2
|
|
|
|
aget v2, v2, v0
|
|
|
|
sub-int/2addr v2, v1
|
|
|
|
.line 243
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getSegments$okio()[[B
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, [Ljava/lang/Object;
|
|
|
|
array-length v4, v4
|
|
|
|
add-int/2addr v4, v0
|
|
|
|
aget v3, v3, v4
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
.line 245
|
|
invoke-static {p3, v2}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v2, p2
|
|
|
|
sub-int v1, p2, v1
|
|
|
|
add-int v6, v3, v1
|
|
|
|
.line 247
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getSegments$okio()[[B
|
|
|
|
move-result-object v1
|
|
|
|
aget-object v5, v1, v0
|
|
|
|
.line 152
|
|
new-instance v1, Lokio/Segment;
|
|
|
|
add-int v7, v6, v2
|
|
|
|
const/4 v8, 0x1
|
|
|
|
const/4 v9, 0x0
|
|
|
|
move-object v4, v1
|
|
|
|
invoke-direct/range {v4 .. v9}, Lokio/Segment;-><init>([BIIZZ)V
|
|
|
|
.line 153
|
|
iget-object v3, p1, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
.line 154
|
|
iput-object v1, v1, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
.line 155
|
|
iget-object v3, v1, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
iput-object v3, v1, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
.line 156
|
|
iget-object v1, v1, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
iput-object v1, p1, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
goto :goto_2
|
|
|
|
.line 158
|
|
:cond_1
|
|
iget-object v3, p1, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
iget-object v3, v3, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {v3, v1}, Lokio/Segment;->push(Lokio/Segment;)Lokio/Segment;
|
|
|
|
:goto_2
|
|
add-int/2addr p2, v2
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 161
|
|
:cond_2
|
|
invoke-virtual {p1}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide p2
|
|
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->size()I
|
|
|
|
move-result p0
|
|
|
|
int-to-long v0, p0
|
|
|
|
add-long/2addr p2, v0
|
|
|
|
invoke-virtual {p1, p2, p3}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static final forEachSegment(Lokio/SegmentedByteString;IILkotlin/jvm/functions/Function3;)V
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lokio/SegmentedByteString;",
|
|
"II",
|
|
"Lkotlin/jvm/functions/Function3<",
|
|
"-[B-",
|
|
"Ljava/lang/Integer;",
|
|
"-",
|
|
"Ljava/lang/Integer;",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 81
|
|
invoke-static {p0, p1}, Lokio/internal/SegmentedByteStringKt;->segment(Lokio/SegmentedByteString;I)I
|
|
|
|
move-result v0
|
|
|
|
:goto_0
|
|
if-ge p1, p2, :cond_1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
.line 84
|
|
:cond_0
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v1
|
|
|
|
add-int/lit8 v2, v0, -0x1
|
|
|
|
aget v1, v1, v2
|
|
|
|
.line 85
|
|
:goto_1
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v2
|
|
|
|
aget v2, v2, v0
|
|
|
|
sub-int/2addr v2, v1
|
|
|
|
.line 86
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getSegments$okio()[[B
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, [Ljava/lang/Object;
|
|
|
|
array-length v4, v4
|
|
|
|
add-int/2addr v4, v0
|
|
|
|
aget v3, v3, v4
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
.line 88
|
|
invoke-static {p2, v2}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v2, p1
|
|
|
|
sub-int v1, p1, v1
|
|
|
|
add-int/2addr v3, v1
|
|
|
|
.line 90
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getSegments$okio()[[B
|
|
|
|
move-result-object v1
|
|
|
|
aget-object v1, v1, v0
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {p3, v1, v3, v4}, Lkotlin/jvm/functions/Function3;->invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
add-int/2addr p1, v2
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final forEachSegment(Lokio/SegmentedByteString;Lkotlin/jvm/functions/Function3;)V
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lokio/SegmentedByteString;",
|
|
"Lkotlin/jvm/functions/Function3<",
|
|
"-[B-",
|
|
"Ljava/lang/Integer;",
|
|
"-",
|
|
"Ljava/lang/Integer;",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$forEachSegment"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "action"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 59
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getSegments$okio()[[B
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, [Ljava/lang/Object;
|
|
|
|
array-length v0, v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
move v2, v1
|
|
|
|
:goto_0
|
|
if-ge v1, v0, :cond_0
|
|
|
|
.line 63
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v3
|
|
|
|
add-int v4, v0, v1
|
|
|
|
aget v3, v3, v4
|
|
|
|
.line 64
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v4
|
|
|
|
aget v4, v4, v1
|
|
|
|
.line 66
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getSegments$okio()[[B
|
|
|
|
move-result-object v5
|
|
|
|
aget-object v5, v5, v1
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v3
|
|
|
|
sub-int v2, v4, v2
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {p1, v5, v3, v2}, Lkotlin/jvm/functions/Function3;->invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
move v2, v4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final segment(Lokio/SegmentedByteString;I)I
|
|
.locals 2
|
|
|
|
const-string v0, "$this$segment"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 51
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getDirectory$okio()[I
|
|
|
|
move-result-object v0
|
|
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
invoke-virtual {p0}, Lokio/SegmentedByteString;->getSegments$okio()[[B
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, [Ljava/lang/Object;
|
|
|
|
array-length p0, p0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {v0, p1, v1, p0}, Lokio/internal/SegmentedByteStringKt;->binarySearch([IIII)I
|
|
|
|
move-result p0
|
|
|
|
if-ltz p0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
not-int p0, p0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|