Buffer.smali
.class public final Lokio/Buffer;
.super Ljava/lang/Object;
.source "Buffer.kt"
# interfaces
.implements Lokio/BufferedSource;
.implements Lokio/BufferedSink;
.implements Ljava/lang/Cloneable;
.implements Ljava/nio/channels/ByteChannel;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lokio/Buffer$UnsafeCursor;
}
.end annotation
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nBuffer.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Buffer.kt\nokio/Buffer\n+ 2 -Util.kt\nokio/-Util\n+ 3 Buffer.kt\nokio/internal/BufferKt\n*L\n1#1,1020:1\n78#2:1021\n75#2:1054\n75#2:1055\n66#2:1115\n66#2:1116\n66#2:1122\n66#2:1123\n66#2:1143\n66#2:1145\n66#2:1147\n66#2:1149\n66#2:1152\n66#2:1154\n66#2:1156\n66#2:1158\n72#2:1178\n72#2:1180\n69#2:1183\n69#2:1185\n69#2:1187\n69#2:1189\n69#2:1191\n69#2:1193\n69#2:1195\n69#2:1197\n78#2:1356\n66#2:1368\n66#2:1370\n66#2:1375\n66#2:1377\n66#2:1382\n66#2:1384\n66#2:1389\n66#2:1391\n66#2:1412\n66#2:1415\n75#2:1472\n78#2:1930\n78#2:1952\n78#2:1961\n233#3,32:1022\n268#3,10:1056\n281#3,18:1066\n395#3,2:1084\n101#3:1086\n397#3:1087\n103#3,18:1088\n302#3,9:1106\n311#3,5:1117\n316#3,10:1124\n329#3,9:1134\n338#3:1144\n339#3:1146\n340#3:1148\n343#3,2:1150\n345#3:1153\n346#3:1155\n347#3:1157\n348#3,10:1159\n361#3,9:1169\n370#3:1179\n373#3,2:1181\n375#3:1184\n376#3:1186\n377#3:1188\n378#3:1190\n379#3:1192\n380#3:1194\n381#3:1196\n382#3,10:1198\n632#3,56:1208\n691#3,55:1264\n748#3:1319\n750#3:1320\n753#3,7:1321\n763#3,6:1328\n771#3,5:1334\n803#3,6:1339\n813#3,11:1345\n824#3,2:1357\n829#3,9:1359\n839#3:1369\n840#3,4:1371\n845#3:1376\n846#3,4:1378\n851#3:1383\n852#3,4:1385\n857#3:1390\n858#3,20:1392\n879#3,2:1413\n882#3,18:1416\n586#3:1434\n589#3,6:1435\n597#3:1441\n600#3,7:1442\n609#3,17:1449\n401#3:1466\n404#3,5:1467\n409#3,10:1473\n422#3,5:1483\n425#3,2:1488\n904#3,88:1490\n995#3,48:1578\n556#3:1626\n563#3,21:1627\n1046#3,7:1648\n1056#3,7:1655\n1066#3,4:1662\n1073#3,8:1666\n1084#3,10:1674\n1097#3,14:1684\n430#3,63:1698\n496#3,40:1761\n539#3,15:1801\n1114#3:1816\n1165#3,39:1817\n1206#3,6:1856\n1215#3,8:1862\n101#3:1870\n1223#3,22:1871\n103#3,18:1893\n1249#3,5:1911\n101#3:1916\n1254#3,13:1917\n1267#3,13:1931\n103#3,8:1944\n113#3,8:1953\n1284#3,4:1962\n101#3:1966\n1288#3,50:1967\n103#3,18:2017\n1347#3,13:2035\n1363#3,32:2048\n1398#3,12:2080\n1413#3,18:2092\n1435#3,2:2110\n1441#3,34:2112\n*E\n*S KotlinDebug\n*F\n+ 1 Buffer.kt\nokio/Buffer\n*L\n160#1:1021\n190#1:1054\n228#1:1055\n249#1:1115\n249#1:1116\n249#1:1122\n249#1:1123\n252#1:1143\n252#1:1145\n252#1:1147\n252#1:1149\n252#1:1152\n252#1:1154\n252#1:1156\n252#1:1158\n255#1:1178\n255#1:1180\n255#1:1183\n255#1:1185\n255#1:1187\n255#1:1189\n255#1:1191\n255#1:1193\n255#1:1195\n255#1:1197\n323#1:1356\n326#1:1368\n326#1:1370\n326#1:1375\n326#1:1377\n326#1:1382\n326#1:1384\n326#1:1389\n326#1:1391\n326#1:1412\n326#1:1415\n367#1:1472\n472#1:1930\n472#1:1952\n472#1:1961\n174#1,32:1022\n240#1,10:1056\n243#1,18:1066\n246#1,2:1084\n246#1:1086\n246#1:1087\n246#1,18:1088\n249#1,9:1106\n249#1,5:1117\n249#1,10:1124\n252#1,9:1134\n252#1:1144\n252#1:1146\n252#1:1148\n252#1,2:1150\n252#1:1153\n252#1:1155\n252#1:1157\n252#1,10:1159\n255#1,9:1169\n255#1:1179\n255#1,2:1181\n255#1:1184\n255#1:1186\n255#1:1188\n255#1:1190\n255#1:1192\n255#1:1194\n255#1:1196\n255#1,10:1198\n267#1,56:1208\n270#1,55:1264\n272#1:1319\n275#1:1320\n277#1,7:1321\n280#1,6:1328\n283#1,5:1334\n317#1,6:1339\n323#1,11:1345\n323#1,2:1357\n326#1,9:1359\n326#1:1369\n326#1,4:1371\n326#1:1376\n326#1,4:1378\n326#1:1383\n326#1,4:1385\n326#1:1390\n326#1,20:1392\n326#1,2:1413\n326#1,18:1416\n328#1:1434\n331#1,6:1435\n333#1:1441\n336#1,7:1442\n339#1,17:1449\n363#1:1466\n367#1,5:1467\n367#1,10:1473\n369#1,5:1483\n372#1,2:1488\n377#1,88:1490\n380#1,48:1578\n399#1:1626\n405#1,21:1627\n426#1,7:1648\n430#1,7:1655\n432#1,4:1662\n434#1,8:1666\n438#1,10:1674\n442#1,14:1684\n446#1,63:1698\n449#1,40:1761\n452#1,15:1801\n454#1:1816\n454#1,39:1817\n456#1,6:1856\n466#1,8:1862\n466#1:1870\n466#1,22:1871\n466#1,18:1893\n472#1,5:1911\n472#1:1916\n472#1,13:1917\n472#1,13:1931\n472#1,8:1944\n472#1,8:1953\n477#1,4:1962\n477#1:1966\n477#1,50:1967\n477#1,18:2017\n487#1,13:2035\n549#1,32:2048\n551#1,12:2080\n560#1,18:2092\n565#1,2:2110\n567#1,34:2112\n*E\n"
.end annotation
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u0000\u00aa\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u001a\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0002\u0008\u0005\n\u0002\u0010\u0002\n\u0002\u0008\u0006\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\u0008\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\u0008\u0003\n\u0002\u0010\u0005\n\u0002\u0008\u0005\n\u0002\u0010\u0008\n\u0002\u0008\r\n\u0002\u0018\u0002\n\u0002\u0008\u0008\n\u0002\u0018\u0002\n\u0002\u0010\u0012\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u000f\n\u0002\u0010\n\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\n\n\u0002\u0018\u0002\n\u0002\u0008\u0007\n\u0002\u0018\u0002\n\u0002\u0008\u0007\n\u0002\u0018\u0002\n\u0002\u0008\u0017\u0018\u00002\u00020\u00012\u00020\u00022\u00020\u00032\u00020\u0004:\u0002\u0090\u0001B\u0005\u00a2\u0006\u0002\u0010\u0005J\u0008\u0010\u0006\u001a\u00020\u0000H\u0016J\u0006\u0010\u0011\u001a\u00020\u0012J\u0008\u0010\u0013\u001a\u00020\u0000H\u0016J\u0008\u0010\u0014\u001a\u00020\u0012H\u0016J\u0006\u0010\u0015\u001a\u00020\u000cJ\u0006\u0010\u0016\u001a\u00020\u0000J$\u0010\u0017\u001a\u00020\u00002\u0006\u0010\u0018\u001a\u00020\u00192\u0008\u0008\u0002\u0010\u001a\u001a\u00020\u000c2\u0008\u0008\u0002\u0010\u001b\u001a\u00020\u000cH\u0007J\u0018\u0010\u0017\u001a\u00020\u00002\u0006\u0010\u0018\u001a\u00020\u00002\u0008\u0008\u0002\u0010\u001a\u001a\u00020\u000cJ \u0010\u0017\u001a\u00020\u00002\u0006\u0010\u0018\u001a\u00020\u00002\u0008\u0008\u0002\u0010\u001a\u001a\u00020\u000c2\u0006\u0010\u001b\u001a\u00020\u000cJ\u0010\u0010\u001c\u001a\u00020\u001d2\u0006\u0010\u001e\u001a\u00020\u001fH\u0002J\u0008\u0010 \u001a\u00020\u0000H\u0016J\u0008\u0010!\u001a\u00020\u0000H\u0016J\u0013\u0010\"\u001a\u00020#2\u0008\u0010$\u001a\u0004\u0018\u00010%H\u0096\u0002J\u0008\u0010&\u001a\u00020#H\u0016J\u0008\u0010\'\u001a\u00020\u0012H\u0016J\u0016\u0010(\u001a\u00020)2\u0006\u0010*\u001a\u00020\u000cH\u0087\u0002\u00a2\u0006\u0002\u0008+J\u0015\u0010+\u001a\u00020)2\u0006\u0010,\u001a\u00020\u000cH\u0007\u00a2\u0006\u0002\u0008-J\u0008\u0010.\u001a\u00020/H\u0016J\u0018\u00100\u001a\u00020\u001d2\u0006\u0010\u001e\u001a\u00020\u001f2\u0006\u00101\u001a\u00020\u001dH\u0002J\u000e\u00102\u001a\u00020\u001d2\u0006\u00101\u001a\u00020\u001dJ\u000e\u00103\u001a\u00020\u001d2\u0006\u00101\u001a\u00020\u001dJ\u000e\u00104\u001a\u00020\u001d2\u0006\u00101\u001a\u00020\u001dJ\u0010\u00105\u001a\u00020\u000c2\u0006\u00106\u001a\u00020)H\u0016J\u0018\u00105\u001a\u00020\u000c2\u0006\u00106\u001a\u00020)2\u0006\u00107\u001a\u00020\u000cH\u0016J \u00105\u001a\u00020\u000c2\u0006\u00106\u001a\u00020)2\u0006\u00107\u001a\u00020\u000c2\u0006\u00108\u001a\u00020\u000cH\u0016J\u0010\u00105\u001a\u00020\u000c2\u0006\u00109\u001a\u00020\u001dH\u0016J\u0018\u00105\u001a\u00020\u000c2\u0006\u00109\u001a\u00020\u001d2\u0006\u00107\u001a\u00020\u000cH\u0016J\u0010\u0010:\u001a\u00020\u000c2\u0006\u0010;\u001a\u00020\u001dH\u0016J\u0018\u0010:\u001a\u00020\u000c2\u0006\u0010;\u001a\u00020\u001d2\u0006\u00107\u001a\u00020\u000cH\u0016J\u0008\u0010<\u001a\u00020=H\u0016J\u0008\u0010>\u001a\u00020#H\u0016J\u0006\u0010?\u001a\u00020\u001dJ\u0008\u0010@\u001a\u00020\u0019H\u0016J\u0008\u0010A\u001a\u00020\u0001H\u0016J\u0018\u0010B\u001a\u00020#2\u0006\u0010\u001a\u001a\u00020\u000c2\u0006\u00109\u001a\u00020\u001dH\u0016J(\u0010B\u001a\u00020#2\u0006\u0010\u001a\u001a\u00020\u000c2\u0006\u00109\u001a\u00020\u001d2\u0006\u0010C\u001a\u00020/2\u0006\u0010\u001b\u001a\u00020/H\u0016J\u0010\u0010D\u001a\u00020/2\u0006\u0010E\u001a\u00020FH\u0016J\u0010\u0010D\u001a\u00020/2\u0006\u0010E\u001a\u00020GH\u0016J \u0010D\u001a\u00020/2\u0006\u0010E\u001a\u00020G2\u0006\u0010\u001a\u001a\u00020/2\u0006\u0010\u001b\u001a\u00020/H\u0016J\u0018\u0010D\u001a\u00020\u000c2\u0006\u0010E\u001a\u00020\u00002\u0006\u0010\u001b\u001a\u00020\u000cH\u0016J\u0010\u0010H\u001a\u00020\u000c2\u0006\u0010E\u001a\u00020IH\u0016J\u0012\u0010J\u001a\u00020K2\u0008\u0008\u0002\u0010L\u001a\u00020KH\u0007J\u0008\u0010M\u001a\u00020)H\u0016J\u0008\u0010N\u001a\u00020GH\u0016J\u0010\u0010N\u001a\u00020G2\u0006\u0010\u001b\u001a\u00020\u000cH\u0016J\u0008\u0010O\u001a\u00020\u001dH\u0016J\u0010\u0010O\u001a\u00020\u001d2\u0006\u0010\u001b\u001a\u00020\u000cH\u0016J\u0008\u0010P\u001a\u00020\u000cH\u0016J\u000e\u0010Q\u001a\u00020\u00002\u0006\u0010R\u001a\u00020=J\u0016\u0010Q\u001a\u00020\u00002\u0006\u0010R\u001a\u00020=2\u0006\u0010\u001b\u001a\u00020\u000cJ \u0010Q\u001a\u00020\u00122\u0006\u0010R\u001a\u00020=2\u0006\u0010\u001b\u001a\u00020\u000c2\u0006\u0010S\u001a\u00020#H\u0002J\u0010\u0010T\u001a\u00020\u00122\u0006\u0010E\u001a\u00020GH\u0016J\u0018\u0010T\u001a\u00020\u00122\u0006\u0010E\u001a\u00020\u00002\u0006\u0010\u001b\u001a\u00020\u000cH\u0016J\u0008\u0010U\u001a\u00020\u000cH\u0016J\u0008\u0010V\u001a\u00020/H\u0016J\u0008\u0010W\u001a\u00020/H\u0016J\u0008\u0010X\u001a\u00020\u000cH\u0016J\u0008\u0010Y\u001a\u00020\u000cH\u0016J\u0008\u0010Z\u001a\u00020[H\u0016J\u0008\u0010\\\u001a\u00020[H\u0016J\u0010\u0010]\u001a\u00020\u001f2\u0006\u0010^\u001a\u00020_H\u0016J\u0018\u0010]\u001a\u00020\u001f2\u0006\u0010\u001b\u001a\u00020\u000c2\u0006\u0010^\u001a\u00020_H\u0016J\u0012\u0010`\u001a\u00020K2\u0008\u0008\u0002\u0010L\u001a\u00020KH\u0007J\u0008\u0010a\u001a\u00020\u001fH\u0016J\u0010\u0010a\u001a\u00020\u001f2\u0006\u0010\u001b\u001a\u00020\u000cH\u0016J\u0008\u0010b\u001a\u00020/H\u0016J\n\u0010c\u001a\u0004\u0018\u00010\u001fH\u0016J\u0008\u0010d\u001a\u00020\u001fH\u0016J\u0010\u0010d\u001a\u00020\u001f2\u0006\u0010e\u001a\u00020\u000cH\u0016J\u0010\u0010f\u001a\u00020#2\u0006\u0010\u001b\u001a\u00020\u000cH\u0016J\u0010\u0010g\u001a\u00020\u00122\u0006\u0010\u001b\u001a\u00020\u000cH\u0016J\u0010\u0010h\u001a\u00020/2\u0006\u0010i\u001a\u00020jH\u0016J\u0006\u0010k\u001a\u00020\u001dJ\u0006\u0010l\u001a\u00020\u001dJ\u0006\u0010m\u001a\u00020\u001dJ\r\u0010\r\u001a\u00020\u000cH\u0007\u00a2\u0006\u0002\u0008nJ\u0010\u0010o\u001a\u00020\u00122\u0006\u0010\u001b\u001a\u00020\u000cH\u0016J\u0006\u0010p\u001a\u00020\u001dJ\u000e\u0010p\u001a\u00020\u001d2\u0006\u0010\u001b\u001a\u00020/J\u0008\u0010q\u001a\u00020rH\u0016J\u0008\u0010s\u001a\u00020\u001fH\u0016J\u0015\u0010t\u001a\u00020\n2\u0006\u0010u\u001a\u00020/H\u0000\u00a2\u0006\u0002\u0008vJ\u0010\u0010w\u001a\u00020/2\u0006\u0010x\u001a\u00020FH\u0016J\u0010\u0010w\u001a\u00020\u00002\u0006\u0010x\u001a\u00020GH\u0016J \u0010w\u001a\u00020\u00002\u0006\u0010x\u001a\u00020G2\u0006\u0010\u001a\u001a\u00020/2\u0006\u0010\u001b\u001a\u00020/H\u0016J\u0018\u0010w\u001a\u00020\u00122\u0006\u0010x\u001a\u00020\u00002\u0006\u0010\u001b\u001a\u00020\u000cH\u0016J\u0010\u0010w\u001a\u00020\u00002\u0006\u0010y\u001a\u00020\u001dH\u0016J \u0010w\u001a\u00020\u00002\u0006\u0010y\u001a\u00020\u001d2\u0006\u0010\u001a\u001a\u00020/2\u0006\u0010\u001b\u001a\u00020/H\u0016J\u0018\u0010w\u001a\u00020\u00002\u0006\u0010x\u001a\u00020z2\u0006\u0010\u001b\u001a\u00020\u000cH\u0016J\u0010\u0010{\u001a\u00020\u000c2\u0006\u0010x\u001a\u00020zH\u0016J\u0010\u0010|\u001a\u00020\u00002\u0006\u00106\u001a\u00020/H\u0016J\u0010\u0010}\u001a\u00020\u00002\u0006\u0010~\u001a\u00020\u000cH\u0016J\u0010\u0010\u007f\u001a\u00020\u00002\u0006\u0010~\u001a\u00020\u000cH\u0016J\u0012\u0010\u0080\u0001\u001a\u00020\u00002\u0007\u0010\u0081\u0001\u001a\u00020/H\u0016J\u0012\u0010\u0082\u0001\u001a\u00020\u00002\u0007\u0010\u0081\u0001\u001a\u00020/H\u0016J\u0011\u0010\u0083\u0001\u001a\u00020\u00002\u0006\u0010~\u001a\u00020\u000cH\u0016J\u0011\u0010\u0084\u0001\u001a\u00020\u00002\u0006\u0010~\u001a\u00020\u000cH\u0016J\u0012\u0010\u0085\u0001\u001a\u00020\u00002\u0007\u0010\u0086\u0001\u001a\u00020/H\u0016J\u0012\u0010\u0087\u0001\u001a\u00020\u00002\u0007\u0010\u0086\u0001\u001a\u00020/H\u0016J\u001a\u0010\u0088\u0001\u001a\u00020\u00002\u0007\u0010\u0089\u0001\u001a\u00020\u001f2\u0006\u0010^\u001a\u00020_H\u0016J,\u0010\u0088\u0001\u001a\u00020\u00002\u0007\u0010\u0089\u0001\u001a\u00020\u001f2\u0007\u0010\u008a\u0001\u001a\u00020/2\u0007\u0010\u008b\u0001\u001a\u00020/2\u0006\u0010^\u001a\u00020_H\u0016J\u001b\u0010\u008c\u0001\u001a\u00020\u00002\u0006\u0010\u0018\u001a\u00020\u00192\u0008\u0008\u0002\u0010\u001b\u001a\u00020\u000cH\u0007J\u0012\u0010\u008d\u0001\u001a\u00020\u00002\u0007\u0010\u0089\u0001\u001a\u00020\u001fH\u0016J$\u0010\u008d\u0001\u001a\u00020\u00002\u0007\u0010\u0089\u0001\u001a\u00020\u001f2\u0007\u0010\u008a\u0001\u001a\u00020/2\u0007\u0010\u008b\u0001\u001a\u00020/H\u0016J\u0012\u0010\u008e\u0001\u001a\u00020\u00002\u0007\u0010\u008f\u0001\u001a\u00020/H\u0016R\u0014\u0010\u0006\u001a\u00020\u00008VX\u0096\u0004\u00a2\u0006\u0006\u001a\u0004\u0008\u0007\u0010\u0008R\u0014\u0010\t\u001a\u0004\u0018\u00010\n8\u0000@\u0000X\u0081\u000e\u00a2\u0006\u0002\n\u0000R&\u0010\r\u001a\u00020\u000c2\u0006\u0010\u000b\u001a\u00020\u000c8G@@X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\r\u0010\u000e\"\u0004\u0008\u000f\u0010\u0010\u00a8\u0006\u0091\u0001"
}
d2 = {
"Lokio/Buffer;",
"Lokio/BufferedSource;",
"Lokio/BufferedSink;",
"",
"Ljava/nio/channels/ByteChannel;",
"()V",
"buffer",
"getBuffer",
"()Lokio/Buffer;",
"head",
"Lokio/Segment;",
"<set-?>",
"",
"size",
"()J",
"setSize$okio",
"(J)V",
"clear",
"",
"clone",
"close",
"completeSegmentByteCount",
"copy",
"copyTo",
"out",
"Ljava/io/OutputStream;",
"offset",
"byteCount",
"digest",
"Lokio/ByteString;",
"algorithm",
"",
"emit",
"emitCompleteSegments",
"equals",
"",
"other",
"",
"exhausted",
"flush",
"get",
"",
"pos",
"getByte",
"index",
"-deprecated_getByte",
"hashCode",
"",
"hmac",
"key",
"hmacSha1",
"hmacSha256",
"hmacSha512",
"indexOf",
"b",
"fromIndex",
"toIndex",
"bytes",
"indexOfElement",
"targetBytes",
"inputStream",
"Ljava/io/InputStream;",
"isOpen",
"md5",
"outputStream",
"peek",
"rangeEquals",
"bytesOffset",
"read",
"sink",
"Ljava/nio/ByteBuffer;",
"",
"readAll",
"Lokio/Sink;",
"readAndWriteUnsafe",
"Lokio/Buffer$UnsafeCursor;",
"unsafeCursor",
"readByte",
"readByteArray",
"readByteString",
"readDecimalLong",
"readFrom",
"input",
"forever",
"readFully",
"readHexadecimalUnsignedLong",
"readInt",
"readIntLe",
"readLong",
"readLongLe",
"readShort",
"",
"readShortLe",
"readString",
"charset",
"Ljava/nio/charset/Charset;",
"readUnsafe",
"readUtf8",
"readUtf8CodePoint",
"readUtf8Line",
"readUtf8LineStrict",
"limit",
"request",
"require",
"select",
"options",
"Lokio/Options;",
"sha1",
"sha256",
"sha512",
"-deprecated_size",
"skip",
"snapshot",
"timeout",
"Lokio/Timeout;",
"toString",
"writableSegment",
"minimumCapacity",
"writableSegment$okio",
"write",
"source",
"byteString",
"Lokio/Source;",
"writeAll",
"writeByte",
"writeDecimalLong",
"v",
"writeHexadecimalUnsignedLong",
"writeInt",
"i",
"writeIntLe",
"writeLong",
"writeLongLe",
"writeShort",
"s",
"writeShortLe",
"writeString",
"string",
"beginIndex",
"endIndex",
"writeTo",
"writeUtf8",
"writeUtf8CodePoint",
"codePoint",
"UnsafeCursor",
"okio"
}
k = 0x1
mv = {
0x1,
0x1,
0xf
}
.end annotation
# instance fields
.field public head:Lokio/Segment;
.field private size:J
# direct methods
.method public constructor <init>()V
.registers 1
.line 69
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static synthetic copyTo$default(Lokio/Buffer;Ljava/io/OutputStream;JJILjava/lang/Object;)Lokio/Buffer;
.registers 14
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
and-int/lit8 p7, p6, 0x2
if-eqz p7, :cond_6
const-wide/16 p2, 0x0
:cond_6
move-wide v2, p2
and-int/lit8 p2, p6, 0x4
if-eqz p2, :cond_f
.line 143
iget-wide p2, p0, Lokio/Buffer;->size:J
sub-long p4, p2, v2
:cond_f
move-wide v4, p4
move-object v0, p0
move-object v1, p1
invoke-virtual/range {v0 .. v5}, Lokio/Buffer;->copyTo(Ljava/io/OutputStream;JJ)Lokio/Buffer;
move-result-object p0
return-object p0
.end method
.method public static synthetic copyTo$default(Lokio/Buffer;Lokio/Buffer;JILjava/lang/Object;)Lokio/Buffer;
.registers 6
and-int/lit8 p4, p4, 0x2
if-eqz p4, :cond_6
const-wide/16 p2, 0x0
:cond_6
invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->copyTo(Lokio/Buffer;J)Lokio/Buffer;
move-result-object p0
return-object p0
.end method
.method public static synthetic copyTo$default(Lokio/Buffer;Lokio/Buffer;JJILjava/lang/Object;)Lokio/Buffer;
.registers 14
and-int/lit8 p6, p6, 0x2
if-eqz p6, :cond_6
const-wide/16 p2, 0x0
:cond_6
move-wide v2, p2
move-object v0, p0
move-object v1, p1
move-wide v4, p4
invoke-virtual/range {v0 .. v5}, Lokio/Buffer;->copyTo(Lokio/Buffer;JJ)Lokio/Buffer;
move-result-object p0
return-object p0
.end method
.method private final digest(Ljava/lang/String;)Lokio/ByteString;
.registers 8
.line 510
invoke-static {p1}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;
move-result-object p1
.line 511
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
if-eqz v0, :cond_31
.line 512
iget-object v1, v0, Lokio/Segment;->data:[B
iget v2, v0, Lokio/Segment;->pos:I
iget v3, v0, Lokio/Segment;->limit:I
iget v4, v0, Lokio/Segment;->pos:I
sub-int/2addr v3, v4
invoke-virtual {p1, v1, v2, v3}, Ljava/security/MessageDigest;->update([BII)V
.line 513
iget-object v1, v0, Lokio/Segment;->next:Lokio/Segment;
if-nez v1, :cond_1b
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_1b
:goto_1b
if-eq v1, v0, :cond_31
.line 515
iget-object v2, v1, Lokio/Segment;->data:[B
iget v3, v1, Lokio/Segment;->pos:I
iget v4, v1, Lokio/Segment;->limit:I
iget v5, v1, Lokio/Segment;->pos:I
sub-int/2addr v4, v5
invoke-virtual {p1, v2, v3, v4}, Ljava/security/MessageDigest;->update([BII)V
.line 516
iget-object v1, v1, Lokio/Segment;->next:Lokio/Segment;
if-nez v1, :cond_1b
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
goto :goto_1b
.line 519
:cond_31
new-instance v0, Lokio/ByteString;
invoke-virtual {p1}, Ljava/security/MessageDigest;->digest()[B
move-result-object p1
const-string v1, "messageDigest.digest()"
invoke-static {p1, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {v0, p1}, Lokio/ByteString;-><init>([B)V
return-object v0
.end method
.method private final hmac(Ljava/lang/String;Lokio/ByteString;)Lokio/ByteString;
.registers 8
.line 533
:try_start_0
invoke-static {p1}, Ljavax/crypto/Mac;->getInstance(Ljava/lang/String;)Ljavax/crypto/Mac;
move-result-object v0
.line 534
new-instance v1, Ljavax/crypto/spec/SecretKeySpec;
invoke-virtual {p2}, Lokio/ByteString;->internalArray$okio()[B
move-result-object p2
invoke-direct {v1, p2, p1}, Ljavax/crypto/spec/SecretKeySpec;-><init>([BLjava/lang/String;)V
check-cast v1, Ljava/security/Key;
invoke-virtual {v0, v1}, Ljavax/crypto/Mac;->init(Ljava/security/Key;)V
.line 535
iget-object p1, p0, Lokio/Buffer;->head:Lokio/Segment;
if-eqz p1, :cond_3f
.line 536
iget-object p2, p1, Lokio/Segment;->data:[B
iget v1, p1, Lokio/Segment;->pos:I
iget v2, p1, Lokio/Segment;->limit:I
iget v3, p1, Lokio/Segment;->pos:I
sub-int/2addr v2, v3
invoke-virtual {v0, p2, v1, v2}, Ljavax/crypto/Mac;->update([BII)V
.line 537
iget-object p2, p1, Lokio/Segment;->next:Lokio/Segment;
if-nez p2, :cond_29
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_29
:goto_29
if-eq p2, p1, :cond_3f
.line 539
iget-object v1, p2, Lokio/Segment;->data:[B
iget v2, p2, Lokio/Segment;->pos:I
iget v3, p2, Lokio/Segment;->limit:I
iget v4, p2, Lokio/Segment;->pos:I
sub-int/2addr v3, v4
invoke-virtual {v0, v1, v2, v3}, Ljavax/crypto/Mac;->update([BII)V
.line 540
iget-object p2, p2, Lokio/Segment;->next:Lokio/Segment;
if-nez p2, :cond_29
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
goto :goto_29
.line 543
:cond_3f
new-instance p1, Lokio/ByteString;
invoke-virtual {v0}, Ljavax/crypto/Mac;->doFinal()[B
move-result-object p2
const-string v0, "mac.doFinal()"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p1, p2}, Lokio/ByteString;-><init>([B)V
:try_end_4d
.catch Ljava/security/InvalidKeyException; {:try_start_0 .. :try_end_4d} :catch_4e
return-object p1
:catch_4e
move-exception p1
.line 545
new-instance p2, Ljava/lang/IllegalArgumentException;
check-cast p1, Ljava/lang/Throwable;
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/Throwable;)V
check-cast p2, Ljava/lang/Throwable;
throw p2
.end method
.method public static synthetic readAndWriteUnsafe$default(Lokio/Buffer;Lokio/Buffer$UnsafeCursor;ILjava/lang/Object;)Lokio/Buffer$UnsafeCursor;
.registers 4
and-int/lit8 p2, p2, 0x1
if-eqz p2, :cond_9
.line 578
new-instance p1, Lokio/Buffer$UnsafeCursor;
invoke-direct {p1}, Lokio/Buffer$UnsafeCursor;-><init>()V
:cond_9
invoke-virtual {p0, p1}, Lokio/Buffer;->readAndWriteUnsafe(Lokio/Buffer$UnsafeCursor;)Lokio/Buffer$UnsafeCursor;
move-result-object p0
return-object p0
.end method
.method private final readFrom(Ljava/io/InputStream;JZ)V
.registers 9
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
:goto_0
const-wide/16 v0, 0x0
cmp-long v2, p2, v0
if-gtz v2, :cond_a
if-eqz p4, :cond_9
goto :goto_a
:cond_9
return-void
:cond_a
:goto_a
const/4 v0, 0x1
.line 227
invoke-virtual {p0, v0}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
move-result-object v0
.line 228
iget v1, v0, Lokio/Segment;->limit:I
rsub-int v1, v1, 0x2000
int-to-long v1, v1
.line 1055
invoke-static {p2, p3, v1, v2}, Ljava/lang/Math;->min(JJ)J
move-result-wide v1
long-to-int v2, v1
.line 229
iget-object v1, v0, Lokio/Segment;->data:[B
iget v3, v0, Lokio/Segment;->limit:I
invoke-virtual {p1, v1, v3, v2}, Ljava/io/InputStream;->read([BII)I
move-result v1
const/4 v2, -0x1
if-ne v1, v2, :cond_2f
if-eqz p4, :cond_27
return-void
.line 232
:cond_27
new-instance p1, Ljava/io/EOFException;
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
check-cast p1, Ljava/lang/Throwable;
throw p1
.line 234
:cond_2f
iget v2, v0, Lokio/Segment;->limit:I
add-int/2addr v2, v1
iput v2, v0, Lokio/Segment;->limit:I
.line 235
iget-wide v2, p0, Lokio/Buffer;->size:J
int-to-long v0, v1
add-long/2addr v2, v0
iput-wide v2, p0, Lokio/Buffer;->size:J
sub-long/2addr p2, v0
goto :goto_0
.end method
.method public static synthetic readUnsafe$default(Lokio/Buffer;Lokio/Buffer$UnsafeCursor;ILjava/lang/Object;)Lokio/Buffer$UnsafeCursor;
.registers 4
and-int/lit8 p2, p2, 0x1
if-eqz p2, :cond_9
.line 569
new-instance p1, Lokio/Buffer$UnsafeCursor;
invoke-direct {p1}, Lokio/Buffer$UnsafeCursor;-><init>()V
:cond_9
invoke-virtual {p0, p1}, Lokio/Buffer;->readUnsafe(Lokio/Buffer$UnsafeCursor;)Lokio/Buffer$UnsafeCursor;
move-result-object p0
return-object p0
.end method
.method public static synthetic writeTo$default(Lokio/Buffer;Ljava/io/OutputStream;JILjava/lang/Object;)Lokio/Buffer;
.registers 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
and-int/lit8 p4, p4, 0x2
if-eqz p4, :cond_6
.line 184
iget-wide p2, p0, Lokio/Buffer;->size:J
:cond_6
invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->writeTo(Ljava/io/OutputStream;J)Lokio/Buffer;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public final -deprecated_getByte(J)B
.registers 3
.annotation runtime Lkotlin/Deprecated;
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
message = "moved to operator function"
replaceWith = .subannotation Lkotlin/ReplaceWith;
expression = "this[index]"
imports = {}
.end subannotation
.end annotation
.line 591
invoke-virtual {p0, p1, p2}, Lokio/Buffer;->getByte(J)B
move-result p1
return p1
.end method
.method public final -deprecated_size()J
.registers 3
.annotation runtime Lkotlin/Deprecated;
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
message = "moved to val"
replaceWith = .subannotation Lkotlin/ReplaceWith;
expression = "size"
imports = {}
.end subannotation
.end annotation
.line 598
iget-wide v0, p0, Lokio/Buffer;->size:J
return-wide v0
.end method
.method public buffer()Lokio/Buffer;
.registers 1
return-object p0
.end method
.method public final clear()V
.registers 3
.line 1466
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 bridge synthetic clone()Ljava/lang/Object;
.registers 2
.line 69
invoke-virtual {p0}, Lokio/Buffer;->clone()Lokio/Buffer;
move-result-object v0
return-object v0
.end method
.method public clone()Lokio/Buffer;
.registers 2
.line 563
invoke-virtual {p0}, Lokio/Buffer;->copy()Lokio/Buffer;
move-result-object v0
return-object v0
.end method
.method public close()V
.registers 1
return-void
.end method
.method public final completeSegmentByteCount()J
.registers 6
.line 1056
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_b
goto :goto_2b
.line 1060
:cond_b
iget-object v2, p0, Lokio/Buffer;->head:Lokio/Segment;
if-nez v2, :cond_12
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_12
iget-object v2, v2, Lokio/Segment;->prev:Lokio/Segment;
if-nez v2, :cond_19
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
.line 1061
:cond_19
iget v3, v2, Lokio/Segment;->limit:I
const/16 v4, 0x2000
if-ge v3, v4, :cond_2a
iget-boolean v3, v2, Lokio/Segment;->owner:Z
if-eqz v3, :cond_2a
.line 1062
iget v3, v2, Lokio/Segment;->limit:I
iget v2, v2, Lokio/Segment;->pos:I
sub-int/2addr v3, v2
int-to-long v2, v3
sub-long/2addr v0, v2
:cond_2a
move-wide v2, v0
:goto_2b
return-wide v2
.end method
.method public final copy()Lokio/Buffer;
.registers 7
.line 2092
new-instance v0, Lokio/Buffer;
invoke-direct {v0}, Lokio/Buffer;-><init>()V
.line 2093
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v1
const-wide/16 v3, 0x0
cmp-long v5, v1, v3
if-nez v5, :cond_10
goto :goto_44
.line 2095
:cond_10
iget-object v1, p0, Lokio/Buffer;->head:Lokio/Segment;
if-nez v1, :cond_17
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
.line 2096
:cond_17
invoke-virtual {v1}, Lokio/Segment;->sharedCopy()Lokio/Segment;
move-result-object v2
.line 2098
iput-object v2, v0, Lokio/Buffer;->head:Lokio/Segment;
.line 2099
iput-object v2, v2, Lokio/Segment;->prev:Lokio/Segment;
.line 2100
iget-object v3, v2, Lokio/Segment;->prev:Lokio/Segment;
iput-object v3, v2, Lokio/Segment;->next:Lokio/Segment;
.line 2102
iget-object v3, v1, Lokio/Segment;->next:Lokio/Segment;
:goto_25
if-eq v3, v1, :cond_3d
.line 2104
iget-object v4, v2, Lokio/Segment;->prev:Lokio/Segment;
if-nez v4, :cond_2e
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_2e
if-nez v3, :cond_33
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_33
invoke-virtual {v3}, Lokio/Segment;->sharedCopy()Lokio/Segment;
move-result-object v5
invoke-virtual {v4, v5}, Lokio/Segment;->push(Lokio/Segment;)Lokio/Segment;
.line 2105
iget-object v3, v3, Lokio/Segment;->next:Lokio/Segment;
goto :goto_25
.line 2108
:cond_3d
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v1
invoke-virtual {v0, v1, v2}, Lokio/Buffer;->setSize$okio(J)V
:goto_44
return-object v0
.end method
.method public final copyTo(Ljava/io/OutputStream;)Lokio/Buffer;
.registers 10
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v2, 0x0
const-wide/16 v4, 0x0
const/4 v6, 0x6
const/4 v7, 0x0
move-object v0, p0
move-object v1, p1
invoke-static/range {v0 .. v7}, Lokio/Buffer;->copyTo$default(Lokio/Buffer;Ljava/io/OutputStream;JJILjava/lang/Object;)Lokio/Buffer;
move-result-object p1
return-object p1
.end method
.method public final copyTo(Ljava/io/OutputStream;J)Lokio/Buffer;
.registers 12
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v4, 0x0
const/4 v6, 0x4
const/4 v7, 0x0
move-object v0, p0
move-object v1, p1
move-wide v2, p2
invoke-static/range {v0 .. v7}, Lokio/Buffer;->copyTo$default(Lokio/Buffer;Ljava/io/OutputStream;JJILjava/lang/Object;)Lokio/Buffer;
move-result-object p1
return-object p1
.end method
.method public final copyTo(Ljava/io/OutputStream;JJ)Lokio/Buffer;
.registers 13
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "out"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 147
iget-wide v1, p0, Lokio/Buffer;->size:J
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_13
return-object p0
.line 151
:cond_13
iget-object v2, p0, Lokio/Buffer;->head:Lokio/Segment;
:goto_15
if-nez v2, :cond_1a
.line 152
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_1a
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 v5, p2, v3
if-ltz v5, :cond_2e
.line 153
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 154
iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment;
goto :goto_15
:cond_2e
:goto_2e
cmp-long v3, p4, v0
if-lez v3, :cond_50
if-nez v2, :cond_37
.line 159
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_37
iget v3, v2, Lokio/Segment;->pos:I
int-to-long v3, v3
add-long/2addr v3, p2
long-to-int p2, v3
.line 160
iget p3, v2, Lokio/Segment;->limit:I
sub-int/2addr p3, p2
int-to-long v3, p3
.line 1021
invoke-static {v3, v4, p4, p5}, Ljava/lang/Math;->min(JJ)J
move-result-wide v3
long-to-int p3, v3
.line 161
iget-object v3, v2, Lokio/Segment;->data:[B
invoke-virtual {p1, v3, p2, p3}, Ljava/io/OutputStream;->write([BII)V
int-to-long p2, p3
sub-long/2addr p4, p2
.line 164
iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment;
move-wide p2, v0
goto :goto_2e
:cond_50
return-object p0
.end method
.method public final copyTo(Lokio/Buffer;J)Lokio/Buffer;
.registers 12
const-string v0, "out"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 179
iget-wide v0, p0, Lokio/Buffer;->size:J
sub-long v6, v0, p2
move-object v2, p0
move-object v3, p1
move-wide v4, p2
invoke-virtual/range {v2 .. v7}, Lokio/Buffer;->copyTo(Lokio/Buffer;JJ)Lokio/Buffer;
move-result-object p1
return-object p1
.end method
.method public final copyTo(Lokio/Buffer;JJ)Lokio/Buffer;
.registers 13
const-string v0, "out"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 1024
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_15
goto :goto_80
.line 1027
:cond_15
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 1030
iget-object v2, p0, Lokio/Buffer;->head:Lokio/Segment;
:goto_1f
if-nez v2, :cond_24
.line 1031
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_24
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 v5, p2, v3
if-ltz v5, :cond_38
.line 1032
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 1033
iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment;
goto :goto_1f
:cond_38
:goto_38
cmp-long v3, p4, v0
if-lez v3, :cond_80
if-nez v2, :cond_41
.line 1038
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_41
invoke-virtual {v2}, Lokio/Segment;->sharedCopy()Lokio/Segment;
move-result-object v3
.line 1039
iget v4, v3, Lokio/Segment;->pos:I
long-to-int p3, p2
add-int/2addr v4, p3
iput v4, v3, Lokio/Segment;->pos:I
.line 1040
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 1041
iget-object p2, p1, Lokio/Buffer;->head:Lokio/Segment;
if-nez p2, :cond_66
.line 1042
iput-object v3, v3, Lokio/Segment;->prev:Lokio/Segment;
.line 1043
iget-object p2, v3, Lokio/Segment;->prev:Lokio/Segment;
iput-object p2, v3, Lokio/Segment;->next:Lokio/Segment;
.line 1044
iget-object p2, v3, Lokio/Segment;->next:Lokio/Segment;
iput-object p2, p1, Lokio/Buffer;->head:Lokio/Segment;
goto :goto_75
:cond_66
if-nez p2, :cond_6b
.line 1046
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_6b
iget-object p2, p2, Lokio/Segment;->prev:Lokio/Segment;
if-nez p2, :cond_72
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_72
invoke-virtual {p2, v3}, Lokio/Segment;->push(Lokio/Segment;)Lokio/Segment;
.line 1048
:goto_75
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 1050
iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment;
move-wide p2, v0
goto :goto_38
:cond_80
:goto_80
return-object p0
.end method
.method public emit()Lokio/Buffer;
.registers 1
return-object p0
.end method
.method public bridge synthetic emit()Lokio/BufferedSink;
.registers 2
.line 69
invoke-virtual {p0}, Lokio/Buffer;->emit()Lokio/Buffer;
move-result-object v0
check-cast v0, Lokio/BufferedSink;
return-object v0
.end method
.method public emitCompleteSegments()Lokio/Buffer;
.registers 1
return-object p0
.end method
.method public bridge synthetic emitCompleteSegments()Lokio/BufferedSink;
.registers 2
.line 69
invoke-virtual {p0}, Lokio/Buffer;->emitCompleteSegments()Lokio/Buffer;
move-result-object v0
check-cast v0, Lokio/BufferedSink;
return-object v0
.end method
.method public equals(Ljava/lang/Object;)Z
.registers 22
move-object/from16 v0, p0
move-object/from16 v1, p1
const/4 v2, 0x0
const/4 v3, 0x1
if-ne v0, v1, :cond_b
:cond_8
:goto_8
const/4 v2, 0x1
goto/16 :goto_8b
.line 2049
:cond_b
instance-of v4, v1, Lokio/Buffer;
if-nez v4, :cond_11
goto/16 :goto_8b
.line 2050
:cond_11
invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J
move-result-wide v4
check-cast v1, Lokio/Buffer;
invoke-virtual {v1}, Lokio/Buffer;->size()J
move-result-wide v6
cmp-long v8, v4, v6
if-eqz v8, :cond_21
goto/16 :goto_8b
.line 2051
:cond_21
invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J
move-result-wide v4
const-wide/16 v6, 0x0
cmp-long v8, v4, v6
if-nez v8, :cond_2c
goto :goto_8
.line 2053
:cond_2c
iget-object v4, v0, Lokio/Buffer;->head:Lokio/Segment;
if-nez v4, :cond_33
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
.line 2054
:cond_33
iget-object v1, v1, Lokio/Buffer;->head:Lokio/Segment;
if-nez v1, :cond_3a
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
.line 2055
:cond_3a
iget v5, v4, Lokio/Segment;->pos:I
.line 2056
iget v8, v1, Lokio/Segment;->pos:I
move-wide v9, v6
.line 2060
:goto_3f
invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J
move-result-wide v11
cmp-long v13, v9, v11
if-gez v13, :cond_8
.line 2061
iget v11, v4, Lokio/Segment;->limit:I
sub-int/2addr v11, v5
iget v12, v1, Lokio/Segment;->limit:I
sub-int/2addr v12, v8
invoke-static {v11, v12}, Ljava/lang/Math;->min(II)I
move-result v11
int-to-long v11, v11
move-wide v13, v6
:goto_53
cmp-long v15, v13, v11
if-gez v15, :cond_6f
.line 2064
iget-object v15, v4, 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, v8, 0x1
aget-byte v8, v15, v8
if-eq v5, v8, :cond_66
goto :goto_8b
:cond_66
const-wide/16 v18, 0x1
add-long v13, v13, v18
move/from16 v5, v16
move/from16 v8, v17
goto :goto_53
.line 2067
:cond_6f
iget v13, v4, Lokio/Segment;->limit:I
if-ne v5, v13, :cond_7c
.line 2068
iget-object v4, v4, Lokio/Segment;->next:Lokio/Segment;
if-nez v4, :cond_7a
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
.line 2069
:cond_7a
iget v5, v4, Lokio/Segment;->pos:I
.line 2072
:cond_7c
iget v13, v1, Lokio/Segment;->limit:I
if-ne v8, v13, :cond_89
.line 2073
iget-object v1, v1, Lokio/Segment;->next:Lokio/Segment;
if-nez v1, :cond_87
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
.line 2074
:cond_87
iget v8, v1, Lokio/Segment;->pos:I
:cond_89
add-long/2addr v9, v11
goto :goto_3f
:goto_8b
return v2
.end method
.method public exhausted()Z
.registers 6
.line 102
iget-wide v0, p0, Lokio/Buffer;->size:J
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-nez v4, :cond_a
const/4 v0, 0x1
goto :goto_b
:cond_a
const/4 v0, 0x0
:goto_b
return v0
.end method
.method public flush()V
.registers 1
return-void
.end method
.method public getBuffer()Lokio/Buffer;
.registers 1
return-object p0
.end method
.method public final getByte(J)B
.registers 9
.line 1084
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v0
const-wide/16 v4, 0x1
move-wide v2, p1
invoke-static/range {v0 .. v5}, Lokio/-Util;->checkOffsetAndCount(JJJ)V
.line 1086
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
if-eqz v0, :cond_64
.line 1088
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v1
sub-long/2addr v1, p1
cmp-long v3, v1, p1
if-gez v3, :cond_3e
.line 1090
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v1
:goto_1b
cmp-long v3, v1, p1
if-lez v3, :cond_2e
.line 1092
iget-object v0, v0, Lokio/Segment;->prev:Lokio/Segment;
if-nez v0, :cond_26
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
.line 1093
:cond_26
iget v3, v0, Lokio/Segment;->limit:I
iget v4, v0, Lokio/Segment;->pos:I
sub-int/2addr v3, v4
int-to-long v3, v3
sub-long/2addr v1, v3
goto :goto_1b
:cond_2e
if-nez v0, :cond_33
.line 1087
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_33
iget-object v3, v0, Lokio/Segment;->data:[B
iget v0, v0, Lokio/Segment;->pos:I
int-to-long v4, v0
add-long/2addr v4, p1
sub-long/2addr v4, v1
long-to-int p1, v4
aget-byte p1, v3, p1
goto :goto_76
:cond_3e
const-wide/16 v1, 0x0
.line 1100
:goto_40
iget v3, v0, Lokio/Segment;->limit:I
iget v4, v0, Lokio/Segment;->pos:I
sub-int/2addr v3, v4
int-to-long v3, v3
add-long/2addr v3, v1
cmp-long v5, v3, p1
if-lez v5, :cond_5b
if-nez v0, :cond_50
.line 1087
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_50
iget-object v3, v0, Lokio/Segment;->data:[B
iget v0, v0, Lokio/Segment;->pos:I
int-to-long v4, v0
add-long/2addr v4, p1
sub-long/2addr v4, v1
long-to-int p1, v4
aget-byte p1, v3, p1
goto :goto_76
.line 1102
:cond_5b
iget-object v0, v0, Lokio/Segment;->next:Lokio/Segment;
if-nez v0, :cond_62
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_62
move-wide v1, v3
goto :goto_40
:cond_64
const/4 v0, 0x0
const-wide/16 v1, -0x1
.line 1086
check-cast v0, Lokio/Segment;
.line 1087
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
iget-object v3, v0, Lokio/Segment;->data:[B
iget v0, v0, Lokio/Segment;->pos:I
int-to-long v4, v0
add-long/2addr v4, p1
sub-long/2addr v4, v1
long-to-int p1, v4
aget-byte p1, v3, p1
:goto_76
return p1
.end method
.method public hashCode()I
.registers 6
.line 2080
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
if-eqz v0, :cond_21
const/4 v1, 0x1
.line 2083
:cond_5
iget v2, v0, Lokio/Segment;->pos:I
.line 2084
iget v3, v0, Lokio/Segment;->limit:I
:goto_9
if-ge v2, v3, :cond_15
mul-int/lit8 v1, v1, 0x1f
.line 2086
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_9
.line 2089
:cond_15
iget-object v0, v0, Lokio/Segment;->next:Lokio/Segment;
if-nez v0, :cond_1c
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
.line 2090
:cond_1c
iget-object v2, p0, Lokio/Buffer;->head:Lokio/Segment;
if-ne v0, v2, :cond_5
goto :goto_22
:cond_21
const/4 v1, 0x0
:goto_22
return v1
.end method
.method public final hmacSha1(Lokio/ByteString;)Lokio/ByteString;
.registers 3
const-string v0, "key"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "HmacSHA1"
.line 523
invoke-direct {p0, v0, p1}, Lokio/Buffer;->hmac(Ljava/lang/String;Lokio/ByteString;)Lokio/ByteString;
move-result-object p1
return-object p1
.end method
.method public final hmacSha256(Lokio/ByteString;)Lokio/ByteString;
.registers 3
const-string v0, "key"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "HmacSHA256"
.line 526
invoke-direct {p0, v0, p1}, Lokio/Buffer;->hmac(Ljava/lang/String;Lokio/ByteString;)Lokio/ByteString;
move-result-object p1
return-object p1
.end method
.method public final hmacSha512(Lokio/ByteString;)Lokio/ByteString;
.registers 3
const-string v0, "key"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "HmacSHA512"
.line 529
invoke-direct {p0, v0, p1}, Lokio/Buffer;->hmac(Ljava/lang/String;Lokio/ByteString;)Lokio/ByteString;
move-result-object p1
return-object p1
.end method
.method public indexOf(B)J
.registers 8
const-wide/16 v2, 0x0
const-wide v4, 0x7fffffffffffffffL
move-object v0, p0
move v1, p1
.line 458
invoke-virtual/range {v0 .. v5}, Lokio/Buffer;->indexOf(BJJ)J
move-result-wide v0
return-wide v0
.end method
.method public indexOf(BJ)J
.registers 10
const-wide v4, 0x7fffffffffffffffL
move-object v0, p0
move v1, p1
move-wide v2, p2
.line 464
invoke-virtual/range {v0 .. v5}, Lokio/Buffer;->indexOf(BJJ)J
move-result-wide p1
return-wide p1
.end method
.method public indexOf(BJJ)J
.registers 16
const-wide/16 v0, 0x0
cmp-long v2, v0, p2
if-lez v2, :cond_7
goto :goto_d
:cond_7
cmp-long v2, p4, p2
if-ltz v2, :cond_d
const/4 v2, 0x1
goto :goto_e
:cond_d
:goto_d
const/4 v2, 0x0
:goto_e
if-eqz v2, :cond_d0
.line 1866
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v2
cmp-long v4, p4, v2
if-lez v4, :cond_1c
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide p4
:cond_1c
const-wide/16 v2, -0x1
cmp-long v4, p2, p4
if-nez v4, :cond_24
goto/16 :goto_cf
.line 1870
:cond_24
iget-object v4, p0, Lokio/Buffer;->head:Lokio/Segment;
if-eqz v4, :cond_cc
.line 1893
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v5
sub-long/2addr v5, p2
cmp-long v7, v5, p2
if-gez v7, :cond_83
.line 1895
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v0
:goto_35
cmp-long v5, v0, p2
if-lez v5, :cond_48
.line 1897
iget-object v4, v4, Lokio/Segment;->prev:Lokio/Segment;
if-nez v4, :cond_40
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
.line 1898
:cond_40
iget v5, v4, Lokio/Segment;->limit:I
iget v6, v4, Lokio/Segment;->pos:I
sub-int/2addr v5, v6
int-to-long v5, v5
sub-long/2addr v0, v5
goto :goto_35
:cond_48
if-eqz v4, :cond_cf
:goto_4a
cmp-long v5, v0, p4
if-gez v5, :cond_cf
.line 1876
iget-object v5, v4, Lokio/Segment;->data:[B
.line 1877
iget v6, v4, Lokio/Segment;->limit:I
int-to-long v6, v6
iget v8, v4, Lokio/Segment;->pos:I
int-to-long v8, v8
add-long/2addr v8, p4
sub-long/2addr v8, v0
invoke-static {v6, v7, v8, v9}, Ljava/lang/Math;->min(JJ)J
move-result-wide v6
long-to-int v7, v6
.line 1878
iget v6, v4, Lokio/Segment;->pos:I
int-to-long v8, v6
add-long/2addr v8, p2
sub-long/2addr v8, v0
long-to-int p2, v8
:goto_63
if-ge p2, v7, :cond_73
.line 1880
aget-byte p3, v5, p2
if-ne p3, p1, :cond_70
.line 1881
:goto_69
iget p1, v4, Lokio/Segment;->pos:I
sub-int/2addr p2, p1
int-to-long p1, p2
add-long v2, p1, v0
goto :goto_cf
:cond_70
add-int/lit8 p2, p2, 0x1
goto :goto_63
.line 1887
:cond_73
iget p2, v4, Lokio/Segment;->limit:I
iget p3, v4, Lokio/Segment;->pos:I
sub-int/2addr p2, p3
int-to-long p2, p2
add-long/2addr v0, p2
.line 1889
iget-object v4, v4, Lokio/Segment;->next:Lokio/Segment;
if-nez v4, :cond_81
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_81
move-wide p2, v0
goto :goto_4a
.line 1905
:cond_83
:goto_83
iget v5, v4, Lokio/Segment;->limit:I
iget v6, v4, Lokio/Segment;->pos:I
sub-int/2addr v5, v6
int-to-long v5, v5
add-long/2addr v5, v0
cmp-long v7, v5, p2
if-lez v7, :cond_c3
if-eqz v4, :cond_cf
:goto_90
cmp-long v5, v0, p4
if-gez v5, :cond_cf
.line 1876
iget-object v5, v4, Lokio/Segment;->data:[B
.line 1877
iget v6, v4, Lokio/Segment;->limit:I
int-to-long v6, v6
iget v8, v4, Lokio/Segment;->pos:I
int-to-long v8, v8
add-long/2addr v8, p4
sub-long/2addr v8, v0
invoke-static {v6, v7, v8, v9}, Ljava/lang/Math;->min(JJ)J
move-result-wide v6
long-to-int v7, v6
.line 1878
iget v6, v4, Lokio/Segment;->pos:I
int-to-long v8, v6
add-long/2addr v8, p2
sub-long/2addr v8, v0
long-to-int p2, v8
:goto_a9
if-ge p2, v7, :cond_b3
.line 1880
aget-byte p3, v5, p2
if-ne p3, p1, :cond_b0
goto :goto_69
:cond_b0
add-int/lit8 p2, p2, 0x1
goto :goto_a9
.line 1887
:cond_b3
iget p2, v4, Lokio/Segment;->limit:I
iget p3, v4, Lokio/Segment;->pos:I
sub-int/2addr p2, p3
int-to-long p2, p2
add-long/2addr v0, p2
.line 1889
iget-object v4, v4, Lokio/Segment;->next:Lokio/Segment;
if-nez v4, :cond_c1
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_c1
move-wide p2, v0
goto :goto_90
.line 1907
:cond_c3
iget-object v4, v4, Lokio/Segment;->next:Lokio/Segment;
if-nez v4, :cond_ca
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_ca
move-wide v0, v5
goto :goto_83
:cond_cc
const/4 p1, 0x0
.line 1870
check-cast p1, Lokio/Segment;
:cond_cf
:goto_cf
return-wide v2
.line 1864
:cond_d0
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "size="
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v0
invoke-virtual {p1, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string v0, " fromIndex="
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string p2, " toIndex="
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, p4, p5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p2, Ljava/lang/Throwable;
throw p2
.end method
.method public indexOf(Lokio/ByteString;)J
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "bytes"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-wide/16 v0, 0x0
.line 469
invoke-virtual {p0, p1, v0, v1}, Lokio/Buffer;->indexOf(Lokio/ByteString;J)J
move-result-wide v0
return-wide v0
.end method
.method public indexOf(Lokio/ByteString;J)J
.registers 21
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
move-wide/from16 v0, p2
const-string v2, "bytes"
move-object/from16 v3, p1
invoke-static {v3, v2}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 1912
invoke-virtual/range {p1 .. p1}, Lokio/ByteString;->size()I
move-result v2
const/4 v4, 0x0
if-lez v2, :cond_12
const/4 v2, 0x1
goto :goto_13
:cond_12
const/4 v2, 0x0
:goto_13
if-eqz v2, :cond_135
const-wide/16 v6, 0x0
cmp-long v2, v0, v6
if-ltz v2, :cond_1d
const/4 v2, 0x1
goto :goto_1e
:cond_1d
const/4 v2, 0x0
:goto_1e
if-eqz v2, :cond_116
move-object/from16 v2, p0
.line 1916
iget-object v8, v2, Lokio/Buffer;->head:Lokio/Segment;
if-eqz v8, :cond_110
.line 1944
invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J
move-result-wide v11
sub-long/2addr v11, v0
const-wide/16 v13, 0x1
cmp-long v15, v11, v0
if-gez v15, :cond_a2
.line 1946
invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J
move-result-wide v6
:goto_35
cmp-long v11, v6, v0
if-lez v11, :cond_48
.line 1948
iget-object v8, v8, Lokio/Segment;->prev:Lokio/Segment;
if-nez v8, :cond_40
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
.line 1949
:cond_40
iget v11, v8, Lokio/Segment;->limit:I
iget v12, v8, Lokio/Segment;->pos:I
sub-int/2addr v11, v12
int-to-long v11, v11
sub-long/2addr v6, v11
goto :goto_35
:cond_48
if-eqz v8, :cond_113
.line 1922
invoke-virtual/range {p1 .. p1}, Lokio/ByteString;->internalArray$okio()[B
move-result-object v11
.line 1923
aget-byte v4, v11, v4
.line 1924
invoke-virtual/range {p1 .. p1}, Lokio/ByteString;->size()I
move-result v3
.line 1925
invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J
move-result-wide v15
int-to-long v9, v3
sub-long/2addr v15, v9
add-long/2addr v15, v13
:goto_5b
cmp-long v9, v6, v15
if-gez v9, :cond_113
.line 1928
iget-object v9, v8, Lokio/Segment;->data:[B
.line 1929
iget v10, v8, Lokio/Segment;->limit:I
iget v12, v8, Lokio/Segment;->pos:I
int-to-long v12, v12
add-long/2addr v12, v15
sub-long/2addr v12, v6
move-wide/from16 p1, v6
int-to-long v5, v10
.line 1952
invoke-static {v5, v6, v12, v13}, Ljava/lang/Math;->min(JJ)J
move-result-wide v5
long-to-int v6, v5
.line 1931
iget v5, v8, Lokio/Segment;->pos:I
int-to-long v12, v5
add-long/2addr v12, v0
sub-long v12, v12, p1
long-to-int v0, v12
:goto_77
if-ge v0, v6, :cond_91
.line 1932
aget-byte v1, v9, v0
if-ne v1, v4, :cond_8e
add-int/lit8 v1, v0, 0x1
const/4 v5, 0x1
invoke-static {v8, v1, v11, v5, v3}, Lokio/internal/BufferKt;->rangeEquals(Lokio/Segment;I[BII)Z
move-result v1
if-eqz v1, :cond_8e
.line 1933
iget v1, v8, Lokio/Segment;->pos:I
sub-int/2addr v0, v1
int-to-long v0, v0
add-long v9, v0, p1
goto/16 :goto_115
:cond_8e
add-int/lit8 v0, v0, 0x1
goto :goto_77
.line 1938
:cond_91
iget v0, v8, Lokio/Segment;->limit:I
iget v1, v8, Lokio/Segment;->pos:I
sub-int/2addr v0, v1
int-to-long v0, v0
add-long v6, p1, v0
.line 1940
iget-object v8, v8, Lokio/Segment;->next:Lokio/Segment;
if-nez v8, :cond_a0
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_a0
move-wide v0, v6
goto :goto_5b
.line 1955
:cond_a2
:goto_a2
iget v5, v8, Lokio/Segment;->limit:I
iget v9, v8, Lokio/Segment;->pos:I
sub-int/2addr v5, v9
int-to-long v9, v5
add-long/2addr v9, v6
cmp-long v5, v9, v0
if-lez v5, :cond_106
if-eqz v8, :cond_113
.line 1922
invoke-virtual/range {p1 .. p1}, Lokio/ByteString;->internalArray$okio()[B
move-result-object v5
.line 1923
aget-byte v4, v5, v4
.line 1924
invoke-virtual/range {p1 .. p1}, Lokio/ByteString;->size()I
move-result v3
.line 1925
invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J
move-result-wide v9
int-to-long v11, v3
sub-long/2addr v9, v11
add-long/2addr v9, v13
:goto_c0
cmp-long v11, v6, v9
if-gez v11, :cond_113
.line 1928
iget-object v11, v8, Lokio/Segment;->data:[B
.line 1929
iget v12, v8, Lokio/Segment;->limit:I
iget v13, v8, Lokio/Segment;->pos:I
int-to-long v13, v13
add-long/2addr v13, v9
sub-long/2addr v13, v6
move-wide v15, v9
int-to-long v9, v12
.line 1961
invoke-static {v9, v10, v13, v14}, Ljava/lang/Math;->min(JJ)J
move-result-wide v9
long-to-int v10, v9
.line 1931
iget v9, v8, Lokio/Segment;->pos:I
int-to-long v12, v9
add-long/2addr v12, v0
sub-long/2addr v12, v6
long-to-int v0, v12
:goto_da
if-ge v0, v10, :cond_f4
.line 1932
aget-byte v1, v11, v0
if-ne v1, v4, :cond_f0
add-int/lit8 v1, v0, 0x1
const/4 v12, 0x1
invoke-static {v8, v1, v5, v12, v3}, Lokio/internal/BufferKt;->rangeEquals(Lokio/Segment;I[BII)Z
move-result v1
if-eqz v1, :cond_f1
.line 1933
iget v1, v8, Lokio/Segment;->pos:I
sub-int/2addr v0, v1
int-to-long v0, v0
add-long v9, v0, v6
goto :goto_115
:cond_f0
const/4 v12, 0x1
:cond_f1
add-int/lit8 v0, v0, 0x1
goto :goto_da
:cond_f4
const/4 v12, 0x1
.line 1938
iget v0, v8, Lokio/Segment;->limit:I
iget v1, v8, Lokio/Segment;->pos:I
sub-int/2addr v0, v1
int-to-long v0, v0
add-long/2addr v6, v0
.line 1940
iget-object v8, v8, Lokio/Segment;->next:Lokio/Segment;
if-nez v8, :cond_103
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_103
move-wide v0, v6
move-wide v9, v15
goto :goto_c0
:cond_106
const/4 v12, 0x1
.line 1957
iget-object v8, v8, Lokio/Segment;->next:Lokio/Segment;
if-nez v8, :cond_10e
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_10e
move-wide v6, v9
goto :goto_a2
:cond_110
const/4 v0, 0x0
.line 1916
check-cast v0, Lokio/Segment;
:cond_113
const-wide/16 v9, -0x1
:goto_115
return-wide v9
:cond_116
move-object/from16 v2, p0
.line 1913
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "fromIndex < 0: "
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v3}, 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
:cond_135
move-object/from16 v2, p0
.line 1912
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 indexOfElement(Lokio/ByteString;)J
.registers 4
const-string v0, "targetBytes"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-wide/16 v0, 0x0
.line 474
invoke-virtual {p0, p1, v0, v1}, Lokio/Buffer;->indexOfElement(Lokio/ByteString;J)J
move-result-wide v0
return-wide v0
.end method
.method public indexOfElement(Lokio/ByteString;J)J
.registers 15
const-string v0, "targetBytes"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-wide/16 v0, 0x0
const/4 v2, 0x0
const/4 v3, 0x1
cmp-long v4, p2, v0
if-ltz v4, :cond_f
const/4 v4, 0x1
goto :goto_10
:cond_f
const/4 v4, 0x0
:goto_10
if-eqz v4, :cond_14c
.line 1966
iget-object v4, p0, Lokio/Buffer;->head:Lokio/Segment;
const-wide/16 v5, -0x1
if-eqz v4, :cond_148
.line 2017
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v7
sub-long/2addr v7, p2
const/4 v9, 0x2
cmp-long v10, v7, p2
if-gez v10, :cond_ba
.line 2019
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v0
:goto_26
cmp-long v7, v0, p2
if-lez v7, :cond_39
.line 2021
iget-object v4, v4, Lokio/Segment;->prev:Lokio/Segment;
if-nez v4, :cond_31
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
.line 2022
:cond_31
iget v7, v4, Lokio/Segment;->limit:I
iget v8, v4, Lokio/Segment;->pos:I
sub-int/2addr v7, v8
int-to-long v7, v7
sub-long/2addr v0, v7
goto :goto_26
:cond_39
if-eqz v4, :cond_14b
.line 1973
invoke-virtual {p1}, Lokio/ByteString;->size()I
move-result v7
if-ne v7, v9, :cond_7f
.line 1975
invoke-virtual {p1, v2}, Lokio/ByteString;->getByte(I)B
move-result v2
.line 1976
invoke-virtual {p1, v3}, Lokio/ByteString;->getByte(I)B
move-result p1
.line 1977
:goto_49
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v7
cmp-long v3, v0, v7
if-gez v3, :cond_14b
.line 1978
iget-object v3, v4, Lokio/Segment;->data:[B
.line 1979
iget v7, v4, 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 1980
iget p3, v4, Lokio/Segment;->limit:I
:goto_5b
if-ge p2, p3, :cond_6f
.line 1982
aget-byte v7, v3, p2
if-eq v7, v2, :cond_67
if-ne v7, p1, :cond_64
goto :goto_67
:cond_64
add-int/lit8 p2, p2, 0x1
goto :goto_5b
.line 1984
:cond_67
:goto_67
iget p1, v4, Lokio/Segment;->pos:I
:goto_69
sub-int/2addr p2, p1
int-to-long p1, p2
add-long v5, p1, v0
goto/16 :goto_14b
.line 1990
:cond_6f
iget p2, v4, Lokio/Segment;->limit:I
iget p3, v4, Lokio/Segment;->pos:I
sub-int/2addr p2, p3
int-to-long p2, p2
add-long/2addr v0, p2
.line 1992
iget-object v4, v4, Lokio/Segment;->next:Lokio/Segment;
if-nez v4, :cond_7d
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_7d
move-wide p2, v0
goto :goto_49
.line 1996
:cond_7f
invoke-virtual {p1}, Lokio/ByteString;->internalArray$okio()[B
move-result-object p1
.line 1997
:goto_83
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v7
cmp-long v3, v0, v7
if-gez v3, :cond_14b
.line 1998
iget-object v3, v4, Lokio/Segment;->data:[B
.line 1999
iget v7, v4, 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 2000
iget p3, v4, Lokio/Segment;->limit:I
:goto_95
if-ge p2, p3, :cond_aa
.line 2002
aget-byte v7, v3, p2
.line 2003
array-length v8, p1
const/4 v9, 0x0
:goto_9b
if-ge v9, v8, :cond_a7
aget-byte v10, p1, v9
if-ne v7, v10, :cond_a4
.line 2004
:goto_a1
iget p1, v4, Lokio/Segment;->pos:I
goto :goto_69
:cond_a4
add-int/lit8 v9, v9, 0x1
goto :goto_9b
:cond_a7
add-int/lit8 p2, p2, 0x1
goto :goto_95
.line 2010
:cond_aa
iget p2, v4, Lokio/Segment;->limit:I
iget p3, v4, Lokio/Segment;->pos:I
sub-int/2addr p2, p3
int-to-long p2, p2
add-long/2addr v0, p2
.line 2012
iget-object v4, v4, Lokio/Segment;->next:Lokio/Segment;
if-nez v4, :cond_b8
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_b8
move-wide p2, v0
goto :goto_83
.line 2029
:cond_ba
:goto_ba
iget v7, v4, Lokio/Segment;->limit:I
iget v8, v4, Lokio/Segment;->pos:I
sub-int/2addr v7, v8
int-to-long v7, v7
add-long/2addr v7, v0
cmp-long v10, v7, p2
if-lez v10, :cond_13e
if-eqz v4, :cond_14b
.line 1973
invoke-virtual {p1}, Lokio/ByteString;->size()I
move-result v7
if-ne v7, v9, :cond_104
.line 1975
invoke-virtual {p1, v2}, Lokio/ByteString;->getByte(I)B
move-result v2
.line 1976
invoke-virtual {p1, v3}, Lokio/ByteString;->getByte(I)B
move-result p1
.line 1977
:goto_d5
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v7
cmp-long v3, v0, v7
if-gez v3, :cond_14b
.line 1978
iget-object v3, v4, Lokio/Segment;->data:[B
.line 1979
iget v7, v4, 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 1980
iget p3, v4, Lokio/Segment;->limit:I
:goto_e7
if-ge p2, p3, :cond_f4
.line 1982
aget-byte v7, v3, p2
if-eq v7, v2, :cond_67
if-ne v7, p1, :cond_f1
goto/16 :goto_67
:cond_f1
add-int/lit8 p2, p2, 0x1
goto :goto_e7
.line 1990
:cond_f4
iget p2, v4, Lokio/Segment;->limit:I
iget p3, v4, Lokio/Segment;->pos:I
sub-int/2addr p2, p3
int-to-long p2, p2
add-long/2addr v0, p2
.line 1992
iget-object v4, v4, Lokio/Segment;->next:Lokio/Segment;
if-nez v4, :cond_102
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_102
move-wide p2, v0
goto :goto_d5
.line 1996
:cond_104
invoke-virtual {p1}, Lokio/ByteString;->internalArray$okio()[B
move-result-object p1
.line 1997
:goto_108
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v7
cmp-long v3, v0, v7
if-gez v3, :cond_14b
.line 1998
iget-object v3, v4, Lokio/Segment;->data:[B
.line 1999
iget v7, v4, 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 2000
iget p3, v4, Lokio/Segment;->limit:I
:goto_11a
if-ge p2, p3, :cond_12e
.line 2002
aget-byte v7, v3, p2
.line 2003
array-length v8, p1
const/4 v9, 0x0
:goto_120
if-ge v9, v8, :cond_12b
aget-byte v10, p1, v9
if-ne v7, v10, :cond_128
goto/16 :goto_a1
:cond_128
add-int/lit8 v9, v9, 0x1
goto :goto_120
:cond_12b
add-int/lit8 p2, p2, 0x1
goto :goto_11a
.line 2010
:cond_12e
iget p2, v4, Lokio/Segment;->limit:I
iget p3, v4, Lokio/Segment;->pos:I
sub-int/2addr p2, p3
int-to-long p2, p2
add-long/2addr v0, p2
.line 2012
iget-object v4, v4, Lokio/Segment;->next:Lokio/Segment;
if-nez v4, :cond_13c
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_13c
move-wide p2, v0
goto :goto_108
.line 2031
:cond_13e
iget-object v4, v4, Lokio/Segment;->next:Lokio/Segment;
if-nez v4, :cond_145
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_145
move-wide v0, v7
goto/16 :goto_ba
:cond_148
const/4 p1, 0x0
.line 1966
check-cast p1, Lokio/Segment;
:cond_14b
:goto_14b
return-wide v5
.line 1963
:cond_14c
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "fromIndex < 0: "
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p2, Ljava/lang/Throwable;
throw p2
.end method
.method public inputStream()Ljava/io/InputStream;
.registers 2
.line 116
new-instance v0, Lokio/Buffer$inputStream$1;
invoke-direct {v0, p0}, Lokio/Buffer$inputStream$1;-><init>(Lokio/Buffer;)V
check-cast v0, Ljava/io/InputStream;
return-object v0
.end method
.method public isOpen()Z
.registers 2
const/4 v0, 0x1
return v0
.end method
.method public final md5()Lokio/ByteString;
.registers 2
const-string v0, "MD5"
.line 498
invoke-direct {p0, v0}, Lokio/Buffer;->digest(Ljava/lang/String;)Lokio/ByteString;
move-result-object v0
return-object v0
.end method
.method public outputStream()Ljava/io/OutputStream;
.registers 2
.line 81
new-instance v0, Lokio/Buffer$outputStream$1;
invoke-direct {v0, p0}, Lokio/Buffer$outputStream$1;-><init>(Lokio/Buffer;)V
check-cast v0, Ljava/io/OutputStream;
return-object v0
.end method
.method public peek()Lokio/BufferedSource;
.registers 3
.line 112
new-instance v0, Lokio/PeekSource;
move-object v1, p0
check-cast v1, Lokio/BufferedSource;
invoke-direct {v0, v1}, Lokio/PeekSource;-><init>(Lokio/BufferedSource;)V
check-cast v0, Lokio/Source;
invoke-static {v0}, Lokio/Okio;->buffer(Lokio/Source;)Lokio/BufferedSource;
move-result-object v0
return-object v0
.end method
.method public rangeEquals(JLokio/ByteString;)Z
.registers 11
const-string v0, "bytes"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 480
invoke-virtual {p3}, Lokio/ByteString;->size()I
move-result v6
const/4 v5, 0x0
move-object v1, p0
move-wide v2, p1
move-object v4, p3
invoke-virtual/range {v1 .. v6}, Lokio/Buffer;->rangeEquals(JLokio/ByteString;II)Z
move-result p1
return p1
.end method
.method public rangeEquals(JLokio/ByteString;II)Z
.registers 12
const-string v0, "bytes"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
const-wide/16 v1, 0x0
cmp-long v3, p1, v1
if-ltz v3, :cond_38
if-ltz p4, :cond_38
if-ltz p5, :cond_38
.line 2038
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v1
sub-long/2addr v1, p1
int-to-long v3, p5
cmp-long v5, v1, v3
if-ltz v5, :cond_38
.line 2039
invoke-virtual {p3}, Lokio/ByteString;->size()I
move-result v1
sub-int/2addr v1, p4
if-ge v1, p5, :cond_22
goto :goto_38
:cond_22
const/4 v1, 0x0
:goto_23
if-ge v1, p5, :cond_37
int-to-long v2, v1
add-long/2addr v2, p1
.line 2043
invoke-virtual {p0, v2, v3}, Lokio/Buffer;->getByte(J)B
move-result v2
add-int v3, p4, v1
invoke-virtual {p3, v3}, Lokio/ByteString;->getByte(I)B
move-result v3
if-eq v2, v3, :cond_34
goto :goto_38
:cond_34
add-int/lit8 v1, v1, 0x1
goto :goto_23
:cond_37
const/4 v0, 0x1
:cond_38
:goto_38
return v0
.end method
.method public read(Ljava/nio/ByteBuffer;)I
.registers 8
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "sink"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 343
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
if-eqz v0, :cond_3a
.line 345
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I
move-result v1
iget v2, v0, Lokio/Segment;->limit:I
iget v3, v0, Lokio/Segment;->pos:I
sub-int/2addr v2, v3
invoke-static {v1, v2}, Ljava/lang/Math;->min(II)I
move-result v1
.line 346
iget-object v2, v0, Lokio/Segment;->data:[B
iget v3, v0, Lokio/Segment;->pos:I
invoke-virtual {p1, v2, v3, v1}, Ljava/nio/ByteBuffer;->put([BII)Ljava/nio/ByteBuffer;
.line 348
iget p1, v0, Lokio/Segment;->pos:I
add-int/2addr p1, v1
iput p1, v0, Lokio/Segment;->pos:I
.line 349
iget-wide v2, p0, Lokio/Buffer;->size:J
int-to-long v4, v1
sub-long/2addr v2, v4
iput-wide v2, p0, Lokio/Buffer;->size:J
.line 351
iget p1, v0, Lokio/Segment;->pos:I
iget v2, v0, Lokio/Segment;->limit:I
if-ne p1, v2, :cond_39
.line 352
invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment;
move-result-object p1
iput-object p1, p0, Lokio/Buffer;->head:Lokio/Segment;
.line 353
sget-object p1, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool;
invoke-virtual {p1, v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V
:cond_39
return v1
:cond_3a
const/4 p1, -0x1
return p1
.end method
.method public read([B)I
.registers 4
const-string v0, "sink"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 1441
array-length v0, p1
const/4 v1, 0x0
invoke-virtual {p0, p1, v1, v0}, Lokio/Buffer;->read([BII)I
move-result p1
return p1
.end method
.method public read([BII)I
.registers 11
const-string v0, "sink"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 1449
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 1451
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
if-eqz v0, :cond_43
.line 1452
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 1453
iget-object v1, v0, Lokio/Segment;->data:[B
.line 1454
iget v2, v0, Lokio/Segment;->pos:I
iget v3, v0, Lokio/Segment;->pos:I
add-int/2addr v3, p3
.line 1453
invoke-static {v1, p1, p2, v2, v3}, Lkotlin/collections/ArraysKt;->copyInto([B[BIII)[B
.line 1457
iget p1, v0, Lokio/Segment;->pos:I
add-int/2addr p1, p3
iput p1, v0, Lokio/Segment;->pos:I
.line 1458
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 1460
iget p1, v0, Lokio/Segment;->pos:I
iget p2, v0, Lokio/Segment;->limit:I
if-ne p1, p2, :cond_44
.line 1461
invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment;
move-result-object p1
iput-object p1, p0, Lokio/Buffer;->head:Lokio/Segment;
.line 1462
sget-object p1, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool;
invoke-virtual {p1, v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V
goto :goto_44
:cond_43
const/4 p3, -0x1
:cond_44
:goto_44
return p3
.end method
.method public read(Lokio/Buffer;J)J
.registers 9
const-string v0, "sink"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-wide/16 v0, 0x0
cmp-long v2, p2, v0
if-ltz v2, :cond_d
const/4 v2, 0x1
goto :goto_e
:cond_d
const/4 v2, 0x0
:goto_e
if-eqz v2, :cond_2c
.line 1858
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v2
cmp-long v4, v2, v0
if-nez v4, :cond_1b
const-wide/16 p1, -0x1
goto :goto_2b
.line 1859
:cond_1b
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v0
cmp-long v2, p2, v0
if-lez v2, :cond_27
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide p2
.line 1860
:cond_27
invoke-virtual {p1, p0, p2, p3}, Lokio/Buffer;->write(Lokio/Buffer;J)V
move-wide p1, p2
:goto_2b
return-wide p1
.line 1857
:cond_2c
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "byteCount < 0: "
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p2, Ljava/lang/Throwable;
throw p2
.end method
.method public readAll(Lokio/Sink;)J
.registers 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "sink"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 1334
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v0
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-lez v4, :cond_12
.line 1336
invoke-interface {p1, p0, v0, v1}, Lokio/Sink;->write(Lokio/Buffer;J)V
:cond_12
return-wide v0
.end method
.method public final readAndWriteUnsafe()Lokio/Buffer$UnsafeCursor;
.registers 3
const/4 v0, 0x0
const/4 v1, 0x1
invoke-static {p0, v0, v1, v0}, Lokio/Buffer;->readAndWriteUnsafe$default(Lokio/Buffer;Lokio/Buffer$UnsafeCursor;ILjava/lang/Object;)Lokio/Buffer$UnsafeCursor;
move-result-object v0
return-object v0
.end method
.method public final readAndWriteUnsafe(Lokio/Buffer$UnsafeCursor;)Lokio/Buffer$UnsafeCursor;
.registers 4
const-string/jumbo v0, "unsafeCursor"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 579
iget-object v0, p1, Lokio/Buffer$UnsafeCursor;->buffer:Lokio/Buffer;
const/4 v1, 0x1
if-nez v0, :cond_d
const/4 v0, 0x1
goto :goto_e
:cond_d
const/4 v0, 0x0
:goto_e
if-eqz v0, :cond_18
.line 581
move-object v0, p0
check-cast v0, Lokio/Buffer;
iput-object v0, p1, Lokio/Buffer$UnsafeCursor;->buffer:Lokio/Buffer;
.line 582
iput-boolean v1, p1, Lokio/Buffer$UnsafeCursor;->readWrite:Z
return-object p1
.line 579
:cond_18
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "already attached to a buffer"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p1, Ljava/lang/Throwable;
throw p1
.end method
.method public readByte()B
.registers 10
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/EOFException;
}
.end annotation
.line 1066
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v0
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-eqz v4, :cond_36
.line 1068
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
if-nez v0, :cond_11
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
.line 1069
:cond_11
iget v1, v0, Lokio/Segment;->pos:I
.line 1070
iget v2, v0, Lokio/Segment;->limit:I
.line 1072
iget-object v3, v0, Lokio/Segment;->data:[B
add-int/lit8 v4, v1, 0x1
.line 1073
aget-byte v1, v3, v1
.line 1074
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_33
.line 1077
invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment;
move-result-object v2
iput-object v2, p0, Lokio/Buffer;->head:Lokio/Segment;
.line 1078
sget-object v2, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool;
invoke-virtual {v2, v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V
goto :goto_35
.line 1080
:cond_33
iput v4, v0, Lokio/Segment;->pos:I
:goto_35
return v1
.line 1066
:cond_36
new-instance v0, Ljava/io/EOFException;
invoke-direct {v0}, Ljava/io/EOFException;-><init>()V
check-cast v0, Ljava/lang/Throwable;
throw v0
.end method
.method public readByteArray()[B
.registers 3
.line 1434
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v0
invoke-virtual {p0, v0, v1}, Lokio/Buffer;->readByteArray(J)[B
move-result-object v0
return-object v0
.end method
.method public readByteArray(J)[B
.registers 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/EOFException;
}
.end annotation
const-wide/16 v0, 0x0
cmp-long v2, p1, v0
if-ltz v2, :cond_10
const v0, 0x7fffffff
int-to-long v0, v0
cmp-long v2, p1, v0
if-gtz v2, :cond_10
const/4 v0, 0x1
goto :goto_11
:cond_10
const/4 v0, 0x0
:goto_11
if-eqz v0, :cond_2a
.line 1436
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v0
cmp-long v2, v0, p1
if-ltz v2, :cond_22
long-to-int p2, p1
.line 1438
new-array p1, p2, [B
.line 1439
invoke-virtual {p0, p1}, Lokio/Buffer;->readFully([B)V
return-object p1
.line 1436
:cond_22
new-instance p1, Ljava/io/EOFException;
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
check-cast p1, Ljava/lang/Throwable;
throw p1
.line 1435
:cond_2a
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "byteCount: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p2, Ljava/lang/Throwable;
throw p2
.end method
.method public readByteString()Lokio/ByteString;
.registers 3
.line 1319
new-instance v0, Lokio/ByteString;
invoke-virtual {p0}, Lokio/Buffer;->readByteArray()[B
move-result-object v1
invoke-direct {v0, v1}, Lokio/ByteString;-><init>([B)V
return-object v0
.end method
.method public readByteString(J)Lokio/ByteString;
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/EOFException;
}
.end annotation
.line 1320
new-instance v0, Lokio/ByteString;
invoke-virtual {p0, p1, p2}, Lokio/Buffer;->readByteArray(J)[B
move-result-object p1
invoke-direct {v0, p1}, Lokio/ByteString;-><init>([B)V
return-object v0
.end method
.method public readDecimalLong()J
.registers 18
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/EOFException;
}
.end annotation
move-object/from16 v0, p0
.line 1208
invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J
move-result-wide v1
const-wide/16 v3, 0x0
cmp-long v5, v1, v3
if-eqz v5, :cond_da
const-wide/16 v1, -0x7
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
.line 1219
:cond_11
iget-object v8, v0, Lokio/Buffer;->head:Lokio/Segment;
if-nez v8, :cond_18
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
.line 1221
:cond_18
iget-object v9, v8, Lokio/Segment;->data:[B
.line 1222
iget v10, v8, Lokio/Segment;->pos:I
.line 1223
iget v11, v8, Lokio/Segment;->limit:I
:goto_1e
const/4 v12, 0x1
if-ge v10, v11, :cond_af
.line 1226
aget-byte v13, v9, v10
const/16 v14, 0x30
int-to-byte v14, v14
if-lt v13, v14, :cond_78
const/16 v15, 0x39
int-to-byte v15, v15
if-gt v13, v15, :cond_78
sub-int/2addr v14, v13
const-wide v15, -0xcccccccccccccccL
cmp-long v12, v3, v15
if-ltz v12, :cond_49
move v15, v7
move-object/from16 v16, v8
if-nez v12, :cond_42
int-to-long v7, v14
cmp-long v12, v7, v1
if-gez v12, :cond_42
goto :goto_49
:cond_42
const-wide/16 v7, 0xa
mul-long v3, v3, v7
int-to-long v7, v14
add-long/2addr v3, v7
goto :goto_86
.line 1232
:cond_49
:goto_49
new-instance v1, Lokio/Buffer;
invoke-direct {v1}, Lokio/Buffer;-><init>()V
invoke-virtual {v1, v3, v4}, Lokio/Buffer;->writeDecimalLong(J)Lokio/Buffer;
move-result-object v1
invoke-virtual {v1, v13}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
move-result-object v1
if-nez v6, :cond_5b
.line 1233
invoke-virtual {v1}, Lokio/Buffer;->readByte()B
.line 1234
:cond_5b
new-instance v2, Ljava/lang/NumberFormatException;
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "Number too large: "
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Lokio/Buffer;->readUtf8()Ljava/lang/String;
move-result-object v1
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v2, v1}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
check-cast v2, Ljava/lang/Throwable;
throw v2
:cond_78
move v15, v7
move-object/from16 v16, v8
const/16 v7, 0x2d
int-to-byte v7, v7
if-ne v13, v7, :cond_8e
if-nez v5, :cond_8e
const-wide/16 v6, 0x1
sub-long/2addr v1, v6
const/4 v6, 0x1
:goto_86
add-int/lit8 v10, v10, 0x1
add-int/lit8 v5, v5, 0x1
move v7, v15
move-object/from16 v8, v16
goto :goto_1e
:cond_8e
if-eqz v5, :cond_92
const/4 v7, 0x1
goto :goto_b2
.line 1243
:cond_92
new-instance v1, Ljava/lang/NumberFormatException;
.line 1244
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "Expected leading [0-9] or \'-\' character but was 0x"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-static {v13}, Lokio/-Util;->toHexString(B)Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
.line 1243
invoke-direct {v1, v2}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
check-cast v1, Ljava/lang/Throwable;
throw v1
:cond_af
move v15, v7
move-object/from16 v16, v8
:goto_b2
if-ne v10, v11, :cond_c2
.line 1255
invoke-virtual/range {v16 .. v16}, Lokio/Segment;->pop()Lokio/Segment;
move-result-object v8
iput-object v8, v0, Lokio/Buffer;->head:Lokio/Segment;
.line 1256
sget-object v8, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool;
move-object/from16 v9, v16
invoke-virtual {v8, v9}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V
goto :goto_c6
:cond_c2
move-object/from16 v9, v16
.line 1258
iput v10, v9, Lokio/Segment;->pos:I
:goto_c6
if-nez v7, :cond_cc
.line 1260
iget-object v8, v0, Lokio/Buffer;->head:Lokio/Segment;
if-nez v8, :cond_11
.line 1262
:cond_cc
invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J
move-result-wide v1
int-to-long v7, v5
sub-long/2addr v1, v7
invoke-virtual {v0, v1, v2}, Lokio/Buffer;->setSize$okio(J)V
if-eqz v6, :cond_d8
goto :goto_d9
:cond_d8
neg-long v3, v3
:goto_d9
return-wide v3
.line 1208
:cond_da
new-instance v1, Ljava/io/EOFException;
invoke-direct {v1}, Ljava/io/EOFException;-><init>()V
check-cast v1, Ljava/lang/Throwable;
throw v1
.end method
.method public final readFrom(Ljava/io/InputStream;)Lokio/Buffer;
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "input"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-wide v0, 0x7fffffffffffffffL
const/4 v2, 0x1
.line 211
invoke-direct {p0, p1, v0, v1, v2}, Lokio/Buffer;->readFrom(Ljava/io/InputStream;JZ)V
return-object p0
.end method
.method public final readFrom(Ljava/io/InputStream;J)Lokio/Buffer;
.registers 8
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "input"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
const-wide/16 v1, 0x0
cmp-long v3, p2, v1
if-ltz v3, :cond_e
const/4 v1, 0x1
goto :goto_f
:cond_e
const/4 v1, 0x0
:goto_f
if-eqz v1, :cond_15
.line 219
invoke-direct {p0, p1, p2, p3, v0}, Lokio/Buffer;->readFrom(Ljava/io/InputStream;JZ)V
return-object p0
.line 218
:cond_15
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "byteCount < 0: "
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p2, Ljava/lang/Throwable;
throw p2
.end method
.method public readFully(Lokio/Buffer;J)V
.registers 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/EOFException;
}
.end annotation
const-string v0, "sink"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 1328
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v0
cmp-long v2, v0, p2
if-ltz v2, :cond_11
.line 1332
invoke-virtual {p1, p0, p2, p3}, Lokio/Buffer;->write(Lokio/Buffer;J)V
return-void
.line 1329
:cond_11
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 1330
new-instance p1, Ljava/io/EOFException;
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
check-cast p1, Ljava/lang/Throwable;
throw p1
.end method
.method public readFully([B)V
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/EOFException;
}
.end annotation
const-string v0, "sink"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
.line 1443
:goto_6
array-length v1, p1
if-ge v0, v1, :cond_1c
.line 1444
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_14
add-int/2addr v0, v1
goto :goto_6
.line 1445
:cond_14
new-instance p1, Ljava/io/EOFException;
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
check-cast p1, Ljava/lang/Throwable;
throw p1
:cond_1c
return-void
.end method
.method public readHexadecimalUnsignedLong()J
.registers 16
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/EOFException;
}
.end annotation
.line 1264
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v0
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-eqz v4, :cond_c0
const/4 v0, 0x0
move-wide v4, v2
const/4 v1, 0x0
.line 1271
:cond_d
iget-object v6, p0, Lokio/Buffer;->head:Lokio/Segment;
if-nez v6, :cond_14
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
.line 1273
:cond_14
iget-object v7, v6, Lokio/Segment;->data:[B
.line 1274
iget v8, v6, Lokio/Segment;->pos:I
.line 1275
iget v9, v6, Lokio/Segment;->limit:I
:goto_1a
if-ge v8, v9, :cond_a0
.line 1280
aget-byte v10, v7, v8
const/16 v11, 0x30
int-to-byte v11, v11
if-lt v10, v11, :cond_2b
const/16 v12, 0x39
int-to-byte v12, v12
if-gt v10, v12, :cond_2b
sub-int v11, v10, v11
goto :goto_45
:cond_2b
const/16 v11, 0x61
int-to-byte v11, v11
if-lt v10, v11, :cond_3a
const/16 v12, 0x66
int-to-byte v12, v12
if-gt v10, v12, :cond_3a
:goto_35
sub-int v11, v10, v11
add-int/lit8 v11, v11, 0xa
goto :goto_45
:cond_3a
const/16 v11, 0x41
int-to-byte v11, v11
if-lt v10, v11, :cond_7f
const/16 v12, 0x46
int-to-byte v12, v12
if-gt v10, v12, :cond_7f
goto :goto_35
:goto_45
const-wide/high16 v12, -0x1000000000000000L # -3.105036184601418E231
and-long/2addr v12, v4
cmp-long v14, v12, v2
if-nez v14, :cond_55
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_1a
.line 1299
:cond_55
new-instance v0, Lokio/Buffer;
invoke-direct {v0}, Lokio/Buffer;-><init>()V
invoke-virtual {v0, v4, v5}, Lokio/Buffer;->writeHexadecimalUnsignedLong(J)Lokio/Buffer;
move-result-object v0
invoke-virtual {v0, v10}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
move-result-object v0
.line 1300
new-instance v1, Ljava/lang/NumberFormatException;
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "Number too large: "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Lokio/Buffer;->readUtf8()Ljava/lang/String;
move-result-object v0
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v1, v0}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
check-cast v1, Ljava/lang/Throwable;
throw v1
:cond_7f
if-eqz v0, :cond_83
const/4 v1, 0x1
goto :goto_a0
.line 1289
:cond_83
new-instance v0, Ljava/lang/NumberFormatException;
.line 1290
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Expected leading [0-9a-fA-F] character but was 0x"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-static {v10}, Lokio/-Util;->toHexString(B)Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
.line 1289
invoke-direct {v0, v1}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
check-cast v0, Ljava/lang/Throwable;
throw v0
:cond_a0
:goto_a0
if-ne v8, v9, :cond_ae
.line 1310
invoke-virtual {v6}, Lokio/Segment;->pop()Lokio/Segment;
move-result-object v7
iput-object v7, p0, Lokio/Buffer;->head:Lokio/Segment;
.line 1311
sget-object v7, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool;
invoke-virtual {v7, v6}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V
goto :goto_b0
.line 1313
:cond_ae
iput v8, v6, Lokio/Segment;->pos:I
:goto_b0
if-nez v1, :cond_b6
.line 1315
iget-object v6, p0, Lokio/Buffer;->head:Lokio/Segment;
if-nez v6, :cond_d
.line 1317
:cond_b6
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 1264
:cond_c0
new-instance v0, Ljava/io/EOFException;
invoke-direct {v0}, Ljava/io/EOFException;-><init>()V
check-cast v0, Ljava/lang/Throwable;
throw v0
.end method
.method public readInt()I
.registers 9
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/EOFException;
}
.end annotation
.line 1134
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v0
const-wide/16 v2, 0x4
cmp-long v4, v0, v2
if-ltz v4, :cond_7b
.line 1136
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
if-nez v0, :cond_11
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
.line 1137
:cond_11
iget v1, v0, Lokio/Segment;->pos:I
.line 1138
iget v4, v0, Lokio/Segment;->limit:I
sub-int v5, v4, v1
int-to-long v5, v5
cmp-long v7, v5, v2
if-gez v7, :cond_3e
.line 1142
invoke-virtual {p0}, Lokio/Buffer;->readByte()B
move-result v0
and-int/lit16 v0, v0, 0xff
shl-int/lit8 v0, v0, 0x18
.line 1144
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 1146
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 1148
invoke-virtual {p0}, Lokio/Buffer;->readByte()B
move-result v1
and-int/lit16 v1, v1, 0xff
or-int/2addr v0, v1
goto :goto_7a
.line 1150
:cond_3e
iget-object v5, v0, Lokio/Segment;->data:[B
add-int/lit8 v6, v1, 0x1
.line 1151
aget-byte v1, v5, v1
and-int/lit16 v1, v1, 0xff
shl-int/lit8 v1, v1, 0x18
add-int/lit8 v7, v6, 0x1
.line 1153
aget-byte v6, v5, v6
and-int/lit16 v6, v6, 0xff
shl-int/lit8 v6, v6, 0x10
or-int/2addr v1, v6
add-int/lit8 v6, v7, 0x1
.line 1155
aget-byte v7, v5, v7
and-int/lit16 v7, v7, 0xff
shl-int/lit8 v7, v7, 0x8
or-int/2addr v1, v7
add-int/lit8 v7, v6, 0x1
.line 1157
aget-byte v5, v5, v6
and-int/lit16 v5, v5, 0xff
or-int/2addr v1, v5
.line 1159
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v5
sub-long/2addr v5, v2
invoke-virtual {p0, v5, v6}, Lokio/Buffer;->setSize$okio(J)V
if-ne v7, v4, :cond_77
.line 1162
invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment;
move-result-object v2
iput-object v2, p0, Lokio/Buffer;->head:Lokio/Segment;
.line 1163
sget-object v2, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool;
invoke-virtual {v2, v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V
goto :goto_79
.line 1165
:cond_77
iput v7, v0, Lokio/Segment;->pos:I
:goto_79
move v0, v1
:goto_7a
return v0
.line 1134
:cond_7b
new-instance v0, Ljava/io/EOFException;
invoke-direct {v0}, Ljava/io/EOFException;-><init>()V
check-cast v0, Ljava/lang/Throwable;
throw v0
.end method
.method public readIntLe()I
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/EOFException;
}
.end annotation
.line 261
invoke-virtual {p0}, Lokio/Buffer;->readInt()I
move-result v0
invoke-static {v0}, Lokio/-Util;->reverseBytes(I)I
move-result v0
return v0
.end method
.method public readLong()J
.registers 15
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/EOFException;
}
.end annotation
.line 1169
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v0
const-wide/16 v2, 0x8
cmp-long v4, v0, v2
if-ltz v4, :cond_9c
.line 1171
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
if-nez v0, :cond_11
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
.line 1172
:cond_11
iget v1, v0, Lokio/Segment;->pos:I
.line 1173
iget v4, v0, Lokio/Segment;->limit:I
sub-int v5, v4, v1
int-to-long v5, v5
const/16 v7, 0x20
cmp-long v8, v5, v2
if-gez v8, :cond_32
.line 1177
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, v7
.line 1179
invoke-virtual {p0}, Lokio/Buffer;->readInt()I
move-result v4
int-to-long v4, v4
and-long/2addr v2, v4
or-long/2addr v0, v2
goto :goto_9b
.line 1181
:cond_32
iget-object v5, v0, Lokio/Segment;->data:[B
add-int/lit8 v6, v1, 0x1
.line 1182
aget-byte v1, v5, v1
int-to-long v8, v1
const-wide/16 v10, 0xff
and-long/2addr v8, v10
const/16 v1, 0x38
shl-long/2addr v8, v1
add-int/lit8 v1, v6, 0x1
.line 1184
aget-byte v6, v5, v6
int-to-long v12, v6
and-long/2addr v12, v10
const/16 v6, 0x30
shl-long/2addr v12, v6
or-long/2addr v8, v12
add-int/lit8 v6, v1, 0x1
.line 1186
aget-byte v1, v5, v1
int-to-long v12, v1
and-long/2addr v12, v10
const/16 v1, 0x28
shl-long/2addr v12, v1
or-long/2addr v8, v12
add-int/lit8 v1, v6, 0x1
.line 1188
aget-byte v6, v5, v6
int-to-long v12, v6
and-long/2addr v12, v10
shl-long v6, v12, v7
or-long/2addr v6, v8
add-int/lit8 v8, v1, 0x1
.line 1190
aget-byte v1, v5, v1
int-to-long v12, v1
and-long/2addr v12, v10
const/16 v1, 0x18
shl-long/2addr v12, v1
or-long/2addr v6, v12
add-int/lit8 v1, v8, 0x1
.line 1192
aget-byte v8, v5, v8
int-to-long v8, v8
and-long/2addr v8, v10
const/16 v12, 0x10
shl-long/2addr v8, v12
or-long/2addr v6, v8
add-int/lit8 v8, v1, 0x1
.line 1194
aget-byte v1, v5, v1
int-to-long v12, v1
and-long/2addr v12, v10
const/16 v1, 0x8
shl-long/2addr v12, v1
or-long/2addr v6, v12
add-int/lit8 v1, v8, 0x1
.line 1196
aget-byte v5, v5, v8
int-to-long v8, v5
and-long/2addr v8, v10
or-long v5, v6, v8
.line 1198
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_98
.line 1201
invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment;
move-result-object v1
iput-object v1, p0, Lokio/Buffer;->head:Lokio/Segment;
.line 1202
sget-object v1, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool;
invoke-virtual {v1, v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V
goto :goto_9a
.line 1204
:cond_98
iput v1, v0, Lokio/Segment;->pos:I
:goto_9a
move-wide v0, v5
:goto_9b
return-wide v0
.line 1169
:cond_9c
new-instance v0, Ljava/io/EOFException;
invoke-direct {v0}, Ljava/io/EOFException;-><init>()V
check-cast v0, Ljava/lang/Throwable;
throw v0
.end method
.method public readLongLe()J
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/EOFException;
}
.end annotation
.line 264
invoke-virtual {p0}, Lokio/Buffer;->readLong()J
move-result-wide v0
invoke-static {v0, v1}, Lokio/-Util;->reverseBytes(J)J
move-result-wide v0
return-wide v0
.end method
.method public readShort()S
.registers 9
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/EOFException;
}
.end annotation
.line 1106
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v0
const-wide/16 v2, 0x2
cmp-long v4, v0, v2
if-ltz v4, :cond_56
.line 1108
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
if-nez v0, :cond_11
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
.line 1109
:cond_11
iget v1, v0, Lokio/Segment;->pos:I
.line 1110
iget v4, v0, Lokio/Segment;->limit:I
sub-int v5, v4, v1
const/4 v6, 0x2
if-ge v5, v6, :cond_2b
.line 1114
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 v1
and-int/lit16 v1, v1, 0xff
or-int/2addr v0, v1
int-to-short v0, v0
goto :goto_55
.line 1120
:cond_2b
iget-object v5, v0, Lokio/Segment;->data:[B
add-int/lit8 v6, v1, 0x1
.line 1121
aget-byte v1, v5, v1
and-int/lit16 v1, v1, 0xff
shl-int/lit8 v1, v1, 0x8
add-int/lit8 v7, v6, 0x1
aget-byte v5, v5, v6
and-int/lit16 v5, v5, 0xff
or-int/2addr v1, v5
.line 1124
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v5
sub-long/2addr v5, v2
invoke-virtual {p0, v5, v6}, Lokio/Buffer;->setSize$okio(J)V
if-ne v7, v4, :cond_52
.line 1127
invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment;
move-result-object v2
iput-object v2, p0, Lokio/Buffer;->head:Lokio/Segment;
.line 1128
sget-object v2, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool;
invoke-virtual {v2, v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V
goto :goto_54
.line 1130
:cond_52
iput v7, v0, Lokio/Segment;->pos:I
:goto_54
int-to-short v0, v1
:goto_55
return v0
.line 1106
:cond_56
new-instance v0, Ljava/io/EOFException;
invoke-direct {v0}, Ljava/io/EOFException;-><init>()V
check-cast v0, Ljava/lang/Throwable;
throw v0
.end method
.method public readShortLe()S
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/EOFException;
}
.end annotation
.line 258
invoke-virtual {p0}, Lokio/Buffer;->readShort()S
move-result v0
invoke-static {v0}, Lokio/-Util;->reverseBytes(S)S
move-result v0
return v0
.end method
.method public readString(JLjava/nio/charset/Charset;)Ljava/lang/String;
.registers 10
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/EOFException;
}
.end annotation
const-string v0, "charset"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-wide/16 v0, 0x0
cmp-long v2, p1, v0
if-ltz v2, :cond_15
const v0, 0x7fffffff
int-to-long v0, v0
cmp-long v3, p1, v0
if-gtz v3, :cond_15
const/4 v0, 0x1
goto :goto_16
:cond_15
const/4 v0, 0x0
:goto_16
if-eqz v0, :cond_6d
.line 295
iget-wide v0, p0, Lokio/Buffer;->size:J
cmp-long v3, v0, p1
if-ltz v3, :cond_65
if-nez v2, :cond_23
const-string p1, ""
return-object p1
.line 298
:cond_23
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
if-nez v0, :cond_2a
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
.line 299
:cond_2a
iget v1, v0, Lokio/Segment;->pos:I
int-to-long v1, v1
add-long/2addr v1, p1
iget v3, v0, Lokio/Segment;->limit:I
int-to-long v3, v3
cmp-long v5, v1, v3
if-lez v5, :cond_3f
.line 301
invoke-virtual {p0, p1, p2}, Lokio/Buffer;->readByteArray(J)[B
move-result-object p1
new-instance p2, Ljava/lang/String;
invoke-direct {p2, p1, p3}, Ljava/lang/String;-><init>([BLjava/nio/charset/Charset;)V
return-object p2
.line 304
:cond_3f
iget-object v1, v0, Lokio/Segment;->data:[B
iget v2, v0, Lokio/Segment;->pos:I
long-to-int v3, p1
new-instance v4, Ljava/lang/String;
invoke-direct {v4, v1, v2, v3, p3}, Ljava/lang/String;-><init>([BIILjava/nio/charset/Charset;)V
.line 305
iget p3, v0, Lokio/Segment;->pos:I
add-int/2addr p3, v3
iput p3, v0, Lokio/Segment;->pos:I
.line 306
iget-wide v1, p0, Lokio/Buffer;->size:J
sub-long/2addr v1, p1
iput-wide v1, p0, Lokio/Buffer;->size:J
.line 308
iget p1, v0, Lokio/Segment;->pos:I
iget p2, v0, Lokio/Segment;->limit:I
if-ne p1, p2, :cond_64
.line 309
invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment;
move-result-object p1
iput-object p1, p0, Lokio/Buffer;->head:Lokio/Segment;
.line 310
sget-object p1, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool;
invoke-virtual {p1, v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V
:cond_64
return-object v4
.line 295
:cond_65
new-instance p1, Ljava/io/EOFException;
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
check-cast p1, Ljava/lang/Throwable;
throw p1
.line 294
:cond_6d
new-instance p3, Ljava/lang/StringBuilder;
invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "byteCount: "
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p3, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p2, Ljava/lang/Throwable;
throw p2
.end method
.method public readString(Ljava/nio/charset/Charset;)Ljava/lang/String;
.registers 4
const-string v0, "charset"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 290
iget-wide v0, p0, Lokio/Buffer;->size:J
invoke-virtual {p0, v0, v1, p1}, Lokio/Buffer;->readString(JLjava/nio/charset/Charset;)Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public final readUnsafe()Lokio/Buffer$UnsafeCursor;
.registers 3
const/4 v0, 0x0
const/4 v1, 0x1
invoke-static {p0, v0, v1, v0}, Lokio/Buffer;->readUnsafe$default(Lokio/Buffer;Lokio/Buffer$UnsafeCursor;ILjava/lang/Object;)Lokio/Buffer$UnsafeCursor;
move-result-object v0
return-object v0
.end method
.method public final readUnsafe(Lokio/Buffer$UnsafeCursor;)Lokio/Buffer$UnsafeCursor;
.registers 4
const-string/jumbo v0, "unsafeCursor"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 570
iget-object v0, p1, Lokio/Buffer$UnsafeCursor;->buffer:Lokio/Buffer;
const/4 v1, 0x0
if-nez v0, :cond_d
const/4 v0, 0x1
goto :goto_e
:cond_d
const/4 v0, 0x0
:goto_e
if-eqz v0, :cond_18
.line 572
move-object v0, p0
check-cast v0, Lokio/Buffer;
iput-object v0, p1, Lokio/Buffer$UnsafeCursor;->buffer:Lokio/Buffer;
.line 573
iput-boolean v1, p1, Lokio/Buffer$UnsafeCursor;->readWrite:Z
return-object p1
.line 570
:cond_18
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "already attached to a buffer"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p1, Ljava/lang/Throwable;
throw p1
.end method
.method public readUtf8()Ljava/lang/String;
.registers 4
.line 285
iget-wide v0, p0, Lokio/Buffer;->size:J
sget-object v2, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset;
invoke-virtual {p0, v0, v1, v2}, Lokio/Buffer;->readString(JLjava/nio/charset/Charset;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public readUtf8(J)Ljava/lang/String;
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/EOFException;
}
.end annotation
.line 288
sget-object v0, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset;
invoke-virtual {p0, p1, p2, v0}, Lokio/Buffer;->readString(JLjava/nio/charset/Charset;)Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public readUtf8CodePoint()I
.registers 13
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/EOFException;
}
.end annotation
.line 1359
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v0
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-eqz v4, :cond_b7
.line 1361
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_1e
and-int/lit8 v1, v0, 0x7f
const/4 v5, 0x0
const/4 v5, 0x1
const/4 v6, 0x0
goto :goto_41
:cond_1e
and-int/lit16 v1, v0, 0xe0
const/16 v5, 0xc0
if-ne v1, v5, :cond_2a
and-int/lit8 v1, v0, 0x1f
const/4 v5, 0x2
const/16 v6, 0x80
goto :goto_41
:cond_2a
and-int/lit16 v1, v0, 0xf0
const/16 v5, 0xe0
if-ne v1, v5, :cond_36
and-int/lit8 v1, v0, 0xf
const/4 v5, 0x3
const/16 v6, 0x800
goto :goto_41
:cond_36
and-int/lit16 v1, v0, 0xf8
const/16 v5, 0xf0
if-ne v1, v5, :cond_b1
and-int/lit8 v1, v0, 0x7
const/4 v5, 0x4
const/high16 v6, 0x10000
.line 1402
:goto_41
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v7
int-to-long v9, v5
cmp-long v11, v7, v9
if-ltz v11, :cond_7b
:goto_4a
if-ge v2, v5, :cond_61
int-to-long v7, v2
.line 1410
invoke-virtual {p0, v7, v8}, Lokio/Buffer;->getByte(J)B
move-result v0
and-int/lit16 v11, v0, 0xc0
if-ne v11, v3, :cond_5d
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_4a
.line 1416
:cond_5d
invoke-virtual {p0, v7, v8}, Lokio/Buffer;->skip(J)V
goto :goto_b6
.line 1421
:cond_61
invoke-virtual {p0, v9, v10}, Lokio/Buffer;->skip(J)V
const v0, 0x10ffff
if-le v1, v0, :cond_6a
goto :goto_b6
:cond_6a
const v0, 0xdfff
const v2, 0xd800
if-le v2, v1, :cond_73
goto :goto_76
:cond_73
if-lt v0, v1, :cond_76
goto :goto_b6
:cond_76
:goto_76
if-ge v1, v6, :cond_79
goto :goto_b6
:cond_79
move v4, v1
goto :goto_b6
.line 1403
:cond_7b
new-instance v1, Ljava/io/EOFException;
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "size < "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v3, ": "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v3
invoke-virtual {v2, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string v3, " (to read code point prefixed 0x"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-static {v0}, Lokio/-Util;->toHexString(B)Ljava/lang/String;
move-result-object v0
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v0, 0x29
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v1, v0}, Ljava/io/EOFException;-><init>(Ljava/lang/String;)V
check-cast v1, Ljava/lang/Throwable;
throw v1
:cond_b1
const-wide/16 v0, 0x1
.line 1397
invoke-virtual {p0, v0, v1}, Lokio/Buffer;->skip(J)V
:goto_b6
return v4
.line 1359
:cond_b7
new-instance v0, Ljava/io/EOFException;
invoke-direct {v0}, Ljava/io/EOFException;-><init>()V
check-cast v0, Ljava/lang/Throwable;
throw v0
.end method
.method public readUtf8Line()Ljava/lang/String;
.registers 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/EOFException;
}
.end annotation
const/16 v0, 0xa
int-to-byte v0, v0
.line 1339
invoke-virtual {p0, v0}, Lokio/Buffer;->indexOf(B)J
move-result-wide v0
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-eqz v4, :cond_12
.line 1342
invoke-static {p0, v0, v1}, Lokio/internal/BufferKt;->readUtf8Line(Lokio/Buffer;J)Ljava/lang/String;
move-result-object v0
goto :goto_26
.line 1343
:cond_12
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v0
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-eqz v4, :cond_25
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 v0
goto :goto_26
:cond_25
const/4 v0, 0x0
:goto_26
return-object v0
.end method
.method public readUtf8LineStrict()Ljava/lang/String;
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/EOFException;
}
.end annotation
const-wide v0, 0x7fffffffffffffffL
.line 320
invoke-virtual {p0, v0, v1}, Lokio/Buffer;->readUtf8LineStrict(J)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public readUtf8LineStrict(J)Ljava/lang/String;
.registers 14
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/EOFException;
}
.end annotation
const-wide/16 v0, 0x0
cmp-long v2, p1, v0
if-ltz v2, :cond_8
const/4 v0, 0x1
goto :goto_9
:cond_8
const/4 v0, 0x0
:goto_9
if-eqz v0, :cond_9b
const-wide/16 v0, 0x1
const-wide v2, 0x7fffffffffffffffL
cmp-long v4, p1, v2
if-nez v4, :cond_17
goto :goto_19
:cond_17
add-long v2, p1, v0
:goto_19
const/16 v4, 0xa
int-to-byte v10, v4
const-wide/16 v6, 0x0
move-object v4, p0
move v5, v10
move-wide v8, v2
.line 1347
invoke-virtual/range {v4 .. v9}, Lokio/Buffer;->indexOf(BJJ)J
move-result-wide v4
const-wide/16 v6, -0x1
cmp-long v8, v4, v6
if-eqz v8, :cond_30
.line 1348
invoke-static {p0, v4, v5}, Lokio/internal/BufferKt;->readUtf8Line(Lokio/Buffer;J)Ljava/lang/String;
move-result-object p1
goto :goto_4d
.line 1351
:cond_30
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v4
cmp-long v6, v2, v4
if-gez v6, :cond_4e
sub-long v0, v2, v0
.line 1350
invoke-virtual {p0, v0, v1}, Lokio/Buffer;->getByte(J)B
move-result v0
const/16 v1, 0xd
int-to-byte v1, v1
if-ne v0, v1, :cond_4e
.line 1351
invoke-virtual {p0, v2, v3}, Lokio/Buffer;->getByte(J)B
move-result v0
if-ne v0, v10, :cond_4e
.line 1352
invoke-static {p0, v2, v3}, Lokio/internal/BufferKt;->readUtf8Line(Lokio/Buffer;J)Ljava/lang/String;
move-result-object p1
:goto_4d
return-object p1
.line 1354
:cond_4e
new-instance v6, Lokio/Buffer;
invoke-direct {v6}, Lokio/Buffer;-><init>()V
const-wide/16 v2, 0x0
const/16 v0, 0x20
.line 1355
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v4
int-to-long v0, v0
.line 1356
invoke-static {v0, v1, v4, v5}, Ljava/lang/Math;->min(JJ)J
move-result-wide v4
move-object v0, p0
move-object v1, v6
.line 1355
invoke-virtual/range {v0 .. v5}, Lokio/Buffer;->copyTo(Lokio/Buffer;JJ)Lokio/Buffer;
.line 1357
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "\\n not found: limit="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v1
invoke-static {v1, v2, p1, p2}, Ljava/lang/Math;->min(JJ)J
move-result-wide p1
invoke-virtual {v0, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string p1, " content="
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 1358
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 {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 p1, 0x2026
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
.line 1357
new-instance p2, Ljava/io/EOFException;
invoke-direct {p2, p1}, Ljava/io/EOFException;-><init>(Ljava/lang/String;)V
check-cast p2, Ljava/lang/Throwable;
throw p2
.line 1345
:cond_9b
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "limit < 0: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p2, Ljava/lang/Throwable;
throw p2
.end method
.method public request(J)Z
.registers 6
.line 109
iget-wide v0, p0, Lokio/Buffer;->size:J
cmp-long v2, v0, p1
if-ltz v2, :cond_8
const/4 p1, 0x1
goto :goto_9
:cond_8
const/4 p1, 0x0
:goto_9
return p1
.end method
.method public require(J)V
.registers 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/EOFException;
}
.end annotation
.line 106
iget-wide v0, p0, Lokio/Buffer;->size:J
cmp-long v2, v0, p1
if-ltz v2, :cond_7
return-void
:cond_7
new-instance p1, Ljava/io/EOFException;
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
check-cast p1, Ljava/lang/Throwable;
throw p1
.end method
.method public select(Lokio/Options;)I
.registers 5
const-string v0, "options"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
const/4 v1, 0x2
const/4 v2, 0x0
.line 1321
invoke-static {p0, p1, v0, v1, v2}, 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_11
const/4 v0, -0x1
goto :goto_1f
.line 1325
:cond_11
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 1326
invoke-virtual {p0, v1, v2}, Lokio/Buffer;->skip(J)V
:goto_1f
return v0
.end method
.method public final setSize$okio(J)V
.registers 3
.line 73
iput-wide p1, p0, Lokio/Buffer;->size:J
return-void
.end method
.method public final sha1()Lokio/ByteString;
.registers 2
const-string v0, "SHA-1"
.line 501
invoke-direct {p0, v0}, Lokio/Buffer;->digest(Ljava/lang/String;)Lokio/ByteString;
move-result-object v0
return-object v0
.end method
.method public final sha256()Lokio/ByteString;
.registers 2
const-string v0, "SHA-256"
.line 504
invoke-direct {p0, v0}, Lokio/Buffer;->digest(Ljava/lang/String;)Lokio/ByteString;
move-result-object v0
return-object v0
.end method
.method public final sha512()Lokio/ByteString;
.registers 2
const-string v0, "SHA-512"
.line 507
invoke-direct {p0, v0}, Lokio/Buffer;->digest(Ljava/lang/String;)Lokio/ByteString;
move-result-object v0
return-object v0
.end method
.method public final size()J
.registers 3
.line 73
iget-wide v0, p0, Lokio/Buffer;->size:J
return-wide v0
.end method
.method public skip(J)V
.registers 10
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/EOFException;
}
.end annotation
:cond_0
:goto_0
const-wide/16 v0, 0x0
cmp-long v2, p1, v0
if-lez v2, :cond_3e
.line 1469
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
if-eqz v0, :cond_36
.line 1471
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 1472
invoke-static {p1, p2, v1, v2}, Ljava/lang/Math;->min(JJ)J
move-result-wide v1
long-to-int v2, v1
.line 1473
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v3
int-to-long v5, v2
sub-long/2addr v3, v5
invoke-virtual {p0, v3, v4}, Lokio/Buffer;->setSize$okio(J)V
sub-long/2addr p1, v5
.line 1475
iget v1, v0, Lokio/Segment;->pos:I
add-int/2addr v1, v2
iput v1, v0, Lokio/Segment;->pos:I
.line 1477
iget v1, v0, Lokio/Segment;->pos:I
iget v2, v0, Lokio/Segment;->limit:I
if-ne v1, v2, :cond_0
.line 1478
invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment;
move-result-object v1
iput-object v1, p0, Lokio/Buffer;->head:Lokio/Segment;
.line 1479
sget-object v1, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool;
invoke-virtual {v1, v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V
goto :goto_0
.line 1469
:cond_36
new-instance p1, Ljava/io/EOFException;
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
check-cast p1, Ljava/lang/Throwable;
throw p1
:cond_3e
return-void
.end method
.method public final snapshot()Lokio/ByteString;
.registers 6
.line 2110
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v0
const v2, 0x7fffffff
int-to-long v2, v2
cmp-long v4, v0, v2
if-gtz v4, :cond_e
const/4 v0, 0x1
goto :goto_f
:cond_e
const/4 v0, 0x0
:goto_f
if-eqz v0, :cond_1b
.line 2111
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v0
long-to-int v1, v0
invoke-virtual {p0, v1}, Lokio/Buffer;->snapshot(I)Lokio/ByteString;
move-result-object v0
return-object v0
.line 2110
:cond_1b
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "size > Int.MAX_VALUE: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide v1
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
new-instance v1, Ljava/lang/IllegalStateException;
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast v1, Ljava/lang/Throwable;
throw v1
.end method
.method public final snapshot(I)Lokio/ByteString;
.registers 9
if-nez p1, :cond_5
.line 2112
sget-object p1, Lokio/ByteString;->EMPTY:Lokio/ByteString;
goto :goto_70
.line 2113
:cond_5
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 2118
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
const/4 v1, 0x0
const/4 v2, 0x0
const/4 v3, 0x0
:goto_14
if-ge v2, p1, :cond_36
if-nez v0, :cond_1b
.line 2120
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_1b
iget v4, v0, Lokio/Segment;->limit:I
iget v5, v0, Lokio/Segment;->pos:I
if-eq v4, v5, :cond_2c
.line 2123
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 2125
iget-object v0, v0, Lokio/Segment;->next:Lokio/Segment;
goto :goto_14
.line 2121
:cond_2c
new-instance p1, Ljava/lang/AssertionError;
const-string v0, "s.limit == s.pos"
invoke-direct {p1, v0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
check-cast p1, Ljava/lang/Throwable;
throw p1
.line 2129
:cond_36
new-array v0, v3, [[B
mul-int/lit8 v3, v3, 0x2
.line 2130
new-array v2, v3, [I
.line 2133
iget-object v3, p0, Lokio/Buffer;->head:Lokio/Segment;
move-object v4, v3
const/4 v3, 0x0
:goto_40
if-ge v1, p1, :cond_67
if-nez v4, :cond_47
.line 2135
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_47
iget-object v5, v4, Lokio/Segment;->data:[B
aput-object v5, v0, v3
.line 2136
iget v5, v4, Lokio/Segment;->limit:I
iget v6, v4, Lokio/Segment;->pos:I
sub-int/2addr v5, v6
add-int/2addr v1, v5
.line 2138
invoke-static {v1, p1}, Ljava/lang/Math;->min(II)I
move-result v5
aput v5, v2, v3
.line 2139
move-object v5, v0
check-cast v5, [Ljava/lang/Object;
array-length v5, v5
add-int/2addr v5, v3
iget v6, v4, Lokio/Segment;->pos:I
aput v6, v2, v5
const/4 v5, 0x1
.line 2140
iput-boolean v5, v4, Lokio/Segment;->shared:Z
add-int/2addr v3, v5
.line 2142
iget-object v4, v4, Lokio/Segment;->next:Lokio/Segment;
goto :goto_40
.line 2145
:cond_67
new-instance p1, Lokio/SegmentedByteString;
check-cast v0, [[B
invoke-direct {p1, v0, v2}, Lokio/SegmentedByteString;-><init>([[B[I)V
check-cast p1, Lokio/ByteString;
:goto_70
return-object p1
.end method
.method public timeout()Lokio/Timeout;
.registers 2
.line 495
sget-object v0, Lokio/Timeout;->NONE:Lokio/Timeout;
return-object v0
.end method
.method public toString()Ljava/lang/String;
.registers 2
.line 557
invoke-virtual {p0}, Lokio/Buffer;->snapshot()Lokio/ByteString;
move-result-object v0
invoke-virtual {v0}, Lokio/ByteString;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public final writableSegment$okio(I)Lokio/Segment;
.registers 5
const/16 v0, 0x2000
const/4 v1, 0x1
if-lt p1, v1, :cond_8
if-gt p1, v0, :cond_8
goto :goto_9
:cond_8
const/4 v1, 0x0
:goto_9
if-eqz v1, :cond_3f
.line 1803
iget-object v1, p0, Lokio/Buffer;->head:Lokio/Segment;
if-nez v1, :cond_1c
.line 1804
sget-object p1, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool;
invoke-virtual {p1}, Lokio/SegmentPool;->take()Lokio/Segment;
move-result-object p1
.line 1805
iput-object p1, p0, Lokio/Buffer;->head:Lokio/Segment;
.line 1806
iput-object p1, p1, Lokio/Segment;->prev:Lokio/Segment;
.line 1807
iput-object p1, p1, Lokio/Segment;->next:Lokio/Segment;
goto :goto_3e
:cond_1c
if-nez v1, :cond_21
.line 1811
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_21
iget-object v1, v1, Lokio/Segment;->prev:Lokio/Segment;
if-nez v1, :cond_28
.line 1812
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_28
iget v2, v1, Lokio/Segment;->limit:I
add-int/2addr v2, p1
if-gt v2, v0, :cond_34
iget-boolean p1, v1, Lokio/Segment;->owner:Z
if-nez p1, :cond_32
goto :goto_34
:cond_32
move-object p1, v1
goto :goto_3e
.line 1813
:cond_34
:goto_34
sget-object p1, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool;
invoke-virtual {p1}, Lokio/SegmentPool;->take()Lokio/Segment;
move-result-object p1
invoke-virtual {v1, p1}, Lokio/Segment;->push(Lokio/Segment;)Lokio/Segment;
move-result-object p1
:goto_3e
return-object p1
.line 1801
:cond_3f
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string/jumbo v0, "unexpected capacity"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p1, Ljava/lang/Throwable;
throw p1
.end method
.method public write(Ljava/nio/ByteBuffer;)I
.registers 8
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "source"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 409
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I
move-result v0
move v1, v0
:goto_a
if-lez v1, :cond_27
const/4 v2, 0x1
.line 412
invoke-virtual {p0, v2}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
move-result-object v2
.line 414
iget v3, v2, Lokio/Segment;->limit:I
rsub-int v3, v3, 0x2000
invoke-static {v1, v3}, Ljava/lang/Math;->min(II)I
move-result v3
.line 415
iget-object v4, v2, Lokio/Segment;->data:[B
iget v5, v2, Lokio/Segment;->limit:I
invoke-virtual {p1, v4, v5, v3}, Ljava/nio/ByteBuffer;->get([BII)Ljava/nio/ByteBuffer;
sub-int/2addr v1, v3
.line 418
iget v4, v2, Lokio/Segment;->limit:I
add-int/2addr v4, v3
iput v4, v2, Lokio/Segment;->limit:I
goto :goto_a
.line 421
:cond_27
iget-wide v1, p0, Lokio/Buffer;->size:J
int-to-long v3, v0
add-long/2addr v1, v3
iput-wide v1, p0, Lokio/Buffer;->size:J
return v0
.end method
.method public write(Lokio/ByteString;)Lokio/Buffer;
.registers 4
const-string v0, "byteString"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 1484
invoke-virtual {p1}, Lokio/ByteString;->size()I
move-result v0
const/4 v1, 0x0
.line 1486
invoke-virtual {p1, p0, v1, v0}, Lokio/ByteString;->write$okio(Lokio/Buffer;II)V
return-object p0
.end method
.method public write(Lokio/ByteString;II)Lokio/Buffer;
.registers 5
const-string v0, "byteString"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 1488
invoke-virtual {p1, p0, p2, p3}, Lokio/ByteString;->write$okio(Lokio/Buffer;II)V
return-object p0
.end method
.method public write(Lokio/Source;J)Lokio/Buffer;
.registers 9
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "source"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:goto_5
const-wide/16 v0, 0x0
cmp-long v2, p2, v0
if-lez v2, :cond_1f
.line 1657
invoke-interface {p1, p0, p2, p3}, Lokio/Source;->read(Lokio/Buffer;J)J
move-result-wide v0
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-eqz v4, :cond_17
sub-long/2addr p2, v0
goto :goto_5
.line 1658
:cond_17
new-instance p1, Ljava/io/EOFException;
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
check-cast p1, Ljava/lang/Throwable;
throw p1
:cond_1f
return-object p0
.end method
.method public write([B)Lokio/Buffer;
.registers 4
const-string v0, "source"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 1626
array-length v0, p1
const/4 v1, 0x0
invoke-virtual {p0, p1, v1, v0}, Lokio/Buffer;->write([BII)Lokio/Buffer;
move-result-object p1
return-object p1
.end method
.method public write([BII)Lokio/Buffer;
.registers 13
const-string v0, "source"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 1628
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_e
if-ge p2, p3, :cond_2f
const/4 v0, 0x1
.line 1632
invoke-virtual {p0, v0}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
move-result-object v0
sub-int v1, p3, p2
.line 1634
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 1636
iget-object v2, v0, Lokio/Segment;->data:[B
.line 1637
iget v3, v0, Lokio/Segment;->limit:I
add-int v4, p2, v1
.line 1635
invoke-static {p1, v2, v3, p2, v4}, Lkotlin/collections/ArraysKt;->copyInto([B[BIII)[B
.line 1643
iget p2, v0, Lokio/Segment;->limit:I
add-int/2addr p2, v1
iput p2, v0, Lokio/Segment;->limit:I
move p2, v4
goto :goto_e
.line 1646
:cond_2f
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 bridge synthetic write(Lokio/ByteString;)Lokio/BufferedSink;
.registers 2
.line 69
invoke-virtual {p0, p1}, Lokio/Buffer;->write(Lokio/ByteString;)Lokio/Buffer;
move-result-object p1
check-cast p1, Lokio/BufferedSink;
return-object p1
.end method
.method public bridge synthetic write(Lokio/ByteString;II)Lokio/BufferedSink;
.registers 4
.line 69
invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->write(Lokio/ByteString;II)Lokio/Buffer;
move-result-object p1
check-cast p1, Lokio/BufferedSink;
return-object p1
.end method
.method public bridge synthetic write(Lokio/Source;J)Lokio/BufferedSink;
.registers 4
.line 69
invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->write(Lokio/Source;J)Lokio/Buffer;
move-result-object p1
check-cast p1, Lokio/BufferedSink;
return-object p1
.end method
.method public bridge synthetic write([B)Lokio/BufferedSink;
.registers 2
.line 69
invoke-virtual {p0, p1}, Lokio/Buffer;->write([B)Lokio/Buffer;
move-result-object p1
check-cast p1, Lokio/BufferedSink;
return-object p1
.end method
.method public bridge synthetic write([BII)Lokio/BufferedSink;
.registers 4
.line 69
invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->write([BII)Lokio/Buffer;
move-result-object p1
check-cast p1, Lokio/BufferedSink;
return-object p1
.end method
.method public write(Lokio/Buffer;J)V
.registers 12
const-string v0, "source"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
if-eq p1, p0, :cond_a
const/4 v1, 0x1
goto :goto_b
:cond_a
const/4 v1, 0x0
:goto_b
if-eqz v1, :cond_ce
.line 1818
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_17
const-wide/16 v1, 0x0
cmp-long v3, p2, v1
if-lez v3, :cond_cd
.line 1822
iget-object v1, p1, Lokio/Buffer;->head:Lokio/Segment;
if-nez v1, :cond_24
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_24
iget v1, v1, Lokio/Segment;->limit:I
iget-object v2, p1, Lokio/Buffer;->head:Lokio/Segment;
if-nez v2, :cond_2d
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_2d
iget v2, v2, Lokio/Segment;->pos:I
sub-int/2addr v1, v2
int-to-long v1, v1
cmp-long v3, p2, v1
if-gez v3, :cond_87
.line 1823
iget-object v1, p0, Lokio/Buffer;->head:Lokio/Segment;
if-eqz v1, :cond_41
if-nez v1, :cond_3e
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_3e
iget-object v1, v1, Lokio/Segment;->prev:Lokio/Segment;
goto :goto_42
:cond_41
const/4 v1, 0x0
:goto_42
if-eqz v1, :cond_79
.line 1825
iget-boolean v2, v1, Lokio/Segment;->owner:Z
if-eqz v2, :cond_79
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_52
const/4 v4, 0x0
goto :goto_54
:cond_52
iget v4, v1, Lokio/Segment;->pos:I
:goto_54
int-to-long v4, v4
sub-long/2addr v2, v4
const/16 v4, 0x2000
int-to-long v4, v4
cmp-long v6, v2, v4
if-gtz v6, :cond_79
.line 1827
iget-object v0, p1, Lokio/Buffer;->head:Lokio/Segment;
if-nez v0, :cond_64
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_64
long-to-int v2, p2
invoke-virtual {v0, v1, v2}, Lokio/Segment;->writeTo(Lokio/Segment;I)V
.line 1828
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 1829
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
goto :goto_cd
.line 1834
:cond_79
iget-object v1, p1, Lokio/Buffer;->head:Lokio/Segment;
if-nez v1, :cond_80
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_80
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 1839
:cond_87
iget-object v1, p1, Lokio/Buffer;->head:Lokio/Segment;
if-nez v1, :cond_8e
.line 1840
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_8e
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 1841
invoke-virtual {v1}, Lokio/Segment;->pop()Lokio/Segment;
move-result-object v4
iput-object v4, p1, Lokio/Buffer;->head:Lokio/Segment;
.line 1842
iget-object v4, p0, Lokio/Buffer;->head:Lokio/Segment;
if-nez v4, :cond_a7
.line 1843
iput-object v1, p0, Lokio/Buffer;->head:Lokio/Segment;
.line 1844
iput-object v1, v1, Lokio/Segment;->prev:Lokio/Segment;
.line 1845
iget-object v4, v1, Lokio/Segment;->prev:Lokio/Segment;
iput-object v4, v1, Lokio/Segment;->next:Lokio/Segment;
goto :goto_ba
:cond_a7
if-nez v4, :cond_ac
.line 1847
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_ac
iget-object v4, v4, Lokio/Segment;->prev:Lokio/Segment;
if-nez v4, :cond_b3
.line 1848
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_b3
invoke-virtual {v4, v1}, Lokio/Segment;->push(Lokio/Segment;)Lokio/Segment;
move-result-object v1
.line 1849
invoke-virtual {v1}, Lokio/Segment;->compact()V
.line 1851
:goto_ba
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 1852
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_17
:cond_cd
:goto_cd
return-void
.line 1817
:cond_ce
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "source == this"
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p1, Ljava/lang/Throwable;
throw p1
.end method
.method public writeAll(Lokio/Source;)J
.registers 9
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "source"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-wide/16 v0, 0x0
:goto_7
const/16 v2, 0x2000
int-to-long v2, v2
.line 1650
invoke-interface {p1, p0, v2, v3}, Lokio/Source;->read(Lokio/Buffer;J)J
move-result-wide v2
const-wide/16 v4, -0x1
cmp-long v6, v2, v4
if-nez v6, :cond_15
return-wide v0
:cond_15
add-long/2addr v0, v2
goto :goto_7
.end method
.method public writeByte(I)Lokio/Buffer;
.registers 6
const/4 v0, 0x1
.line 1662
invoke-virtual {p0, v0}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
move-result-object v0
.line 1663
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 1664
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 bridge synthetic writeByte(I)Lokio/BufferedSink;
.registers 2
.line 69
invoke-virtual {p0, p1}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
move-result-object p1
check-cast p1, Lokio/BufferedSink;
return-object p1
.end method
.method public writeDecimalLong(J)Lokio/Buffer;
.registers 15
const-wide/16 v0, 0x0
cmp-long v2, p1, v0
if-nez v2, :cond_e
const/16 p1, 0x30
.line 1701
invoke-virtual {p0, p1}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
move-result-object p1
goto/16 :goto_11f
:cond_e
const/4 v3, 0x0
const/4 v4, 0x1
if-gez v2, :cond_20
neg-long p1, p1
cmp-long v2, p1, v0
if-gez v2, :cond_1f
const-string p1, "-9223372036854775808"
.line 1708
invoke-virtual {p0, p1}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;)Lokio/Buffer;
move-result-object p1
goto/16 :goto_11f
:cond_1f
const/4 v3, 0x1
:cond_20
const-wide/32 v5, 0x5f5e100
const/16 v2, 0xa
cmp-long v7, p1, v5
if-gez v7, :cond_6e
const-wide/16 v5, 0x2710
cmp-long v7, p1, v5
if-gez v7, :cond_4c
const-wide/16 v5, 0x64
cmp-long v7, p1, v5
if-gez v7, :cond_40
const-wide/16 v5, 0xa
cmp-long v7, p1, v5
if-gez v7, :cond_3d
goto/16 :goto_e6
:cond_3d
const/4 v4, 0x2
goto/16 :goto_e6
:cond_40
const-wide/16 v4, 0x3e8
cmp-long v6, p1, v4
if-gez v6, :cond_49
const/4 v4, 0x3
goto/16 :goto_e6
:cond_49
const/4 v4, 0x4
goto/16 :goto_e6
:cond_4c
const-wide/32 v4, 0xf4240
cmp-long v6, p1, v4
if-gez v6, :cond_60
const-wide/32 v4, 0x186a0
cmp-long v6, p1, v4
if-gez v6, :cond_5d
const/4 v4, 0x5
goto/16 :goto_e6
:cond_5d
const/4 v4, 0x6
goto/16 :goto_e6
:cond_60
const-wide/32 v4, 0x989680
cmp-long v6, p1, v4
if-gez v6, :cond_6a
const/4 v4, 0x7
goto/16 :goto_e6
:cond_6a
const/16 v4, 0x8
goto/16 :goto_e6
:cond_6e
const-wide v4, 0xe8d4a51000L
cmp-long v6, p1, v4
if-gez v6, :cond_9c
const-wide v4, 0x2540be400L
cmp-long v6, p1, v4
if-gez v6, :cond_8d
const-wide/32 v4, 0x3b9aca00
cmp-long v6, p1, v4
if-gez v6, :cond_8a
const/16 v4, 0x9
goto :goto_e6
:cond_8a
const/16 v4, 0xa
goto :goto_e6
:cond_8d
const-wide v4, 0x174876e800L
cmp-long v6, p1, v4
if-gez v6, :cond_99
const/16 v4, 0xb
goto :goto_e6
:cond_99
const/16 v4, 0xc
goto :goto_e6
:cond_9c
const-wide v4, 0x38d7ea4c68000L
cmp-long v6, p1, v4
if-gez v6, :cond_c0
const-wide v4, 0x9184e72a000L
cmp-long v6, p1, v4
if-gez v6, :cond_b1
const/16 v4, 0xd
goto :goto_e6
:cond_b1
const-wide v4, 0x5af3107a4000L
cmp-long v6, p1, v4
if-gez v6, :cond_bd
const/16 v4, 0xe
goto :goto_e6
:cond_bd
const/16 v4, 0xf
goto :goto_e6
:cond_c0
const-wide v4, 0x16345785d8a0000L
cmp-long v6, p1, v4
if-gez v6, :cond_d8
const-wide v4, 0x2386f26fc10000L
cmp-long v6, p1, v4
if-gez v6, :cond_d5
const/16 v4, 0x10
goto :goto_e6
:cond_d5
const/16 v4, 0x11
goto :goto_e6
:cond_d8
const-wide v4, 0xde0b6b3a7640000L
cmp-long v6, p1, v4
if-gez v6, :cond_e4
const/16 v4, 0x12
goto :goto_e6
:cond_e4
const/16 v4, 0x13
:goto_e6
if-eqz v3, :cond_ea
add-int/lit8 v4, v4, 0x1
.line 1746
:cond_ea
invoke-virtual {p0, v4}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
move-result-object v5
.line 1747
iget-object v6, v5, Lokio/Segment;->data:[B
.line 1748
iget v7, v5, Lokio/Segment;->limit:I
add-int/2addr v7, v4
:goto_f3
cmp-long v8, p1, v0
if-eqz v8, :cond_107
int-to-long v8, v2
.line 1750
rem-long v10, p1, v8
long-to-int v11, v10
add-int/lit8 v7, v7, -0x1
.line 1751
invoke-static {}, Lokio/internal/BufferKt;->getHEX_DIGIT_BYTES()[B
move-result-object v10
aget-byte v10, v10, v11
aput-byte v10, v6, v7
.line 1752
div-long/2addr p1, v8
goto :goto_f3
:cond_107
if-eqz v3, :cond_110
add-int/lit8 v7, v7, -0x1
const/16 p1, 0x2d
int-to-byte p1, p1
.line 1755
aput-byte p1, v6, v7
.line 1758
:cond_110
iget p1, v5, Lokio/Segment;->limit:I
add-int/2addr p1, v4
iput p1, v5, Lokio/Segment;->limit:I
.line 1759
invoke-virtual {p0}, Lokio/Buffer;->size()J
move-result-wide p1
int-to-long v0, v4
add-long/2addr p1, v0
invoke-virtual {p0, p1, p2}, Lokio/Buffer;->setSize$okio(J)V
move-object p1, p0
:goto_11f
return-object p1
.end method
.method public bridge synthetic writeDecimalLong(J)Lokio/BufferedSink;
.registers 3
.line 69
invoke-virtual {p0, p1, p2}, Lokio/Buffer;->writeDecimalLong(J)Lokio/Buffer;
move-result-object p1
check-cast p1, Lokio/BufferedSink;
return-object p1
.end method
.method public writeHexadecimalUnsignedLong(J)Lokio/Buffer;
.registers 15
const-wide/16 v0, 0x0
cmp-long v2, p1, v0
if-nez v2, :cond_d
const/16 p1, 0x30
.line 1764
invoke-virtual {p0, p1}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
move-result-object p1
goto :goto_84
:cond_d
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 1787
div-long/2addr v8, v1
long-to-int v1, v8
.line 1789
invoke-virtual {p0, v1}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
move-result-object v2
.line 1790
iget-object v3, v2, Lokio/Segment;->data:[B
.line 1791
iget v5, v2, Lokio/Segment;->limit:I
add-int/2addr v5, v1
sub-int/2addr v5, v0
.line 1792
iget v0, v2, Lokio/Segment;->limit:I
:goto_63
if-lt v5, v0, :cond_75
.line 1794
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 v8, v7
aget-byte v6, v6, v8
aput-byte v6, v3, v5
ushr-long/2addr p1, v4
add-int/lit8 v5, v5, -0x1
goto :goto_63
.line 1798
:cond_75
iget p1, v2, Lokio/Segment;->limit:I
add-int/2addr p1, v1
iput p1, v2, Lokio/Segment;->limit:I
.line 1799
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
move-object p1, p0
:goto_84
return-object p1
.end method
.method public bridge synthetic writeHexadecimalUnsignedLong(J)Lokio/BufferedSink;
.registers 3
.line 69
invoke-virtual {p0, p1, p2}, Lokio/Buffer;->writeHexadecimalUnsignedLong(J)Lokio/Buffer;
move-result-object p1
check-cast p1, Lokio/BufferedSink;
return-object p1
.end method
.method public writeInt(I)Lokio/Buffer;
.registers 7
const/4 v0, 0x4
.line 1674
invoke-virtual {p0, v0}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
move-result-object v0
.line 1675
iget-object v1, v0, Lokio/Segment;->data:[B
.line 1676
iget v2, v0, Lokio/Segment;->limit:I
add-int/lit8 v3, v2, 0x1
ushr-int/lit8 v4, p1, 0x18
and-int/lit16 v4, v4, 0xff
int-to-byte v4, v4
.line 1677
aput-byte v4, v1, v2
add-int/lit8 v2, v3, 0x1
ushr-int/lit8 v4, p1, 0x10
and-int/lit16 v4, v4, 0xff
int-to-byte v4, v4
.line 1678
aput-byte v4, v1, v3
add-int/lit8 v3, v2, 0x1
ushr-int/lit8 v4, p1, 0x8
and-int/lit16 v4, v4, 0xff
int-to-byte v4, v4
.line 1679
aput-byte v4, v1, v2
add-int/lit8 v2, v3, 0x1
and-int/lit16 p1, p1, 0xff
int-to-byte p1, p1
.line 1680
aput-byte p1, v1, v3
.line 1681
iput v2, v0, Lokio/Segment;->limit:I
.line 1682
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 bridge synthetic writeInt(I)Lokio/BufferedSink;
.registers 2
.line 69
invoke-virtual {p0, p1}, Lokio/Buffer;->writeInt(I)Lokio/Buffer;
move-result-object p1
check-cast p1, Lokio/BufferedSink;
return-object p1
.end method
.method public writeIntLe(I)Lokio/Buffer;
.registers 2
.line 440
invoke-static {p1}, Lokio/-Util;->reverseBytes(I)I
move-result p1
invoke-virtual {p0, p1}, Lokio/Buffer;->writeInt(I)Lokio/Buffer;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic writeIntLe(I)Lokio/BufferedSink;
.registers 2
.line 69
invoke-virtual {p0, p1}, Lokio/Buffer;->writeIntLe(I)Lokio/Buffer;
move-result-object p1
check-cast p1, Lokio/BufferedSink;
return-object p1
.end method
.method public writeLong(J)Lokio/Buffer;
.registers 12
const/16 v0, 0x8
.line 1684
invoke-virtual {p0, v0}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
move-result-object v1
.line 1685
iget-object v2, v1, Lokio/Segment;->data:[B
.line 1686
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 v6, v5
int-to-byte v5, v6
.line 1687
aput-byte v5, v2, v3
add-int/lit8 v3, v4, 0x1
const/16 v5, 0x30
ushr-long v5, p1, v5
and-long/2addr v5, v7
long-to-int v6, v5
int-to-byte v5, v6
.line 1688
aput-byte v5, v2, v4
add-int/lit8 v4, v3, 0x1
const/16 v5, 0x28
ushr-long v5, p1, v5
and-long/2addr v5, v7
long-to-int v6, v5
int-to-byte v5, v6
.line 1689
aput-byte v5, v2, v3
add-int/lit8 v3, v4, 0x1
const/16 v5, 0x20
ushr-long v5, p1, v5
and-long/2addr v5, v7
long-to-int v6, v5
int-to-byte v5, v6
.line 1690
aput-byte v5, v2, v4
add-int/lit8 v4, v3, 0x1
const/16 v5, 0x18
ushr-long v5, p1, v5
and-long/2addr v5, v7
long-to-int v6, v5
int-to-byte v5, v6
.line 1691
aput-byte v5, v2, v3
add-int/lit8 v3, v4, 0x1
const/16 v5, 0x10
ushr-long v5, p1, v5
and-long/2addr v5, v7
long-to-int v6, v5
int-to-byte v5, v6
.line 1692
aput-byte v5, v2, v4
add-int/lit8 v4, v3, 0x1
ushr-long v5, p1, v0
and-long/2addr v5, v7
long-to-int v0, v5
int-to-byte v0, v0
.line 1693
aput-byte v0, v2, v3
add-int/lit8 v0, v4, 0x1
and-long/2addr p1, v7
long-to-int p2, p1
int-to-byte p1, p2
.line 1694
aput-byte p1, v2, v4
.line 1695
iput v0, v1, Lokio/Segment;->limit:I
.line 1696
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 bridge synthetic writeLong(J)Lokio/BufferedSink;
.registers 3
.line 69
invoke-virtual {p0, p1, p2}, Lokio/Buffer;->writeLong(J)Lokio/Buffer;
move-result-object p1
check-cast p1, Lokio/BufferedSink;
return-object p1
.end method
.method public writeLongLe(J)Lokio/Buffer;
.registers 3
.line 444
invoke-static {p1, p2}, Lokio/-Util;->reverseBytes(J)J
move-result-wide p1
invoke-virtual {p0, p1, p2}, Lokio/Buffer;->writeLong(J)Lokio/Buffer;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic writeLongLe(J)Lokio/BufferedSink;
.registers 3
.line 69
invoke-virtual {p0, p1, p2}, Lokio/Buffer;->writeLongLe(J)Lokio/Buffer;
move-result-object p1
check-cast p1, Lokio/BufferedSink;
return-object p1
.end method
.method public writeShort(I)Lokio/Buffer;
.registers 7
const/4 v0, 0x2
.line 1666
invoke-virtual {p0, v0}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
move-result-object v0
.line 1667
iget-object v1, v0, Lokio/Segment;->data:[B
.line 1668
iget v2, v0, Lokio/Segment;->limit:I
add-int/lit8 v3, v2, 0x1
ushr-int/lit8 v4, p1, 0x8
and-int/lit16 v4, v4, 0xff
int-to-byte v4, v4
.line 1669
aput-byte v4, v1, v2
add-int/lit8 v2, v3, 0x1
and-int/lit16 p1, p1, 0xff
int-to-byte p1, p1
.line 1670
aput-byte p1, v1, v3
.line 1671
iput v2, v0, Lokio/Segment;->limit:I
.line 1672
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 bridge synthetic writeShort(I)Lokio/BufferedSink;
.registers 2
.line 69
invoke-virtual {p0, p1}, Lokio/Buffer;->writeShort(I)Lokio/Buffer;
move-result-object p1
check-cast p1, Lokio/BufferedSink;
return-object p1
.end method
.method public writeShortLe(I)Lokio/Buffer;
.registers 2
int-to-short p1, p1
.line 436
invoke-static {p1}, Lokio/-Util;->reverseBytes(S)S
move-result p1
invoke-virtual {p0, p1}, Lokio/Buffer;->writeShort(I)Lokio/Buffer;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic writeShortLe(I)Lokio/BufferedSink;
.registers 2
.line 69
invoke-virtual {p0, p1}, Lokio/Buffer;->writeShortLe(I)Lokio/Buffer;
move-result-object p1
check-cast p1, Lokio/BufferedSink;
return-object p1
.end method
.method public writeString(Ljava/lang/String;IILjava/nio/charset/Charset;)Lokio/Buffer;
.registers 8
const-string v0, "string"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "charset"
invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x1
const/4 v1, 0x0
if-ltz p2, :cond_10
const/4 v2, 0x1
goto :goto_11
:cond_10
const/4 v2, 0x0
:goto_11
if-eqz v2, :cond_a1
if-lt p3, p2, :cond_17
const/4 v2, 0x1
goto :goto_18
:cond_17
const/4 v2, 0x0
:goto_18
if-eqz v2, :cond_7c
.line 393
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v2
if-gt p3, v2, :cond_21
goto :goto_22
:cond_21
const/4 v0, 0x0
:goto_22
if-eqz v0, :cond_53
.line 394
sget-object v0, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset;
invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_31
invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;II)Lokio/Buffer;
move-result-object p1
return-object p1
.line 395
:cond_31
invoke-virtual {p1, p2, p3}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object p1
const-string p2, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
if-eqz p1, :cond_4b
invoke-virtual {p1, p4}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
move-result-object p1
const-string p2, "(this as java.lang.String).getBytes(charset)"
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 396
array-length p2, p1
invoke-virtual {p0, p1, v1, p2}, Lokio/Buffer;->write([BII)Lokio/Buffer;
move-result-object p1
return-object p1
.line 395
:cond_4b
new-instance p1, Lkotlin/TypeCastException;
const-string p2, "null cannot be cast to non-null type java.lang.String"
invoke-direct {p1, p2}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw p1
.line 393
:cond_53
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string p4, "endIndex > string.length: "
invoke-virtual {p2, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p3, " > "
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result p1
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p2, Ljava/lang/Throwable;
throw p2
.line 392
:cond_7c
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string p4, "endIndex < beginIndex: "
invoke-virtual {p1, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p3, " < "
invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p2, Ljava/lang/Throwable;
throw p2
.line 391
:cond_a1
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string p3, "beginIndex < 0: "
invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p2, Ljava/lang/Throwable;
throw p2
.end method
.method public writeString(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/Buffer;
.registers 5
const-string v0, "string"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "charset"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 382
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v0
const/4 v1, 0x0
invoke-virtual {p0, p1, v1, v0, p2}, Lokio/Buffer;->writeString(Ljava/lang/String;IILjava/nio/charset/Charset;)Lokio/Buffer;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic writeString(Ljava/lang/String;IILjava/nio/charset/Charset;)Lokio/BufferedSink;
.registers 5
.line 69
invoke-virtual {p0, p1, p2, p3, p4}, Lokio/Buffer;->writeString(Ljava/lang/String;IILjava/nio/charset/Charset;)Lokio/Buffer;
move-result-object p1
check-cast p1, Lokio/BufferedSink;
return-object p1
.end method
.method public bridge synthetic writeString(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/BufferedSink;
.registers 3
.line 69
invoke-virtual {p0, p1, p2}, Lokio/Buffer;->writeString(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/Buffer;
move-result-object p1
check-cast p1, Lokio/BufferedSink;
return-object p1
.end method
.method public final writeTo(Ljava/io/OutputStream;)Lokio/Buffer;
.registers 8
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v2, 0x0
const/4 v4, 0x2
const/4 v5, 0x0
move-object v0, p0
move-object v1, p1
invoke-static/range {v0 .. v5}, Lokio/Buffer;->writeTo$default(Lokio/Buffer;Ljava/io/OutputStream;JILjava/lang/Object;)Lokio/Buffer;
move-result-object p1
return-object p1
.end method
.method public final writeTo(Ljava/io/OutputStream;J)Lokio/Buffer;
.registers 11
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "out"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 186
iget-wide v1, p0, Lokio/Buffer;->size:J
const-wide/16 v3, 0x0
move-wide v5, p2
invoke-static/range {v1 .. v6}, Lokio/-Util;->checkOffsetAndCount(JJJ)V
.line 188
iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment;
:cond_f
:goto_f
const-wide/16 v1, 0x0
cmp-long v3, p2, v1
if-lez v3, :cond_4b
if-nez v0, :cond_1a
.line 190
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_1a
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 1054
invoke-static {p2, p3, v1, v2}, Ljava/lang/Math;->min(JJ)J
move-result-wide v1
long-to-int v2, v1
.line 191
iget-object v1, v0, Lokio/Segment;->data:[B
iget v3, v0, Lokio/Segment;->pos:I
invoke-virtual {p1, v1, v3, v2}, Ljava/io/OutputStream;->write([BII)V
.line 193
iget v1, v0, Lokio/Segment;->pos:I
add-int/2addr v1, v2
iput v1, v0, Lokio/Segment;->pos:I
.line 194
iget-wide v3, p0, Lokio/Buffer;->size:J
int-to-long v1, v2
sub-long/2addr v3, v1
iput-wide v3, p0, Lokio/Buffer;->size:J
sub-long/2addr p2, v1
.line 197
iget v1, v0, Lokio/Segment;->pos:I
iget v2, v0, Lokio/Segment;->limit:I
if-ne v1, v2, :cond_f
.line 199
invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment;
move-result-object v1
.line 200
iput-object v1, p0, Lokio/Buffer;->head:Lokio/Segment;
.line 201
sget-object v2, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool;
invoke-virtual {v2, v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V
move-object v0, v1
goto :goto_f
:cond_4b
return-object p0
.end method
.method public writeUtf8(Ljava/lang/String;)Lokio/Buffer;
.registers 4
const-string v0, "string"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 374
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v0
const/4 v1, 0x0
invoke-virtual {p0, p1, v1, v0}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;II)Lokio/Buffer;
move-result-object p1
return-object p1
.end method
.method public writeUtf8(Ljava/lang/String;II)Lokio/Buffer;
.registers 16
const-string v0, "string"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
const/4 v1, 0x1
if-ltz p2, :cond_b
const/4 v2, 0x1
goto :goto_c
:cond_b
const/4 v2, 0x0
:goto_c
if-eqz v2, :cond_194
if-lt p3, p2, :cond_12
const/4 v2, 0x1
goto :goto_13
:cond_12
const/4 v2, 0x0
:goto_13
if-eqz v2, :cond_16f
.line 1492
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v2
if-gt p3, v2, :cond_1d
const/4 v2, 0x1
goto :goto_1e
:cond_1d
const/4 v2, 0x0
:goto_1e
if-eqz v2, :cond_146
:goto_20
if-ge p2, p3, :cond_145
.line 1497
invoke-virtual {p1, p2}, Ljava/lang/String;->charAt(I)C
move-result v2
const/16 v3, 0x80
if-ge v2, v3, :cond_64
.line 1501
invoke-virtual {p0, v1}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
move-result-object v4
.line 1502
iget-object v5, v4, Lokio/Segment;->data:[B
.line 1503
iget v6, v4, Lokio/Segment;->limit:I
sub-int/2addr v6, p2
rsub-int v7, v6, 0x2000
.line 1504
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 1507
aput-byte v2, v5, p2
:goto_3f
if-ge v8, v7, :cond_50
.line 1512
invoke-virtual {p1, v8}, Ljava/lang/String;->charAt(I)C
move-result p2
if-lt p2, v3, :cond_48
goto :goto_50
:cond_48
add-int/lit8 v2, v8, 0x1
add-int/2addr v8, v6
int-to-byte p2, p2
.line 1514
aput-byte p2, v5, v8
move v8, v2
goto :goto_3f
:cond_50
:goto_50
add-int/2addr v6, v8
.line 1517
iget p2, v4, Lokio/Segment;->limit:I
sub-int/2addr v6, p2
.line 1518
iget p2, v4, Lokio/Segment;->limit:I
add-int/2addr p2, v6
iput p2, v4, Lokio/Segment;->limit:I
.line 1519
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_62
move p2, v8
goto :goto_20
:cond_64
const/16 v4, 0x800
const/4 v5, 0x2
if-ge v2, v4, :cond_95
.line 1524
invoke-virtual {p0, v5}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
move-result-object v4
.line 1526
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 1527
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 1529
iget v2, v4, Lokio/Segment;->limit:I
add-int/2addr v2, v5
iput v2, v4, Lokio/Segment;->limit:I
.line 1530
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_92
add-int/lit8 p2, p2, 0x1
goto :goto_20
:cond_95
const v4, 0xd800
const/4 v6, 0x3
const/16 v7, 0x3f
if-lt v2, v4, :cond_10e
const v4, 0xdfff
if-le v2, v4, :cond_a3
goto :goto_10e
:cond_a3
add-int/lit8 v8, p2, 0x1
if-ge v8, p3, :cond_ac
.line 1551
invoke-virtual {p1, v8}, Ljava/lang/String;->charAt(I)C
move-result v9
goto :goto_ad
:cond_ac
const/4 v9, 0x0
:goto_ad
const v10, 0xdbff
if-gt v2, v10, :cond_109
const v10, 0xdc00
if-gt v10, v9, :cond_109
if-ge v4, v9, :cond_ba
goto :goto_109
:cond_ba
const/high16 v4, 0x10000
and-int/lit16 v2, v2, 0x3ff
shl-int/lit8 v2, v2, 0xa
and-int/lit16 v8, v9, 0x3ff
or-int/2addr v2, v8
add-int/2addr v2, v4
const/4 v4, 0x4
.line 1562
invoke-virtual {p0, v4}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
move-result-object v8
.line 1564
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 1565
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 1566
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 1567
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 1569
iget v2, v8, Lokio/Segment;->limit:I
add-int/2addr v2, v4
iput v2, v8, Lokio/Segment;->limit:I
.line 1570
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_20
.line 1553
:cond_109
:goto_109
invoke-virtual {p0, v7}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
goto/16 :goto_62
.line 1536
:cond_10e
:goto_10e
invoke-virtual {p0, v6}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
move-result-object v4
.line 1538
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 1539
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 1540
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 1542
iget v2, v4, Lokio/Segment;->limit:I
add-int/2addr v2, v6
iput v2, v4, Lokio/Segment;->limit:I
.line 1543
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_92
:cond_145
return-object p0
.line 1492
:cond_146
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "endIndex > string.length: "
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p3, " > "
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result p1
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p2, Ljava/lang/Throwable;
throw p2
.line 1491
:cond_16f
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "endIndex < beginIndex: "
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p3, " < "
invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p2, Ljava/lang/Throwable;
throw p2
.line 1490
:cond_194
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string p3, "beginIndex < 0: "
invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p2, Ljava/lang/Throwable;
throw p2
.end method
.method public bridge synthetic writeUtf8(Ljava/lang/String;)Lokio/BufferedSink;
.registers 2
.line 69
invoke-virtual {p0, p1}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;)Lokio/Buffer;
move-result-object p1
check-cast p1, Lokio/BufferedSink;
return-object p1
.end method
.method public bridge synthetic writeUtf8(Ljava/lang/String;II)Lokio/BufferedSink;
.registers 4
.line 69
invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;II)Lokio/Buffer;
move-result-object p1
check-cast p1, Lokio/BufferedSink;
return-object p1
.end method
.method public writeUtf8CodePoint(I)Lokio/Buffer;
.registers 11
const/16 v0, 0x80
if-ge p1, v0, :cond_9
.line 1581
invoke-virtual {p0, p1}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
goto/16 :goto_cd
:cond_9
const/16 v1, 0x800
const/4 v2, 0x2
const/16 v3, 0x3f
if-ge p1, v1, :cond_3b
.line 1585
invoke-virtual {p0, v2}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
move-result-object v1
.line 1587
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 1588
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 1590
iget p1, v1, Lokio/Segment;->limit:I
add-int/2addr p1, v2
iput p1, v1, Lokio/Segment;->limit:I
.line 1591
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_cd
:cond_3b
const v1, 0xdfff
const v4, 0xd800
if-le v4, p1, :cond_44
goto :goto_4b
:cond_44
if-lt v1, p1, :cond_4b
.line 1595
invoke-virtual {p0, v3}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
goto/16 :goto_cd
:cond_4b
:goto_4b
const/high16 v1, 0x10000
const/4 v4, 0x3
if-ge p1, v1, :cond_86
.line 1599
invoke-virtual {p0, v4}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
move-result-object v1
.line 1601
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 1602
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 1603
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 1605
iget p1, v1, Lokio/Segment;->limit:I
add-int/2addr p1, v4
iput p1, v1, Lokio/Segment;->limit:I
.line 1606
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_cd
:cond_86
const v1, 0x10ffff
if-gt p1, v1, :cond_ce
const/4 v1, 0x4
.line 1610
invoke-virtual {p0, v1}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment;
move-result-object v5
.line 1612
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 1613
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 1614
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 1615
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 1617
iget p1, v5, Lokio/Segment;->limit:I
add-int/2addr p1, v1
iput p1, v5, Lokio/Segment;->limit:I
.line 1618
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_cd
return-object p0
.line 1621
:cond_ce
new-instance v0, Ljava/lang/IllegalArgumentException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected code point: 0x"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-static {p1}, Lokio/-Util;->toHexString(I)Ljava/lang/String;
move-result-object p1
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast v0, Ljava/lang/Throwable;
throw v0
.end method
.method public bridge synthetic writeUtf8CodePoint(I)Lokio/BufferedSink;
.registers 2
.line 69
invoke-virtual {p0, p1}, Lokio/Buffer;->writeUtf8CodePoint(I)Lokio/Buffer;
move-result-object p1
check-cast p1, Lokio/BufferedSink;
return-object p1
.end method