mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
7844 lines
150 KiB
Smali
7844 lines
150 KiB
Smali
.class public final Lokio/internal/BufferKt;
|
|
.super Ljava/lang/Object;
|
|
.source "Buffer.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
|
value = "SMAP\nBuffer.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Buffer.kt\nokio/internal/BufferKt\n+ 2 -Util.kt\nokio/-Util\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,1489:1\n105#1,20:1512\n105#1,20:1545\n105#1:1565\n107#1,18:1567\n105#1,20:1585\n66#2:1490\n66#2:1491\n66#2:1492\n66#2:1493\n66#2:1494\n66#2:1495\n66#2:1496\n66#2:1497\n66#2:1498\n66#2:1499\n66#2:1500\n66#2:1501\n72#2:1502\n72#2:1503\n69#2:1504\n69#2:1505\n69#2:1506\n69#2:1507\n69#2:1508\n69#2:1509\n69#2:1510\n69#2:1511\n75#2:1532\n78#2:1534\n66#2:1535\n66#2:1536\n66#2:1537\n66#2:1538\n66#2:1539\n66#2:1540\n66#2:1541\n66#2:1542\n66#2:1543\n66#2:1544\n78#2:1566\n1#3:1533\n*E\n*S KotlinDebug\n*F\n+ 1 Buffer.kt\nokio/internal/BufferKt\n*L\n400#1,20:1512\n1235#1,20:1545\n1266#1:1565\n1266#1,18:1567\n1300#1,20:1585\n171#1:1490\n195#1:1491\n314#1:1492\n319#1:1493\n341#1:1494\n342#1:1495\n343#1:1496\n344#1:1497\n348#1:1498\n349#1:1499\n350#1:1500\n351#1:1501\n373#1:1502\n374#1:1503\n378#1:1504\n379#1:1505\n380#1:1506\n381#1:1507\n382#1:1508\n383#1:1509\n384#1:1510\n385#1:1511\n412#1:1532\n836#1:1534\n850#1:1535\n852#1:1536\n856#1:1537\n858#1:1538\n862#1:1539\n864#1:1540\n868#1:1541\n870#1:1542\n890#1:1543\n893#1:1544\n1279#1:1566\n*E\n"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {
|
|
0x1,
|
|
0x0,
|
|
0x3
|
|
}
|
|
d1 = {
|
|
"\u0000v\n\u0000\n\u0002\u0010\u0012\n\u0002\u0008\u0003\n\u0002\u0010\t\n\u0002\u0008\u0002\n\u0002\u0010\u0008\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0008\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0005\n\u0002\u0008\u0006\n\u0002\u0018\u0002\n\u0002\u0008\u0006\n\u0002\u0018\u0002\n\u0002\u0008\t\n\u0002\u0010\n\n\u0000\n\u0002\u0010\u000e\n\u0002\u0008\u0006\n\u0002\u0018\u0002\n\u0002\u0008\u0007\n\u0002\u0018\u0002\n\u0002\u0008\u0015\n\u0002\u0018\u0002\n\u0002\u0008\u0004\u001a0\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\u000c2\u0006\u0010\r\u001a\u00020\u00082\u0006\u0010\u000e\u001a\u00020\u00012\u0006\u0010\u000f\u001a\u00020\u00082\u0006\u0010\u0010\u001a\u00020\u0008H\u0000\u001a\r\u0010\u0011\u001a\u00020\u0012*\u00020\u0013H\u0080\u0008\u001a\r\u0010\u0014\u001a\u00020\u0005*\u00020\u0013H\u0080\u0008\u001a\r\u0010\u0015\u001a\u00020\u0013*\u00020\u0013H\u0080\u0008\u001a%\u0010\u0016\u001a\u00020\u0013*\u00020\u00132\u0006\u0010\u0017\u001a\u00020\u00132\u0006\u0010\u0018\u001a\u00020\u00052\u0006\u0010\u0019\u001a\u00020\u0005H\u0080\u0008\u001a\u0017\u0010\u001a\u001a\u00020\n*\u00020\u00132\u0008\u0010\u001b\u001a\u0004\u0018\u00010\u001cH\u0080\u0008\u001a\u0015\u0010\u001d\u001a\u00020\u001e*\u00020\u00132\u0006\u0010\u001f\u001a\u00020\u0005H\u0080\u0008\u001a\r\u0010 \u001a\u00020\u0008*\u00020\u0013H\u0080\u0008\u001a%\u0010!\u001a\u00020\u0005*\u00020\u00132\u0006\u0010\"\u001a\u00020\u001e2\u0006\u0010#\u001a\u00020\u00052\u0006\u0010$\u001a\u00020\u0005H\u0080\u0008\u001a\u001d\u0010!\u001a\u00020\u0005*\u00020\u00132\u0006\u0010\u000e\u001a\u00020%2\u0006\u0010#\u001a\u00020\u0005H\u0080\u0008\u001a\u001d\u0010&\u001a\u00020\u0005*\u00020\u00132\u0006\u0010\'\u001a\u00020%2\u0006\u0010#\u001a\u00020\u0005H\u0080\u0008\u001a-\u0010(\u001a\u00020\n*\u00020\u00132\u0006\u0010\u0018\u001a\u00020\u00052\u0006\u0010\u000e\u001a\u00020%2\u0006\u0010\u000f\u001a\u00020\u00082\u0006\u0010\u0019\u001a\u00020\u0008H\u0080\u0008\u001a\u0015\u0010)\u001a\u00020\u0008*\u00020\u00132\u0006\u0010*\u001a\u00020\u0001H\u0080\u0008\u001a%\u0010)\u001a\u00020\u0008*\u00020\u00132\u0006\u0010*\u001a\u00020\u00012\u0006\u0010\u0018\u001a\u00020\u00082\u0006\u0010\u0019\u001a\u00020\u0008H\u0080\u0008\u001a\u001d\u0010)\u001a\u00020\u0005*\u00020\u00132\u0006\u0010*\u001a\u00020\u00132\u0006\u0010\u0019\u001a\u00020\u0005H\u0080\u0008\u001a\u0015\u0010+\u001a\u00020\u0005*\u00020\u00132\u0006\u0010*\u001a\u00020,H\u0080\u0008\u001a\r\u0010-\u001a\u00020\u001e*\u00020\u0013H\u0080\u0008\u001a\r\u0010.\u001a\u00020\u0001*\u00020\u0013H\u0080\u0008\u001a\u0015\u0010.\u001a\u00020\u0001*\u00020\u00132\u0006\u0010\u0019\u001a\u00020\u0005H\u0080\u0008\u001a\r\u0010/\u001a\u00020%*\u00020\u0013H\u0080\u0008\u001a\u0015\u0010/\u001a\u00020%*\u00020\u00132\u0006\u0010\u0019\u001a\u00020\u0005H\u0080\u0008\u001a\r\u00100\u001a\u00020\u0005*\u00020\u0013H\u0080\u0008\u001a\u0015\u00101\u001a\u00020\u0012*\u00020\u00132\u0006\u0010*\u001a\u00020\u0001H\u0080\u0008\u001a\u001d\u00101\u001a\u00020\u0012*\u00020\u00132\u0006\u0010*\u001a\u00020\u00132\u0006\u0010\u0019\u001a\u00020\u0005H\u0080\u0008\u001a\r\u00102\u001a\u00020\u0005*\u00020\u0013H\u0080\u0008\u001a\r\u00103\u001a\u00020\u0008*\u00020\u0013H\u0080\u0008\u001a\r\u00104\u001a\u00020\u0005*\u00020\u0013H\u0080\u0008\u001a\r\u00105\u001a\u000206*\u00020\u0013H\u0080\u0008\u001a\u0015\u00107\u001a\u000208*\u00020\u00132\u0006\u0010\u0019\u001a\u00020\u0005H\u0080\u0008\u001a\r\u00109\u001a\u00020\u0008*\u00020\u0013H\u0080\u0008\u001a\u000f\u0010:\u001a\u0004\u0018\u000108*\u00020\u0013H\u0080\u0008\u001a\u0015\u0010;\u001a\u000208*\u00020\u00132\u0006\u0010<\u001a\u00020\u0005H\u0080\u0008\u001a\u0015\u0010=\u001a\u00020\u0008*\u00020\u00132\u0006\u0010>\u001a\u00020?H\u0080\u0008\u001a\u0015\u0010@\u001a\u00020\u0012*\u00020\u00132\u0006\u0010\u0019\u001a\u00020\u0005H\u0080\u0008\u001a\r\u0010A\u001a\u00020%*\u00020\u0013H\u0080\u0008\u001a\u0015\u0010A\u001a\u00020%*\u00020\u00132\u0006\u0010\u0019\u001a\u00020\u0008H\u0080\u0008\u001a\u0015\u0010B\u001a\u00020\u000c*\u00020\u00132\u0006\u0010C\u001a\u00020\u0008H\u0080\u0008\u001a\u0015\u0010D\u001a\u00020\u0013*\u00020\u00132\u0006\u0010E\u001a\u00020\u0001H\u0080\u0008\u001a%\u0010D\u001a\u00020\u0013*\u00020\u00132\u0006\u0010E\u001a\u00020\u00012\u0006\u0010\u0018\u001a\u00020\u00082\u0006\u0010\u0019\u001a\u00020\u0008H\u0080\u0008\u001a\u001d\u0010D\u001a\u00020\u0012*\u00020\u00132\u0006\u0010E\u001a\u00020\u00132\u0006\u0010\u0019\u001a\u00020\u0005H\u0080\u0008\u001a)\u0010D\u001a\u00020\u0013*\u00020\u00132\u0006\u0010F\u001a\u00020%2\u0008\u0008\u0002\u0010\u0018\u001a\u00020\u00082\u0008\u0008\u0002\u0010\u0019\u001a\u00020\u0008H\u0080\u0008\u001a\u001d\u0010D\u001a\u00020\u0013*\u00020\u00132\u0006\u0010E\u001a\u00020G2\u0006\u0010\u0019\u001a\u00020\u0005H\u0080\u0008\u001a\u0015\u0010H\u001a\u00020\u0005*\u00020\u00132\u0006\u0010E\u001a\u00020GH\u0080\u0008\u001a\u0015\u0010I\u001a\u00020\u0013*\u00020\u00132\u0006\u0010\"\u001a\u00020\u0008H\u0080\u0008\u001a\u0015\u0010J\u001a\u00020\u0013*\u00020\u00132\u0006\u0010K\u001a\u00020\u0005H\u0080\u0008\u001a\u0015\u0010L\u001a\u00020\u0013*\u00020\u00132\u0006\u0010K\u001a\u00020\u0005H\u0080\u0008\u001a\u0015\u0010M\u001a\u00020\u0013*\u00020\u00132\u0006\u0010N\u001a\u00020\u0008H\u0080\u0008\u001a\u0015\u0010O\u001a\u00020\u0013*\u00020\u00132\u0006\u0010K\u001a\u00020\u0005H\u0080\u0008\u001a\u0015\u0010P\u001a\u00020\u0013*\u00020\u00132\u0006\u0010Q\u001a\u00020\u0008H\u0080\u0008\u001a%\u0010R\u001a\u00020\u0013*\u00020\u00132\u0006\u0010S\u001a\u0002082\u0006\u0010T\u001a\u00020\u00082\u0006\u0010U\u001a\u00020\u0008H\u0080\u0008\u001a\u0015\u0010V\u001a\u00020\u0013*\u00020\u00132\u0006\u0010W\u001a\u00020\u0008H\u0080\u0008\u001a\u0014\u0010X\u001a\u000208*\u00020\u00132\u0006\u0010Y\u001a\u00020\u0005H\u0000\u001a?\u0010Z\u001a\u0002H[\"\u0004\u0008\u0000\u0010[*\u00020\u00132\u0006\u0010#\u001a\u00020\u00052\u001a\u0010\\\u001a\u0016\u0012\u0006\u0012\u0004\u0018\u00010\u000c\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u0002H[0]H\u0080\u0008\u00f8\u0001\u0000\u00a2\u0006\u0002\u0010^\u001a\u001e\u0010_\u001a\u00020\u0008*\u00020\u00132\u0006\u0010>\u001a\u00020?2\u0008\u0008\u0002\u0010`\u001a\u00020\nH\u0000\"\u0014\u0010\u0000\u001a\u00020\u0001X\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0002\u0010\u0003\"\u000e\u0010\u0004\u001a\u00020\u0005X\u0080T\u00a2\u0006\u0002\n\u0000\"\u000e\u0010\u0006\u001a\u00020\u0005X\u0080T\u00a2\u0006\u0002\n\u0000\"\u000e\u0010\u0007\u001a\u00020\u0008X\u0080T\u00a2\u0006\u0002\n\u0000\u0082\u0002\u0007\n\u0005\u0008\u009920\u0001\u00a8\u0006a"
|
|
}
|
|
d2 = {
|
|
"HEX_DIGIT_BYTES",
|
|
"",
|
|
"getHEX_DIGIT_BYTES",
|
|
"()[B",
|
|
"OVERFLOW_DIGIT_START",
|
|
"",
|
|
"OVERFLOW_ZONE",
|
|
"SEGMENTING_THRESHOLD",
|
|
"",
|
|
"rangeEquals",
|
|
"",
|
|
"segment",
|
|
"Lokio/Segment;",
|
|
"segmentPos",
|
|
"bytes",
|
|
"bytesOffset",
|
|
"bytesLimit",
|
|
"commonClear",
|
|
"",
|
|
"Lokio/Buffer;",
|
|
"commonCompleteSegmentByteCount",
|
|
"commonCopy",
|
|
"commonCopyTo",
|
|
"out",
|
|
"offset",
|
|
"byteCount",
|
|
"commonEquals",
|
|
"other",
|
|
"",
|
|
"commonGet",
|
|
"",
|
|
"pos",
|
|
"commonHashCode",
|
|
"commonIndexOf",
|
|
"b",
|
|
"fromIndex",
|
|
"toIndex",
|
|
"Lokio/ByteString;",
|
|
"commonIndexOfElement",
|
|
"targetBytes",
|
|
"commonRangeEquals",
|
|
"commonRead",
|
|
"sink",
|
|
"commonReadAll",
|
|
"Lokio/Sink;",
|
|
"commonReadByte",
|
|
"commonReadByteArray",
|
|
"commonReadByteString",
|
|
"commonReadDecimalLong",
|
|
"commonReadFully",
|
|
"commonReadHexadecimalUnsignedLong",
|
|
"commonReadInt",
|
|
"commonReadLong",
|
|
"commonReadShort",
|
|
"",
|
|
"commonReadUtf8",
|
|
"",
|
|
"commonReadUtf8CodePoint",
|
|
"commonReadUtf8Line",
|
|
"commonReadUtf8LineStrict",
|
|
"limit",
|
|
"commonSelect",
|
|
"options",
|
|
"Lokio/Options;",
|
|
"commonSkip",
|
|
"commonSnapshot",
|
|
"commonWritableSegment",
|
|
"minimumCapacity",
|
|
"commonWrite",
|
|
"source",
|
|
"byteString",
|
|
"Lokio/Source;",
|
|
"commonWriteAll",
|
|
"commonWriteByte",
|
|
"commonWriteDecimalLong",
|
|
"v",
|
|
"commonWriteHexadecimalUnsignedLong",
|
|
"commonWriteInt",
|
|
"i",
|
|
"commonWriteLong",
|
|
"commonWriteShort",
|
|
"s",
|
|
"commonWriteUtf8",
|
|
"string",
|
|
"beginIndex",
|
|
"endIndex",
|
|
"commonWriteUtf8CodePoint",
|
|
"codePoint",
|
|
"readUtf8Line",
|
|
"newline",
|
|
"seek",
|
|
"T",
|
|
"lambda",
|
|
"Lkotlin/Function2;",
|
|
"(Lokio/Buffer;JLkotlin/jvm/functions/Function2;)Ljava/lang/Object;",
|
|
"selectPrefix",
|
|
"selectTruncated",
|
|
"okio"
|
|
}
|
|
k = 0x2
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final HEX_DIGIT_BYTES:[B
|
|
|
|
.field public static final OVERFLOW_DIGIT_START:J = -0x7L
|
|
|
|
.field public static final OVERFLOW_ZONE:J = -0xcccccccccccccccL
|
|
|
|
.field public static final SEGMENTING_THRESHOLD:I = 0x1000
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
const-string v0, "0123456789abcdef"
|
|
|
|
.line 38
|
|
invoke-static {v0}, Lokio/-Platform;->asUtf8ToByteArray(Ljava/lang/String;)[B
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lokio/internal/BufferKt;->HEX_DIGIT_BYTES:[B
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final commonClear(Lokio/Buffer;)V
|
|
.locals 2
|
|
|
|
const-string v0, "$this$commonClear"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 405
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-virtual {p0, v0, v1}, Lokio/Buffer;->skip(J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final commonCompleteSegmentByteCount(Lokio/Buffer;)J
|
|
.locals 5
|
|
|
|
const-string v0, "$this$commonCompleteSegmentByteCount"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 272
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
if-nez v4, :cond_0
|
|
|
|
return-wide v2
|
|
|
|
.line 276
|
|
:cond_0
|
|
iget-object p0, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
iget-object p0, p0, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 277
|
|
iget v2, p0, Lokio/Segment;->limit:I
|
|
|
|
const/16 v3, 0x2000
|
|
|
|
if-ge v2, v3, :cond_1
|
|
|
|
iget-boolean v2, p0, Lokio/Segment;->owner:Z
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 278
|
|
iget v2, p0, Lokio/Segment;->limit:I
|
|
|
|
iget p0, p0, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr v2, p0
|
|
|
|
int-to-long v2, v2
|
|
|
|
sub-long/2addr v0, v2
|
|
|
|
:cond_1
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public static final commonCopy(Lokio/Buffer;)Lokio/Buffer;
|
|
.locals 6
|
|
|
|
const-string v0, "$this$commonCopy"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1426
|
|
new-instance v0, Lokio/Buffer;
|
|
|
|
invoke-direct {v0}, Lokio/Buffer;-><init>()V
|
|
|
|
.line 1427
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v1
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
cmp-long v1, v1, v3
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
return-object v0
|
|
|
|
.line 1429
|
|
:cond_0
|
|
iget-object v1, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 1430
|
|
invoke-virtual {v1}, Lokio/Segment;->sharedCopy()Lokio/Segment;
|
|
|
|
move-result-object v2
|
|
|
|
.line 1432
|
|
iput-object v2, v0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
.line 1433
|
|
iget-object v3, v0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
iput-object v3, v2, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
.line 1434
|
|
iget-object v3, v2, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
iput-object v3, v2, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
.line 1436
|
|
iget-object v3, v1, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
:goto_0
|
|
if-eq v3, v1, :cond_1
|
|
|
|
.line 1438
|
|
iget-object v4, v2, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
invoke-static {v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {v3}, Lokio/Segment;->sharedCopy()Lokio/Segment;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v4, v5}, Lokio/Segment;->push(Lokio/Segment;)Lokio/Segment;
|
|
|
|
.line 1439
|
|
iget-object v3, v3, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
goto :goto_0
|
|
|
|
.line 1442
|
|
:cond_1
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v1
|
|
|
|
invoke-virtual {v0, v1, v2}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final commonCopyTo(Lokio/Buffer;Lokio/Buffer;JJ)Lokio/Buffer;
|
|
.locals 7
|
|
|
|
const-string v0, "$this$commonCopyTo"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "out"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 239
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v1
|
|
|
|
move-wide v3, p2
|
|
|
|
move-wide v5, p4
|
|
|
|
invoke-static/range {v1 .. v6}, Lokio/-Util;->checkOffsetAndCount(JJJ)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v2, p4, v0
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
return-object p0
|
|
|
|
.line 242
|
|
:cond_0
|
|
invoke-virtual {p1}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v2
|
|
|
|
add-long/2addr v2, p4
|
|
|
|
invoke-virtual {p1, v2, v3}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
.line 245
|
|
iget-object v2, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
.line 246
|
|
:goto_0
|
|
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
iget v3, v2, Lokio/Segment;->limit:I
|
|
|
|
iget v4, v2, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr v3, v4
|
|
|
|
int-to-long v3, v3
|
|
|
|
cmp-long v3, p2, v3
|
|
|
|
if-ltz v3, :cond_1
|
|
|
|
.line 247
|
|
iget v3, v2, Lokio/Segment;->limit:I
|
|
|
|
iget v4, v2, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr v3, v4
|
|
|
|
int-to-long v3, v3
|
|
|
|
sub-long/2addr p2, v3
|
|
|
|
.line 248
|
|
iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
:goto_1
|
|
cmp-long v3, p4, v0
|
|
|
|
if-lez v3, :cond_3
|
|
|
|
.line 253
|
|
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {v2}, Lokio/Segment;->sharedCopy()Lokio/Segment;
|
|
|
|
move-result-object v3
|
|
|
|
.line 254
|
|
iget v4, v3, Lokio/Segment;->pos:I
|
|
|
|
long-to-int p2, p2
|
|
|
|
add-int/2addr v4, p2
|
|
|
|
iput v4, v3, Lokio/Segment;->pos:I
|
|
|
|
.line 255
|
|
iget p2, v3, Lokio/Segment;->pos:I
|
|
|
|
long-to-int p3, p4
|
|
|
|
add-int/2addr p2, p3
|
|
|
|
iget p3, v3, Lokio/Segment;->limit:I
|
|
|
|
invoke-static {p2, p3}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p2
|
|
|
|
iput p2, v3, Lokio/Segment;->limit:I
|
|
|
|
.line 256
|
|
iget-object p2, p1, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
if-nez p2, :cond_2
|
|
|
|
.line 257
|
|
iput-object v3, v3, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
.line 258
|
|
iget-object p2, v3, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
iput-object p2, v3, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
.line 259
|
|
iget-object p2, v3, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
iput-object p2, p1, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
goto :goto_2
|
|
|
|
.line 261
|
|
:cond_2
|
|
iget-object p2, p1, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
invoke-static {p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
iget-object p2, p2, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
invoke-static {p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {p2, v3}, Lokio/Segment;->push(Lokio/Segment;)Lokio/Segment;
|
|
|
|
.line 263
|
|
:goto_2
|
|
iget p2, v3, Lokio/Segment;->limit:I
|
|
|
|
iget p3, v3, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr p2, p3
|
|
|
|
int-to-long p2, p2
|
|
|
|
sub-long/2addr p4, p2
|
|
|
|
.line 265
|
|
iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
move-wide p2, v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonEquals(Lokio/Buffer;Ljava/lang/Object;)Z
|
|
.locals 18
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
const-string v2, "$this$commonEquals"
|
|
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
return v2
|
|
|
|
.line 1377
|
|
:cond_0
|
|
instance-of v3, v1, Lokio/Buffer;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
return v4
|
|
|
|
.line 1378
|
|
:cond_1
|
|
invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v5
|
|
|
|
check-cast v1, Lokio/Buffer;
|
|
|
|
invoke-virtual {v1}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v7
|
|
|
|
cmp-long v3, v5, v7
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
return v4
|
|
|
|
.line 1379
|
|
:cond_2
|
|
invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v5
|
|
|
|
const-wide/16 v7, 0x0
|
|
|
|
cmp-long v3, v5, v7
|
|
|
|
if-nez v3, :cond_3
|
|
|
|
return v2
|
|
|
|
.line 1381
|
|
:cond_3
|
|
iget-object v3, v0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 1382
|
|
iget-object v1, v1, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 1383
|
|
iget v5, v3, Lokio/Segment;->pos:I
|
|
|
|
.line 1384
|
|
iget v6, v1, Lokio/Segment;->pos:I
|
|
|
|
move-wide v9, v7
|
|
|
|
.line 1388
|
|
:goto_0
|
|
invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v11
|
|
|
|
cmp-long v11, v9, v11
|
|
|
|
if-gez v11, :cond_8
|
|
|
|
.line 1389
|
|
iget v11, v3, Lokio/Segment;->limit:I
|
|
|
|
sub-int/2addr v11, v5
|
|
|
|
iget v12, v1, Lokio/Segment;->limit:I
|
|
|
|
sub-int/2addr v12, v6
|
|
|
|
invoke-static {v11, v12}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v11
|
|
|
|
int-to-long v11, v11
|
|
|
|
move-wide v13, v7
|
|
|
|
:goto_1
|
|
cmp-long v15, v13, v11
|
|
|
|
if-gez v15, :cond_5
|
|
|
|
.line 1392
|
|
iget-object v15, v3, Lokio/Segment;->data:[B
|
|
|
|
add-int/lit8 v16, v5, 0x1
|
|
|
|
aget-byte v5, v15, v5
|
|
|
|
iget-object v15, v1, Lokio/Segment;->data:[B
|
|
|
|
add-int/lit8 v17, v6, 0x1
|
|
|
|
aget-byte v6, v15, v6
|
|
|
|
if-eq v5, v6, :cond_4
|
|
|
|
return v4
|
|
|
|
:cond_4
|
|
const-wide/16 v5, 0x1
|
|
|
|
add-long/2addr v13, v5
|
|
|
|
move/from16 v5, v16
|
|
|
|
move/from16 v6, v17
|
|
|
|
goto :goto_1
|
|
|
|
.line 1395
|
|
:cond_5
|
|
iget v13, v3, Lokio/Segment;->limit:I
|
|
|
|
if-ne v5, v13, :cond_6
|
|
|
|
.line 1396
|
|
iget-object v3, v3, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 1397
|
|
iget v5, v3, Lokio/Segment;->pos:I
|
|
|
|
.line 1400
|
|
:cond_6
|
|
iget v13, v1, Lokio/Segment;->limit:I
|
|
|
|
if-ne v6, v13, :cond_7
|
|
|
|
.line 1401
|
|
iget-object v1, v1, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 1402
|
|
iget v6, v1, Lokio/Segment;->pos:I
|
|
|
|
:cond_7
|
|
add-long/2addr v9, v11
|
|
|
|
goto :goto_0
|
|
|
|
:cond_8
|
|
return v2
|
|
.end method
|
|
|
|
.method public static final commonGet(Lokio/Buffer;J)B
|
|
.locals 7
|
|
|
|
const-string v0, "$this$commonGet"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 399
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v1
|
|
|
|
const-wide/16 v5, 0x1
|
|
|
|
move-wide v3, p1
|
|
|
|
invoke-static/range {v1 .. v6}, Lokio/-Util;->checkOffsetAndCount(JJJ)V
|
|
|
|
.line 1512
|
|
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 1514
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v1
|
|
|
|
sub-long/2addr v1, p1
|
|
|
|
cmp-long v1, v1, p1
|
|
|
|
if-gez v1, :cond_1
|
|
|
|
.line 1516
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v1
|
|
|
|
:goto_0
|
|
cmp-long p0, v1, p1
|
|
|
|
if-lez p0, :cond_0
|
|
|
|
.line 1518
|
|
iget-object v0, v0, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 1519
|
|
iget p0, v0, Lokio/Segment;->limit:I
|
|
|
|
iget v3, v0, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr p0, v3
|
|
|
|
int-to-long v3, p0
|
|
|
|
sub-long/2addr v1, v3
|
|
|
|
goto :goto_0
|
|
|
|
.line 401
|
|
:cond_0
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
iget-object p0, v0, Lokio/Segment;->data:[B
|
|
|
|
iget v0, v0, Lokio/Segment;->pos:I
|
|
|
|
int-to-long v3, v0
|
|
|
|
add-long/2addr v3, p1
|
|
|
|
sub-long/2addr v3, v1
|
|
|
|
long-to-int p1, v3
|
|
|
|
aget-byte p0, p0, p1
|
|
|
|
return p0
|
|
|
|
:cond_1
|
|
const-wide/16 v1, 0x0
|
|
|
|
.line 1526
|
|
:goto_1
|
|
iget p0, v0, Lokio/Segment;->limit:I
|
|
|
|
iget v3, v0, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr p0, v3
|
|
|
|
int-to-long v3, p0
|
|
|
|
add-long/2addr v3, v1
|
|
|
|
cmp-long p0, v3, p1
|
|
|
|
if-lez p0, :cond_2
|
|
|
|
.line 401
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
iget-object p0, v0, Lokio/Segment;->data:[B
|
|
|
|
iget v0, v0, Lokio/Segment;->pos:I
|
|
|
|
int-to-long v3, v0
|
|
|
|
add-long/2addr v3, p1
|
|
|
|
sub-long/2addr v3, v1
|
|
|
|
long-to-int p1, v3
|
|
|
|
aget-byte p0, p0, p1
|
|
|
|
return p0
|
|
|
|
.line 1528
|
|
:cond_2
|
|
iget-object v0, v0, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
move-wide v1, v3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
const/4 p0, 0x0
|
|
|
|
.line 1512
|
|
move-object p1, p0
|
|
|
|
check-cast p1, Lokio/Segment;
|
|
|
|
.line 401
|
|
invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
iget-object p1, p0, Lokio/Segment;->data:[B
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final commonHashCode(Lokio/Buffer;)I
|
|
.locals 5
|
|
|
|
const-string v0, "$this$commonHashCode"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1411
|
|
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 1414
|
|
:cond_0
|
|
iget v2, v0, Lokio/Segment;->pos:I
|
|
|
|
.line 1415
|
|
iget v3, v0, Lokio/Segment;->limit:I
|
|
|
|
:goto_0
|
|
if-ge v2, v3, :cond_1
|
|
|
|
mul-int/lit8 v1, v1, 0x1f
|
|
|
|
.line 1417
|
|
iget-object v4, v0, Lokio/Segment;->data:[B
|
|
|
|
aget-byte v4, v4, v2
|
|
|
|
add-int/2addr v1, v4
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 1420
|
|
:cond_1
|
|
iget-object v0, v0, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 1421
|
|
iget-object v2, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
if-ne v0, v2, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_2
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final commonIndexOf(Lokio/Buffer;BJJ)J
|
|
.locals 9
|
|
|
|
const-string v0, "$this$commonIndexOf"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v2, v0, p2
|
|
|
|
if-lez v2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
cmp-long v2, p4, p2
|
|
|
|
if-ltz v2, :cond_1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v2, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v2, :cond_e
|
|
|
|
.line 1232
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v2
|
|
|
|
cmp-long v2, p4, v2
|
|
|
|
if-lez v2, :cond_2
|
|
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide p4
|
|
|
|
:cond_2
|
|
cmp-long v2, p2, p4
|
|
|
|
const-wide/16 v3, -0x1
|
|
|
|
if-nez v2, :cond_3
|
|
|
|
return-wide v3
|
|
|
|
.line 1545
|
|
:cond_3
|
|
iget-object v2, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
if-eqz v2, :cond_d
|
|
|
|
.line 1547
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v5
|
|
|
|
sub-long/2addr v5, p2
|
|
|
|
cmp-long v5, v5, p2
|
|
|
|
if-gez v5, :cond_8
|
|
|
|
.line 1549
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
:goto_2
|
|
cmp-long p0, v0, p2
|
|
|
|
if-lez p0, :cond_4
|
|
|
|
.line 1551
|
|
iget-object v2, v2, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 1552
|
|
iget p0, v2, Lokio/Segment;->limit:I
|
|
|
|
iget v5, v2, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr p0, v5
|
|
|
|
int-to-long v5, p0
|
|
|
|
sub-long/2addr v0, v5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
if-eqz v2, :cond_7
|
|
|
|
:goto_3
|
|
cmp-long p0, v0, p4
|
|
|
|
if-gez p0, :cond_7
|
|
|
|
.line 1241
|
|
iget-object p0, v2, Lokio/Segment;->data:[B
|
|
|
|
.line 1242
|
|
iget v5, v2, Lokio/Segment;->limit:I
|
|
|
|
int-to-long v5, v5
|
|
|
|
iget v7, v2, Lokio/Segment;->pos:I
|
|
|
|
int-to-long v7, v7
|
|
|
|
add-long/2addr v7, p4
|
|
|
|
sub-long/2addr v7, v0
|
|
|
|
invoke-static {v5, v6, v7, v8}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide v5
|
|
|
|
long-to-int v5, v5
|
|
|
|
.line 1243
|
|
iget v6, v2, Lokio/Segment;->pos:I
|
|
|
|
int-to-long v6, v6
|
|
|
|
add-long/2addr v6, p2
|
|
|
|
sub-long/2addr v6, v0
|
|
|
|
long-to-int p2, v6
|
|
|
|
:goto_4
|
|
if-ge p2, v5, :cond_6
|
|
|
|
.line 1245
|
|
aget-byte p3, p0, p2
|
|
|
|
if-ne p3, p1, :cond_5
|
|
|
|
.line 1246
|
|
:goto_5
|
|
iget p0, v2, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr p2, p0
|
|
|
|
int-to-long p0, p2
|
|
|
|
add-long/2addr p0, v0
|
|
|
|
return-wide p0
|
|
|
|
:cond_5
|
|
add-int/lit8 p2, p2, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
.line 1252
|
|
:cond_6
|
|
iget p0, v2, Lokio/Segment;->limit:I
|
|
|
|
iget p2, v2, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr p0, p2
|
|
|
|
int-to-long p2, p0
|
|
|
|
add-long/2addr v0, p2
|
|
|
|
.line 1254
|
|
iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
move-wide p2, v0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_7
|
|
return-wide v3
|
|
|
|
.line 1559
|
|
:cond_8
|
|
:goto_6
|
|
iget p0, v2, Lokio/Segment;->limit:I
|
|
|
|
iget v5, v2, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr p0, v5
|
|
|
|
int-to-long v5, p0
|
|
|
|
add-long/2addr v5, v0
|
|
|
|
cmp-long p0, v5, p2
|
|
|
|
if-lez p0, :cond_c
|
|
|
|
if-eqz v2, :cond_b
|
|
|
|
:goto_7
|
|
cmp-long p0, v0, p4
|
|
|
|
if-gez p0, :cond_b
|
|
|
|
.line 1241
|
|
iget-object p0, v2, Lokio/Segment;->data:[B
|
|
|
|
.line 1242
|
|
iget v5, v2, Lokio/Segment;->limit:I
|
|
|
|
int-to-long v5, v5
|
|
|
|
iget v7, v2, Lokio/Segment;->pos:I
|
|
|
|
int-to-long v7, v7
|
|
|
|
add-long/2addr v7, p4
|
|
|
|
sub-long/2addr v7, v0
|
|
|
|
invoke-static {v5, v6, v7, v8}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide v5
|
|
|
|
long-to-int v5, v5
|
|
|
|
.line 1243
|
|
iget v6, v2, Lokio/Segment;->pos:I
|
|
|
|
int-to-long v6, v6
|
|
|
|
add-long/2addr v6, p2
|
|
|
|
sub-long/2addr v6, v0
|
|
|
|
long-to-int p2, v6
|
|
|
|
:goto_8
|
|
if-ge p2, v5, :cond_a
|
|
|
|
.line 1245
|
|
aget-byte p3, p0, p2
|
|
|
|
if-ne p3, p1, :cond_9
|
|
|
|
goto :goto_5
|
|
|
|
:cond_9
|
|
add-int/lit8 p2, p2, 0x1
|
|
|
|
goto :goto_8
|
|
|
|
.line 1252
|
|
:cond_a
|
|
iget p0, v2, Lokio/Segment;->limit:I
|
|
|
|
iget p2, v2, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr p0, p2
|
|
|
|
int-to-long p2, p0
|
|
|
|
add-long/2addr v0, p2
|
|
|
|
.line 1254
|
|
iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
move-wide p2, v0
|
|
|
|
goto :goto_7
|
|
|
|
:cond_b
|
|
return-wide v3
|
|
|
|
.line 1561
|
|
:cond_c
|
|
iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
move-wide v0, v5
|
|
|
|
goto :goto_6
|
|
|
|
:cond_d
|
|
const/4 p0, 0x0
|
|
|
|
.line 1545
|
|
check-cast p0, Lokio/Segment;
|
|
|
|
return-wide v3
|
|
|
|
.line 1230
|
|
:cond_e
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, "size="
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-virtual {p1, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, " fromIndex="
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, " toIndex="
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, p4, p5}, Ljava/lang/StringBuilder;->append(J)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 commonIndexOf(Lokio/Buffer;Lokio/ByteString;J)J
|
|
.locals 16
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-wide/from16 v1, p2
|
|
|
|
const-string v3, "$this$commonIndexOf"
|
|
|
|
invoke-static {v0, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v3, "bytes"
|
|
|
|
move-object/from16 v4, p1
|
|
|
|
invoke-static {v4, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1263
|
|
invoke-virtual/range {p1 .. p1}, Lokio/ByteString;->size()I
|
|
|
|
move-result v3
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x1
|
|
|
|
if-lez v3, :cond_0
|
|
|
|
move v3, v6
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v3, v5
|
|
|
|
:goto_0
|
|
if-eqz v3, :cond_10
|
|
|
|
const-wide/16 v7, 0x0
|
|
|
|
cmp-long v3, v1, v7
|
|
|
|
if-ltz v3, :cond_1
|
|
|
|
move v3, v6
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v3, v5
|
|
|
|
:goto_1
|
|
if-eqz v3, :cond_f
|
|
|
|
.line 1565
|
|
iget-object v3, v0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
if-eqz v3, :cond_e
|
|
|
|
.line 1567
|
|
invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v11
|
|
|
|
sub-long/2addr v11, v1
|
|
|
|
cmp-long v11, v11, v1
|
|
|
|
const-wide/16 v12, 0x1
|
|
|
|
if-gez v11, :cond_7
|
|
|
|
.line 1569
|
|
invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v7
|
|
|
|
:goto_2
|
|
cmp-long v11, v7, v1
|
|
|
|
if-lez v11, :cond_2
|
|
|
|
.line 1571
|
|
iget-object v3, v3, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 1572
|
|
iget v11, v3, Lokio/Segment;->limit:I
|
|
|
|
iget v14, v3, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr v11, v14
|
|
|
|
int-to-long v14, v11
|
|
|
|
sub-long/2addr v7, v14
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
if-eqz v3, :cond_6
|
|
|
|
.line 1272
|
|
invoke-virtual/range {p1 .. p1}, Lokio/ByteString;->internalArray$okio()[B
|
|
|
|
move-result-object v11
|
|
|
|
.line 1273
|
|
aget-byte v5, v11, v5
|
|
|
|
.line 1274
|
|
invoke-virtual/range {p1 .. p1}, Lokio/ByteString;->size()I
|
|
|
|
move-result v4
|
|
|
|
.line 1275
|
|
invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v14
|
|
|
|
int-to-long v9, v4
|
|
|
|
sub-long/2addr v14, v9
|
|
|
|
add-long/2addr v14, v12
|
|
|
|
:goto_3
|
|
cmp-long v0, v7, v14
|
|
|
|
if-gez v0, :cond_5
|
|
|
|
.line 1278
|
|
iget-object v0, v3, Lokio/Segment;->data:[B
|
|
|
|
.line 1279
|
|
iget v9, v3, Lokio/Segment;->limit:I
|
|
|
|
iget v10, v3, Lokio/Segment;->pos:I
|
|
|
|
int-to-long v12, v10
|
|
|
|
add-long/2addr v12, v14
|
|
|
|
sub-long/2addr v12, v7
|
|
|
|
int-to-long v9, v9
|
|
|
|
.line 1566
|
|
invoke-static {v9, v10, v12, v13}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide v9
|
|
|
|
long-to-int v9, v9
|
|
|
|
.line 1280
|
|
iget v10, v3, Lokio/Segment;->pos:I
|
|
|
|
int-to-long v12, v10
|
|
|
|
add-long/2addr v12, v1
|
|
|
|
sub-long/2addr v12, v7
|
|
|
|
long-to-int v1, v12
|
|
|
|
:goto_4
|
|
if-ge v1, v9, :cond_4
|
|
|
|
.line 1281
|
|
aget-byte v2, v0, v1
|
|
|
|
if-ne v2, v5, :cond_3
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
invoke-static {v3, v2, v11, v6, v4}, Lokio/internal/BufferKt;->rangeEquals(Lokio/Segment;I[BII)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
.line 1282
|
|
iget v0, v3, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr v1, v0
|
|
|
|
int-to-long v0, v1
|
|
|
|
add-long/2addr v0, v7
|
|
|
|
return-wide v0
|
|
|
|
:cond_3
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
.line 1287
|
|
:cond_4
|
|
iget v0, v3, Lokio/Segment;->limit:I
|
|
|
|
iget v1, v3, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
int-to-long v0, v0
|
|
|
|
add-long/2addr v7, v0
|
|
|
|
.line 1289
|
|
iget-object v3, v3, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
move-wide v1, v7
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
const-wide/16 v0, -0x1
|
|
|
|
return-wide v0
|
|
|
|
:cond_6
|
|
const-wide/16 v0, -0x1
|
|
|
|
return-wide v0
|
|
|
|
.line 1579
|
|
:cond_7
|
|
:goto_5
|
|
iget v9, v3, Lokio/Segment;->limit:I
|
|
|
|
iget v10, v3, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr v9, v10
|
|
|
|
int-to-long v9, v9
|
|
|
|
add-long/2addr v9, v7
|
|
|
|
cmp-long v11, v9, v1
|
|
|
|
if-lez v11, :cond_d
|
|
|
|
if-eqz v3, :cond_c
|
|
|
|
.line 1272
|
|
invoke-virtual/range {p1 .. p1}, Lokio/ByteString;->internalArray$okio()[B
|
|
|
|
move-result-object v9
|
|
|
|
.line 1273
|
|
aget-byte v5, v9, v5
|
|
|
|
.line 1274
|
|
invoke-virtual/range {p1 .. p1}, Lokio/ByteString;->size()I
|
|
|
|
move-result v4
|
|
|
|
.line 1275
|
|
invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v10
|
|
|
|
int-to-long v14, v4
|
|
|
|
sub-long/2addr v10, v14
|
|
|
|
add-long/2addr v10, v12
|
|
|
|
:goto_6
|
|
cmp-long v0, v7, v10
|
|
|
|
if-gez v0, :cond_b
|
|
|
|
.line 1278
|
|
iget-object v0, v3, Lokio/Segment;->data:[B
|
|
|
|
.line 1279
|
|
iget v12, v3, Lokio/Segment;->limit:I
|
|
|
|
iget v13, v3, Lokio/Segment;->pos:I
|
|
|
|
int-to-long v13, v13
|
|
|
|
add-long/2addr v13, v10
|
|
|
|
sub-long/2addr v13, v7
|
|
|
|
move-wide/from16 p0, v7
|
|
|
|
int-to-long v6, v12
|
|
|
|
.line 1566
|
|
invoke-static {v6, v7, v13, v14}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide v6
|
|
|
|
long-to-int v6, v6
|
|
|
|
.line 1280
|
|
iget v7, v3, Lokio/Segment;->pos:I
|
|
|
|
int-to-long v7, v7
|
|
|
|
add-long/2addr v7, v1
|
|
|
|
move-wide/from16 v1, p0
|
|
|
|
sub-long/2addr v7, v1
|
|
|
|
long-to-int v7, v7
|
|
|
|
:goto_7
|
|
if-ge v7, v6, :cond_a
|
|
|
|
.line 1281
|
|
aget-byte v8, v0, v7
|
|
|
|
if-ne v8, v5, :cond_8
|
|
|
|
add-int/lit8 v8, v7, 0x1
|
|
|
|
const/4 v14, 0x1
|
|
|
|
invoke-static {v3, v8, v9, v14, v4}, Lokio/internal/BufferKt;->rangeEquals(Lokio/Segment;I[BII)Z
|
|
|
|
move-result v8
|
|
|
|
if-eqz v8, :cond_9
|
|
|
|
.line 1282
|
|
iget v0, v3, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr v7, v0
|
|
|
|
int-to-long v3, v7
|
|
|
|
add-long/2addr v3, v1
|
|
|
|
return-wide v3
|
|
|
|
:cond_8
|
|
const/4 v14, 0x1
|
|
|
|
:cond_9
|
|
add-int/lit8 v7, v7, 0x1
|
|
|
|
goto :goto_7
|
|
|
|
:cond_a
|
|
const/4 v14, 0x1
|
|
|
|
.line 1287
|
|
iget v0, v3, Lokio/Segment;->limit:I
|
|
|
|
iget v6, v3, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr v0, v6
|
|
|
|
int-to-long v6, v0
|
|
|
|
add-long v7, v1, v6
|
|
|
|
.line 1289
|
|
iget-object v3, v3, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
move-wide v1, v7
|
|
|
|
move v6, v14
|
|
|
|
goto :goto_6
|
|
|
|
:cond_b
|
|
const-wide/16 v6, -0x1
|
|
|
|
return-wide v6
|
|
|
|
:cond_c
|
|
const-wide/16 v6, -0x1
|
|
|
|
return-wide v6
|
|
|
|
:cond_d
|
|
move v14, v6
|
|
|
|
const-wide/16 v6, -0x1
|
|
|
|
.line 1581
|
|
iget-object v3, v3, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
move-wide v7, v9
|
|
|
|
move v6, v14
|
|
|
|
goto :goto_5
|
|
|
|
:cond_e
|
|
const-wide/16 v6, -0x1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1565
|
|
check-cast v0, Lokio/Segment;
|
|
|
|
return-wide v6
|
|
|
|
.line 1264
|
|
:cond_f
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "fromIndex < 0: "
|
|
|
|
invoke-direct {v0, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()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
|
|
|
|
check-cast v1, Ljava/lang/Throwable;
|
|
|
|
throw v1
|
|
|
|
.line 1263
|
|
:cond_10
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v1, "bytes is empty"
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final commonIndexOfElement(Lokio/Buffer;Lokio/ByteString;J)J
|
|
.locals 11
|
|
|
|
const-string v0, "$this$commonIndexOfElement"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "targetBytes"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v2, p2, v0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x1
|
|
|
|
if-ltz v2, :cond_0
|
|
|
|
move v2, v4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v2, v3
|
|
|
|
:goto_0
|
|
if-eqz v2, :cond_14
|
|
|
|
.line 1585
|
|
iget-object v2, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
const-wide/16 v5, -0x1
|
|
|
|
if-eqz v2, :cond_13
|
|
|
|
.line 1587
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v7
|
|
|
|
sub-long/2addr v7, p2
|
|
|
|
cmp-long v7, v7, p2
|
|
|
|
const/4 v8, 0x2
|
|
|
|
if-gez v7, :cond_a
|
|
|
|
.line 1589
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
:goto_1
|
|
cmp-long v7, v0, p2
|
|
|
|
if-lez v7, :cond_1
|
|
|
|
.line 1591
|
|
iget-object v2, v2, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 1592
|
|
iget v7, v2, Lokio/Segment;->limit:I
|
|
|
|
iget v9, v2, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr v7, v9
|
|
|
|
int-to-long v9, v7
|
|
|
|
sub-long/2addr v0, v9
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
if-eqz v2, :cond_9
|
|
|
|
.line 1307
|
|
invoke-virtual {p1}, Lokio/ByteString;->size()I
|
|
|
|
move-result v7
|
|
|
|
if-ne v7, v8, :cond_5
|
|
|
|
.line 1309
|
|
invoke-virtual {p1, v3}, Lokio/ByteString;->getByte(I)B
|
|
|
|
move-result v3
|
|
|
|
.line 1310
|
|
invoke-virtual {p1, v4}, Lokio/ByteString;->getByte(I)B
|
|
|
|
move-result p1
|
|
|
|
.line 1311
|
|
:goto_2
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v7
|
|
|
|
cmp-long v4, v0, v7
|
|
|
|
if-gez v4, :cond_9
|
|
|
|
.line 1312
|
|
iget-object v4, v2, Lokio/Segment;->data:[B
|
|
|
|
.line 1313
|
|
iget v7, v2, Lokio/Segment;->pos:I
|
|
|
|
int-to-long v7, v7
|
|
|
|
add-long/2addr v7, p2
|
|
|
|
sub-long/2addr v7, v0
|
|
|
|
long-to-int p2, v7
|
|
|
|
.line 1314
|
|
iget p3, v2, Lokio/Segment;->limit:I
|
|
|
|
:goto_3
|
|
if-ge p2, p3, :cond_4
|
|
|
|
.line 1316
|
|
aget-byte v7, v4, p2
|
|
|
|
if-eq v7, v3, :cond_3
|
|
|
|
if-ne v7, p1, :cond_2
|
|
|
|
goto :goto_4
|
|
|
|
:cond_2
|
|
add-int/lit8 p2, p2, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
.line 1318
|
|
:cond_3
|
|
:goto_4
|
|
iget p0, v2, Lokio/Segment;->pos:I
|
|
|
|
:goto_5
|
|
sub-int/2addr p2, p0
|
|
|
|
int-to-long p0, p2
|
|
|
|
add-long/2addr p0, v0
|
|
|
|
return-wide p0
|
|
|
|
.line 1324
|
|
:cond_4
|
|
iget p2, v2, Lokio/Segment;->limit:I
|
|
|
|
iget p3, v2, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr p2, p3
|
|
|
|
int-to-long p2, p2
|
|
|
|
add-long/2addr v0, p2
|
|
|
|
.line 1326
|
|
iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
move-wide p2, v0
|
|
|
|
goto :goto_2
|
|
|
|
.line 1330
|
|
:cond_5
|
|
invoke-virtual {p1}, Lokio/ByteString;->internalArray$okio()[B
|
|
|
|
move-result-object p1
|
|
|
|
.line 1331
|
|
:goto_6
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v7
|
|
|
|
cmp-long v4, v0, v7
|
|
|
|
if-gez v4, :cond_9
|
|
|
|
.line 1332
|
|
iget-object v4, v2, Lokio/Segment;->data:[B
|
|
|
|
.line 1333
|
|
iget v7, v2, Lokio/Segment;->pos:I
|
|
|
|
int-to-long v7, v7
|
|
|
|
add-long/2addr v7, p2
|
|
|
|
sub-long/2addr v7, v0
|
|
|
|
long-to-int p2, v7
|
|
|
|
.line 1334
|
|
iget p3, v2, Lokio/Segment;->limit:I
|
|
|
|
:goto_7
|
|
if-ge p2, p3, :cond_8
|
|
|
|
.line 1336
|
|
aget-byte v7, v4, p2
|
|
|
|
.line 1337
|
|
array-length v8, p1
|
|
|
|
move v9, v3
|
|
|
|
:goto_8
|
|
if-ge v9, v8, :cond_7
|
|
|
|
aget-byte v10, p1, v9
|
|
|
|
if-ne v7, v10, :cond_6
|
|
|
|
.line 1338
|
|
:goto_9
|
|
iget p0, v2, Lokio/Segment;->pos:I
|
|
|
|
goto :goto_5
|
|
|
|
:cond_6
|
|
add-int/lit8 v9, v9, 0x1
|
|
|
|
goto :goto_8
|
|
|
|
:cond_7
|
|
add-int/lit8 p2, p2, 0x1
|
|
|
|
goto :goto_7
|
|
|
|
.line 1344
|
|
:cond_8
|
|
iget p2, v2, Lokio/Segment;->limit:I
|
|
|
|
iget p3, v2, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr p2, p3
|
|
|
|
int-to-long p2, p2
|
|
|
|
add-long/2addr v0, p2
|
|
|
|
.line 1346
|
|
iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
move-wide p2, v0
|
|
|
|
goto :goto_6
|
|
|
|
:cond_9
|
|
return-wide v5
|
|
|
|
.line 1599
|
|
:cond_a
|
|
:goto_a
|
|
iget v7, v2, Lokio/Segment;->limit:I
|
|
|
|
iget v9, v2, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr v7, v9
|
|
|
|
int-to-long v9, v7
|
|
|
|
add-long/2addr v9, v0
|
|
|
|
cmp-long v7, v9, p2
|
|
|
|
if-lez v7, :cond_12
|
|
|
|
if-eqz v2, :cond_11
|
|
|
|
.line 1307
|
|
invoke-virtual {p1}, Lokio/ByteString;->size()I
|
|
|
|
move-result v7
|
|
|
|
if-ne v7, v8, :cond_d
|
|
|
|
.line 1309
|
|
invoke-virtual {p1, v3}, Lokio/ByteString;->getByte(I)B
|
|
|
|
move-result v3
|
|
|
|
.line 1310
|
|
invoke-virtual {p1, v4}, Lokio/ByteString;->getByte(I)B
|
|
|
|
move-result p1
|
|
|
|
.line 1311
|
|
:goto_b
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v7
|
|
|
|
cmp-long v4, v0, v7
|
|
|
|
if-gez v4, :cond_11
|
|
|
|
.line 1312
|
|
iget-object v4, v2, Lokio/Segment;->data:[B
|
|
|
|
.line 1313
|
|
iget v7, v2, Lokio/Segment;->pos:I
|
|
|
|
int-to-long v7, v7
|
|
|
|
add-long/2addr v7, p2
|
|
|
|
sub-long/2addr v7, v0
|
|
|
|
long-to-int p2, v7
|
|
|
|
.line 1314
|
|
iget p3, v2, Lokio/Segment;->limit:I
|
|
|
|
:goto_c
|
|
if-ge p2, p3, :cond_c
|
|
|
|
.line 1316
|
|
aget-byte v7, v4, p2
|
|
|
|
if-eq v7, v3, :cond_3
|
|
|
|
if-ne v7, p1, :cond_b
|
|
|
|
goto/16 :goto_4
|
|
|
|
:cond_b
|
|
add-int/lit8 p2, p2, 0x1
|
|
|
|
goto :goto_c
|
|
|
|
.line 1324
|
|
:cond_c
|
|
iget p2, v2, Lokio/Segment;->limit:I
|
|
|
|
iget p3, v2, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr p2, p3
|
|
|
|
int-to-long p2, p2
|
|
|
|
add-long/2addr v0, p2
|
|
|
|
.line 1326
|
|
iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
move-wide p2, v0
|
|
|
|
goto :goto_b
|
|
|
|
.line 1330
|
|
:cond_d
|
|
invoke-virtual {p1}, Lokio/ByteString;->internalArray$okio()[B
|
|
|
|
move-result-object p1
|
|
|
|
.line 1331
|
|
:goto_d
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v7
|
|
|
|
cmp-long v4, v0, v7
|
|
|
|
if-gez v4, :cond_11
|
|
|
|
.line 1332
|
|
iget-object v4, v2, Lokio/Segment;->data:[B
|
|
|
|
.line 1333
|
|
iget v7, v2, Lokio/Segment;->pos:I
|
|
|
|
int-to-long v7, v7
|
|
|
|
add-long/2addr v7, p2
|
|
|
|
sub-long/2addr v7, v0
|
|
|
|
long-to-int p2, v7
|
|
|
|
.line 1334
|
|
iget p3, v2, Lokio/Segment;->limit:I
|
|
|
|
:goto_e
|
|
if-ge p2, p3, :cond_10
|
|
|
|
.line 1336
|
|
aget-byte v7, v4, p2
|
|
|
|
.line 1337
|
|
array-length v8, p1
|
|
|
|
move v9, v3
|
|
|
|
:goto_f
|
|
if-ge v9, v8, :cond_f
|
|
|
|
aget-byte v10, p1, v9
|
|
|
|
if-ne v7, v10, :cond_e
|
|
|
|
goto/16 :goto_9
|
|
|
|
:cond_e
|
|
add-int/lit8 v9, v9, 0x1
|
|
|
|
goto :goto_f
|
|
|
|
:cond_f
|
|
add-int/lit8 p2, p2, 0x1
|
|
|
|
goto :goto_e
|
|
|
|
.line 1344
|
|
:cond_10
|
|
iget p2, v2, Lokio/Segment;->limit:I
|
|
|
|
iget p3, v2, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr p2, p3
|
|
|
|
int-to-long p2, p2
|
|
|
|
add-long/2addr v0, p2
|
|
|
|
.line 1346
|
|
iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
move-wide p2, v0
|
|
|
|
goto :goto_d
|
|
|
|
:cond_11
|
|
return-wide v5
|
|
|
|
.line 1601
|
|
:cond_12
|
|
iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
move-wide v0, v9
|
|
|
|
goto/16 :goto_a
|
|
|
|
:cond_13
|
|
const/4 p0, 0x0
|
|
|
|
.line 1585
|
|
check-cast p0, Lokio/Segment;
|
|
|
|
return-wide v5
|
|
|
|
.line 1298
|
|
:cond_14
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, "fromIndex < 0: "
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p2, p3}, Ljava/lang/StringBuilder;->append(J)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 commonRangeEquals(Lokio/Buffer;JLokio/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, "bytes"
|
|
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v0, p1, v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-ltz v0, :cond_3
|
|
|
|
if-ltz p4, :cond_3
|
|
|
|
if-ltz p5, :cond_3
|
|
|
|
.line 1363
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v2
|
|
|
|
sub-long/2addr v2, p1
|
|
|
|
int-to-long v4, p5
|
|
|
|
cmp-long v0, v2, v4
|
|
|
|
if-ltz v0, :cond_3
|
|
|
|
.line 1364
|
|
invoke-virtual {p3}, Lokio/ByteString;->size()I
|
|
|
|
move-result v0
|
|
|
|
sub-int/2addr v0, p4
|
|
|
|
if-ge v0, p5, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
move v0, v1
|
|
|
|
:goto_0
|
|
if-ge v0, p5, :cond_2
|
|
|
|
int-to-long v2, v0
|
|
|
|
add-long/2addr v2, p1
|
|
|
|
.line 1368
|
|
invoke-virtual {p0, v2, v3}, Lokio/Buffer;->getByte(J)B
|
|
|
|
move-result v2
|
|
|
|
add-int v3, p4, v0
|
|
|
|
invoke-virtual {p3, v3}, Lokio/ByteString;->getByte(I)B
|
|
|
|
move-result v3
|
|
|
|
if-eq v2, v3, :cond_1
|
|
|
|
return v1
|
|
|
|
:cond_1
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
|
|
:cond_3
|
|
:goto_1
|
|
return v1
|
|
.end method
|
|
|
|
.method public static final commonRead(Lokio/Buffer;[B)I
|
|
.locals 2
|
|
|
|
const-string v0, "$this$commonRead"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "sink"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 601
|
|
array-length v1, p1
|
|
|
|
invoke-virtual {p0, p1, v0, v1}, Lokio/Buffer;->read([BII)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final commonRead(Lokio/Buffer;[BII)I
|
|
.locals 7
|
|
|
|
const-string v0, "$this$commonRead"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "sink"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 613
|
|
array-length v0, p1
|
|
|
|
int-to-long v1, v0
|
|
|
|
int-to-long v3, p2
|
|
|
|
int-to-long v5, p3
|
|
|
|
invoke-static/range {v1 .. v6}, Lokio/-Util;->checkOffsetAndCount(JJJ)V
|
|
|
|
.line 615
|
|
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 616
|
|
iget v1, v0, Lokio/Segment;->limit:I
|
|
|
|
iget v2, v0, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
invoke-static {p3, v1}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p3
|
|
|
|
.line 617
|
|
iget-object v1, v0, Lokio/Segment;->data:[B
|
|
|
|
.line 618
|
|
iget v2, v0, Lokio/Segment;->pos:I
|
|
|
|
iget v3, v0, Lokio/Segment;->pos:I
|
|
|
|
add-int/2addr v3, p3
|
|
|
|
.line 617
|
|
invoke-static {v1, p1, p2, v2, v3}, Lkotlin/collections/ArraysKt;->copyInto([B[BIII)[B
|
|
|
|
.line 621
|
|
iget p1, v0, Lokio/Segment;->pos:I
|
|
|
|
add-int/2addr p1, p3
|
|
|
|
iput p1, v0, Lokio/Segment;->pos:I
|
|
|
|
.line 622
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide p1
|
|
|
|
int-to-long v1, p3
|
|
|
|
sub-long/2addr p1, v1
|
|
|
|
invoke-virtual {p0, p1, p2}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
.line 624
|
|
iget p1, v0, Lokio/Segment;->pos:I
|
|
|
|
iget p2, v0, Lokio/Segment;->limit:I
|
|
|
|
if-ne p1, p2, :cond_0
|
|
|
|
.line 625
|
|
invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
.line 626
|
|
invoke-static {v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V
|
|
|
|
:cond_0
|
|
return p3
|
|
|
|
:cond_1
|
|
const/4 p0, -0x1
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final commonRead(Lokio/Buffer;Lokio/Buffer;J)J
|
|
.locals 4
|
|
|
|
const-string v0, "$this$commonRead"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "sink"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v2, p2, v0
|
|
|
|
if-ltz v2, :cond_0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v2, :cond_3
|
|
|
|
.line 1221
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v2
|
|
|
|
cmp-long v0, v2, v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
const-wide/16 p0, -0x1
|
|
|
|
return-wide p0
|
|
|
|
.line 1222
|
|
:cond_1
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
cmp-long v0, p2, v0
|
|
|
|
if-lez v0, :cond_2
|
|
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide p2
|
|
|
|
.line 1223
|
|
:cond_2
|
|
invoke-virtual {p1, p0, p2, p3}, Lokio/Buffer;->write(Lokio/Buffer;J)V
|
|
|
|
return-wide p2
|
|
|
|
.line 1220
|
|
:cond_3
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, "byteCount < 0: "
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p2, p3}, Ljava/lang/StringBuilder;->append(J)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 commonReadAll(Lokio/Buffer;Lokio/Sink;)J
|
|
.locals 4
|
|
|
|
const-string v0, "$this$commonReadAll"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "sink"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 784
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v2, v0, v2
|
|
|
|
if-lez v2, :cond_0
|
|
|
|
.line 786
|
|
invoke-interface {p1, p0, v0, v1}, Lokio/Sink;->write(Lokio/Buffer;J)V
|
|
|
|
:cond_0
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public static final commonReadByte(Lokio/Buffer;)B
|
|
.locals 9
|
|
|
|
const-string v0, "$this$commonReadByte"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 285
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 287
|
|
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 288
|
|
iget v1, v0, Lokio/Segment;->pos:I
|
|
|
|
.line 289
|
|
iget v2, v0, Lokio/Segment;->limit:I
|
|
|
|
.line 291
|
|
iget-object v3, v0, Lokio/Segment;->data:[B
|
|
|
|
add-int/lit8 v4, v1, 0x1
|
|
|
|
.line 292
|
|
aget-byte v1, v3, v1
|
|
|
|
.line 293
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v5
|
|
|
|
const-wide/16 v7, 0x1
|
|
|
|
sub-long/2addr v5, v7
|
|
|
|
invoke-virtual {p0, v5, v6}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
if-ne v4, v2, :cond_0
|
|
|
|
.line 296
|
|
invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
.line 297
|
|
invoke-static {v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 299
|
|
:cond_0
|
|
iput v4, v0, Lokio/Segment;->pos:I
|
|
|
|
:goto_0
|
|
return v1
|
|
|
|
.line 285
|
|
:cond_1
|
|
new-instance p0, Ljava/io/EOFException;
|
|
|
|
invoke-direct {p0}, Ljava/io/EOFException;-><init>()V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final commonReadByteArray(Lokio/Buffer;)[B
|
|
.locals 2
|
|
|
|
const-string v0, "$this$commonReadByteArray"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 590
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-virtual {p0, v0, v1}, Lokio/Buffer;->readByteArray(J)[B
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonReadByteArray(Lokio/Buffer;J)[B
|
|
.locals 2
|
|
|
|
const-string v0, "$this$commonReadByteArray"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v0, p1, v0
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
const v0, 0x7fffffff
|
|
|
|
int-to-long v0, v0
|
|
|
|
cmp-long v0, p1, v0
|
|
|
|
if-gtz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 594
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
cmp-long v0, v0, p1
|
|
|
|
if-ltz v0, :cond_1
|
|
|
|
long-to-int p1, p1
|
|
|
|
.line 596
|
|
new-array p1, p1, [B
|
|
|
|
.line 597
|
|
invoke-virtual {p0, p1}, Lokio/Buffer;->readFully([B)V
|
|
|
|
return-object p1
|
|
|
|
.line 594
|
|
:cond_1
|
|
new-instance p0, Ljava/io/EOFException;
|
|
|
|
invoke-direct {p0}, Ljava/io/EOFException;-><init>()V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
.line 593
|
|
:cond_2
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, "byteCount: "
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p1, p2}, Ljava/lang/StringBuilder;->append(J)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 commonReadByteString(Lokio/Buffer;)Lokio/ByteString;
|
|
.locals 2
|
|
|
|
const-string v0, "$this$commonReadByteString"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 752
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-virtual {p0, v0, v1}, Lokio/Buffer;->readByteString(J)Lokio/ByteString;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonReadByteString(Lokio/Buffer;J)Lokio/ByteString;
|
|
.locals 2
|
|
|
|
const-string v0, "$this$commonReadByteString"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v0, p1, v0
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
const v0, 0x7fffffff
|
|
|
|
int-to-long v0, v0
|
|
|
|
cmp-long v0, p1, v0
|
|
|
|
if-gtz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 756
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
cmp-long v0, v0, p1
|
|
|
|
if-ltz v0, :cond_2
|
|
|
|
const/16 v0, 0x1000
|
|
|
|
int-to-long v0, v0
|
|
|
|
cmp-long v0, p1, v0
|
|
|
|
if-ltz v0, :cond_1
|
|
|
|
long-to-int v0, p1
|
|
|
|
.line 759
|
|
invoke-virtual {p0, v0}, Lokio/Buffer;->snapshot(I)Lokio/ByteString;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, p1, p2}, Lokio/Buffer;->skip(J)V
|
|
|
|
return-object v0
|
|
|
|
.line 761
|
|
:cond_1
|
|
new-instance v0, Lokio/ByteString;
|
|
|
|
invoke-virtual {p0, p1, p2}, Lokio/Buffer;->readByteArray(J)[B
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Lokio/ByteString;-><init>([B)V
|
|
|
|
return-object v0
|
|
|
|
.line 756
|
|
:cond_2
|
|
new-instance p0, Ljava/io/EOFException;
|
|
|
|
invoke-direct {p0}, Ljava/io/EOFException;-><init>()V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
.line 755
|
|
:cond_3
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, "byteCount: "
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p1, p2}, Ljava/lang/StringBuilder;->append(J)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 commonReadDecimalLong(Lokio/Buffer;)J
|
|
.locals 15
|
|
|
|
const-string v0, "$this$commonReadDecimalLong"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 636
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-eqz v0, :cond_b
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const-wide/16 v4, -0x7
|
|
|
|
move v1, v0
|
|
|
|
move-wide v5, v4
|
|
|
|
move-wide v3, v2
|
|
|
|
move v2, v1
|
|
|
|
.line 647
|
|
:cond_0
|
|
iget-object v7, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
invoke-static {v7}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 649
|
|
iget-object v8, v7, Lokio/Segment;->data:[B
|
|
|
|
.line 650
|
|
iget v9, v7, Lokio/Segment;->pos:I
|
|
|
|
.line 651
|
|
iget v10, v7, Lokio/Segment;->limit:I
|
|
|
|
:goto_0
|
|
if-ge v9, v10, :cond_7
|
|
|
|
.line 654
|
|
aget-byte v11, v8, v9
|
|
|
|
const/16 v12, 0x30
|
|
|
|
int-to-byte v12, v12
|
|
|
|
if-lt v11, v12, :cond_4
|
|
|
|
const/16 v13, 0x39
|
|
|
|
int-to-byte v13, v13
|
|
|
|
if-gt v11, v13, :cond_4
|
|
|
|
sub-int/2addr v12, v11
|
|
|
|
const-wide v13, -0xcccccccccccccccL
|
|
|
|
cmp-long v13, v3, v13
|
|
|
|
if-ltz v13, :cond_2
|
|
|
|
if-nez v13, :cond_1
|
|
|
|
int-to-long v13, v12
|
|
|
|
cmp-long v13, v13, v5
|
|
|
|
if-gez v13, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const-wide/16 v13, 0xa
|
|
|
|
mul-long/2addr v3, v13
|
|
|
|
int-to-long v11, v12
|
|
|
|
add-long/2addr v3, v11
|
|
|
|
goto :goto_2
|
|
|
|
.line 660
|
|
:cond_2
|
|
:goto_1
|
|
new-instance p0, Lokio/Buffer;
|
|
|
|
invoke-direct {p0}, Lokio/Buffer;-><init>()V
|
|
|
|
invoke-virtual {p0, v3, v4}, Lokio/Buffer;->writeDecimalLong(J)Lokio/Buffer;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, v11}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
|
|
|
|
move-result-object p0
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
.line 661
|
|
invoke-virtual {p0}, Lokio/Buffer;->readByte()B
|
|
|
|
.line 662
|
|
:cond_3
|
|
new-instance v0, Ljava/lang/NumberFormatException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "Number too large: "
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Lokio/Buffer;->readUtf8()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v1, p0}, 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
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
|
|
:cond_4
|
|
const/16 v12, 0x2d
|
|
|
|
int-to-byte v12, v12
|
|
|
|
const/4 v13, 0x1
|
|
|
|
if-ne v11, v12, :cond_5
|
|
|
|
if-nez v0, :cond_5
|
|
|
|
const-wide/16 v11, 0x1
|
|
|
|
sub-long/2addr v5, v11
|
|
|
|
move v1, v13
|
|
|
|
:goto_2
|
|
add-int/lit8 v9, v9, 0x1
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
if-eqz v0, :cond_6
|
|
|
|
move v2, v13
|
|
|
|
goto :goto_3
|
|
|
|
.line 671
|
|
:cond_6
|
|
new-instance p0, Ljava/lang/NumberFormatException;
|
|
|
|
.line 672
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "Expected leading [0-9] or \'-\' character but was 0x"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-static {v11}, Lokio/-Util;->toHexString(B)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 671
|
|
invoke-direct {p0, v0}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
:cond_7
|
|
:goto_3
|
|
if-ne v9, v10, :cond_8
|
|
|
|
.line 683
|
|
invoke-virtual {v7}, Lokio/Segment;->pop()Lokio/Segment;
|
|
|
|
move-result-object v8
|
|
|
|
iput-object v8, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
.line 684
|
|
invoke-static {v7}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V
|
|
|
|
goto :goto_4
|
|
|
|
.line 686
|
|
:cond_8
|
|
iput v9, v7, Lokio/Segment;->pos:I
|
|
|
|
:goto_4
|
|
if-nez v2, :cond_9
|
|
|
|
.line 688
|
|
iget-object v7, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
if-nez v7, :cond_0
|
|
|
|
.line 690
|
|
:cond_9
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v5
|
|
|
|
int-to-long v7, v0
|
|
|
|
sub-long/2addr v5, v7
|
|
|
|
invoke-virtual {p0, v5, v6}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
if-eqz v1, :cond_a
|
|
|
|
goto :goto_5
|
|
|
|
:cond_a
|
|
neg-long v3, v3
|
|
|
|
:goto_5
|
|
return-wide v3
|
|
|
|
.line 636
|
|
:cond_b
|
|
new-instance p0, Ljava/io/EOFException;
|
|
|
|
invoke-direct {p0}, Ljava/io/EOFException;-><init>()V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final commonReadFully(Lokio/Buffer;Lokio/Buffer;J)V
|
|
.locals 2
|
|
|
|
const-string v0, "$this$commonReadFully"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "sink"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 776
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
cmp-long v0, v0, p2
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
.line 780
|
|
invoke-virtual {p1, p0, p2, p3}, Lokio/Buffer;->write(Lokio/Buffer;J)V
|
|
|
|
return-void
|
|
|
|
.line 777
|
|
:cond_0
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide p2
|
|
|
|
invoke-virtual {p1, p0, p2, p3}, Lokio/Buffer;->write(Lokio/Buffer;J)V
|
|
|
|
.line 778
|
|
new-instance p0, Ljava/io/EOFException;
|
|
|
|
invoke-direct {p0}, Ljava/io/EOFException;-><init>()V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final commonReadFully(Lokio/Buffer;[B)V
|
|
.locals 3
|
|
|
|
const-string v0, "$this$commonReadFully"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "sink"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 605
|
|
:goto_0
|
|
array-length v1, p1
|
|
|
|
if-ge v0, v1, :cond_1
|
|
|
|
.line 606
|
|
array-length v1, p1
|
|
|
|
sub-int/2addr v1, v0
|
|
|
|
invoke-virtual {p0, p1, v0, v1}, Lokio/Buffer;->read([BII)I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, -0x1
|
|
|
|
if-eq v1, v2, :cond_0
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
goto :goto_0
|
|
|
|
.line 607
|
|
:cond_0
|
|
new-instance p0, Ljava/io/EOFException;
|
|
|
|
invoke-direct {p0}, Ljava/io/EOFException;-><init>()V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final commonReadHexadecimalUnsignedLong(Lokio/Buffer;)J
|
|
.locals 14
|
|
|
|
const-string v0, "$this$commonReadHexadecimalUnsignedLong"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 695
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-eqz v0, :cond_9
|
|
|
|
const/4 v0, 0x0
|
|
|
|
move v1, v0
|
|
|
|
move-wide v4, v2
|
|
|
|
.line 702
|
|
:cond_0
|
|
iget-object v6, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
invoke-static {v6}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 704
|
|
iget-object v7, v6, Lokio/Segment;->data:[B
|
|
|
|
.line 705
|
|
iget v8, v6, Lokio/Segment;->pos:I
|
|
|
|
.line 706
|
|
iget v9, v6, Lokio/Segment;->limit:I
|
|
|
|
:goto_0
|
|
if-ge v8, v9, :cond_6
|
|
|
|
.line 711
|
|
aget-byte v10, v7, v8
|
|
|
|
const/16 v11, 0x30
|
|
|
|
int-to-byte v11, v11
|
|
|
|
if-lt v10, v11, :cond_1
|
|
|
|
const/16 v12, 0x39
|
|
|
|
int-to-byte v12, v12
|
|
|
|
if-gt v10, v12, :cond_1
|
|
|
|
sub-int v11, v10, v11
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
const/16 v11, 0x61
|
|
|
|
int-to-byte v11, v11
|
|
|
|
if-lt v10, v11, :cond_2
|
|
|
|
const/16 v12, 0x66
|
|
|
|
int-to-byte v12, v12
|
|
|
|
if-gt v10, v12, :cond_2
|
|
|
|
:goto_1
|
|
sub-int v11, v10, v11
|
|
|
|
add-int/lit8 v11, v11, 0xa
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/16 v11, 0x41
|
|
|
|
int-to-byte v11, v11
|
|
|
|
if-lt v10, v11, :cond_4
|
|
|
|
const/16 v12, 0x46
|
|
|
|
int-to-byte v12, v12
|
|
|
|
if-gt v10, v12, :cond_4
|
|
|
|
goto :goto_1
|
|
|
|
:goto_2
|
|
const-wide/high16 v12, -0x1000000000000000L # -3.105036184601418E231
|
|
|
|
and-long/2addr v12, v4
|
|
|
|
cmp-long v12, v12, v2
|
|
|
|
if-nez v12, :cond_3
|
|
|
|
const/4 v10, 0x4
|
|
|
|
shl-long/2addr v4, v10
|
|
|
|
int-to-long v10, v11
|
|
|
|
or-long/2addr v4, v10
|
|
|
|
add-int/lit8 v8, v8, 0x1
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 730
|
|
:cond_3
|
|
new-instance p0, Lokio/Buffer;
|
|
|
|
invoke-direct {p0}, Lokio/Buffer;-><init>()V
|
|
|
|
invoke-virtual {p0, v4, v5}, Lokio/Buffer;->writeHexadecimalUnsignedLong(J)Lokio/Buffer;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, v10}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
|
|
|
|
move-result-object p0
|
|
|
|
.line 731
|
|
new-instance v0, Ljava/lang/NumberFormatException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "Number too large: "
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Lokio/Buffer;->readUtf8()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v1, p0}, 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
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
|
|
:cond_4
|
|
if-eqz v0, :cond_5
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
.line 720
|
|
:cond_5
|
|
new-instance p0, Ljava/lang/NumberFormatException;
|
|
|
|
.line 721
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "Expected leading [0-9a-fA-F] character but was 0x"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-static {v10}, Lokio/-Util;->toHexString(B)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 720
|
|
invoke-direct {p0, v0}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
:cond_6
|
|
:goto_3
|
|
if-ne v8, v9, :cond_7
|
|
|
|
.line 741
|
|
invoke-virtual {v6}, Lokio/Segment;->pop()Lokio/Segment;
|
|
|
|
move-result-object v7
|
|
|
|
iput-object v7, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
.line 742
|
|
invoke-static {v6}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V
|
|
|
|
goto :goto_4
|
|
|
|
.line 744
|
|
:cond_7
|
|
iput v8, v6, Lokio/Segment;->pos:I
|
|
|
|
:goto_4
|
|
if-nez v1, :cond_8
|
|
|
|
.line 746
|
|
iget-object v6, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
if-nez v6, :cond_0
|
|
|
|
.line 748
|
|
:cond_8
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v1
|
|
|
|
int-to-long v6, v0
|
|
|
|
sub-long/2addr v1, v6
|
|
|
|
invoke-virtual {p0, v1, v2}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
return-wide v4
|
|
|
|
.line 695
|
|
:cond_9
|
|
new-instance p0, Ljava/io/EOFException;
|
|
|
|
invoke-direct {p0}, Ljava/io/EOFException;-><init>()V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final commonReadInt(Lokio/Buffer;)I
|
|
.locals 9
|
|
|
|
const-string v0, "$this$commonReadInt"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 333
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x4
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-ltz v0, :cond_2
|
|
|
|
.line 335
|
|
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 336
|
|
iget v1, v0, Lokio/Segment;->pos:I
|
|
|
|
.line 337
|
|
iget v4, v0, Lokio/Segment;->limit:I
|
|
|
|
sub-int v5, v4, v1
|
|
|
|
int-to-long v5, v5
|
|
|
|
cmp-long v5, v5, v2
|
|
|
|
if-gez v5, :cond_0
|
|
|
|
.line 341
|
|
invoke-virtual {p0}, Lokio/Buffer;->readByte()B
|
|
|
|
move-result v0
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
shl-int/lit8 v0, v0, 0x18
|
|
|
|
.line 342
|
|
invoke-virtual {p0}, Lokio/Buffer;->readByte()B
|
|
|
|
move-result v1
|
|
|
|
and-int/lit16 v1, v1, 0xff
|
|
|
|
shl-int/lit8 v1, v1, 0x10
|
|
|
|
or-int/2addr v0, v1
|
|
|
|
.line 343
|
|
invoke-virtual {p0}, Lokio/Buffer;->readByte()B
|
|
|
|
move-result v1
|
|
|
|
and-int/lit16 v1, v1, 0xff
|
|
|
|
shl-int/lit8 v1, v1, 0x8
|
|
|
|
or-int/2addr v0, v1
|
|
|
|
.line 344
|
|
invoke-virtual {p0}, Lokio/Buffer;->readByte()B
|
|
|
|
move-result p0
|
|
|
|
and-int/lit16 p0, p0, 0xff
|
|
|
|
or-int/2addr p0, v0
|
|
|
|
return p0
|
|
|
|
.line 347
|
|
:cond_0
|
|
iget-object v5, v0, Lokio/Segment;->data:[B
|
|
|
|
add-int/lit8 v6, v1, 0x1
|
|
|
|
.line 348
|
|
aget-byte v7, v5, v1
|
|
|
|
and-int/lit16 v7, v7, 0xff
|
|
|
|
shl-int/lit8 v7, v7, 0x18
|
|
|
|
add-int/lit8 v8, v1, 0x2
|
|
|
|
.line 349
|
|
aget-byte v6, v5, v6
|
|
|
|
and-int/lit16 v6, v6, 0xff
|
|
|
|
shl-int/lit8 v6, v6, 0x10
|
|
|
|
or-int/2addr v6, v7
|
|
|
|
add-int/lit8 v7, v1, 0x3
|
|
|
|
.line 350
|
|
aget-byte v8, v5, v8
|
|
|
|
and-int/lit16 v8, v8, 0xff
|
|
|
|
shl-int/lit8 v8, v8, 0x8
|
|
|
|
or-int/2addr v6, v8
|
|
|
|
add-int/lit8 v1, v1, 0x4
|
|
|
|
.line 351
|
|
aget-byte v5, v5, v7
|
|
|
|
and-int/lit16 v5, v5, 0xff
|
|
|
|
or-int/2addr v5, v6
|
|
|
|
.line 352
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v6
|
|
|
|
sub-long/2addr v6, v2
|
|
|
|
invoke-virtual {p0, v6, v7}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
if-ne v1, v4, :cond_1
|
|
|
|
.line 355
|
|
invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
.line 356
|
|
invoke-static {v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 358
|
|
:cond_1
|
|
iput v1, v0, Lokio/Segment;->pos:I
|
|
|
|
:goto_0
|
|
return v5
|
|
|
|
.line 333
|
|
:cond_2
|
|
new-instance p0, Ljava/io/EOFException;
|
|
|
|
invoke-direct {p0}, Ljava/io/EOFException;-><init>()V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final commonReadLong(Lokio/Buffer;)J
|
|
.locals 15
|
|
|
|
const-string v0, "$this$commonReadLong"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 365
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x8
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-ltz v0, :cond_2
|
|
|
|
.line 367
|
|
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 368
|
|
iget v1, v0, Lokio/Segment;->pos:I
|
|
|
|
.line 369
|
|
iget v4, v0, Lokio/Segment;->limit:I
|
|
|
|
sub-int v5, v4, v1
|
|
|
|
int-to-long v5, v5
|
|
|
|
cmp-long v5, v5, v2
|
|
|
|
const/16 v6, 0x20
|
|
|
|
if-gez v5, :cond_0
|
|
|
|
.line 373
|
|
invoke-virtual {p0}, Lokio/Buffer;->readInt()I
|
|
|
|
move-result v0
|
|
|
|
int-to-long v0, v0
|
|
|
|
const-wide v2, 0xffffffffL
|
|
|
|
and-long/2addr v0, v2
|
|
|
|
shl-long/2addr v0, v6
|
|
|
|
.line 374
|
|
invoke-virtual {p0}, Lokio/Buffer;->readInt()I
|
|
|
|
move-result p0
|
|
|
|
int-to-long v4, p0
|
|
|
|
and-long/2addr v2, v4
|
|
|
|
or-long/2addr v0, v2
|
|
|
|
return-wide v0
|
|
|
|
.line 377
|
|
:cond_0
|
|
iget-object v5, v0, Lokio/Segment;->data:[B
|
|
|
|
add-int/lit8 v7, v1, 0x1
|
|
|
|
.line 378
|
|
aget-byte v8, v5, v1
|
|
|
|
int-to-long v8, v8
|
|
|
|
const-wide/16 v10, 0xff
|
|
|
|
and-long/2addr v8, v10
|
|
|
|
const/16 v12, 0x38
|
|
|
|
shl-long/2addr v8, v12
|
|
|
|
add-int/lit8 v12, v1, 0x2
|
|
|
|
.line 379
|
|
aget-byte v7, v5, v7
|
|
|
|
int-to-long v13, v7
|
|
|
|
and-long/2addr v13, v10
|
|
|
|
const/16 v7, 0x30
|
|
|
|
shl-long/2addr v13, v7
|
|
|
|
or-long v7, v8, v13
|
|
|
|
add-int/lit8 v9, v1, 0x3
|
|
|
|
.line 380
|
|
aget-byte v12, v5, v12
|
|
|
|
int-to-long v12, v12
|
|
|
|
and-long/2addr v12, v10
|
|
|
|
const/16 v14, 0x28
|
|
|
|
shl-long/2addr v12, v14
|
|
|
|
or-long/2addr v7, v12
|
|
|
|
add-int/lit8 v12, v1, 0x4
|
|
|
|
.line 381
|
|
aget-byte v9, v5, v9
|
|
|
|
int-to-long v13, v9
|
|
|
|
and-long/2addr v13, v10
|
|
|
|
shl-long/2addr v13, v6
|
|
|
|
or-long v6, v7, v13
|
|
|
|
add-int/lit8 v8, v1, 0x5
|
|
|
|
.line 382
|
|
aget-byte v9, v5, v12
|
|
|
|
int-to-long v12, v9
|
|
|
|
and-long/2addr v12, v10
|
|
|
|
const/16 v9, 0x18
|
|
|
|
shl-long/2addr v12, v9
|
|
|
|
or-long/2addr v6, v12
|
|
|
|
add-int/lit8 v9, v1, 0x6
|
|
|
|
.line 383
|
|
aget-byte v8, v5, v8
|
|
|
|
int-to-long v12, v8
|
|
|
|
and-long/2addr v12, v10
|
|
|
|
const/16 v8, 0x10
|
|
|
|
shl-long/2addr v12, v8
|
|
|
|
or-long/2addr v6, v12
|
|
|
|
add-int/lit8 v8, v1, 0x7
|
|
|
|
.line 384
|
|
aget-byte v9, v5, v9
|
|
|
|
int-to-long v12, v9
|
|
|
|
and-long/2addr v12, v10
|
|
|
|
const/16 v9, 0x8
|
|
|
|
shl-long/2addr v12, v9
|
|
|
|
or-long/2addr v6, v12
|
|
|
|
add-int/2addr v1, v9
|
|
|
|
.line 385
|
|
aget-byte v5, v5, v8
|
|
|
|
int-to-long v8, v5
|
|
|
|
and-long/2addr v8, v10
|
|
|
|
or-long v5, v6, v8
|
|
|
|
.line 386
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v7
|
|
|
|
sub-long/2addr v7, v2
|
|
|
|
invoke-virtual {p0, v7, v8}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
if-ne v1, v4, :cond_1
|
|
|
|
.line 389
|
|
invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
.line 390
|
|
invoke-static {v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 392
|
|
:cond_1
|
|
iput v1, v0, Lokio/Segment;->pos:I
|
|
|
|
:goto_0
|
|
return-wide v5
|
|
|
|
.line 365
|
|
:cond_2
|
|
new-instance p0, Ljava/io/EOFException;
|
|
|
|
invoke-direct {p0}, Ljava/io/EOFException;-><init>()V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final commonReadShort(Lokio/Buffer;)S
|
|
.locals 9
|
|
|
|
const-string v0, "$this$commonReadShort"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 306
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x2
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-ltz v0, :cond_2
|
|
|
|
.line 308
|
|
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 309
|
|
iget v1, v0, Lokio/Segment;->pos:I
|
|
|
|
.line 310
|
|
iget v4, v0, Lokio/Segment;->limit:I
|
|
|
|
sub-int v5, v4, v1
|
|
|
|
const/4 v6, 0x2
|
|
|
|
if-ge v5, v6, :cond_0
|
|
|
|
.line 314
|
|
invoke-virtual {p0}, Lokio/Buffer;->readByte()B
|
|
|
|
move-result v0
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
shl-int/lit8 v0, v0, 0x8
|
|
|
|
invoke-virtual {p0}, Lokio/Buffer;->readByte()B
|
|
|
|
move-result p0
|
|
|
|
and-int/lit16 p0, p0, 0xff
|
|
|
|
or-int/2addr p0, v0
|
|
|
|
int-to-short p0, p0
|
|
|
|
return p0
|
|
|
|
.line 318
|
|
:cond_0
|
|
iget-object v5, v0, Lokio/Segment;->data:[B
|
|
|
|
add-int/lit8 v7, v1, 0x1
|
|
|
|
.line 319
|
|
aget-byte v8, v5, v1
|
|
|
|
and-int/lit16 v8, v8, 0xff
|
|
|
|
shl-int/lit8 v8, v8, 0x8
|
|
|
|
add-int/2addr v1, v6
|
|
|
|
aget-byte v5, v5, v7
|
|
|
|
and-int/lit16 v5, v5, 0xff
|
|
|
|
or-int/2addr v5, v8
|
|
|
|
.line 320
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v6
|
|
|
|
sub-long/2addr v6, v2
|
|
|
|
invoke-virtual {p0, v6, v7}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
if-ne v1, v4, :cond_1
|
|
|
|
.line 323
|
|
invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
.line 324
|
|
invoke-static {v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 326
|
|
:cond_1
|
|
iput v1, v0, Lokio/Segment;->pos:I
|
|
|
|
:goto_0
|
|
int-to-short p0, v5
|
|
|
|
return p0
|
|
|
|
.line 306
|
|
:cond_2
|
|
new-instance p0, Ljava/io/EOFException;
|
|
|
|
invoke-direct {p0}, Ljava/io/EOFException;-><init>()V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final commonReadUtf8(Lokio/Buffer;J)Ljava/lang/String;
|
|
.locals 6
|
|
|
|
const-string v0, "$this$commonReadUtf8"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v0, p1, v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
const v2, 0x7fffffff
|
|
|
|
int-to-long v2, v2
|
|
|
|
cmp-long v2, p1, v2
|
|
|
|
if-gtz v2, :cond_0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v2, v1
|
|
|
|
:goto_0
|
|
if-eqz v2, :cond_5
|
|
|
|
.line 793
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v2
|
|
|
|
cmp-long v2, v2, p1
|
|
|
|
if-ltz v2, :cond_4
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
const-string p0, ""
|
|
|
|
return-object p0
|
|
|
|
.line 796
|
|
:cond_1
|
|
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 797
|
|
iget v2, v0, Lokio/Segment;->pos:I
|
|
|
|
int-to-long v2, v2
|
|
|
|
add-long/2addr v2, p1
|
|
|
|
iget v4, v0, Lokio/Segment;->limit:I
|
|
|
|
int-to-long v4, v4
|
|
|
|
cmp-long v2, v2, v4
|
|
|
|
if-lez v2, :cond_2
|
|
|
|
.line 800
|
|
invoke-virtual {p0, p1, p2}, Lokio/Buffer;->readByteArray(J)[B
|
|
|
|
move-result-object p0
|
|
|
|
const/4 p1, 0x3
|
|
|
|
const/4 p2, 0x0
|
|
|
|
invoke-static {p0, v1, v1, p1, p2}, Lokio/internal/_Utf8Kt;->commonToUtf8String$default([BIIILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 803
|
|
:cond_2
|
|
iget-object v1, v0, Lokio/Segment;->data:[B
|
|
|
|
iget v2, v0, Lokio/Segment;->pos:I
|
|
|
|
iget v3, v0, Lokio/Segment;->pos:I
|
|
|
|
long-to-int v4, p1
|
|
|
|
add-int/2addr v3, v4
|
|
|
|
invoke-static {v1, v2, v3}, Lokio/internal/_Utf8Kt;->commonToUtf8String([BII)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
.line 804
|
|
iget v2, v0, Lokio/Segment;->pos:I
|
|
|
|
add-int/2addr v2, v4
|
|
|
|
iput v2, v0, Lokio/Segment;->pos:I
|
|
|
|
.line 805
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v2
|
|
|
|
sub-long/2addr v2, p1
|
|
|
|
invoke-virtual {p0, v2, v3}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
.line 807
|
|
iget p1, v0, Lokio/Segment;->pos:I
|
|
|
|
iget p2, v0, Lokio/Segment;->limit:I
|
|
|
|
if-ne p1, p2, :cond_3
|
|
|
|
.line 808
|
|
invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
.line 809
|
|
invoke-static {v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V
|
|
|
|
:cond_3
|
|
return-object v1
|
|
|
|
.line 793
|
|
:cond_4
|
|
new-instance p0, Ljava/io/EOFException;
|
|
|
|
invoke-direct {p0}, Ljava/io/EOFException;-><init>()V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
.line 792
|
|
:cond_5
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, "byteCount: "
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p1, p2}, Ljava/lang/StringBuilder;->append(J)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 commonReadUtf8CodePoint(Lokio/Buffer;)I
|
|
.locals 12
|
|
|
|
const-string v0, "$this$commonReadUtf8CodePoint"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 842
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-eqz v0, :cond_b
|
|
|
|
.line 844
|
|
invoke-virtual {p0, v2, v3}, Lokio/Buffer;->getByte(J)B
|
|
|
|
move-result v0
|
|
|
|
and-int/lit16 v1, v0, 0x80
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/16 v3, 0x80
|
|
|
|
const v4, 0xfffd
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
and-int/lit8 v1, v0, 0x7f
|
|
|
|
const/4 v5, 0x0
|
|
|
|
move v6, v5
|
|
|
|
move v5, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
and-int/lit16 v1, v0, 0xe0
|
|
|
|
const/16 v5, 0xc0
|
|
|
|
if-ne v1, v5, :cond_1
|
|
|
|
and-int/lit8 v1, v0, 0x1f
|
|
|
|
const/4 v5, 0x2
|
|
|
|
move v6, v3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
and-int/lit16 v1, v0, 0xf0
|
|
|
|
const/16 v5, 0xe0
|
|
|
|
if-ne v1, v5, :cond_2
|
|
|
|
and-int/lit8 v1, v0, 0xf
|
|
|
|
const/4 v5, 0x3
|
|
|
|
const/16 v6, 0x800
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
and-int/lit16 v1, v0, 0xf8
|
|
|
|
const/16 v5, 0xf0
|
|
|
|
if-ne v1, v5, :cond_a
|
|
|
|
and-int/lit8 v1, v0, 0x7
|
|
|
|
const/4 v5, 0x4
|
|
|
|
const/high16 v6, 0x10000
|
|
|
|
.line 881
|
|
:goto_0
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v7
|
|
|
|
int-to-long v9, v5
|
|
|
|
cmp-long v7, v7, v9
|
|
|
|
if-ltz v7, :cond_9
|
|
|
|
:goto_1
|
|
if-ge v2, v5, :cond_4
|
|
|
|
int-to-long v7, v2
|
|
|
|
.line 889
|
|
invoke-virtual {p0, v7, v8}, Lokio/Buffer;->getByte(J)B
|
|
|
|
move-result v0
|
|
|
|
and-int/lit16 v11, v0, 0xc0
|
|
|
|
if-ne v11, v3, :cond_3
|
|
|
|
shl-int/lit8 v1, v1, 0x6
|
|
|
|
and-int/lit8 v0, v0, 0x3f
|
|
|
|
or-int/2addr v1, v0
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
.line 895
|
|
:cond_3
|
|
invoke-virtual {p0, v7, v8}, Lokio/Buffer;->skip(J)V
|
|
|
|
return v4
|
|
|
|
.line 900
|
|
:cond_4
|
|
invoke-virtual {p0, v9, v10}, Lokio/Buffer;->skip(J)V
|
|
|
|
const p0, 0x10ffff
|
|
|
|
if-le v1, p0, :cond_5
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
const p0, 0xd800
|
|
|
|
if-le p0, v1, :cond_6
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
const p0, 0xdfff
|
|
|
|
if-lt p0, v1, :cond_7
|
|
|
|
goto :goto_3
|
|
|
|
:cond_7
|
|
:goto_2
|
|
if-ge v1, v6, :cond_8
|
|
|
|
goto :goto_3
|
|
|
|
:cond_8
|
|
move v4, v1
|
|
|
|
:goto_3
|
|
return v4
|
|
|
|
.line 882
|
|
:cond_9
|
|
new-instance v1, Ljava/io/EOFException;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "size < "
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, ": "
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v3
|
|
|
|
invoke-virtual {v2, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v2, " (to read code point prefixed 0x"
|
|
|
|
invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {v0}, Lokio/-Util;->toHexString(B)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const/16 v0, 0x29
|
|
|
|
invoke-virtual {p0, v0}, 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
|
|
|
|
invoke-direct {v1, p0}, Ljava/io/EOFException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v1, Ljava/lang/Throwable;
|
|
|
|
throw v1
|
|
|
|
:cond_a
|
|
const-wide/16 v0, 0x1
|
|
|
|
.line 876
|
|
invoke-virtual {p0, v0, v1}, Lokio/Buffer;->skip(J)V
|
|
|
|
return v4
|
|
|
|
.line 842
|
|
:cond_b
|
|
new-instance p0, Ljava/io/EOFException;
|
|
|
|
invoke-direct {p0}, Ljava/io/EOFException;-><init>()V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final commonReadUtf8Line(Lokio/Buffer;)Ljava/lang/String;
|
|
.locals 4
|
|
|
|
const-string v0, "$this$commonReadUtf8Line"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/16 v0, 0xa
|
|
|
|
int-to-byte v0, v0
|
|
|
|
.line 816
|
|
invoke-virtual {p0, v0}, Lokio/Buffer;->indexOf(B)J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
cmp-long v2, v0, v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 819
|
|
invoke-static {p0, v0, v1}, Lokio/internal/BufferKt;->readUtf8Line(Lokio/Buffer;J)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_0
|
|
|
|
.line 820
|
|
:cond_0
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-virtual {p0, v0, v1}, Lokio/Buffer;->readUtf8(J)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonReadUtf8LineStrict(Lokio/Buffer;J)Ljava/lang/String;
|
|
.locals 11
|
|
|
|
const-string v0, "$this$commonReadUtf8LineStrict"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v0, p1, v0
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_4
|
|
|
|
const-wide v0, 0x7fffffffffffffffL
|
|
|
|
cmp-long v2, p1, v0
|
|
|
|
const-wide/16 v3, 0x1
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
add-long v0, p1, v3
|
|
|
|
:goto_1
|
|
const/16 v2, 0xa
|
|
|
|
int-to-byte v2, v2
|
|
|
|
const-wide/16 v7, 0x0
|
|
|
|
move-object v5, p0
|
|
|
|
move v6, v2
|
|
|
|
move-wide v9, v0
|
|
|
|
.line 828
|
|
invoke-virtual/range {v5 .. v10}, Lokio/Buffer;->indexOf(BJJ)J
|
|
|
|
move-result-wide v5
|
|
|
|
const-wide/16 v7, -0x1
|
|
|
|
cmp-long v7, v5, v7
|
|
|
|
if-eqz v7, :cond_2
|
|
|
|
.line 829
|
|
invoke-static {p0, v5, v6}, Lokio/internal/BufferKt;->readUtf8Line(Lokio/Buffer;J)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 832
|
|
:cond_2
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v5
|
|
|
|
cmp-long v5, v0, v5
|
|
|
|
if-gez v5, :cond_3
|
|
|
|
sub-long v3, v0, v3
|
|
|
|
.line 831
|
|
invoke-virtual {p0, v3, v4}, Lokio/Buffer;->getByte(J)B
|
|
|
|
move-result v3
|
|
|
|
const/16 v4, 0xd
|
|
|
|
int-to-byte v4, v4
|
|
|
|
if-ne v3, v4, :cond_3
|
|
|
|
.line 832
|
|
invoke-virtual {p0, v0, v1}, Lokio/Buffer;->getByte(J)B
|
|
|
|
move-result v3
|
|
|
|
if-ne v3, v2, :cond_3
|
|
|
|
.line 833
|
|
invoke-static {p0, v0, v1}, Lokio/internal/BufferKt;->readUtf8Line(Lokio/Buffer;J)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 835
|
|
:cond_3
|
|
new-instance v6, Lokio/Buffer;
|
|
|
|
invoke-direct {v6}, Lokio/Buffer;-><init>()V
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
.line 836
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
const/16 v4, 0x20
|
|
|
|
int-to-long v4, v4
|
|
|
|
.line 1534
|
|
invoke-static {v4, v5, v0, v1}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide v4
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, v6
|
|
|
|
.line 836
|
|
invoke-virtual/range {v0 .. v5}, Lokio/Buffer;->copyTo(Lokio/Buffer;JJ)Lokio/Buffer;
|
|
|
|
.line 837
|
|
new-instance v0, Ljava/io/EOFException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "\\n not found: limit="
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v2
|
|
|
|
invoke-static {v2, v3, p1, p2}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide p0
|
|
|
|
invoke-virtual {v1, p0, p1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, " content="
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
.line 838
|
|
invoke-virtual {v6}, Lokio/Buffer;->readByteString()Lokio/ByteString;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lokio/ByteString;->hex()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const/16 p1, 0x2026
|
|
|
|
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
|
|
|
|
.line 837
|
|
invoke-direct {v0, p0}, Ljava/io/EOFException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
|
|
.line 826
|
|
:cond_4
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, "limit < 0: "
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p1, p2}, Ljava/lang/StringBuilder;->append(J)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 commonSelect(Lokio/Buffer;Lokio/Options;)I
|
|
.locals 3
|
|
|
|
const-string v0, "$this$commonSelect"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "options"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x2
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 766
|
|
invoke-static {p0, p1, v2, v0, v1}, Lokio/internal/BufferKt;->selectPrefix$default(Lokio/Buffer;Lokio/Options;ZILjava/lang/Object;)I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 770
|
|
:cond_0
|
|
invoke-virtual {p1}, Lokio/Options;->getByteStrings$okio()[Lokio/ByteString;
|
|
|
|
move-result-object p1
|
|
|
|
aget-object p1, p1, v0
|
|
|
|
invoke-virtual {p1}, Lokio/ByteString;->size()I
|
|
|
|
move-result p1
|
|
|
|
int-to-long v1, p1
|
|
|
|
.line 771
|
|
invoke-virtual {p0, v1, v2}, Lokio/Buffer;->skip(J)V
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public static final commonSkip(Lokio/Buffer;J)V
|
|
.locals 6
|
|
|
|
const-string v0, "$this$commonSkip"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
:goto_0
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v0, p1, v0
|
|
|
|
if-lez v0, :cond_2
|
|
|
|
.line 410
|
|
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 412
|
|
iget v1, v0, Lokio/Segment;->limit:I
|
|
|
|
iget v2, v0, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
int-to-long v1, v1
|
|
|
|
.line 1532
|
|
invoke-static {p1, p2, v1, v2}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide v1
|
|
|
|
long-to-int v1, v1
|
|
|
|
.line 413
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v2
|
|
|
|
int-to-long v4, v1
|
|
|
|
sub-long/2addr v2, v4
|
|
|
|
invoke-virtual {p0, v2, v3}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
sub-long/2addr p1, v4
|
|
|
|
.line 415
|
|
iget v2, v0, Lokio/Segment;->pos:I
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
iput v2, v0, Lokio/Segment;->pos:I
|
|
|
|
.line 417
|
|
iget v1, v0, Lokio/Segment;->pos:I
|
|
|
|
iget v2, v0, Lokio/Segment;->limit:I
|
|
|
|
if-ne v1, v2, :cond_0
|
|
|
|
.line 418
|
|
invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
.line 419
|
|
invoke-static {v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 410
|
|
:cond_1
|
|
new-instance p0, Ljava/io/EOFException;
|
|
|
|
invoke-direct {p0}, Ljava/io/EOFException;-><init>()V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final commonSnapshot(Lokio/Buffer;)Lokio/ByteString;
|
|
.locals 4
|
|
|
|
const-string v0, "$this$commonSnapshot"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1448
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
const v2, 0x7fffffff
|
|
|
|
int-to-long v2, v2
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-gtz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 1449
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
long-to-int v0, v0
|
|
|
|
invoke-virtual {p0, v0}, Lokio/Buffer;->snapshot(I)Lokio/ByteString;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 1448
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "size > Int.MAX_VALUE: "
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v1
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final commonSnapshot(Lokio/Buffer;I)Lokio/ByteString;
|
|
.locals 6
|
|
|
|
const-string v0, "$this$commonSnapshot"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 1454
|
|
sget-object p0, Lokio/ByteString;->EMPTY:Lokio/ByteString;
|
|
|
|
return-object p0
|
|
|
|
.line 1455
|
|
:cond_0
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
int-to-long v4, p1
|
|
|
|
invoke-static/range {v0 .. v5}, Lokio/-Util;->checkOffsetAndCount(JJJ)V
|
|
|
|
.line 1460
|
|
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
move v2, v1
|
|
|
|
move v3, v2
|
|
|
|
:goto_0
|
|
if-ge v2, p1, :cond_2
|
|
|
|
.line 1462
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
iget v4, v0, Lokio/Segment;->limit:I
|
|
|
|
iget v5, v0, Lokio/Segment;->pos:I
|
|
|
|
if-eq v4, v5, :cond_1
|
|
|
|
.line 1465
|
|
iget v4, v0, Lokio/Segment;->limit:I
|
|
|
|
iget v5, v0, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr v4, v5
|
|
|
|
add-int/2addr v2, v4
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
.line 1467
|
|
iget-object v0, v0, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
goto :goto_0
|
|
|
|
.line 1463
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/AssertionError;
|
|
|
|
const-string p1, "s.limit == s.pos"
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
.line 1471
|
|
:cond_2
|
|
new-array v0, v3, [[B
|
|
|
|
mul-int/lit8 v3, v3, 0x2
|
|
|
|
.line 1472
|
|
new-array v2, v3, [I
|
|
|
|
.line 1475
|
|
iget-object p0, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
move v3, v1
|
|
|
|
:goto_1
|
|
if-ge v1, p1, :cond_3
|
|
|
|
.line 1477
|
|
invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
iget-object v4, p0, Lokio/Segment;->data:[B
|
|
|
|
aput-object v4, v0, v3
|
|
|
|
.line 1478
|
|
iget v4, p0, Lokio/Segment;->limit:I
|
|
|
|
iget v5, p0, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr v4, v5
|
|
|
|
add-int/2addr v1, v4
|
|
|
|
.line 1480
|
|
invoke-static {v1, p1}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v4
|
|
|
|
aput v4, v2, v3
|
|
|
|
.line 1481
|
|
move-object v4, v0
|
|
|
|
check-cast v4, [Ljava/lang/Object;
|
|
|
|
array-length v4, v4
|
|
|
|
add-int/2addr v4, v3
|
|
|
|
iget v5, p0, Lokio/Segment;->pos:I
|
|
|
|
aput v5, v2, v4
|
|
|
|
const/4 v4, 0x1
|
|
|
|
.line 1482
|
|
iput-boolean v4, p0, Lokio/Segment;->shared:Z
|
|
|
|
add-int/2addr v3, v4
|
|
|
|
.line 1484
|
|
iget-object p0, p0, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
goto :goto_1
|
|
|
|
.line 1487
|
|
:cond_3
|
|
new-instance p0, Lokio/SegmentedByteString;
|
|
|
|
check-cast v0, [[B
|
|
|
|
invoke-direct {p0, v0, v2}, Lokio/SegmentedByteString;-><init>([[B[I)V
|
|
|
|
check-cast p0, Lokio/ByteString;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonWritableSegment(Lokio/Buffer;I)Lokio/Segment;
|
|
.locals 2
|
|
|
|
const-string v0, "$this$commonWritableSegment"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/16 v0, 0x2000
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-lt p1, v1, :cond_0
|
|
|
|
if-gt p1, v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v1, :cond_4
|
|
|
|
.line 545
|
|
iget-object v1, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
.line 546
|
|
invoke-static {}, Lokio/SegmentPool;->take()Lokio/Segment;
|
|
|
|
move-result-object p1
|
|
|
|
.line 547
|
|
iput-object p1, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
.line 548
|
|
iput-object p1, p1, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
.line 549
|
|
iput-object p1, p1, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
return-object p1
|
|
|
|
.line 553
|
|
:cond_1
|
|
iget-object p0, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
iget-object p0, p0, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
.line 554
|
|
invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
iget v1, p0, Lokio/Segment;->limit:I
|
|
|
|
add-int/2addr v1, p1
|
|
|
|
if-gt v1, v0, :cond_2
|
|
|
|
iget-boolean p1, p0, Lokio/Segment;->owner:Z
|
|
|
|
if-nez p1, :cond_3
|
|
|
|
.line 555
|
|
:cond_2
|
|
invoke-static {}, Lokio/SegmentPool;->take()Lokio/Segment;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Lokio/Segment;->push(Lokio/Segment;)Lokio/Segment;
|
|
|
|
move-result-object p0
|
|
|
|
:cond_3
|
|
return-object p0
|
|
|
|
.line 543
|
|
:cond_4
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p1, "unexpected capacity"
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final commonWrite(Lokio/Buffer;Lokio/ByteString;II)Lokio/Buffer;
|
|
.locals 1
|
|
|
|
const-string v0, "$this$commonWrite"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "byteString"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 429
|
|
invoke-virtual {p1, p0, p2, p3}, Lokio/ByteString;->write$okio(Lokio/Buffer;II)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonWrite(Lokio/Buffer;Lokio/Source;J)Lokio/Buffer;
|
|
.locals 4
|
|
|
|
const-string v0, "$this$commonWrite"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "source"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:goto_0
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v0, p2, v0
|
|
|
|
if-lez v0, :cond_1
|
|
|
|
.line 1071
|
|
invoke-interface {p1, p0, p2, p3}, Lokio/Source;->read(Lokio/Buffer;J)J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
cmp-long v2, v0, v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
sub-long/2addr p2, v0
|
|
|
|
goto :goto_0
|
|
|
|
.line 1072
|
|
:cond_0
|
|
new-instance p0, Ljava/io/EOFException;
|
|
|
|
invoke-direct {p0}, Ljava/io/EOFException;-><init>()V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
:cond_1
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonWrite(Lokio/Buffer;[B)Lokio/Buffer;
|
|
.locals 2
|
|
|
|
const-string v0, "$this$commonWrite"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "source"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 560
|
|
array-length v1, p1
|
|
|
|
invoke-virtual {p0, p1, v0, v1}, Lokio/Buffer;->write([BII)Lokio/Buffer;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonWrite(Lokio/Buffer;[BII)Lokio/Buffer;
|
|
.locals 9
|
|
|
|
const-string v0, "$this$commonWrite"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "source"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 568
|
|
array-length v0, p1
|
|
|
|
int-to-long v1, v0
|
|
|
|
int-to-long v3, p2
|
|
|
|
int-to-long v7, p3
|
|
|
|
move-wide v5, v7
|
|
|
|
invoke-static/range {v1 .. v6}, Lokio/-Util;->checkOffsetAndCount(JJJ)V
|
|
|
|
add-int/2addr p3, p2
|
|
|
|
:goto_0
|
|
if-ge p2, p3, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 572
|
|
invoke-virtual {p0, v0}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
|
|
|
|
move-result-object v0
|
|
|
|
sub-int v1, p3, p2
|
|
|
|
.line 574
|
|
iget v2, v0, Lokio/Segment;->limit:I
|
|
|
|
rsub-int v2, v2, 0x2000
|
|
|
|
invoke-static {v1, v2}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v1
|
|
|
|
.line 576
|
|
iget-object v2, v0, Lokio/Segment;->data:[B
|
|
|
|
.line 577
|
|
iget v3, v0, Lokio/Segment;->limit:I
|
|
|
|
add-int v4, p2, v1
|
|
|
|
.line 575
|
|
invoke-static {p1, v2, v3, p2, v4}, Lkotlin/collections/ArraysKt;->copyInto([B[BIII)[B
|
|
|
|
.line 583
|
|
iget p2, v0, Lokio/Segment;->limit:I
|
|
|
|
add-int/2addr p2, v1
|
|
|
|
iput p2, v0, Lokio/Segment;->limit:I
|
|
|
|
move p2, v4
|
|
|
|
goto :goto_0
|
|
|
|
.line 586
|
|
:cond_0
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide p1
|
|
|
|
add-long/2addr p1, v7
|
|
|
|
invoke-virtual {p0, p1, p2}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonWrite(Lokio/Buffer;Lokio/Buffer;J)V
|
|
.locals 8
|
|
|
|
const-string v0, "$this$commonWrite"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "source"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eq p1, p0, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v1, v0
|
|
|
|
:goto_0
|
|
if-eqz v1, :cond_7
|
|
|
|
.line 1179
|
|
invoke-virtual {p1}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v2
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
move-wide v6, p2
|
|
|
|
invoke-static/range {v2 .. v7}, Lokio/-Util;->checkOffsetAndCount(JJJ)V
|
|
|
|
:goto_1
|
|
const-wide/16 v1, 0x0
|
|
|
|
cmp-long v1, p2, v1
|
|
|
|
if-lez v1, :cond_6
|
|
|
|
.line 1183
|
|
iget-object v1, p1, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
iget v1, v1, Lokio/Segment;->limit:I
|
|
|
|
iget-object v2, p1, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
iget v2, v2, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
int-to-long v1, v1
|
|
|
|
cmp-long v1, p2, v1
|
|
|
|
if-gez v1, :cond_4
|
|
|
|
.line 1184
|
|
iget-object v1, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
iget-object v1, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
iget-object v1, v1, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
:goto_2
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 1186
|
|
iget-boolean v2, v1, Lokio/Segment;->owner:Z
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
iget v2, v1, Lokio/Segment;->limit:I
|
|
|
|
int-to-long v2, v2
|
|
|
|
add-long/2addr v2, p2
|
|
|
|
iget-boolean v4, v1, Lokio/Segment;->shared:Z
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
move v4, v0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_2
|
|
iget v4, v1, Lokio/Segment;->pos:I
|
|
|
|
:goto_3
|
|
int-to-long v4, v4
|
|
|
|
sub-long/2addr v2, v4
|
|
|
|
const/16 v4, 0x2000
|
|
|
|
int-to-long v4, v4
|
|
|
|
cmp-long v2, v2, v4
|
|
|
|
if-gtz v2, :cond_3
|
|
|
|
.line 1188
|
|
iget-object v0, p1, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
long-to-int v2, p2
|
|
|
|
invoke-virtual {v0, v1, v2}, Lokio/Segment;->writeTo(Lokio/Segment;I)V
|
|
|
|
.line 1189
|
|
invoke-virtual {p1}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
sub-long/2addr v0, p2
|
|
|
|
invoke-virtual {p1, v0, v1}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
.line 1190
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
add-long/2addr v0, p2
|
|
|
|
invoke-virtual {p0, v0, v1}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
return-void
|
|
|
|
.line 1195
|
|
:cond_3
|
|
iget-object v1, p1, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
long-to-int v2, p2
|
|
|
|
invoke-virtual {v1, v2}, Lokio/Segment;->split(I)Lokio/Segment;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, p1, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
.line 1200
|
|
:cond_4
|
|
iget-object v1, p1, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
.line 1201
|
|
invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
iget v2, v1, Lokio/Segment;->limit:I
|
|
|
|
iget v3, v1, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr v2, v3
|
|
|
|
int-to-long v2, v2
|
|
|
|
.line 1202
|
|
invoke-virtual {v1}, Lokio/Segment;->pop()Lokio/Segment;
|
|
|
|
move-result-object v4
|
|
|
|
iput-object v4, p1, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
.line 1203
|
|
iget-object v4, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
if-nez v4, :cond_5
|
|
|
|
.line 1204
|
|
iput-object v1, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
.line 1205
|
|
iput-object v1, v1, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
.line 1206
|
|
iget-object v4, v1, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
iput-object v4, v1, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
goto :goto_4
|
|
|
|
.line 1208
|
|
:cond_5
|
|
iget-object v4, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
invoke-static {v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
iget-object v4, v4, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
.line 1209
|
|
invoke-static {v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {v4, v1}, Lokio/Segment;->push(Lokio/Segment;)Lokio/Segment;
|
|
|
|
move-result-object v1
|
|
|
|
.line 1210
|
|
invoke-virtual {v1}, Lokio/Segment;->compact()V
|
|
|
|
.line 1212
|
|
:goto_4
|
|
invoke-virtual {p1}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v4
|
|
|
|
sub-long/2addr v4, v2
|
|
|
|
invoke-virtual {p1, v4, v5}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
.line 1213
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v4
|
|
|
|
add-long/2addr v4, v2
|
|
|
|
invoke-virtual {p0, v4, v5}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
sub-long/2addr p2, v2
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_6
|
|
return-void
|
|
|
|
.line 1178
|
|
:cond_7
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p1, "source == this"
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static synthetic commonWrite$default(Lokio/Buffer;Lokio/ByteString;IIILjava/lang/Object;)Lokio/Buffer;
|
|
.locals 0
|
|
|
|
and-int/lit8 p5, p4, 0x2
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
:cond_0
|
|
and-int/lit8 p4, p4, 0x4
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
.line 427
|
|
invoke-virtual {p1}, Lokio/ByteString;->size()I
|
|
|
|
move-result p3
|
|
|
|
:cond_1
|
|
const-string p4, "$this$commonWrite"
|
|
|
|
invoke-static {p0, p4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string p4, "byteString"
|
|
|
|
invoke-static {p1, p4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 429
|
|
invoke-virtual {p1, p0, p2, p3}, Lokio/ByteString;->write$okio(Lokio/Buffer;II)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonWriteAll(Lokio/Buffer;Lokio/Source;)J
|
|
.locals 6
|
|
|
|
const-string v0, "$this$commonWriteAll"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "source"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
:goto_0
|
|
const/16 v2, 0x2000
|
|
|
|
int-to-long v2, v2
|
|
|
|
.line 1061
|
|
invoke-interface {p1, p0, v2, v3}, Lokio/Source;->read(Lokio/Buffer;J)J
|
|
|
|
move-result-wide v2
|
|
|
|
const-wide/16 v4, -0x1
|
|
|
|
cmp-long v4, v2, v4
|
|
|
|
if-nez v4, :cond_0
|
|
|
|
return-wide v0
|
|
|
|
:cond_0
|
|
add-long/2addr v0, v2
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public static final commonWriteByte(Lokio/Buffer;I)Lokio/Buffer;
|
|
.locals 4
|
|
|
|
const-string v0, "$this$commonWriteByte"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 1079
|
|
invoke-virtual {p0, v0}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
|
|
|
|
move-result-object v0
|
|
|
|
.line 1080
|
|
iget-object v1, v0, Lokio/Segment;->data:[B
|
|
|
|
iget v2, v0, Lokio/Segment;->limit:I
|
|
|
|
add-int/lit8 v3, v2, 0x1
|
|
|
|
iput v3, v0, Lokio/Segment;->limit:I
|
|
|
|
int-to-byte p1, p1
|
|
|
|
aput-byte p1, v1, v2
|
|
|
|
.line 1081
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x1
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
invoke-virtual {p0, v0, v1}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonWriteDecimalLong(Lokio/Buffer;J)Lokio/Buffer;
|
|
.locals 12
|
|
|
|
const-string v0, "$this$commonWriteDecimalLong"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v2, p1, v0
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
const/16 p1, 0x30
|
|
|
|
.line 437
|
|
invoke-virtual {p0, p1}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const/4 v3, 0x1
|
|
|
|
if-gez v2, :cond_2
|
|
|
|
neg-long p1, p1
|
|
|
|
cmp-long v2, p1, v0
|
|
|
|
if-gez v2, :cond_1
|
|
|
|
const-string p1, "-9223372036854775808"
|
|
|
|
.line 444
|
|
invoke-virtual {p0, p1}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;)Lokio/Buffer;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
move v2, v3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
const-wide/32 v4, 0x5f5e100
|
|
|
|
cmp-long v4, p1, v4
|
|
|
|
const/16 v5, 0xa
|
|
|
|
if-gez v4, :cond_a
|
|
|
|
const-wide/16 v6, 0x2710
|
|
|
|
cmp-long v4, p1, v6
|
|
|
|
if-gez v4, :cond_6
|
|
|
|
const-wide/16 v6, 0x64
|
|
|
|
cmp-long v4, p1, v6
|
|
|
|
if-gez v4, :cond_4
|
|
|
|
const-wide/16 v6, 0xa
|
|
|
|
cmp-long v4, p1, v6
|
|
|
|
if-gez v4, :cond_3
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_3
|
|
const/4 v3, 0x2
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_4
|
|
const-wide/16 v3, 0x3e8
|
|
|
|
cmp-long v3, p1, v3
|
|
|
|
if-gez v3, :cond_5
|
|
|
|
const/4 v3, 0x3
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_5
|
|
const/4 v3, 0x4
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_6
|
|
const-wide/32 v3, 0xf4240
|
|
|
|
cmp-long v3, p1, v3
|
|
|
|
if-gez v3, :cond_8
|
|
|
|
const-wide/32 v3, 0x186a0
|
|
|
|
cmp-long v3, p1, v3
|
|
|
|
if-gez v3, :cond_7
|
|
|
|
const/4 v3, 0x5
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_7
|
|
const/4 v3, 0x6
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_8
|
|
const-wide/32 v3, 0x989680
|
|
|
|
cmp-long v3, p1, v3
|
|
|
|
if-gez v3, :cond_9
|
|
|
|
const/4 v3, 0x7
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_9
|
|
const/16 v3, 0x8
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_a
|
|
const-wide v3, 0xe8d4a51000L
|
|
|
|
cmp-long v3, p1, v3
|
|
|
|
if-gez v3, :cond_e
|
|
|
|
const-wide v3, 0x2540be400L
|
|
|
|
cmp-long v3, p1, v3
|
|
|
|
if-gez v3, :cond_c
|
|
|
|
const-wide/32 v3, 0x3b9aca00
|
|
|
|
cmp-long v3, p1, v3
|
|
|
|
if-gez v3, :cond_b
|
|
|
|
const/16 v3, 0x9
|
|
|
|
goto :goto_1
|
|
|
|
:cond_b
|
|
move v3, v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_c
|
|
const-wide v3, 0x174876e800L
|
|
|
|
cmp-long v3, p1, v3
|
|
|
|
if-gez v3, :cond_d
|
|
|
|
const/16 v3, 0xb
|
|
|
|
goto :goto_1
|
|
|
|
:cond_d
|
|
const/16 v3, 0xc
|
|
|
|
goto :goto_1
|
|
|
|
:cond_e
|
|
const-wide v3, 0x38d7ea4c68000L
|
|
|
|
cmp-long v3, p1, v3
|
|
|
|
if-gez v3, :cond_11
|
|
|
|
const-wide v3, 0x9184e72a000L
|
|
|
|
cmp-long v3, p1, v3
|
|
|
|
if-gez v3, :cond_f
|
|
|
|
const/16 v3, 0xd
|
|
|
|
goto :goto_1
|
|
|
|
:cond_f
|
|
const-wide v3, 0x5af3107a4000L
|
|
|
|
cmp-long v3, p1, v3
|
|
|
|
if-gez v3, :cond_10
|
|
|
|
const/16 v3, 0xe
|
|
|
|
goto :goto_1
|
|
|
|
:cond_10
|
|
const/16 v3, 0xf
|
|
|
|
goto :goto_1
|
|
|
|
:cond_11
|
|
const-wide v3, 0x16345785d8a0000L
|
|
|
|
cmp-long v3, p1, v3
|
|
|
|
if-gez v3, :cond_13
|
|
|
|
const-wide v3, 0x2386f26fc10000L
|
|
|
|
cmp-long v3, p1, v3
|
|
|
|
if-gez v3, :cond_12
|
|
|
|
const/16 v3, 0x10
|
|
|
|
goto :goto_1
|
|
|
|
:cond_12
|
|
const/16 v3, 0x11
|
|
|
|
goto :goto_1
|
|
|
|
:cond_13
|
|
const-wide v3, 0xde0b6b3a7640000L
|
|
|
|
cmp-long v3, p1, v3
|
|
|
|
if-gez v3, :cond_14
|
|
|
|
const/16 v3, 0x12
|
|
|
|
goto :goto_1
|
|
|
|
:cond_14
|
|
const/16 v3, 0x13
|
|
|
|
:goto_1
|
|
if-eqz v2, :cond_15
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
.line 482
|
|
:cond_15
|
|
invoke-virtual {p0, v3}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
|
|
|
|
move-result-object v4
|
|
|
|
.line 483
|
|
iget-object v6, v4, Lokio/Segment;->data:[B
|
|
|
|
.line 484
|
|
iget v7, v4, Lokio/Segment;->limit:I
|
|
|
|
add-int/2addr v7, v3
|
|
|
|
:goto_2
|
|
cmp-long v8, p1, v0
|
|
|
|
if-eqz v8, :cond_16
|
|
|
|
int-to-long v8, v5
|
|
|
|
.line 486
|
|
rem-long v10, p1, v8
|
|
|
|
long-to-int v10, v10
|
|
|
|
add-int/lit8 v7, v7, -0x1
|
|
|
|
.line 487
|
|
invoke-static {}, Lokio/internal/BufferKt;->getHEX_DIGIT_BYTES()[B
|
|
|
|
move-result-object v11
|
|
|
|
aget-byte v10, v11, v10
|
|
|
|
aput-byte v10, v6, v7
|
|
|
|
.line 488
|
|
div-long/2addr p1, v8
|
|
|
|
goto :goto_2
|
|
|
|
:cond_16
|
|
if-eqz v2, :cond_17
|
|
|
|
add-int/lit8 v7, v7, -0x1
|
|
|
|
const/16 p1, 0x2d
|
|
|
|
int-to-byte p1, p1
|
|
|
|
.line 491
|
|
aput-byte p1, v6, v7
|
|
|
|
.line 494
|
|
:cond_17
|
|
iget p1, v4, Lokio/Segment;->limit:I
|
|
|
|
add-int/2addr p1, v3
|
|
|
|
iput p1, v4, Lokio/Segment;->limit:I
|
|
|
|
.line 495
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide p1
|
|
|
|
int-to-long v0, v3
|
|
|
|
add-long/2addr p1, v0
|
|
|
|
invoke-virtual {p0, p1, p2}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonWriteHexadecimalUnsignedLong(Lokio/Buffer;J)Lokio/Buffer;
|
|
.locals 12
|
|
|
|
const-string v0, "$this$commonWriteHexadecimalUnsignedLong"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v0, p1, v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/16 p1, 0x30
|
|
|
|
.line 503
|
|
invoke-virtual {p0, p1}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
ushr-long v1, p1, v0
|
|
|
|
or-long/2addr v1, p1
|
|
|
|
const/4 v3, 0x2
|
|
|
|
ushr-long v4, v1, v3
|
|
|
|
or-long/2addr v1, v4
|
|
|
|
const/4 v4, 0x4
|
|
|
|
ushr-long v5, v1, v4
|
|
|
|
or-long/2addr v1, v5
|
|
|
|
const/16 v5, 0x8
|
|
|
|
ushr-long v6, v1, v5
|
|
|
|
or-long/2addr v1, v6
|
|
|
|
const/16 v6, 0x10
|
|
|
|
ushr-long v7, v1, v6
|
|
|
|
or-long/2addr v1, v7
|
|
|
|
const/16 v7, 0x20
|
|
|
|
ushr-long v8, v1, v7
|
|
|
|
or-long/2addr v1, v8
|
|
|
|
ushr-long v8, v1, v0
|
|
|
|
const-wide v10, 0x5555555555555555L # 1.1945305291614955E103
|
|
|
|
and-long/2addr v8, v10
|
|
|
|
sub-long/2addr v1, v8
|
|
|
|
ushr-long v8, v1, v3
|
|
|
|
const-wide v10, 0x3333333333333333L # 4.667261458395856E-62
|
|
|
|
and-long/2addr v8, v10
|
|
|
|
and-long/2addr v1, v10
|
|
|
|
add-long/2addr v8, v1
|
|
|
|
ushr-long v1, v8, v4
|
|
|
|
add-long/2addr v1, v8
|
|
|
|
const-wide v8, 0xf0f0f0f0f0f0f0fL # 3.815736827118017E-236
|
|
|
|
and-long/2addr v1, v8
|
|
|
|
ushr-long v8, v1, v5
|
|
|
|
add-long/2addr v1, v8
|
|
|
|
ushr-long v5, v1, v6
|
|
|
|
add-long/2addr v1, v5
|
|
|
|
const-wide/16 v5, 0x3f
|
|
|
|
and-long v8, v1, v5
|
|
|
|
ushr-long/2addr v1, v7
|
|
|
|
and-long/2addr v1, v5
|
|
|
|
add-long/2addr v8, v1
|
|
|
|
const/4 v1, 0x3
|
|
|
|
int-to-long v1, v1
|
|
|
|
add-long/2addr v8, v1
|
|
|
|
int-to-long v1, v4
|
|
|
|
.line 526
|
|
div-long/2addr v8, v1
|
|
|
|
long-to-int v1, v8
|
|
|
|
.line 528
|
|
invoke-virtual {p0, v1}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
|
|
|
|
move-result-object v2
|
|
|
|
.line 529
|
|
iget-object v3, v2, Lokio/Segment;->data:[B
|
|
|
|
.line 530
|
|
iget v5, v2, Lokio/Segment;->limit:I
|
|
|
|
add-int/2addr v5, v1
|
|
|
|
sub-int/2addr v5, v0
|
|
|
|
.line 531
|
|
iget v0, v2, Lokio/Segment;->limit:I
|
|
|
|
:goto_0
|
|
if-lt v5, v0, :cond_1
|
|
|
|
.line 533
|
|
invoke-static {}, Lokio/internal/BufferKt;->getHEX_DIGIT_BYTES()[B
|
|
|
|
move-result-object v6
|
|
|
|
const-wide/16 v7, 0xf
|
|
|
|
and-long/2addr v7, p1
|
|
|
|
long-to-int v7, v7
|
|
|
|
aget-byte v6, v6, v7
|
|
|
|
aput-byte v6, v3, v5
|
|
|
|
ushr-long/2addr p1, v4
|
|
|
|
add-int/lit8 v5, v5, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 537
|
|
:cond_1
|
|
iget p1, v2, Lokio/Segment;->limit:I
|
|
|
|
add-int/2addr p1, v1
|
|
|
|
iput p1, v2, Lokio/Segment;->limit:I
|
|
|
|
.line 538
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide p1
|
|
|
|
int-to-long v0, v1
|
|
|
|
add-long/2addr p1, v0
|
|
|
|
invoke-virtual {p0, p1, p2}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonWriteInt(Lokio/Buffer;I)Lokio/Buffer;
|
|
.locals 7
|
|
|
|
const-string v0, "$this$commonWriteInt"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x4
|
|
|
|
.line 1097
|
|
invoke-virtual {p0, v0}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
|
|
|
|
move-result-object v1
|
|
|
|
.line 1098
|
|
iget-object v2, v1, Lokio/Segment;->data:[B
|
|
|
|
.line 1099
|
|
iget v3, v1, Lokio/Segment;->limit:I
|
|
|
|
add-int/lit8 v4, v3, 0x1
|
|
|
|
ushr-int/lit8 v5, p1, 0x18
|
|
|
|
and-int/lit16 v5, v5, 0xff
|
|
|
|
int-to-byte v5, v5
|
|
|
|
.line 1100
|
|
aput-byte v5, v2, v3
|
|
|
|
add-int/lit8 v5, v3, 0x2
|
|
|
|
ushr-int/lit8 v6, p1, 0x10
|
|
|
|
and-int/lit16 v6, v6, 0xff
|
|
|
|
int-to-byte v6, v6
|
|
|
|
.line 1101
|
|
aput-byte v6, v2, v4
|
|
|
|
add-int/lit8 v4, v3, 0x3
|
|
|
|
ushr-int/lit8 v6, p1, 0x8
|
|
|
|
and-int/lit16 v6, v6, 0xff
|
|
|
|
int-to-byte v6, v6
|
|
|
|
.line 1102
|
|
aput-byte v6, v2, v5
|
|
|
|
add-int/2addr v3, v0
|
|
|
|
and-int/lit16 p1, p1, 0xff
|
|
|
|
int-to-byte p1, p1
|
|
|
|
.line 1103
|
|
aput-byte p1, v2, v4
|
|
|
|
.line 1104
|
|
iput v3, v1, Lokio/Segment;->limit:I
|
|
|
|
.line 1105
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x4
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
invoke-virtual {p0, v0, v1}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonWriteLong(Lokio/Buffer;J)Lokio/Buffer;
|
|
.locals 11
|
|
|
|
const-string v0, "$this$commonWriteLong"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/16 v0, 0x8
|
|
|
|
.line 1110
|
|
invoke-virtual {p0, v0}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
|
|
|
|
move-result-object v1
|
|
|
|
.line 1111
|
|
iget-object v2, v1, Lokio/Segment;->data:[B
|
|
|
|
.line 1112
|
|
iget v3, v1, Lokio/Segment;->limit:I
|
|
|
|
add-int/lit8 v4, v3, 0x1
|
|
|
|
const/16 v5, 0x38
|
|
|
|
ushr-long v5, p1, v5
|
|
|
|
const-wide/16 v7, 0xff
|
|
|
|
and-long/2addr v5, v7
|
|
|
|
long-to-int v5, v5
|
|
|
|
int-to-byte v5, v5
|
|
|
|
.line 1113
|
|
aput-byte v5, v2, v3
|
|
|
|
add-int/lit8 v5, v3, 0x2
|
|
|
|
const/16 v6, 0x30
|
|
|
|
ushr-long v9, p1, v6
|
|
|
|
and-long/2addr v9, v7
|
|
|
|
long-to-int v6, v9
|
|
|
|
int-to-byte v6, v6
|
|
|
|
.line 1114
|
|
aput-byte v6, v2, v4
|
|
|
|
add-int/lit8 v4, v3, 0x3
|
|
|
|
const/16 v6, 0x28
|
|
|
|
ushr-long v9, p1, v6
|
|
|
|
and-long/2addr v9, v7
|
|
|
|
long-to-int v6, v9
|
|
|
|
int-to-byte v6, v6
|
|
|
|
.line 1115
|
|
aput-byte v6, v2, v5
|
|
|
|
add-int/lit8 v5, v3, 0x4
|
|
|
|
const/16 v6, 0x20
|
|
|
|
ushr-long v9, p1, v6
|
|
|
|
and-long/2addr v9, v7
|
|
|
|
long-to-int v6, v9
|
|
|
|
int-to-byte v6, v6
|
|
|
|
.line 1116
|
|
aput-byte v6, v2, v4
|
|
|
|
add-int/lit8 v4, v3, 0x5
|
|
|
|
const/16 v6, 0x18
|
|
|
|
ushr-long v9, p1, v6
|
|
|
|
and-long/2addr v9, v7
|
|
|
|
long-to-int v6, v9
|
|
|
|
int-to-byte v6, v6
|
|
|
|
.line 1117
|
|
aput-byte v6, v2, v5
|
|
|
|
add-int/lit8 v5, v3, 0x6
|
|
|
|
const/16 v6, 0x10
|
|
|
|
ushr-long v9, p1, v6
|
|
|
|
and-long/2addr v9, v7
|
|
|
|
long-to-int v6, v9
|
|
|
|
int-to-byte v6, v6
|
|
|
|
.line 1118
|
|
aput-byte v6, v2, v4
|
|
|
|
add-int/lit8 v4, v3, 0x7
|
|
|
|
ushr-long v9, p1, v0
|
|
|
|
and-long/2addr v9, v7
|
|
|
|
long-to-int v6, v9
|
|
|
|
int-to-byte v6, v6
|
|
|
|
.line 1119
|
|
aput-byte v6, v2, v5
|
|
|
|
add-int/2addr v3, v0
|
|
|
|
and-long/2addr p1, v7
|
|
|
|
long-to-int p1, p1
|
|
|
|
int-to-byte p1, p1
|
|
|
|
.line 1120
|
|
aput-byte p1, v2, v4
|
|
|
|
.line 1121
|
|
iput v3, v1, Lokio/Segment;->limit:I
|
|
|
|
.line 1122
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide p1
|
|
|
|
const-wide/16 v0, 0x8
|
|
|
|
add-long/2addr p1, v0
|
|
|
|
invoke-virtual {p0, p1, p2}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonWriteShort(Lokio/Buffer;I)Lokio/Buffer;
|
|
.locals 6
|
|
|
|
const-string v0, "$this$commonWriteShort"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x2
|
|
|
|
.line 1086
|
|
invoke-virtual {p0, v0}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
|
|
|
|
move-result-object v1
|
|
|
|
.line 1087
|
|
iget-object v2, v1, Lokio/Segment;->data:[B
|
|
|
|
.line 1088
|
|
iget v3, v1, Lokio/Segment;->limit:I
|
|
|
|
add-int/lit8 v4, v3, 0x1
|
|
|
|
ushr-int/lit8 v5, p1, 0x8
|
|
|
|
and-int/lit16 v5, v5, 0xff
|
|
|
|
int-to-byte v5, v5
|
|
|
|
.line 1089
|
|
aput-byte v5, v2, v3
|
|
|
|
add-int/2addr v3, v0
|
|
|
|
and-int/lit16 p1, p1, 0xff
|
|
|
|
int-to-byte p1, p1
|
|
|
|
.line 1090
|
|
aput-byte p1, v2, v4
|
|
|
|
.line 1091
|
|
iput v3, v1, Lokio/Segment;->limit:I
|
|
|
|
.line 1092
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x2
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
invoke-virtual {p0, v0, v1}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonWriteUtf8(Lokio/Buffer;Ljava/lang/String;II)Lokio/Buffer;
|
|
.locals 12
|
|
|
|
const-string v0, "$this$commonWriteUtf8"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "string"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ltz p2, :cond_0
|
|
|
|
move v2, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v2, v0
|
|
|
|
:goto_0
|
|
if-eqz v2, :cond_f
|
|
|
|
if-lt p3, p2, :cond_1
|
|
|
|
move v2, v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v2, v0
|
|
|
|
:goto_1
|
|
if-eqz v2, :cond_e
|
|
|
|
.line 919
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v2
|
|
|
|
if-gt p3, v2, :cond_2
|
|
|
|
move v2, v1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move v2, v0
|
|
|
|
:goto_2
|
|
if-eqz v2, :cond_d
|
|
|
|
:goto_3
|
|
if-ge p2, p3, :cond_c
|
|
|
|
.line 924
|
|
invoke-virtual {p1, p2}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v2
|
|
|
|
const/16 v3, 0x80
|
|
|
|
if-ge v2, v3, :cond_5
|
|
|
|
.line 928
|
|
invoke-virtual {p0, v1}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
|
|
|
|
move-result-object v4
|
|
|
|
.line 929
|
|
iget-object v5, v4, Lokio/Segment;->data:[B
|
|
|
|
.line 930
|
|
iget v6, v4, Lokio/Segment;->limit:I
|
|
|
|
sub-int/2addr v6, p2
|
|
|
|
rsub-int v7, v6, 0x2000
|
|
|
|
.line 931
|
|
invoke-static {p3, v7}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v7
|
|
|
|
add-int/lit8 v8, p2, 0x1
|
|
|
|
add-int/2addr p2, v6
|
|
|
|
int-to-byte v2, v2
|
|
|
|
.line 934
|
|
aput-byte v2, v5, p2
|
|
|
|
:goto_4
|
|
if-ge v8, v7, :cond_4
|
|
|
|
.line 939
|
|
invoke-virtual {p1, v8}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result p2
|
|
|
|
if-lt p2, v3, :cond_3
|
|
|
|
goto :goto_5
|
|
|
|
:cond_3
|
|
add-int/lit8 v2, v8, 0x1
|
|
|
|
add-int/2addr v8, v6
|
|
|
|
int-to-byte p2, p2
|
|
|
|
.line 941
|
|
aput-byte p2, v5, v8
|
|
|
|
move v8, v2
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
:goto_5
|
|
add-int/2addr v6, v8
|
|
|
|
.line 944
|
|
iget p2, v4, Lokio/Segment;->limit:I
|
|
|
|
sub-int/2addr v6, p2
|
|
|
|
.line 945
|
|
iget p2, v4, Lokio/Segment;->limit:I
|
|
|
|
add-int/2addr p2, v6
|
|
|
|
iput p2, v4, Lokio/Segment;->limit:I
|
|
|
|
.line 946
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v2
|
|
|
|
int-to-long v4, v6
|
|
|
|
add-long/2addr v2, v4
|
|
|
|
invoke-virtual {p0, v2, v3}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
:goto_6
|
|
move p2, v8
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
const/16 v4, 0x800
|
|
|
|
const/4 v5, 0x2
|
|
|
|
if-ge v2, v4, :cond_6
|
|
|
|
.line 951
|
|
invoke-virtual {p0, v5}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
|
|
|
|
move-result-object v4
|
|
|
|
.line 953
|
|
iget-object v6, v4, Lokio/Segment;->data:[B
|
|
|
|
iget v7, v4, Lokio/Segment;->limit:I
|
|
|
|
shr-int/lit8 v8, v2, 0x6
|
|
|
|
or-int/lit16 v8, v8, 0xc0
|
|
|
|
int-to-byte v8, v8
|
|
|
|
aput-byte v8, v6, v7
|
|
|
|
.line 954
|
|
iget-object v6, v4, Lokio/Segment;->data:[B
|
|
|
|
iget v7, v4, Lokio/Segment;->limit:I
|
|
|
|
add-int/2addr v7, v1
|
|
|
|
and-int/lit8 v2, v2, 0x3f
|
|
|
|
or-int/2addr v2, v3
|
|
|
|
int-to-byte v2, v2
|
|
|
|
aput-byte v2, v6, v7
|
|
|
|
.line 956
|
|
iget v2, v4, Lokio/Segment;->limit:I
|
|
|
|
add-int/2addr v2, v5
|
|
|
|
iput v2, v4, Lokio/Segment;->limit:I
|
|
|
|
.line 957
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v2
|
|
|
|
const-wide/16 v4, 0x2
|
|
|
|
add-long/2addr v2, v4
|
|
|
|
invoke-virtual {p0, v2, v3}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
:goto_7
|
|
add-int/lit8 p2, p2, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_6
|
|
const v4, 0xd800
|
|
|
|
const/4 v6, 0x3
|
|
|
|
const/16 v7, 0x3f
|
|
|
|
if-lt v2, v4, :cond_b
|
|
|
|
const v4, 0xdfff
|
|
|
|
if-le v2, v4, :cond_7
|
|
|
|
goto :goto_a
|
|
|
|
:cond_7
|
|
add-int/lit8 v8, p2, 0x1
|
|
|
|
if-ge v8, p3, :cond_8
|
|
|
|
.line 978
|
|
invoke-virtual {p1, v8}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v9
|
|
|
|
goto :goto_8
|
|
|
|
:cond_8
|
|
move v9, v0
|
|
|
|
:goto_8
|
|
const v10, 0xdbff
|
|
|
|
if-gt v2, v10, :cond_a
|
|
|
|
const v10, 0xdc00
|
|
|
|
if-gt v10, v9, :cond_a
|
|
|
|
if-ge v4, v9, :cond_9
|
|
|
|
goto :goto_9
|
|
|
|
:cond_9
|
|
and-int/lit16 v2, v2, 0x3ff
|
|
|
|
shl-int/lit8 v2, v2, 0xa
|
|
|
|
and-int/lit16 v4, v9, 0x3ff
|
|
|
|
or-int/2addr v2, v4
|
|
|
|
const/high16 v4, 0x10000
|
|
|
|
add-int/2addr v2, v4
|
|
|
|
const/4 v4, 0x4
|
|
|
|
.line 989
|
|
invoke-virtual {p0, v4}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
|
|
|
|
move-result-object v8
|
|
|
|
.line 991
|
|
iget-object v9, v8, Lokio/Segment;->data:[B
|
|
|
|
iget v10, v8, Lokio/Segment;->limit:I
|
|
|
|
shr-int/lit8 v11, v2, 0x12
|
|
|
|
or-int/lit16 v11, v11, 0xf0
|
|
|
|
int-to-byte v11, v11
|
|
|
|
aput-byte v11, v9, v10
|
|
|
|
.line 992
|
|
iget-object v9, v8, Lokio/Segment;->data:[B
|
|
|
|
iget v10, v8, Lokio/Segment;->limit:I
|
|
|
|
add-int/2addr v10, v1
|
|
|
|
shr-int/lit8 v11, v2, 0xc
|
|
|
|
and-int/2addr v11, v7
|
|
|
|
or-int/2addr v11, v3
|
|
|
|
int-to-byte v11, v11
|
|
|
|
aput-byte v11, v9, v10
|
|
|
|
.line 993
|
|
iget-object v9, v8, Lokio/Segment;->data:[B
|
|
|
|
iget v10, v8, Lokio/Segment;->limit:I
|
|
|
|
add-int/2addr v10, v5
|
|
|
|
shr-int/lit8 v5, v2, 0x6
|
|
|
|
and-int/2addr v5, v7
|
|
|
|
or-int/2addr v5, v3
|
|
|
|
int-to-byte v5, v5
|
|
|
|
aput-byte v5, v9, v10
|
|
|
|
.line 994
|
|
iget-object v5, v8, Lokio/Segment;->data:[B
|
|
|
|
iget v9, v8, Lokio/Segment;->limit:I
|
|
|
|
add-int/2addr v9, v6
|
|
|
|
and-int/2addr v2, v7
|
|
|
|
or-int/2addr v2, v3
|
|
|
|
int-to-byte v2, v2
|
|
|
|
aput-byte v2, v5, v9
|
|
|
|
.line 996
|
|
iget v2, v8, Lokio/Segment;->limit:I
|
|
|
|
add-int/2addr v2, v4
|
|
|
|
iput v2, v8, Lokio/Segment;->limit:I
|
|
|
|
.line 997
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v2
|
|
|
|
const-wide/16 v4, 0x4
|
|
|
|
add-long/2addr v2, v4
|
|
|
|
invoke-virtual {p0, v2, v3}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
add-int/lit8 p2, p2, 0x2
|
|
|
|
goto/16 :goto_3
|
|
|
|
.line 980
|
|
:cond_a
|
|
:goto_9
|
|
invoke-virtual {p0, v7}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
|
|
|
|
goto/16 :goto_6
|
|
|
|
.line 963
|
|
:cond_b
|
|
:goto_a
|
|
invoke-virtual {p0, v6}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
|
|
|
|
move-result-object v4
|
|
|
|
.line 965
|
|
iget-object v8, v4, Lokio/Segment;->data:[B
|
|
|
|
iget v9, v4, Lokio/Segment;->limit:I
|
|
|
|
shr-int/lit8 v10, v2, 0xc
|
|
|
|
or-int/lit16 v10, v10, 0xe0
|
|
|
|
int-to-byte v10, v10
|
|
|
|
aput-byte v10, v8, v9
|
|
|
|
.line 966
|
|
iget-object v8, v4, Lokio/Segment;->data:[B
|
|
|
|
iget v9, v4, Lokio/Segment;->limit:I
|
|
|
|
add-int/2addr v9, v1
|
|
|
|
shr-int/lit8 v10, v2, 0x6
|
|
|
|
and-int/2addr v7, v10
|
|
|
|
or-int/2addr v7, v3
|
|
|
|
int-to-byte v7, v7
|
|
|
|
aput-byte v7, v8, v9
|
|
|
|
.line 967
|
|
iget-object v7, v4, Lokio/Segment;->data:[B
|
|
|
|
iget v8, v4, Lokio/Segment;->limit:I
|
|
|
|
add-int/2addr v8, v5
|
|
|
|
and-int/lit8 v2, v2, 0x3f
|
|
|
|
or-int/2addr v2, v3
|
|
|
|
int-to-byte v2, v2
|
|
|
|
aput-byte v2, v7, v8
|
|
|
|
.line 969
|
|
iget v2, v4, Lokio/Segment;->limit:I
|
|
|
|
add-int/2addr v2, v6
|
|
|
|
iput v2, v4, Lokio/Segment;->limit:I
|
|
|
|
.line 970
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v2
|
|
|
|
const-wide/16 v4, 0x3
|
|
|
|
add-long/2addr v2, v4
|
|
|
|
invoke-virtual {p0, v2, v3}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
goto/16 :goto_7
|
|
|
|
:cond_c
|
|
return-object p0
|
|
|
|
.line 919
|
|
:cond_d
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
const-string p2, "endIndex > string.length: "
|
|
|
|
invoke-direct {p0, p2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p2, " > "
|
|
|
|
invoke-virtual {p0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
move-result p1
|
|
|
|
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 918
|
|
:cond_e
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, "endIndex < beginIndex: "
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, " < "
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, p2}, 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 917
|
|
:cond_f
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, "beginIndex < 0: "
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p2}, 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
|
|
.end method
|
|
|
|
.method public static final commonWriteUtf8CodePoint(Lokio/Buffer;I)Lokio/Buffer;
|
|
.locals 9
|
|
|
|
const-string v0, "$this$commonWriteUtf8CodePoint"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/16 v0, 0x80
|
|
|
|
if-ge p1, v0, :cond_0
|
|
|
|
.line 1011
|
|
invoke-virtual {p0, p1}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_0
|
|
const/16 v1, 0x800
|
|
|
|
const/4 v2, 0x2
|
|
|
|
const/16 v3, 0x3f
|
|
|
|
if-ge p1, v1, :cond_1
|
|
|
|
.line 1015
|
|
invoke-virtual {p0, v2}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
|
|
|
|
move-result-object v1
|
|
|
|
.line 1017
|
|
iget-object v4, v1, Lokio/Segment;->data:[B
|
|
|
|
iget v5, v1, Lokio/Segment;->limit:I
|
|
|
|
shr-int/lit8 v6, p1, 0x6
|
|
|
|
or-int/lit16 v6, v6, 0xc0
|
|
|
|
int-to-byte v6, v6
|
|
|
|
aput-byte v6, v4, v5
|
|
|
|
.line 1018
|
|
iget-object v4, v1, Lokio/Segment;->data:[B
|
|
|
|
iget v5, v1, Lokio/Segment;->limit:I
|
|
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
and-int/2addr p1, v3
|
|
|
|
or-int/2addr p1, v0
|
|
|
|
int-to-byte p1, p1
|
|
|
|
aput-byte p1, v4, v5
|
|
|
|
.line 1020
|
|
iget p1, v1, Lokio/Segment;->limit:I
|
|
|
|
add-int/2addr p1, v2
|
|
|
|
iput p1, v1, Lokio/Segment;->limit:I
|
|
|
|
.line 1021
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x2
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
invoke-virtual {p0, v0, v1}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_1
|
|
const v1, 0xd800
|
|
|
|
if-le v1, p1, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const v1, 0xdfff
|
|
|
|
if-lt v1, p1, :cond_3
|
|
|
|
.line 1025
|
|
invoke-virtual {p0, v3}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_3
|
|
:goto_0
|
|
const/high16 v1, 0x10000
|
|
|
|
const/4 v4, 0x3
|
|
|
|
if-ge p1, v1, :cond_4
|
|
|
|
.line 1029
|
|
invoke-virtual {p0, v4}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
|
|
|
|
move-result-object v1
|
|
|
|
.line 1031
|
|
iget-object v5, v1, Lokio/Segment;->data:[B
|
|
|
|
iget v6, v1, Lokio/Segment;->limit:I
|
|
|
|
shr-int/lit8 v7, p1, 0xc
|
|
|
|
or-int/lit16 v7, v7, 0xe0
|
|
|
|
int-to-byte v7, v7
|
|
|
|
aput-byte v7, v5, v6
|
|
|
|
.line 1032
|
|
iget-object v5, v1, Lokio/Segment;->data:[B
|
|
|
|
iget v6, v1, Lokio/Segment;->limit:I
|
|
|
|
add-int/lit8 v6, v6, 0x1
|
|
|
|
shr-int/lit8 v7, p1, 0x6
|
|
|
|
and-int/2addr v7, v3
|
|
|
|
or-int/2addr v7, v0
|
|
|
|
int-to-byte v7, v7
|
|
|
|
aput-byte v7, v5, v6
|
|
|
|
.line 1033
|
|
iget-object v5, v1, Lokio/Segment;->data:[B
|
|
|
|
iget v6, v1, Lokio/Segment;->limit:I
|
|
|
|
add-int/2addr v6, v2
|
|
|
|
and-int/2addr p1, v3
|
|
|
|
or-int/2addr p1, v0
|
|
|
|
int-to-byte p1, p1
|
|
|
|
aput-byte p1, v5, v6
|
|
|
|
.line 1035
|
|
iget p1, v1, Lokio/Segment;->limit:I
|
|
|
|
add-int/2addr p1, v4
|
|
|
|
iput p1, v1, Lokio/Segment;->limit:I
|
|
|
|
.line 1036
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x3
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
invoke-virtual {p0, v0, v1}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
const v1, 0x10ffff
|
|
|
|
if-gt p1, v1, :cond_5
|
|
|
|
const/4 v1, 0x4
|
|
|
|
.line 1040
|
|
invoke-virtual {p0, v1}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
|
|
|
|
move-result-object v5
|
|
|
|
.line 1042
|
|
iget-object v6, v5, Lokio/Segment;->data:[B
|
|
|
|
iget v7, v5, Lokio/Segment;->limit:I
|
|
|
|
shr-int/lit8 v8, p1, 0x12
|
|
|
|
or-int/lit16 v8, v8, 0xf0
|
|
|
|
int-to-byte v8, v8
|
|
|
|
aput-byte v8, v6, v7
|
|
|
|
.line 1043
|
|
iget-object v6, v5, Lokio/Segment;->data:[B
|
|
|
|
iget v7, v5, Lokio/Segment;->limit:I
|
|
|
|
add-int/lit8 v7, v7, 0x1
|
|
|
|
shr-int/lit8 v8, p1, 0xc
|
|
|
|
and-int/2addr v8, v3
|
|
|
|
or-int/2addr v8, v0
|
|
|
|
int-to-byte v8, v8
|
|
|
|
aput-byte v8, v6, v7
|
|
|
|
.line 1044
|
|
iget-object v6, v5, Lokio/Segment;->data:[B
|
|
|
|
iget v7, v5, Lokio/Segment;->limit:I
|
|
|
|
add-int/2addr v7, v2
|
|
|
|
shr-int/lit8 v2, p1, 0x6
|
|
|
|
and-int/2addr v2, v3
|
|
|
|
or-int/2addr v2, v0
|
|
|
|
int-to-byte v2, v2
|
|
|
|
aput-byte v2, v6, v7
|
|
|
|
.line 1045
|
|
iget-object v2, v5, Lokio/Segment;->data:[B
|
|
|
|
iget v6, v5, Lokio/Segment;->limit:I
|
|
|
|
add-int/2addr v6, v4
|
|
|
|
and-int/2addr p1, v3
|
|
|
|
or-int/2addr p1, v0
|
|
|
|
int-to-byte p1, p1
|
|
|
|
aput-byte p1, v2, v6
|
|
|
|
.line 1047
|
|
iget p1, v5, Lokio/Segment;->limit:I
|
|
|
|
add-int/2addr p1, v1
|
|
|
|
iput p1, v5, Lokio/Segment;->limit:I
|
|
|
|
.line 1048
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x4
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
invoke-virtual {p0, v0, v1}, Lokio/Buffer;->setSize$okio(J)V
|
|
|
|
:goto_1
|
|
return-object p0
|
|
|
|
.line 1051
|
|
:cond_5
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "Unexpected code point: 0x"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-static {p1}, Lokio/-Util;->toHexString(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final getHEX_DIGIT_BYTES()[B
|
|
.locals 1
|
|
|
|
sget-object v0, Lokio/internal/BufferKt;->HEX_DIGIT_BYTES:[B
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final rangeEquals(Lokio/Segment;I[BII)Z
|
|
.locals 5
|
|
|
|
const-string v0, "segment"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "bytes"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 57
|
|
iget v0, p0, Lokio/Segment;->limit:I
|
|
|
|
.line 58
|
|
iget-object v1, p0, Lokio/Segment;->data:[B
|
|
|
|
:goto_0
|
|
if-ge p3, p4, :cond_2
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
.line 63
|
|
iget-object p0, p0, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 64
|
|
iget-object p1, p0, Lokio/Segment;->data:[B
|
|
|
|
.line 65
|
|
iget v0, p0, Lokio/Segment;->pos:I
|
|
|
|
.line 66
|
|
iget v1, p0, Lokio/Segment;->limit:I
|
|
|
|
move v4, v1
|
|
|
|
move-object v1, p1
|
|
|
|
move p1, v0
|
|
|
|
move v0, v4
|
|
|
|
.line 69
|
|
:cond_0
|
|
aget-byte v2, v1, p1
|
|
|
|
aget-byte v3, p2, p3
|
|
|
|
if-eq v2, v3, :cond_1
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
|
|
:cond_1
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
add-int/lit8 p3, p3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final readUtf8Line(Lokio/Buffer;J)Ljava/lang/String;
|
|
.locals 6
|
|
|
|
const-string v0, "$this$readUtf8Line"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v0, p1, v0
|
|
|
|
const-wide/16 v1, 0x1
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
sub-long v3, p1, v1
|
|
|
|
.line 82
|
|
invoke-virtual {p0, v3, v4}, Lokio/Buffer;->getByte(J)B
|
|
|
|
move-result v0
|
|
|
|
const/16 v5, 0xd
|
|
|
|
int-to-byte v5, v5
|
|
|
|
if-ne v0, v5, :cond_0
|
|
|
|
.line 84
|
|
invoke-virtual {p0, v3, v4}, Lokio/Buffer;->readUtf8(J)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-wide/16 v0, 0x2
|
|
|
|
.line 85
|
|
invoke-virtual {p0, v0, v1}, Lokio/Buffer;->skip(J)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 90
|
|
:cond_0
|
|
invoke-virtual {p0, p1, p2}, Lokio/Buffer;->readUtf8(J)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
.line 91
|
|
invoke-virtual {p0, v1, v2}, Lokio/Buffer;->skip(J)V
|
|
|
|
:goto_0
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public static final seek(Lokio/Buffer;JLkotlin/jvm/functions/Function2;)Ljava/lang/Object;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lokio/Buffer;",
|
|
"J",
|
|
"Lkotlin/jvm/functions/Function2<",
|
|
"-",
|
|
"Lokio/Segment;",
|
|
"-",
|
|
"Ljava/lang/Long;",
|
|
"+TT;>;)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$seek"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "lambda"
|
|
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 105
|
|
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 107
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v1
|
|
|
|
sub-long/2addr v1, p1
|
|
|
|
cmp-long v1, v1, p1
|
|
|
|
if-gez v1, :cond_1
|
|
|
|
.line 109
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v1
|
|
|
|
:goto_0
|
|
cmp-long p0, v1, p1
|
|
|
|
if-lez p0, :cond_0
|
|
|
|
.line 111
|
|
iget-object v0, v0, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 112
|
|
iget p0, v0, Lokio/Segment;->limit:I
|
|
|
|
iget v3, v0, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr p0, v3
|
|
|
|
int-to-long v3, p0
|
|
|
|
sub-long/2addr v1, v3
|
|
|
|
goto :goto_0
|
|
|
|
.line 114
|
|
:cond_0
|
|
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-interface {p3, v0, p0}, Lkotlin/jvm/functions/Function2;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
const-wide/16 v1, 0x0
|
|
|
|
.line 119
|
|
:goto_1
|
|
iget p0, v0, Lokio/Segment;->limit:I
|
|
|
|
iget v3, v0, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr p0, v3
|
|
|
|
int-to-long v3, p0
|
|
|
|
add-long/2addr v3, v1
|
|
|
|
cmp-long p0, v3, p1
|
|
|
|
if-lez p0, :cond_2
|
|
|
|
.line 124
|
|
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-interface {p3, v0, p0}, Lkotlin/jvm/functions/Function2;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 121
|
|
:cond_2
|
|
iget-object v0, v0, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
move-wide v1, v3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
const-wide/16 p0, -0x1
|
|
|
|
.line 105
|
|
invoke-static {p0, p1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object p0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
invoke-interface {p3, p1, p0}, Lkotlin/jvm/functions/Function2;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final selectPrefix(Lokio/Buffer;Lokio/Options;Z)I
|
|
.locals 17
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
const-string v1, "$this$selectPrefix"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v1, "options"
|
|
|
|
move-object/from16 v2, p1
|
|
|
|
invoke-static {v2, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 141
|
|
iget-object v0, v0, Lokio/Buffer;->head:Lokio/Segment;
|
|
|
|
const/4 v1, -0x2
|
|
|
|
const/4 v3, -0x1
|
|
|
|
if-eqz v0, :cond_f
|
|
|
|
.line 144
|
|
iget-object v4, v0, Lokio/Segment;->data:[B
|
|
|
|
.line 145
|
|
iget v5, v0, Lokio/Segment;->pos:I
|
|
|
|
.line 146
|
|
iget v6, v0, Lokio/Segment;->limit:I
|
|
|
|
.line 148
|
|
invoke-virtual/range {p1 .. p1}, Lokio/Options;->getTrie$okio()[I
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v7, 0x0
|
|
|
|
move-object v9, v0
|
|
|
|
move v10, v3
|
|
|
|
move v8, v7
|
|
|
|
:goto_0
|
|
add-int/lit8 v11, v8, 0x1
|
|
|
|
.line 155
|
|
aget v12, v2, v8
|
|
|
|
add-int/lit8 v8, v8, 0x2
|
|
|
|
.line 157
|
|
aget v11, v2, 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 v12, :cond_9
|
|
|
|
mul-int/lit8 v12, v12, -0x1
|
|
|
|
add-int v13, v8, v12
|
|
|
|
:goto_1
|
|
add-int/lit8 v12, v5, 0x1
|
|
|
|
.line 171
|
|
aget-byte v5, v4, v5
|
|
|
|
and-int/lit16 v5, v5, 0xff
|
|
|
|
add-int/lit8 v14, v8, 0x1
|
|
|
|
.line 172
|
|
aget v8, v2, v8
|
|
|
|
if-eq v5, v8, :cond_2
|
|
|
|
return v10
|
|
|
|
:cond_2
|
|
if-ne v14, v13, :cond_3
|
|
|
|
const/4 v5, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
move v5, v7
|
|
|
|
:goto_2
|
|
if-ne v12, v6, :cond_7
|
|
|
|
.line 177
|
|
invoke-static {v9}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
iget-object v4, v9, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
invoke-static {v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 178
|
|
iget v6, v4, Lokio/Segment;->pos:I
|
|
|
|
.line 179
|
|
iget-object v8, v4, Lokio/Segment;->data:[B
|
|
|
|
.line 180
|
|
iget v9, v4, Lokio/Segment;->limit:I
|
|
|
|
if-ne v4, v0, :cond_6
|
|
|
|
if-nez v5, :cond_5
|
|
|
|
:goto_3
|
|
if-eqz p2, :cond_4
|
|
|
|
return v1
|
|
|
|
:cond_4
|
|
return v10
|
|
|
|
.line 183
|
|
:cond_5
|
|
move-object v4, v11
|
|
|
|
check-cast v4, Lokio/Segment;
|
|
|
|
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
|
|
move-object v8, v9
|
|
|
|
move v9, v6
|
|
|
|
move v6, v12
|
|
|
|
:goto_4
|
|
if-eqz v5, :cond_8
|
|
|
|
.line 188
|
|
aget v5, v2, v14
|
|
|
|
move v13, v6
|
|
|
|
move v6, v9
|
|
|
|
move-object v9, v8
|
|
|
|
goto :goto_6
|
|
|
|
:cond_8
|
|
move v5, v6
|
|
|
|
move v6, v9
|
|
|
|
move-object v9, v8
|
|
|
|
move v8, v14
|
|
|
|
goto :goto_1
|
|
|
|
:cond_9
|
|
add-int/lit8 v13, v5, 0x1
|
|
|
|
.line 195
|
|
aget-byte v5, v4, v5
|
|
|
|
and-int/lit16 v5, v5, 0xff
|
|
|
|
add-int v14, v8, v12
|
|
|
|
:goto_5
|
|
if-ne v8, v14, :cond_a
|
|
|
|
return v10
|
|
|
|
.line 200
|
|
:cond_a
|
|
aget v15, v2, v8
|
|
|
|
if-ne v5, v15, :cond_e
|
|
|
|
add-int/2addr v8, v12
|
|
|
|
.line 201
|
|
aget v5, v2, v8
|
|
|
|
if-ne v13, v6, :cond_c
|
|
|
|
.line 210
|
|
iget-object v9, v9, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
invoke-static {v9}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 211
|
|
iget v4, v9, Lokio/Segment;->pos:I
|
|
|
|
.line 212
|
|
iget-object v6, v9, Lokio/Segment;->data:[B
|
|
|
|
.line 213
|
|
iget v8, v9, Lokio/Segment;->limit:I
|
|
|
|
if-ne v9, v0, :cond_b
|
|
|
|
.line 215
|
|
move-object v9, v11
|
|
|
|
check-cast v9, Lokio/Segment;
|
|
|
|
move v13, v4
|
|
|
|
move-object v4, v6
|
|
|
|
move v6, v8
|
|
|
|
move-object v9, v11
|
|
|
|
goto :goto_6
|
|
|
|
:cond_b
|
|
move v13, v4
|
|
|
|
move-object v4, v6
|
|
|
|
move v6, v8
|
|
|
|
:cond_c
|
|
:goto_6
|
|
if-ltz v5, :cond_d
|
|
|
|
return v5
|
|
|
|
:cond_d
|
|
neg-int v8, v5
|
|
|
|
move v5, v13
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_e
|
|
add-int/lit8 v8, v8, 0x1
|
|
|
|
goto :goto_5
|
|
|
|
:cond_f
|
|
if-eqz p2, :cond_10
|
|
|
|
goto :goto_7
|
|
|
|
:cond_10
|
|
move v1, v3
|
|
|
|
:goto_7
|
|
return v1
|
|
.end method
|
|
|
|
.method public static synthetic selectPrefix$default(Lokio/Buffer;Lokio/Options;ZILjava/lang/Object;)I
|
|
.locals 0
|
|
|
|
and-int/lit8 p3, p3, 0x2
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
.line 140
|
|
:cond_0
|
|
invoke-static {p0, p1, p2}, Lokio/internal/BufferKt;->selectPrefix(Lokio/Buffer;Lokio/Options;Z)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|