Changes of com.discord v1325

This commit is contained in:
root 2020-11-12 02:11:44 +00:00
parent d9d9f382c9
commit 3cb9e1231d
28086 changed files with 4880345 additions and 0 deletions

View file

@ -0,0 +1,258 @@
.class public final Le0/a;
.super Ljava/lang/Object;
.source "-Base64.kt"
# static fields
.field public static final a:[B
# direct methods
.method public static constructor <clinit>()V
.locals 2
sget-object v0, Lokio/ByteString;->g:Lokio/ByteString$a;
const-string v1, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
invoke-virtual {v0, v1}, Lokio/ByteString$a;->b(Ljava/lang/String;)Lokio/ByteString;
move-result-object v0
iget-object v0, v0, Lokio/ByteString;->data:[B
sput-object v0, Le0/a;->a:[B
sget-object v0, Lokio/ByteString;->g:Lokio/ByteString$a;
const-string v1, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
invoke-virtual {v0, v1}, Lokio/ByteString$a;->b(Ljava/lang/String;)Lokio/ByteString;
return-void
.end method
.method public static a([B[BI)Ljava/lang/String;
.locals 10
const/4 p1, 0x1
and-int/2addr p2, p1
if-eqz p2, :cond_0
sget-object p2, Le0/a;->a:[B
goto :goto_0
:cond_0
const/4 p2, 0x0
:goto_0
const-string v0, "$this$encodeBase64"
invoke-static {p0, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "map"
invoke-static {p2, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
array-length v0, p0
const/4 v1, 0x2
add-int/2addr v0, v1
div-int/lit8 v0, v0, 0x3
mul-int/lit8 v0, v0, 0x4
new-array v0, v0, [B
array-length v2, p0
array-length v3, p0
rem-int/lit8 v3, v3, 0x3
sub-int/2addr v2, v3
const/4 v3, 0x0
const/4 v4, 0x0
:goto_1
if-ge v3, v2, :cond_1
add-int/lit8 v5, v3, 0x1
aget-byte v3, p0, v3
add-int/lit8 v6, v5, 0x1
aget-byte v5, p0, v5
add-int/lit8 v7, v6, 0x1
aget-byte v6, p0, v6
add-int/lit8 v8, v4, 0x1
and-int/lit16 v9, v3, 0xff
shr-int/2addr v9, v1
aget-byte v9, p2, v9
aput-byte v9, v0, v4
add-int/lit8 v4, v8, 0x1
and-int/lit8 v3, v3, 0x3
shl-int/lit8 v3, v3, 0x4
and-int/lit16 v9, v5, 0xff
shr-int/lit8 v9, v9, 0x4
or-int/2addr v3, v9
aget-byte v3, p2, v3
aput-byte v3, v0, v8
add-int/lit8 v3, v4, 0x1
and-int/lit8 v5, v5, 0xf
shl-int/2addr v5, v1
and-int/lit16 v8, v6, 0xff
shr-int/lit8 v8, v8, 0x6
or-int/2addr v5, v8
aget-byte v5, p2, v5
aput-byte v5, v0, v4
add-int/lit8 v4, v3, 0x1
and-int/lit8 v5, v6, 0x3f
aget-byte v5, p2, v5
aput-byte v5, v0, v3
move v3, v7
goto :goto_1
:cond_1
array-length v5, p0
sub-int/2addr v5, v2
const/16 v2, 0x3d
if-eq v5, p1, :cond_3
if-eq v5, v1, :cond_2
goto :goto_2
:cond_2
add-int/lit8 p1, v3, 0x1
aget-byte v3, p0, v3
aget-byte p0, p0, p1
add-int/lit8 p1, v4, 0x1
and-int/lit16 v5, v3, 0xff
shr-int/2addr v5, v1
aget-byte v5, p2, v5
aput-byte v5, v0, v4
add-int/lit8 v4, p1, 0x1
and-int/lit8 v3, v3, 0x3
shl-int/lit8 v3, v3, 0x4
and-int/lit16 v5, p0, 0xff
shr-int/lit8 v5, v5, 0x4
or-int/2addr v3, v5
aget-byte v3, p2, v3
aput-byte v3, v0, p1
add-int/lit8 p1, v4, 0x1
and-int/lit8 p0, p0, 0xf
shl-int/2addr p0, v1
aget-byte p0, p2, p0
aput-byte p0, v0, v4
int-to-byte p0, v2
aput-byte p0, v0, p1
goto :goto_2
:cond_3
aget-byte p0, p0, v3
add-int/lit8 p1, v4, 0x1
and-int/lit16 v3, p0, 0xff
shr-int/lit8 v1, v3, 0x2
aget-byte v1, p2, v1
aput-byte v1, v0, v4
add-int/lit8 v1, p1, 0x1
and-int/lit8 p0, p0, 0x3
shl-int/lit8 p0, p0, 0x4
aget-byte p0, p2, p0
aput-byte p0, v0, p1
add-int/lit8 p0, v1, 0x1
int-to-byte p1, v2
aput-byte p1, v0, v1
aput-byte p1, v0, p0
:goto_2
const-string p0, "$this$toUtf8String"
invoke-static {v0, p0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
sget-object p0, Lz/t/a;->a:Ljava/nio/charset/Charset;
new-instance p1, Ljava/lang/String;
invoke-direct {p1, v0, p0}, Ljava/lang/String;-><init>([BLjava/nio/charset/Charset;)V
return-object p1
.end method

View file

@ -0,0 +1,137 @@
.class public final Le0/b$a;
.super Ljava/lang/Object;
.source "AsyncTimeout.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Le0/b;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
# direct methods
.method public constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final a()Le0/b;
.locals 9
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/InterruptedException;
}
.end annotation
const-class v0, Le0/b;
sget-object v1, Le0/b;->j:Le0/b;
const/4 v2, 0x0
if-eqz v1, :cond_5
iget-object v1, v1, Le0/b;->f:Le0/b;
if-nez v1, :cond_2
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v3
sget-wide v5, Le0/b;->h:J
invoke-virtual {v0, v5, v6}, Ljava/lang/Object;->wait(J)V
sget-object v0, Le0/b;->j:Le0/b;
if-eqz v0, :cond_1
iget-object v0, v0, Le0/b;->f:Le0/b;
if-nez v0, :cond_0
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v0
sub-long/2addr v0, v3
sget-wide v3, Le0/b;->i:J
cmp-long v5, v0, v3
if-ltz v5, :cond_0
sget-object v2, Le0/b;->j:Le0/b;
:cond_0
return-object v2
:cond_1
invoke-static {}, Lz/n/c/j;->throwNpe()V
throw v2
:cond_2
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v3
iget-wide v5, v1, Le0/b;->g:J
sub-long/2addr v5, v3
const-wide/16 v3, 0x0
cmp-long v7, v5, v3
if-lez v7, :cond_3
const-wide/32 v3, 0xf4240
div-long v7, v5, v3
mul-long v3, v3, v7
sub-long/2addr v5, v3
long-to-int v1, v5
invoke-virtual {v0, v7, v8, v1}, Ljava/lang/Object;->wait(JI)V
return-object v2
:cond_3
sget-object v0, Le0/b;->j:Le0/b;
if-eqz v0, :cond_4
iget-object v3, v1, Le0/b;->f:Le0/b;
iput-object v3, v0, Le0/b;->f:Le0/b;
iput-object v2, v1, Le0/b;->f:Le0/b;
return-object v1
:cond_4
invoke-static {}, Lz/n/c/j;->throwNpe()V
throw v2
:cond_5
invoke-static {}, Lz/n/c/j;->throwNpe()V
throw v2
.end method

View file

@ -0,0 +1,86 @@
.class public final Le0/b$b;
.super Ljava/lang/Thread;
.source "AsyncTimeout.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Le0/b;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "b"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 1
const-string v0, "Okio Watchdog"
invoke-direct {p0, v0}, Ljava/lang/Thread;-><init>(Ljava/lang/String;)V
const/4 v0, 0x1
invoke-virtual {p0, v0}, Ljava/lang/Thread;->setDaemon(Z)V
return-void
.end method
# virtual methods
.method public run()V
.locals 3
:catch_0
:cond_0
:goto_0
:try_start_0
const-class v0, Le0/b;
monitor-enter v0
:try_end_0
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
:try_start_1
sget-object v1, Le0/b;->k:Le0/b$a;
invoke-virtual {v1}, Le0/b$a;->a()Le0/b;
move-result-object v1
sget-object v2, Le0/b;->j:Le0/b;
if-ne v1, v2, :cond_1
const/4 v1, 0x0
sput-object v1, Le0/b;->j:Le0/b;
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:try_start_2
monitor-exit v0
return-void
:cond_1
monitor-exit v0
if-eqz v1, :cond_0
invoke-virtual {v1}, Le0/b;->l()V
goto :goto_0
:catchall_0
move-exception v1
monitor-exit v0
throw v1
:try_end_2
.catch Ljava/lang/InterruptedException; {:try_start_2 .. :try_end_2} :catch_0
.end method

View file

@ -0,0 +1,370 @@
.class public Le0/b;
.super Le0/y;
.source "AsyncTimeout.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Le0/b$b;,
Le0/b$a;
}
.end annotation
# static fields
.field public static final h:J
.field public static final i:J
.field public static j:Le0/b;
.field public static final k:Le0/b$a;
# instance fields
.field public e:Z
.field public f:Le0/b;
.field public g:J
# direct methods
.method public static constructor <clinit>()V
.locals 3
new-instance v0, Le0/b$a;
const/4 v1, 0x0
invoke-direct {v0, v1}, Le0/b$a;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Le0/b;->k:Le0/b$a;
sget-object v0, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
const-wide/16 v1, 0x3c
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
move-result-wide v0
sput-wide v0, Le0/b;->h:J
sget-object v0, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
sget-wide v1, Le0/b;->h:J
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
move-result-wide v0
sput-wide v0, Le0/b;->i:J
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Le0/y;-><init>()V
return-void
.end method
# virtual methods
.method public final i()V
.locals 10
iget-boolean v0, p0, Le0/b;->e:Z
const/4 v1, 0x1
xor-int/2addr v0, v1
if-eqz v0, :cond_b
iget-wide v2, p0, Le0/y;->c:J
iget-boolean v0, p0, Le0/y;->a:Z
const-wide/16 v4, 0x0
cmp-long v6, v2, v4
if-nez v6, :cond_0
if-nez v0, :cond_0
return-void
:cond_0
iput-boolean v1, p0, Le0/b;->e:Z
const-class v1, Le0/b;
monitor-enter v1
:try_start_0
sget-object v4, Le0/b;->j:Le0/b;
if-nez v4, :cond_1
new-instance v4, Le0/b;
invoke-direct {v4}, Le0/b;-><init>()V
sput-object v4, Le0/b;->j:Le0/b;
new-instance v4, Le0/b$b;
invoke-direct {v4}, Le0/b$b;-><init>()V
invoke-virtual {v4}, Ljava/lang/Thread;->start()V
:cond_1
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v4
if-eqz v6, :cond_2
if-eqz v0, :cond_2
invoke-virtual {p0}, Le0/y;->c()J
move-result-wide v6
sub-long/2addr v6, v4
invoke-static {v2, v3, v6, v7}, Ljava/lang/Math;->min(JJ)J
move-result-wide v2
add-long/2addr v2, v4
iput-wide v2, p0, Le0/b;->g:J
goto :goto_0
:cond_2
if-eqz v6, :cond_3
add-long/2addr v2, v4
iput-wide v2, p0, Le0/b;->g:J
goto :goto_0
:cond_3
if-eqz v0, :cond_a
invoke-virtual {p0}, Le0/y;->c()J
move-result-wide v2
iput-wide v2, p0, Le0/b;->g:J
:goto_0
iget-wide v2, p0, Le0/b;->g:J
sub-long/2addr v2, v4
sget-object v0, Le0/b;->j:Le0/b;
const/4 v6, 0x0
if-eqz v0, :cond_9
:goto_1
iget-object v7, v0, Le0/b;->f:Le0/b;
if-eqz v7, :cond_7
iget-object v7, v0, Le0/b;->f:Le0/b;
if-eqz v7, :cond_6
iget-wide v7, v7, Le0/b;->g:J
sub-long/2addr v7, v4
cmp-long v9, v2, v7
if-gez v9, :cond_4
goto :goto_2
:cond_4
iget-object v0, v0, Le0/b;->f:Le0/b;
if-eqz v0, :cond_5
goto :goto_1
:cond_5
invoke-static {}, Lz/n/c/j;->throwNpe()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v6
:cond_6
:try_start_1
invoke-static {}, Lz/n/c/j;->throwNpe()V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v6
:cond_7
:goto_2
:try_start_2
iget-object v2, v0, Le0/b;->f:Le0/b;
iput-object v2, p0, Le0/b;->f:Le0/b;
iput-object p0, v0, Le0/b;->f:Le0/b;
sget-object v2, Le0/b;->j:Le0/b;
if-ne v0, v2, :cond_8
invoke-virtual {v1}, Ljava/lang/Object;->notify()V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
:cond_8
monitor-exit v1
return-void
:cond_9
:try_start_3
invoke-static {}, Lz/n/c/j;->throwNpe()V
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
throw v6
:cond_a
:try_start_4
new-instance v0, Ljava/lang/AssertionError;
invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V
throw v0
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_0
:catchall_0
move-exception v0
monitor-exit v1
throw v0
:cond_b
const-string v0, "Unbalanced enter/exit"
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
throw v1
.end method
.method public final j()Z
.locals 5
iget-boolean v0, p0, Le0/b;->e:Z
const/4 v1, 0x0
if-nez v0, :cond_0
return v1
:cond_0
iput-boolean v1, p0, Le0/b;->e:Z
const/4 v0, 0x0
const-class v2, Le0/b;
monitor-enter v2
:try_start_0
sget-object v3, Le0/b;->j:Le0/b;
:goto_0
if-eqz v3, :cond_2
iget-object v4, v3, Le0/b;->f:Le0/b;
if-ne v4, p0, :cond_1
iget-object v4, p0, Le0/b;->f:Le0/b;
iput-object v4, v3, Le0/b;->f:Le0/b;
iput-object v0, p0, Le0/b;->f:Le0/b;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit v2
goto :goto_1
:cond_1
:try_start_1
iget-object v3, v3, Le0/b;->f:Le0/b;
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_0
:cond_2
const/4 v1, 0x1
monitor-exit v2
:goto_1
return v1
:catchall_0
move-exception v0
monitor-exit v2
throw v0
.end method
.method public k(Ljava/io/IOException;)Ljava/io/IOException;
.locals 2
new-instance v0, Ljava/io/InterruptedIOException;
const-string v1, "timeout"
invoke-direct {v0, v1}, Ljava/io/InterruptedIOException;-><init>(Ljava/lang/String;)V
if-eqz p1, :cond_0
invoke-virtual {v0, p1}, Ljava/io/InterruptedIOException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
:cond_0
return-object v0
.end method
.method public l()V
.locals 0
return-void
.end method

View file

@ -0,0 +1,342 @@
.class public final Le0/c;
.super Ljava/lang/Object;
.source "AsyncTimeout.kt"
# interfaces
.implements Le0/v;
# instance fields
.field public final synthetic d:Le0/b;
.field public final synthetic e:Le0/v;
# direct methods
.method public constructor <init>(Le0/b;Le0/v;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Le0/v;",
")V"
}
.end annotation
iput-object p1, p0, Le0/c;->d:Le0/b;
iput-object p2, p0, Le0/c;->e:Le0/v;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public close()V
.locals 3
iget-object v0, p0, Le0/c;->d:Le0/b;
invoke-virtual {v0}, Le0/b;->i()V
:try_start_0
iget-object v1, p0, Le0/c;->e:Le0/v;
invoke-interface {v1}, Le0/v;->close()V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-virtual {v0}, Le0/b;->j()Z
move-result v1
if-nez v1, :cond_0
return-void
:cond_0
const/4 v1, 0x0
invoke-virtual {v0, v1}, Le0/b;->k(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object v0
throw v0
:catchall_0
move-exception v1
goto :goto_1
:catch_0
move-exception v1
:try_start_1
invoke-virtual {v0}, Le0/b;->j()Z
move-result v2
if-nez v2, :cond_1
goto :goto_0
:cond_1
invoke-virtual {v0, v1}, Le0/b;->k(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object v1
:goto_0
throw v1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:goto_1
invoke-virtual {v0}, Le0/b;->j()Z
move-result v0
throw v1
.end method
.method public flush()V
.locals 3
iget-object v0, p0, Le0/c;->d:Le0/b;
invoke-virtual {v0}, Le0/b;->i()V
:try_start_0
iget-object v1, p0, Le0/c;->e:Le0/v;
invoke-interface {v1}, Le0/v;->flush()V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-virtual {v0}, Le0/b;->j()Z
move-result v1
if-nez v1, :cond_0
return-void
:cond_0
const/4 v1, 0x0
invoke-virtual {v0, v1}, Le0/b;->k(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object v0
throw v0
:catchall_0
move-exception v1
goto :goto_1
:catch_0
move-exception v1
:try_start_1
invoke-virtual {v0}, Le0/b;->j()Z
move-result v2
if-nez v2, :cond_1
goto :goto_0
:cond_1
invoke-virtual {v0, v1}, Le0/b;->k(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object v1
:goto_0
throw v1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:goto_1
invoke-virtual {v0}, Le0/b;->j()Z
move-result v0
throw v1
.end method
.method public timeout()Le0/y;
.locals 1
iget-object v0, p0, Le0/c;->d:Le0/b;
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
const-string v0, "AsyncTimeout.sink("
invoke-static {v0}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Le0/c;->e:Le0/v;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 v1, 0x29
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public write(Le0/e;J)V
.locals 7
const-string v0, "source"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-wide v1, p1, Le0/e;->e:J
const-wide/16 v3, 0x0
move-wide v5, p2
invoke-static/range {v1 .. v6}, Lz/i/s;->n(JJJ)V
:goto_0
const-wide/16 v0, 0x0
cmp-long v2, p2, v0
if-lez v2, :cond_6
iget-object v2, p1, Le0/e;->d:Le0/s;
const/4 v3, 0x0
if-eqz v2, :cond_5
:goto_1
const/high16 v4, 0x10000
int-to-long v4, v4
cmp-long v6, v0, v4
if-gez v6, :cond_2
iget v4, v2, Le0/s;->c:I
iget v5, v2, Le0/s;->b:I
sub-int/2addr v4, v5
int-to-long v4, v4
add-long/2addr v0, v4
cmp-long v4, v0, p2
if-ltz v4, :cond_0
move-wide v0, p2
goto :goto_2
:cond_0
iget-object v2, v2, Le0/s;->f:Le0/s;
if-eqz v2, :cond_1
goto :goto_1
:cond_1
invoke-static {}, Lz/n/c/j;->throwNpe()V
throw v3
:cond_2
:goto_2
iget-object v2, p0, Le0/c;->d:Le0/b;
invoke-virtual {v2}, Le0/b;->i()V
:try_start_0
iget-object v4, p0, Le0/c;->e:Le0/v;
invoke-interface {v4, p1, v0, v1}, Le0/v;->write(Le0/e;J)V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-virtual {v2}, Le0/b;->j()Z
move-result v4
if-nez v4, :cond_3
sub-long/2addr p2, v0
goto :goto_0
:cond_3
invoke-virtual {v2, v3}, Le0/b;->k(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object p1
throw p1
:catchall_0
move-exception p1
goto :goto_4
:catch_0
move-exception p1
:try_start_1
invoke-virtual {v2}, Le0/b;->j()Z
move-result p2
if-nez p2, :cond_4
goto :goto_3
:cond_4
invoke-virtual {v2, p1}, Le0/b;->k(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object p1
:goto_3
throw p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:goto_4
invoke-virtual {v2}, Le0/b;->j()Z
move-result p2
throw p1
:cond_5
invoke-static {}, Lz/n/c/j;->throwNpe()V
throw v3
:cond_6
return-void
.end method

View file

@ -0,0 +1,207 @@
.class public final Le0/d;
.super Ljava/lang/Object;
.source "AsyncTimeout.kt"
# interfaces
.implements Le0/x;
# instance fields
.field public final synthetic d:Le0/b;
.field public final synthetic e:Le0/x;
# direct methods
.method public constructor <init>(Le0/b;Le0/x;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Le0/x;",
")V"
}
.end annotation
iput-object p1, p0, Le0/d;->d:Le0/b;
iput-object p2, p0, Le0/d;->e:Le0/x;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public close()V
.locals 3
iget-object v0, p0, Le0/d;->d:Le0/b;
invoke-virtual {v0}, Le0/b;->i()V
:try_start_0
iget-object v1, p0, Le0/d;->e:Le0/x;
invoke-interface {v1}, Le0/x;->close()V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-virtual {v0}, Le0/b;->j()Z
move-result v1
if-nez v1, :cond_0
return-void
:cond_0
const/4 v1, 0x0
invoke-virtual {v0, v1}, Le0/b;->k(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object v0
throw v0
:catchall_0
move-exception v1
goto :goto_1
:catch_0
move-exception v1
:try_start_1
invoke-virtual {v0}, Le0/b;->j()Z
move-result v2
if-nez v2, :cond_1
goto :goto_0
:cond_1
invoke-virtual {v0, v1}, Le0/b;->k(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object v1
:goto_0
throw v1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:goto_1
invoke-virtual {v0}, Le0/b;->j()Z
move-result v0
throw v1
.end method
.method public timeout()Le0/y;
.locals 1
iget-object v0, p0, Le0/d;->d:Le0/b;
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
const-string v0, "AsyncTimeout.source("
invoke-static {v0}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Le0/d;->e:Le0/x;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 v1, 0x29
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public x0(Le0/e;J)J
.locals 2
const-string v0, "sink"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Le0/d;->d:Le0/b;
invoke-virtual {v0}, Le0/b;->i()V
:try_start_0
iget-object v1, p0, Le0/d;->e:Le0/x;
invoke-interface {v1, p1, p2, p3}, Le0/x;->x0(Le0/e;J)J
move-result-wide p1
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-virtual {v0}, Le0/b;->j()Z
move-result p3
if-nez p3, :cond_0
return-wide p1
:cond_0
const/4 p1, 0x0
invoke-virtual {v0, p1}, Le0/b;->k(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object p1
throw p1
:catchall_0
move-exception p1
goto :goto_1
:catch_0
move-exception p1
:try_start_1
invoke-virtual {v0}, Le0/b;->j()Z
move-result p2
if-nez p2, :cond_1
goto :goto_0
:cond_1
invoke-virtual {v0, p1}, Le0/b;->k(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object p1
:goto_0
throw p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:goto_1
invoke-virtual {v0}, Le0/b;->j()Z
move-result p2
throw p1
.end method

View file

@ -0,0 +1,671 @@
.class public final Le0/e$a;
.super Ljava/lang/Object;
.source "Buffer.kt"
# interfaces
.implements Ljava/io/Closeable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Le0/e;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
# instance fields
.field public d:Le0/e;
.field public e:Z
.field public f:Le0/s;
.field public g:J
.field public h:[B
.field public i:I
.field public j:I
# direct methods
.method public constructor <init>()V
.locals 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-wide/16 v0, -0x1
iput-wide v0, p0, Le0/e$a;->g:J
const/4 v0, -0x1
iput v0, p0, Le0/e$a;->i:I
iput v0, p0, Le0/e$a;->j:I
return-void
.end method
# virtual methods
.method public final a(J)J
.locals 13
iget-object v0, p0, Le0/e$a;->d:Le0/e;
if-eqz v0, :cond_a
iget-boolean v1, p0, Le0/e$a;->e:Z
if-eqz v1, :cond_9
iget-wide v1, v0, Le0/e;->e:J
const/4 v3, 0x1
const-wide/16 v4, 0x0
cmp-long v6, p1, v1
if-gtz v6, :cond_6
cmp-long v3, p1, v4
if-ltz v3, :cond_0
const/4 v3, 0x1
goto :goto_0
:cond_0
const/4 v3, 0x0
:goto_0
if-eqz v3, :cond_5
sub-long v6, v1, p1
:goto_1
const/4 v3, 0x0
cmp-long v8, v6, v4
if-lez v8, :cond_4
iget-object v8, v0, Le0/e;->d:Le0/s;
if-eqz v8, :cond_3
iget-object v8, v8, Le0/s;->g:Le0/s;
if-eqz v8, :cond_2
iget v9, v8, Le0/s;->c:I
iget v10, v8, Le0/s;->b:I
sub-int v10, v9, v10
int-to-long v10, v10
cmp-long v12, v10, v6
if-gtz v12, :cond_1
invoke-virtual {v8}, Le0/s;->a()Le0/s;
move-result-object v3
iput-object v3, v0, Le0/e;->d:Le0/s;
invoke-static {v8}, Le0/t;->a(Le0/s;)V
sub-long/2addr v6, v10
goto :goto_1
:cond_1
long-to-int v4, v6
sub-int/2addr v9, v4
iput v9, v8, Le0/s;->c:I
goto :goto_2
:cond_2
invoke-static {}, Lz/n/c/j;->throwNpe()V
throw v3
:cond_3
invoke-static {}, Lz/n/c/j;->throwNpe()V
throw v3
:cond_4
:goto_2
iput-object v3, p0, Le0/e$a;->f:Le0/s;
iput-wide p1, p0, Le0/e$a;->g:J
iput-object v3, p0, Le0/e$a;->h:[B
const/4 v3, -0x1
iput v3, p0, Le0/e$a;->i:I
iput v3, p0, Le0/e$a;->j:I
goto :goto_4
:cond_5
const-string v0, "newSize < 0: "
invoke-static {v0, p1, p2}, Lf/e/c/a/a;->n(Ljava/lang/String;J)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
throw p2
:cond_6
if-lez v6, :cond_8
sub-long v6, p1, v1
const/4 v8, 0x1
:goto_3
cmp-long v9, v6, v4
if-lez v9, :cond_8
invoke-virtual {v0, v3}, Le0/e;->A(I)Le0/s;
move-result-object v3
iget v9, v3, Le0/s;->c:I
rsub-int v9, v9, 0x2000
int-to-long v9, v9
invoke-static {v6, v7, v9, v10}, Ljava/lang/Math;->min(JJ)J
move-result-wide v9
long-to-int v10, v9
iget v9, v3, Le0/s;->c:I
add-int/2addr v9, v10
iput v9, v3, Le0/s;->c:I
int-to-long v11, v10
sub-long/2addr v6, v11
if-eqz v8, :cond_7
iput-object v3, p0, Le0/e$a;->f:Le0/s;
iput-wide v1, p0, Le0/e$a;->g:J
iget-object v3, v3, Le0/s;->a:[B
iput-object v3, p0, Le0/e$a;->h:[B
sub-int v3, v9, v10
iput v3, p0, Le0/e$a;->i:I
iput v9, p0, Le0/e$a;->j:I
const/4 v3, 0x0
const/4 v8, 0x0
:cond_7
const/4 v3, 0x1
goto :goto_3
:cond_8
:goto_4
iput-wide p1, v0, Le0/e;->e:J
return-wide v1
:cond_9
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "resizeBuffer() only permitted for read/write buffers"
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_a
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "not attached to a buffer"
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public final b(J)I
.locals 18
move-object/from16 v0, p0
move-wide/from16 v1, p1
iget-object v3, v0, Le0/e$a;->d:Le0/e;
if-eqz v3, :cond_11
const/4 v4, -0x1
int-to-long v5, v4
cmp-long v7, v1, v5
if-ltz v7, :cond_10
iget-wide v5, v3, Le0/e;->e:J
cmp-long v7, v1, v5
if-gtz v7, :cond_10
const-wide/16 v7, -0x1
const/4 v9, 0x0
cmp-long v10, v1, v7
if-eqz v10, :cond_f
cmp-long v7, v1, v5
if-nez v7, :cond_0
goto/16 :goto_4
:cond_0
const-wide/16 v7, 0x0
iget-object v4, v3, Le0/e;->d:Le0/s;
iget-object v10, v0, Le0/e$a;->f:Le0/s;
if-eqz v10, :cond_3
iget-wide v11, v0, Le0/e$a;->g:J
iget v13, v0, Le0/e$a;->i:I
if-eqz v10, :cond_2
iget v14, v10, Le0/s;->b:I
sub-int/2addr v13, v14
int-to-long v13, v13
sub-long/2addr v11, v13
cmp-long v13, v11, v1
if-lez v13, :cond_1
move-wide v5, v11
move-object/from16 v17, v10
move-object v10, v4
move-object/from16 v4, v17
goto :goto_0
:cond_1
move-wide v7, v11
goto :goto_0
:cond_2
invoke-static {}, Lz/n/c/j;->throwNpe()V
throw v9
:cond_3
move-object v10, v4
:goto_0
sub-long v11, v5, v1
sub-long v13, v1, v7
cmp-long v15, v11, v13
if-lez v15, :cond_5
:goto_1
if-eqz v10, :cond_4
iget v4, v10, Le0/s;->c:I
iget v5, v10, Le0/s;->b:I
sub-int v6, v4, v5
int-to-long v11, v6
add-long/2addr v11, v7
cmp-long v6, v1, v11
if-ltz v6, :cond_9
sub-int/2addr v4, v5
int-to-long v4, v4
add-long/2addr v7, v4
iget-object v10, v10, Le0/s;->f:Le0/s;
goto :goto_1
:cond_4
invoke-static {}, Lz/n/c/j;->throwNpe()V
throw v9
:cond_5
:goto_2
cmp-long v7, v5, v1
if-lez v7, :cond_8
if-eqz v4, :cond_7
iget-object v4, v4, Le0/s;->g:Le0/s;
if-eqz v4, :cond_6
iget v7, v4, Le0/s;->c:I
iget v8, v4, Le0/s;->b:I
sub-int/2addr v7, v8
int-to-long v7, v7
sub-long/2addr v5, v7
goto :goto_2
:cond_6
invoke-static {}, Lz/n/c/j;->throwNpe()V
throw v9
:cond_7
invoke-static {}, Lz/n/c/j;->throwNpe()V
throw v9
:cond_8
move-object v10, v4
move-wide v7, v5
:cond_9
iget-boolean v4, v0, Le0/e$a;->e:Z
if-eqz v4, :cond_d
if-eqz v10, :cond_c
iget-boolean v4, v10, Le0/s;->d:Z
if-eqz v4, :cond_d
iget-object v4, v10, Le0/s;->a:[B
array-length v5, v4
invoke-static {v4, v5}, Ljava/util/Arrays;->copyOf([BI)[B
move-result-object v12
const-string v4, "java.util.Arrays.copyOf(this, size)"
invoke-static {v12, v4}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget v13, v10, Le0/s;->b:I
iget v14, v10, Le0/s;->c:I
new-instance v4, Le0/s;
const/4 v15, 0x0
const/16 v16, 0x1
move-object v11, v4
invoke-direct/range {v11 .. v16}, Le0/s;-><init>([BIIZZ)V
iget-object v5, v3, Le0/e;->d:Le0/s;
if-ne v5, v10, :cond_a
iput-object v4, v3, Le0/e;->d:Le0/s;
:cond_a
invoke-virtual {v10, v4}, Le0/s;->b(Le0/s;)Le0/s;
iget-object v3, v4, Le0/s;->g:Le0/s;
if-eqz v3, :cond_b
invoke-virtual {v3}, Le0/s;->a()Le0/s;
move-object v10, v4
goto :goto_3
:cond_b
invoke-static {}, Lz/n/c/j;->throwNpe()V
throw v9
:cond_c
invoke-static {}, Lz/n/c/j;->throwNpe()V
throw v9
:cond_d
:goto_3
iput-object v10, v0, Le0/e$a;->f:Le0/s;
iput-wide v1, v0, Le0/e$a;->g:J
if-eqz v10, :cond_e
iget-object v3, v10, Le0/s;->a:[B
iput-object v3, v0, Le0/e$a;->h:[B
iget v3, v10, Le0/s;->b:I
sub-long/2addr v1, v7
long-to-int v2, v1
add-int/2addr v3, v2
iput v3, v0, Le0/e$a;->i:I
iget v1, v10, Le0/s;->c:I
iput v1, v0, Le0/e$a;->j:I
sub-int/2addr v1, v3
return v1
:cond_e
invoke-static {}, Lz/n/c/j;->throwNpe()V
throw v9
:cond_f
:goto_4
iput-object v9, v0, Le0/e$a;->f:Le0/s;
iput-wide v1, v0, Le0/e$a;->g:J
iput-object v9, v0, Le0/e$a;->h:[B
iput v4, v0, Le0/e$a;->i:I
iput v4, v0, Le0/e$a;->j:I
return v4
:cond_10
const/4 v4, 0x2
new-array v5, v4, [Ljava/lang/Object;
const/4 v6, 0x0
invoke-static/range {p1 .. p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v1
aput-object v1, v5, v6
const/4 v1, 0x1
iget-wide v2, v3, Le0/e;->e:J
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v2
aput-object v2, v5, v1
invoke-static {v5, v4}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object v1
const-string v2, "offset=%s > size=%s"
invoke-static {v2, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
const-string v2, "java.lang.String.format(format, *args)"
invoke-static {v1, v2}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v2, Ljava/lang/ArrayIndexOutOfBoundsException;
invoke-direct {v2, v1}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
throw v2
:cond_11
new-instance v1, Ljava/lang/IllegalStateException;
const-string v2, "not attached to a buffer"
invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v1
.end method
.method public close()V
.locals 3
iget-object v0, p0, Le0/e$a;->d:Le0/e;
if-eqz v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
if-eqz v0, :cond_1
const/4 v0, 0x0
iput-object v0, p0, Le0/e$a;->d:Le0/e;
iput-object v0, p0, Le0/e$a;->f:Le0/s;
const-wide/16 v1, -0x1
iput-wide v1, p0, Le0/e$a;->g:J
iput-object v0, p0, Le0/e$a;->h:[B
const/4 v0, -0x1
iput v0, p0, Le0/e$a;->i:I
iput v0, p0, Le0/e$a;->j:I
return-void
:cond_1
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "not attached to a buffer"
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method

View file

@ -0,0 +1,129 @@
.class public final Le0/e$b;
.super Ljava/io/InputStream;
.source "Buffer.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Le0/e;->M0()Ljava/io/InputStream;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
# instance fields
.field public final synthetic d:Le0/e;
# direct methods
.method public constructor <init>(Le0/e;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Le0/e$b;->d:Le0/e;
invoke-direct {p0}, Ljava/io/InputStream;-><init>()V
return-void
.end method
# virtual methods
.method public available()I
.locals 4
iget-object v0, p0, Le0/e$b;->d:Le0/e;
iget-wide v0, v0, Le0/e;->e:J
const v2, 0x7fffffff
int-to-long v2, v2
invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->min(JJ)J
move-result-wide v0
long-to-int v1, v0
return v1
.end method
.method public close()V
.locals 0
return-void
.end method
.method public read()I
.locals 6
iget-object v0, p0, Le0/e$b;->d:Le0/e;
iget-wide v1, v0, Le0/e;->e:J
const-wide/16 v3, 0x0
cmp-long v5, v1, v3
if-lez v5, :cond_0
invoke-virtual {v0}, Le0/e;->readByte()B
move-result v0
and-int/lit16 v0, v0, 0xff
goto :goto_0
:cond_0
const/4 v0, -0x1
:goto_0
return v0
.end method
.method public read([BII)I
.locals 1
const-string v0, "sink"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Le0/e$b;->d:Le0/e;
invoke-virtual {v0, p1, p2, p3}, Le0/e;->read([BII)I
move-result p1
return p1
.end method
.method public toString()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-object v1, p0, Le0/e$b;->d:Le0/e;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ".inputStream()"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,84 @@
.class public final Le0/f;
.super Ljava/io/OutputStream;
.source "Buffer.kt"
# instance fields
.field public final synthetic d:Le0/e;
# direct methods
.method public constructor <init>(Le0/e;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Le0/f;->d:Le0/e;
invoke-direct {p0}, Ljava/io/OutputStream;-><init>()V
return-void
.end method
# virtual methods
.method public close()V
.locals 0
return-void
.end method
.method public flush()V
.locals 0
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-object v1, p0, Le0/f;->d:Le0/e;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ".outputStream()"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public write(I)V
.locals 1
iget-object v0, p0, Le0/f;->d:Le0/e;
invoke-virtual {v0, p1}, Le0/e;->F(I)Le0/e;
return-void
.end method
.method public write([BII)V
.locals 1
const-string v0, "data"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Le0/f;->d:Le0/e;
invoke-virtual {v0, p1, p2, p3}, Le0/e;->E([BII)Le0/e;
return-void
.end method

View file

@ -0,0 +1,167 @@
.class public interface abstract Le0/g;
.super Ljava/lang/Object;
.source "BufferedSource.kt"
# interfaces
.implements Le0/x;
.implements Ljava/nio/channels/ReadableByteChannel;
# virtual methods
.method public abstract G0(J)V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract K()Z
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract K0()J
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract M0()Ljava/io/InputStream;
.end method
.method public abstract N0(Le0/o;)I
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract P(Le0/e;J)V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract R(Lokio/ByteString;)J
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract T(J)Ljava/lang/String;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract a0(Ljava/nio/charset/Charset;)Ljava/lang/String;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract i()Le0/e;
.end method
.method public abstract l0()Ljava/lang/String;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract n(J)Z
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract o0(J)[B
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract readByte()B
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract readFully([B)V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract readInt()I
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract readLong()J
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract readShort()S
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract skip(J)V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract w(J)Lokio/ByteString;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract z0(Le0/v;)J
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method

View file

@ -0,0 +1,386 @@
.class public final Le0/h;
.super Ljava/lang/Object;
.source "DeflaterSink.kt"
# interfaces
.implements Le0/v;
# instance fields
.field public d:Z
.field public final e:Lokio/BufferedSink;
.field public final f:Ljava/util/zip/Deflater;
# direct methods
.method public constructor <init>(Le0/v;Ljava/util/zip/Deflater;)V
.locals 3
const-string v0, "sink"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v1, "deflater"
invoke-static {p2, v1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v2, "$this$buffer"
invoke-static {p1, v2}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v2, Le0/q;
invoke-direct {v2, p1}, Le0/q;-><init>(Le0/v;)V
invoke-static {v2, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p2, v1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object v2, p0, Le0/h;->e:Lokio/BufferedSink;
iput-object p2, p0, Le0/h;->f:Ljava/util/zip/Deflater;
return-void
.end method
# virtual methods
.method public final a(Z)V
.locals 7
.annotation build Lorg/codehaus/mojo/animal_sniffer/IgnoreJRERequirement;
.end annotation
iget-object v0, p0, Le0/h;->e:Lokio/BufferedSink;
invoke-interface {v0}, Lokio/BufferedSink;->i()Le0/e;
move-result-object v0
:cond_0
:goto_0
const/4 v1, 0x1
invoke-virtual {v0, v1}, Le0/e;->A(I)Le0/s;
move-result-object v1
if-eqz p1, :cond_1
iget-object v2, p0, Le0/h;->f:Ljava/util/zip/Deflater;
iget-object v3, v1, Le0/s;->a:[B
iget v4, v1, Le0/s;->c:I
rsub-int v5, v4, 0x2000
const/4 v6, 0x2
invoke-virtual {v2, v3, v4, v5, v6}, Ljava/util/zip/Deflater;->deflate([BIII)I
move-result v2
goto :goto_1
:cond_1
iget-object v2, p0, Le0/h;->f:Ljava/util/zip/Deflater;
iget-object v3, v1, Le0/s;->a:[B
iget v4, v1, Le0/s;->c:I
rsub-int v5, v4, 0x2000
invoke-virtual {v2, v3, v4, v5}, Ljava/util/zip/Deflater;->deflate([BII)I
move-result v2
:goto_1
if-lez v2, :cond_2
iget v3, v1, Le0/s;->c:I
add-int/2addr v3, v2
iput v3, v1, Le0/s;->c:I
iget-wide v3, v0, Le0/e;->e:J
int-to-long v1, v2
add-long/2addr v3, v1
iput-wide v3, v0, Le0/e;->e:J
iget-object v1, p0, Le0/h;->e:Lokio/BufferedSink;
invoke-interface {v1}, Lokio/BufferedSink;->S()Lokio/BufferedSink;
goto :goto_0
:cond_2
iget-object v2, p0, Le0/h;->f:Ljava/util/zip/Deflater;
invoke-virtual {v2}, Ljava/util/zip/Deflater;->needsInput()Z
move-result v2
if-eqz v2, :cond_0
iget p1, v1, Le0/s;->b:I
iget v2, v1, Le0/s;->c:I
if-ne p1, v2, :cond_3
invoke-virtual {v1}, Le0/s;->a()Le0/s;
move-result-object p1
iput-object p1, v0, Le0/e;->d:Le0/s;
invoke-static {v1}, Le0/t;->a(Le0/s;)V
:cond_3
return-void
.end method
.method public close()V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Le0/h;->d:Z
if-eqz v0, :cond_0
return-void
:cond_0
const/4 v0, 0x0
:try_start_0
iget-object v1, p0, Le0/h;->f:Ljava/util/zip/Deflater;
invoke-virtual {v1}, Ljava/util/zip/Deflater;->finish()V
const/4 v1, 0x0
invoke-virtual {p0, v1}, Le0/h;->a(Z)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:catchall_0
move-exception v0
:goto_0
:try_start_1
iget-object v1, p0, Le0/h;->f:Ljava/util/zip/Deflater;
invoke-virtual {v1}, Ljava/util/zip/Deflater;->end()V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
goto :goto_1
:catchall_1
move-exception v1
if-nez v0, :cond_1
move-object v0, v1
:cond_1
:goto_1
:try_start_2
iget-object v1, p0, Le0/h;->e:Lokio/BufferedSink;
invoke-interface {v1}, Le0/v;->close()V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_2
goto :goto_2
:catchall_2
move-exception v1
if-nez v0, :cond_2
move-object v0, v1
:cond_2
:goto_2
const/4 v1, 0x1
iput-boolean v1, p0, Le0/h;->d:Z
if-nez v0, :cond_3
return-void
:cond_3
throw v0
.end method
.method public flush()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x1
invoke-virtual {p0, v0}, Le0/h;->a(Z)V
iget-object v0, p0, Le0/h;->e:Lokio/BufferedSink;
invoke-interface {v0}, Lokio/BufferedSink;->flush()V
return-void
.end method
.method public timeout()Le0/y;
.locals 1
iget-object v0, p0, Le0/h;->e:Lokio/BufferedSink;
invoke-interface {v0}, Le0/v;->timeout()Le0/y;
move-result-object v0
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
const-string v0, "DeflaterSink("
invoke-static {v0}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Le0/h;->e:Lokio/BufferedSink;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 v1, 0x29
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public write(Le0/e;J)V
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "source"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-wide v1, p1, Le0/e;->e:J
const-wide/16 v3, 0x0
move-wide v5, p2
invoke-static/range {v1 .. v6}, Lz/i/s;->n(JJJ)V
:goto_0
const-wide/16 v0, 0x0
cmp-long v2, p2, v0
if-lez v2, :cond_2
iget-object v0, p1, Le0/e;->d:Le0/s;
if-eqz v0, :cond_1
iget v1, v0, Le0/s;->c:I
iget v2, v0, Le0/s;->b:I
sub-int/2addr v1, v2
int-to-long v1, v1
invoke-static {p2, p3, v1, v2}, Ljava/lang/Math;->min(JJ)J
move-result-wide v1
long-to-int v2, v1
iget-object v1, p0, Le0/h;->f:Ljava/util/zip/Deflater;
iget-object v3, v0, Le0/s;->a:[B
iget v4, v0, Le0/s;->b:I
invoke-virtual {v1, v3, v4, v2}, Ljava/util/zip/Deflater;->setInput([BII)V
const/4 v1, 0x0
invoke-virtual {p0, v1}, Le0/h;->a(Z)V
iget-wide v3, p1, Le0/e;->e:J
int-to-long v5, v2
sub-long/2addr v3, v5
iput-wide v3, p1, Le0/e;->e:J
iget v1, v0, Le0/s;->b:I
add-int/2addr v1, v2
iput v1, v0, Le0/s;->b:I
iget v2, v0, Le0/s;->c:I
if-ne v1, v2, :cond_0
invoke-virtual {v0}, Le0/s;->a()Le0/s;
move-result-object v1
iput-object v1, p1, Le0/e;->d:Le0/s;
invoke-static {v0}, Le0/t;->a(Le0/s;)V
:cond_0
sub-long/2addr p2, v5
goto :goto_0
:cond_1
invoke-static {}, Lz/n/c/j;->throwNpe()V
const/4 p1, 0x0
throw p1
:cond_2
return-void
.end method

View file

@ -0,0 +1,141 @@
.class public abstract Le0/i;
.super Ljava/lang/Object;
.source "ForwardingSink.kt"
# interfaces
.implements Le0/v;
# instance fields
.field public final delegate:Le0/v;
# direct methods
.method public constructor <init>(Le0/v;)V
.locals 1
const-string v0, "delegate"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Le0/i;->delegate:Le0/v;
return-void
.end method
# virtual methods
.method public final -deprecated_delegate()Le0/v;
.locals 1
iget-object v0, p0, Le0/i;->delegate:Le0/v;
return-object v0
.end method
.method public close()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Le0/i;->delegate:Le0/v;
invoke-interface {v0}, Le0/v;->close()V
return-void
.end method
.method public final delegate()Le0/v;
.locals 1
iget-object v0, p0, Le0/i;->delegate:Le0/v;
return-object v0
.end method
.method public flush()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Le0/i;->delegate:Le0/v;
invoke-interface {v0}, Le0/v;->flush()V
return-void
.end method
.method public timeout()Le0/y;
.locals 1
iget-object v0, p0, Le0/i;->delegate:Le0/v;
invoke-interface {v0}, Le0/v;->timeout()Le0/y;
move-result-object v0
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v1, 0x28
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
iget-object v1, p0, Le0/i;->delegate:Le0/v;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 v1, 0x29
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public write(Le0/e;J)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "source"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Le0/i;->delegate:Le0/v;
invoke-interface {v0, p1, p2, p3}, Le0/v;->write(Le0/e;J)V
return-void
.end method

View file

@ -0,0 +1,112 @@
.class public abstract Le0/j;
.super Ljava/lang/Object;
.source "ForwardingSource.kt"
# interfaces
.implements Le0/x;
# instance fields
.field public final d:Le0/x;
# direct methods
.method public constructor <init>(Le0/x;)V
.locals 1
const-string v0, "delegate"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Le0/j;->d:Le0/x;
return-void
.end method
# virtual methods
.method public close()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Le0/j;->d:Le0/x;
invoke-interface {v0}, Le0/x;->close()V
return-void
.end method
.method public timeout()Le0/y;
.locals 1
iget-object v0, p0, Le0/j;->d:Le0/x;
invoke-interface {v0}, Le0/x;->timeout()Le0/y;
move-result-object v0
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v1, 0x28
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
iget-object v1, p0, Le0/j;->d:Le0/x;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 v1, 0x29
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public x0(Le0/e;J)J
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "sink"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Le0/j;->d:Le0/x;
invoke-interface {v0, p1, p2, p3}, Le0/x;->x0(Le0/e;J)J
move-result-wide p1
return-wide p1
.end method

View file

@ -0,0 +1,128 @@
.class public Le0/k;
.super Le0/y;
.source "ForwardingTimeout.kt"
# instance fields
.field public e:Le0/y;
# direct methods
.method public constructor <init>(Le0/y;)V
.locals 1
const-string v0, "delegate"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Le0/y;-><init>()V
iput-object p1, p0, Le0/k;->e:Le0/y;
return-void
.end method
# virtual methods
.method public a()Le0/y;
.locals 1
iget-object v0, p0, Le0/k;->e:Le0/y;
invoke-virtual {v0}, Le0/y;->a()Le0/y;
move-result-object v0
return-object v0
.end method
.method public b()Le0/y;
.locals 1
iget-object v0, p0, Le0/k;->e:Le0/y;
invoke-virtual {v0}, Le0/y;->b()Le0/y;
move-result-object v0
return-object v0
.end method
.method public c()J
.locals 2
iget-object v0, p0, Le0/k;->e:Le0/y;
invoke-virtual {v0}, Le0/y;->c()J
move-result-wide v0
return-wide v0
.end method
.method public d(J)Le0/y;
.locals 1
iget-object v0, p0, Le0/k;->e:Le0/y;
invoke-virtual {v0, p1, p2}, Le0/y;->d(J)Le0/y;
move-result-object p1
return-object p1
.end method
.method public e()Z
.locals 1
iget-object v0, p0, Le0/k;->e:Le0/y;
invoke-virtual {v0}, Le0/y;->e()Z
move-result v0
return v0
.end method
.method public f()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Le0/k;->e:Le0/y;
invoke-virtual {v0}, Le0/y;->f()V
return-void
.end method
.method public g(JLjava/util/concurrent/TimeUnit;)Le0/y;
.locals 1
const-string v0, "unit"
invoke-static {p3, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Le0/k;->e:Le0/y;
invoke-virtual {v0, p1, p2, p3}, Le0/y;->g(JLjava/util/concurrent/TimeUnit;)Le0/y;
move-result-object p1
return-object p1
.end method
.method public h()J
.locals 2
iget-object v0, p0, Le0/k;->e:Le0/y;
invoke-virtual {v0}, Le0/y;->h()J
move-result-wide v0
return-wide v0
.end method

View file

@ -0,0 +1,715 @@
.class public final Le0/l;
.super Ljava/lang/Object;
.source "GzipSource.kt"
# interfaces
.implements Le0/x;
# instance fields
.field public d:B
.field public final e:Le0/r;
.field public final f:Ljava/util/zip/Inflater;
.field public final g:Le0/m;
.field public final h:Ljava/util/zip/CRC32;
# direct methods
.method public constructor <init>(Le0/x;)V
.locals 2
const-string v0, "source"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Le0/r;
invoke-direct {v0, p1}, Le0/r;-><init>(Le0/x;)V
iput-object v0, p0, Le0/l;->e:Le0/r;
new-instance p1, Ljava/util/zip/Inflater;
const/4 v0, 0x1
invoke-direct {p1, v0}, Ljava/util/zip/Inflater;-><init>(Z)V
iput-object p1, p0, Le0/l;->f:Ljava/util/zip/Inflater;
new-instance v0, Le0/m;
iget-object v1, p0, Le0/l;->e:Le0/r;
invoke-direct {v0, v1, p1}, Le0/m;-><init>(Le0/g;Ljava/util/zip/Inflater;)V
iput-object v0, p0, Le0/l;->g:Le0/m;
new-instance p1, Ljava/util/zip/CRC32;
invoke-direct {p1}, Ljava/util/zip/CRC32;-><init>()V
iput-object p1, p0, Le0/l;->h:Ljava/util/zip/CRC32;
return-void
.end method
# virtual methods
.method public final a(Ljava/lang/String;II)V
.locals 3
if-ne p3, p2, :cond_0
return-void
:cond_0
const/4 v0, 0x3
new-array v1, v0, [Ljava/lang/Object;
const/4 v2, 0x0
aput-object p1, v1, v2
const/4 p1, 0x1
invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p3
aput-object p3, v1, p1
const/4 p1, 0x2
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p2
aput-object p2, v1, p1
invoke-static {v1, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p1
const-string p2, "%s: actual 0x%08x != expected 0x%08x"
invoke-static {p2, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
const-string p2, "java.lang.String.format(this, *args)"
invoke-static {p1, p2}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance p2, Ljava/io/IOException;
invoke-direct {p2, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p2
.end method
.method public final b(Le0/e;JJ)V
.locals 6
iget-object p1, p1, Le0/e;->d:Le0/s;
const/4 v0, 0x0
if-eqz p1, :cond_4
:goto_0
iget v1, p1, Le0/s;->c:I
iget v2, p1, Le0/s;->b:I
sub-int v3, v1, v2
int-to-long v3, v3
cmp-long v5, p2, v3
if-ltz v5, :cond_1
sub-int/2addr v1, v2
int-to-long v1, v1
sub-long/2addr p2, v1
iget-object p1, p1, Le0/s;->f:Le0/s;
if-eqz p1, :cond_0
goto :goto_0
:cond_0
invoke-static {}, Lz/n/c/j;->throwNpe()V
throw v0
:cond_1
const-wide/16 v1, 0x0
:goto_1
cmp-long v3, p4, v1
if-lez v3, :cond_3
iget v3, p1, Le0/s;->b:I
int-to-long v3, v3
add-long/2addr v3, p2
long-to-int p2, v3
iget p3, p1, Le0/s;->c:I
sub-int/2addr p3, p2
int-to-long v3, p3
invoke-static {v3, v4, p4, p5}, Ljava/lang/Math;->min(JJ)J
move-result-wide v3
long-to-int p3, v3
iget-object v3, p0, Le0/l;->h:Ljava/util/zip/CRC32;
iget-object v4, p1, Le0/s;->a:[B
invoke-virtual {v3, v4, p2, p3}, Ljava/util/zip/CRC32;->update([BII)V
int-to-long p2, p3
sub-long/2addr p4, p2
iget-object p1, p1, Le0/s;->f:Le0/s;
if-eqz p1, :cond_2
move-wide p2, v1
goto :goto_1
:cond_2
invoke-static {}, Lz/n/c/j;->throwNpe()V
throw v0
:cond_3
return-void
:cond_4
invoke-static {}, Lz/n/c/j;->throwNpe()V
throw v0
.end method
.method public close()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Le0/l;->g:Le0/m;
invoke-virtual {v0}, Le0/m;->close()V
return-void
.end method
.method public timeout()Le0/y;
.locals 1
iget-object v0, p0, Le0/l;->e:Le0/r;
invoke-virtual {v0}, Le0/r;->timeout()Le0/y;
move-result-object v0
return-object v0
.end method
.method public x0(Le0/e;J)J
.locals 24
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
move-object/from16 v6, p0
move-object/from16 v7, p1
move-wide/from16 v8, p2
const-string v0, "sink"
invoke-static {v7, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-wide/16 v0, 0x0
const/4 v10, 0x0
const/4 v11, 0x1
cmp-long v2, v8, v0
if-ltz v2, :cond_0
const/4 v3, 0x1
goto :goto_0
:cond_0
const/4 v3, 0x0
:goto_0
if-eqz v3, :cond_16
if-nez v2, :cond_1
return-wide v0
:cond_1
iget-byte v0, v6, Le0/l;->d:B
const-wide/16 v12, -0x1
if-nez v0, :cond_11
iget-object v0, v6, Le0/l;->e:Le0/r;
const-wide/16 v1, 0xa
invoke-virtual {v0, v1, v2}, Le0/r;->G0(J)V
iget-object v0, v6, Le0/l;->e:Le0/r;
iget-object v0, v0, Le0/r;->d:Le0/e;
const-wide/16 v1, 0x3
invoke-virtual {v0, v1, v2}, Le0/e;->e(J)B
move-result v14
shr-int/lit8 v0, v14, 0x1
and-int/2addr v0, v11
if-ne v0, v11, :cond_2
const/4 v0, 0x1
const/4 v15, 0x1
goto :goto_1
:cond_2
const/4 v0, 0x0
const/4 v15, 0x0
:goto_1
if-eqz v15, :cond_3
iget-object v0, v6, Le0/l;->e:Le0/r;
iget-object v1, v0, Le0/r;->d:Le0/e;
const-wide/16 v2, 0x0
const-wide/16 v4, 0xa
move-object/from16 v0, p0
invoke-virtual/range {v0 .. v5}, Le0/l;->b(Le0/e;JJ)V
:cond_3
iget-object v0, v6, Le0/l;->e:Le0/r;
invoke-virtual {v0}, Le0/r;->readShort()S
move-result v0
const/16 v1, 0x1f8b
const-string v2, "ID1ID2"
invoke-virtual {v6, v2, v1, v0}, Le0/l;->a(Ljava/lang/String;II)V
iget-object v0, v6, Le0/l;->e:Le0/r;
const-wide/16 v1, 0x8
invoke-virtual {v0, v1, v2}, Le0/r;->skip(J)V
shr-int/lit8 v0, v14, 0x2
and-int/2addr v0, v11
if-ne v0, v11, :cond_4
const/4 v0, 0x1
goto :goto_2
:cond_4
const/4 v0, 0x0
:goto_2
const-wide/16 v1, 0x2
if-eqz v0, :cond_7
iget-object v0, v6, Le0/l;->e:Le0/r;
invoke-virtual {v0, v1, v2}, Le0/r;->G0(J)V
if-eqz v15, :cond_5
iget-object v0, v6, Le0/l;->e:Le0/r;
iget-object v1, v0, Le0/r;->d:Le0/e;
const-wide/16 v2, 0x0
const-wide/16 v4, 0x2
move-object/from16 v0, p0
invoke-virtual/range {v0 .. v5}, Le0/l;->b(Le0/e;JJ)V
:cond_5
iget-object v0, v6, Le0/l;->e:Le0/r;
iget-object v0, v0, Le0/r;->d:Le0/e;
invoke-virtual {v0}, Le0/e;->p()S
move-result v0
int-to-long v4, v0
iget-object v0, v6, Le0/l;->e:Le0/r;
invoke-virtual {v0, v4, v5}, Le0/r;->G0(J)V
if-eqz v15, :cond_6
iget-object v0, v6, Le0/l;->e:Le0/r;
iget-object v1, v0, Le0/r;->d:Le0/e;
const-wide/16 v2, 0x0
move-object/from16 v0, p0
move-wide/from16 v16, v4
invoke-virtual/range {v0 .. v5}, Le0/l;->b(Le0/e;JJ)V
goto :goto_3
:cond_6
move-wide/from16 v16, v4
:goto_3
iget-object v0, v6, Le0/l;->e:Le0/r;
move-wide/from16 v1, v16
invoke-virtual {v0, v1, v2}, Le0/r;->skip(J)V
:cond_7
shr-int/lit8 v0, v14, 0x3
and-int/2addr v0, v11
if-ne v0, v11, :cond_8
const/4 v0, 0x1
goto :goto_4
:cond_8
const/4 v0, 0x0
:goto_4
const-wide/16 v16, 0x1
if-eqz v0, :cond_b
iget-object v0, v6, Le0/l;->e:Le0/r;
const/16 v19, 0x0
const-wide/16 v20, 0x0
const-wide v22, 0x7fffffffffffffffL
move-object/from16 v18, v0
invoke-virtual/range {v18 .. v23}, Le0/r;->a(BJJ)J
move-result-wide v18
cmp-long v0, v18, v12
if-eqz v0, :cond_a
if-eqz v15, :cond_9
iget-object v0, v6, Le0/l;->e:Le0/r;
iget-object v1, v0, Le0/r;->d:Le0/e;
const-wide/16 v2, 0x0
add-long v4, v18, v16
move-object/from16 v0, p0
invoke-virtual/range {v0 .. v5}, Le0/l;->b(Le0/e;JJ)V
:cond_9
iget-object v0, v6, Le0/l;->e:Le0/r;
add-long v1, v18, v16
invoke-virtual {v0, v1, v2}, Le0/r;->skip(J)V
goto :goto_5
:cond_a
new-instance v0, Ljava/io/EOFException;
invoke-direct {v0}, Ljava/io/EOFException;-><init>()V
throw v0
:cond_b
:goto_5
shr-int/lit8 v0, v14, 0x4
and-int/2addr v0, v11
if-ne v0, v11, :cond_c
const/4 v10, 0x1
:cond_c
if-eqz v10, :cond_f
iget-object v0, v6, Le0/l;->e:Le0/r;
const/4 v1, 0x0
const-wide/16 v2, 0x0
const-wide v4, 0x7fffffffffffffffL
invoke-virtual/range {v0 .. v5}, Le0/r;->a(BJJ)J
move-result-wide v18
cmp-long v0, v18, v12
if-eqz v0, :cond_e
if-eqz v15, :cond_d
iget-object v0, v6, Le0/l;->e:Le0/r;
iget-object v1, v0, Le0/r;->d:Le0/e;
const-wide/16 v2, 0x0
add-long v4, v18, v16
move-object/from16 v0, p0
invoke-virtual/range {v0 .. v5}, Le0/l;->b(Le0/e;JJ)V
:cond_d
iget-object v0, v6, Le0/l;->e:Le0/r;
add-long v1, v18, v16
invoke-virtual {v0, v1, v2}, Le0/r;->skip(J)V
goto :goto_6
:cond_e
new-instance v0, Ljava/io/EOFException;
invoke-direct {v0}, Ljava/io/EOFException;-><init>()V
throw v0
:cond_f
:goto_6
if-eqz v15, :cond_10
iget-object v0, v6, Le0/l;->e:Le0/r;
const-wide/16 v1, 0x2
invoke-virtual {v0, v1, v2}, Le0/r;->G0(J)V
iget-object v0, v0, Le0/r;->d:Le0/e;
invoke-virtual {v0}, Le0/e;->p()S
move-result v0
iget-object v1, v6, Le0/l;->h:Ljava/util/zip/CRC32;
invoke-virtual {v1}, Ljava/util/zip/CRC32;->getValue()J
move-result-wide v1
long-to-int v2, v1
int-to-short v1, v2
const-string v2, "FHCRC"
invoke-virtual {v6, v2, v0, v1}, Le0/l;->a(Ljava/lang/String;II)V
iget-object v0, v6, Le0/l;->h:Ljava/util/zip/CRC32;
invoke-virtual {v0}, Ljava/util/zip/CRC32;->reset()V
:cond_10
iput-byte v11, v6, Le0/l;->d:B
:cond_11
iget-byte v0, v6, Le0/l;->d:B
const/4 v1, 0x2
if-ne v0, v11, :cond_13
iget-wide v2, v7, Le0/e;->e:J
iget-object v0, v6, Le0/l;->g:Le0/m;
invoke-virtual {v0, v7, v8, v9}, Le0/m;->x0(Le0/e;J)J
move-result-wide v8
cmp-long v0, v8, v12
if-eqz v0, :cond_12
move-object/from16 v0, p0
move-object/from16 v1, p1
move-wide v4, v8
invoke-virtual/range {v0 .. v5}, Le0/l;->b(Le0/e;JJ)V
return-wide v8
:cond_12
iput-byte v1, v6, Le0/l;->d:B
:cond_13
iget-byte v0, v6, Le0/l;->d:B
if-ne v0, v1, :cond_15
iget-object v0, v6, Le0/l;->e:Le0/r;
invoke-virtual {v0}, Le0/r;->b()I
move-result v0
iget-object v1, v6, Le0/l;->h:Ljava/util/zip/CRC32;
invoke-virtual {v1}, Ljava/util/zip/CRC32;->getValue()J
move-result-wide v1
long-to-int v2, v1
const-string v1, "CRC"
invoke-virtual {v6, v1, v0, v2}, Le0/l;->a(Ljava/lang/String;II)V
iget-object v0, v6, Le0/l;->e:Le0/r;
invoke-virtual {v0}, Le0/r;->b()I
move-result v0
iget-object v1, v6, Le0/l;->f:Ljava/util/zip/Inflater;
invoke-virtual {v1}, Ljava/util/zip/Inflater;->getBytesWritten()J
move-result-wide v1
long-to-int v2, v1
const-string v1, "ISIZE"
invoke-virtual {v6, v1, v0, v2}, Le0/l;->a(Ljava/lang/String;II)V
const/4 v0, 0x3
iput-byte v0, v6, Le0/l;->d:B
iget-object v0, v6, Le0/l;->e:Le0/r;
invoke-virtual {v0}, Le0/r;->K()Z
move-result v0
if-eqz v0, :cond_14
goto :goto_7
:cond_14
new-instance v0, Ljava/io/IOException;
const-string v1, "gzip finished without exhausting source"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:cond_15
:goto_7
return-wide v12
:cond_16
const-string v0, "byteCount < 0: "
invoke-static {v0, v8, v9}, Lf/e/c/a/a;->n(Ljava/lang/String;J)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
throw v1
.end method

View file

@ -0,0 +1,429 @@
.class public final Le0/m;
.super Ljava/lang/Object;
.source "InflaterSource.kt"
# interfaces
.implements Le0/x;
# instance fields
.field public d:I
.field public e:Z
.field public final f:Le0/g;
.field public final g:Ljava/util/zip/Inflater;
# direct methods
.method public constructor <init>(Le0/g;Ljava/util/zip/Inflater;)V
.locals 1
const-string v0, "source"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "inflater"
invoke-static {p2, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Le0/m;->f:Le0/g;
iput-object p2, p0, Le0/m;->g:Ljava/util/zip/Inflater;
return-void
.end method
.method public constructor <init>(Le0/x;Ljava/util/zip/Inflater;)V
.locals 3
const-string v0, "source"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v1, "inflater"
invoke-static {p2, v1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v2, "$this$buffer"
invoke-static {p1, v2}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v2, Le0/r;
invoke-direct {v2, p1}, Le0/r;-><init>(Le0/x;)V
invoke-static {v2, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p2, v1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object v2, p0, Le0/m;->f:Le0/g;
iput-object p2, p0, Le0/m;->g:Ljava/util/zip/Inflater;
return-void
.end method
# virtual methods
.method public final a(Le0/e;J)J
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "sink"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x1
const-wide/16 v1, 0x0
cmp-long v3, p2, v1
if-ltz v3, :cond_0
const/4 v4, 0x1
goto :goto_0
:cond_0
const/4 v4, 0x0
:goto_0
if-eqz v4, :cond_6
iget-boolean v4, p0, Le0/m;->e:Z
xor-int/2addr v4, v0
if-eqz v4, :cond_5
if-nez v3, :cond_1
return-wide v1
:cond_1
:try_start_0
invoke-virtual {p1, v0}, Le0/e;->A(I)Le0/s;
move-result-object v0
iget v3, v0, Le0/s;->c:I
rsub-int v3, v3, 0x2000
int-to-long v3, v3
invoke-static {p2, p3, v3, v4}, Ljava/lang/Math;->min(JJ)J
move-result-wide p2
long-to-int p3, p2
invoke-virtual {p0}, Le0/m;->b()Z
iget-object p2, p0, Le0/m;->g:Ljava/util/zip/Inflater;
iget-object v3, v0, Le0/s;->a:[B
iget v4, v0, Le0/s;->c:I
invoke-virtual {p2, v3, v4, p3}, Ljava/util/zip/Inflater;->inflate([BII)I
move-result p2
iget p3, p0, Le0/m;->d:I
if-nez p3, :cond_2
goto :goto_1
:cond_2
iget-object v3, p0, Le0/m;->g:Ljava/util/zip/Inflater;
invoke-virtual {v3}, Ljava/util/zip/Inflater;->getRemaining()I
move-result v3
sub-int/2addr p3, v3
iget v3, p0, Le0/m;->d:I
sub-int/2addr v3, p3
iput v3, p0, Le0/m;->d:I
iget-object v3, p0, Le0/m;->f:Le0/g;
int-to-long v4, p3
invoke-interface {v3, v4, v5}, Le0/g;->skip(J)V
:goto_1
if-lez p2, :cond_3
iget p3, v0, Le0/s;->c:I
add-int/2addr p3, p2
iput p3, v0, Le0/s;->c:I
iget-wide v0, p1, Le0/e;->e:J
int-to-long p2, p2
add-long/2addr v0, p2
iput-wide v0, p1, Le0/e;->e:J
return-wide p2
:cond_3
iget p2, v0, Le0/s;->b:I
iget p3, v0, Le0/s;->c:I
if-ne p2, p3, :cond_4
invoke-virtual {v0}, Le0/s;->a()Le0/s;
move-result-object p2
iput-object p2, p1, Le0/e;->d:Le0/s;
invoke-static {v0}, Le0/t;->a(Le0/s;)V
:try_end_0
.catch Ljava/util/zip/DataFormatException; {:try_start_0 .. :try_end_0} :catch_0
:cond_4
return-wide v1
:catch_0
move-exception p1
new-instance p2, Ljava/io/IOException;
invoke-direct {p2, p1}, Ljava/io/IOException;-><init>(Ljava/lang/Throwable;)V
throw p2
:cond_5
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_6
const-string p1, "byteCount < 0: "
invoke-static {p1, p2, p3}, Lf/e/c/a/a;->n(Ljava/lang/String;J)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
throw p2
.end method
.method public final b()Z
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Le0/m;->g:Ljava/util/zip/Inflater;
invoke-virtual {v0}, Ljava/util/zip/Inflater;->needsInput()Z
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_0
return v1
:cond_0
iget-object v0, p0, Le0/m;->f:Le0/g;
invoke-interface {v0}, Le0/g;->K()Z
move-result v0
if-eqz v0, :cond_1
const/4 v0, 0x1
return v0
:cond_1
iget-object v0, p0, Le0/m;->f:Le0/g;
invoke-interface {v0}, Le0/g;->i()Le0/e;
move-result-object v0
iget-object v0, v0, Le0/e;->d:Le0/s;
if-eqz v0, :cond_2
iget v2, v0, Le0/s;->c:I
iget v3, v0, Le0/s;->b:I
sub-int/2addr v2, v3
iput v2, p0, Le0/m;->d:I
iget-object v4, p0, Le0/m;->g:Ljava/util/zip/Inflater;
iget-object v0, v0, Le0/s;->a:[B
invoke-virtual {v4, v0, v3, v2}, Ljava/util/zip/Inflater;->setInput([BII)V
return v1
:cond_2
invoke-static {}, Lz/n/c/j;->throwNpe()V
const/4 v0, 0x0
throw v0
.end method
.method public close()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Le0/m;->e:Z
if-eqz v0, :cond_0
return-void
:cond_0
iget-object v0, p0, Le0/m;->g:Ljava/util/zip/Inflater;
invoke-virtual {v0}, Ljava/util/zip/Inflater;->end()V
const/4 v0, 0x1
iput-boolean v0, p0, Le0/m;->e:Z
iget-object v0, p0, Le0/m;->f:Le0/g;
invoke-interface {v0}, Le0/x;->close()V
return-void
.end method
.method public timeout()Le0/y;
.locals 1
iget-object v0, p0, Le0/m;->f:Le0/g;
invoke-interface {v0}, Le0/x;->timeout()Le0/y;
move-result-object v0
return-object v0
.end method
.method public x0(Le0/e;J)J
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "sink"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:goto_0
invoke-virtual {p0, p1, p2, p3}, Le0/m;->a(Le0/e;J)J
move-result-wide v0
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-lez v4, :cond_0
return-wide v0
:cond_0
iget-object v0, p0, Le0/m;->g:Ljava/util/zip/Inflater;
invoke-virtual {v0}, Ljava/util/zip/Inflater;->finished()Z
move-result v0
if-nez v0, :cond_3
iget-object v0, p0, Le0/m;->g:Ljava/util/zip/Inflater;
invoke-virtual {v0}, Ljava/util/zip/Inflater;->needsDictionary()Z
move-result v0
if-eqz v0, :cond_1
goto :goto_1
:cond_1
iget-object v0, p0, Le0/m;->f:Le0/g;
invoke-interface {v0}, Le0/g;->K()Z
move-result v0
if-nez v0, :cond_2
goto :goto_0
:cond_2
new-instance p1, Ljava/io/EOFException;
const-string p2, "source exhausted prematurely"
invoke-direct {p1, p2}, Ljava/io/EOFException;-><init>(Ljava/lang/String;)V
throw p1
:cond_3
:goto_1
const-wide/16 p1, -0x1
return-wide p1
.end method

View file

@ -0,0 +1,217 @@
.class public final Le0/n;
.super Ljava/lang/Object;
.source "JvmOkio.kt"
# interfaces
.implements Le0/x;
# instance fields
.field public final d:Ljava/io/InputStream;
.field public final e:Le0/y;
# direct methods
.method public constructor <init>(Ljava/io/InputStream;Le0/y;)V
.locals 1
const-string v0, "input"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "timeout"
invoke-static {p2, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Le0/n;->d:Ljava/io/InputStream;
iput-object p2, p0, Le0/n;->e:Le0/y;
return-void
.end method
# virtual methods
.method public close()V
.locals 1
iget-object v0, p0, Le0/n;->d:Ljava/io/InputStream;
invoke-virtual {v0}, Ljava/io/InputStream;->close()V
return-void
.end method
.method public timeout()Le0/y;
.locals 1
iget-object v0, p0, Le0/n;->e:Le0/y;
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
const-string v0, "source("
invoke-static {v0}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Le0/n;->d:Ljava/io/InputStream;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 v1, 0x29
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public x0(Le0/e;J)J
.locals 3
const-string v0, "sink"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-wide/16 v0, 0x0
cmp-long v2, p2, v0
if-nez v2, :cond_0
return-wide v0
:cond_0
const/4 v0, 0x1
if-ltz v2, :cond_1
const/4 v1, 0x1
goto :goto_0
:cond_1
const/4 v1, 0x0
:goto_0
if-eqz v1, :cond_5
:try_start_0
iget-object v1, p0, Le0/n;->e:Le0/y;
invoke-virtual {v1}, Le0/y;->f()V
invoke-virtual {p1, v0}, Le0/e;->A(I)Le0/s;
move-result-object v0
iget v1, v0, Le0/s;->c:I
rsub-int v1, v1, 0x2000
int-to-long v1, v1
invoke-static {p2, p3, v1, v2}, Ljava/lang/Math;->min(JJ)J
move-result-wide p2
long-to-int p3, p2
iget-object p2, p0, Le0/n;->d:Ljava/io/InputStream;
iget-object v1, v0, Le0/s;->a:[B
iget v2, v0, Le0/s;->c:I
invoke-virtual {p2, v1, v2, p3}, Ljava/io/InputStream;->read([BII)I
move-result p2
const/4 p3, -0x1
if-ne p2, p3, :cond_3
iget p2, v0, Le0/s;->b:I
iget p3, v0, Le0/s;->c:I
if-ne p2, p3, :cond_2
invoke-virtual {v0}, Le0/s;->a()Le0/s;
move-result-object p2
iput-object p2, p1, Le0/e;->d:Le0/s;
invoke-static {v0}, Le0/t;->a(Le0/s;)V
:cond_2
const-wide/16 p1, -0x1
return-wide p1
:cond_3
iget p3, v0, Le0/s;->c:I
add-int/2addr p3, p2
iput p3, v0, Le0/s;->c:I
iget-wide v0, p1, Le0/e;->e:J
int-to-long p2, p2
add-long/2addr v0, p2
iput-wide v0, p1, Le0/e;->e:J
:try_end_0
.catch Ljava/lang/AssertionError; {:try_start_0 .. :try_end_0} :catch_0
return-wide p2
:catch_0
move-exception p1
invoke-static {p1}, Lz/i/s;->x(Ljava/lang/AssertionError;)Z
move-result p2
if-eqz p2, :cond_4
new-instance p2, Ljava/io/IOException;
invoke-direct {p2, p1}, Ljava/io/IOException;-><init>(Ljava/lang/Throwable;)V
throw p2
:cond_4
throw p1
:cond_5
const-string p1, "byteCount < 0: "
invoke-static {p1, p2, p3}, Lf/e/c/a/a;->n(Ljava/lang/String;J)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
throw p2
.end method

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,146 @@
.class public final Le0/o;
.super Lz/i/c;
.source "Options.kt"
# interfaces
.implements Ljava/util/RandomAccess;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Le0/o$a;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lz/i/c<",
"Lokio/ByteString;",
">;",
"Ljava/util/RandomAccess;"
}
.end annotation
# static fields
.field public static final f:Le0/o$a;
# instance fields
.field public final d:[Lokio/ByteString;
.field public final e:[I
# direct methods
.method public static constructor <clinit>()V
.locals 2
new-instance v0, Le0/o$a;
const/4 v1, 0x0
invoke-direct {v0, v1}, Le0/o$a;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Le0/o;->f:Le0/o$a;
return-void
.end method
.method public constructor <init>([Lokio/ByteString;[ILkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
invoke-direct {p0}, Lz/i/c;-><init>()V
iput-object p1, p0, Le0/o;->d:[Lokio/ByteString;
iput-object p2, p0, Le0/o;->e:[I
return-void
.end method
# virtual methods
.method public final bridge contains(Ljava/lang/Object;)Z
.locals 1
instance-of v0, p1, Lokio/ByteString;
if-eqz v0, :cond_0
check-cast p1, Lokio/ByteString;
invoke-super {p0, p1}, Lz/i/a;->contains(Ljava/lang/Object;)Z
move-result p1
return p1
:cond_0
const/4 p1, 0x0
return p1
.end method
.method public get(I)Ljava/lang/Object;
.locals 1
iget-object v0, p0, Le0/o;->d:[Lokio/ByteString;
aget-object p1, v0, p1
return-object p1
.end method
.method public getSize()I
.locals 1
iget-object v0, p0, Le0/o;->d:[Lokio/ByteString;
array-length v0, v0
return v0
.end method
.method public final bridge indexOf(Ljava/lang/Object;)I
.locals 1
instance-of v0, p1, Lokio/ByteString;
if-eqz v0, :cond_0
check-cast p1, Lokio/ByteString;
invoke-super {p0, p1}, Lz/i/c;->indexOf(Ljava/lang/Object;)I
move-result p1
return p1
:cond_0
const/4 p1, -0x1
return p1
.end method
.method public final bridge lastIndexOf(Ljava/lang/Object;)I
.locals 1
instance-of v0, p1, Lokio/ByteString;
if-eqz v0, :cond_0
check-cast p1, Lokio/ByteString;
invoke-super {p0, p1}, Lz/i/c;->lastIndexOf(Ljava/lang/Object;)I
move-result p1
return p1
:cond_0
const/4 p1, -0x1
return p1
.end method

View file

@ -0,0 +1,182 @@
.class public final Le0/p;
.super Ljava/lang/Object;
.source "JvmOkio.kt"
# interfaces
.implements Le0/v;
# instance fields
.field public final d:Ljava/io/OutputStream;
.field public final e:Le0/y;
# direct methods
.method public constructor <init>(Ljava/io/OutputStream;Le0/y;)V
.locals 1
const-string v0, "out"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "timeout"
invoke-static {p2, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Le0/p;->d:Ljava/io/OutputStream;
iput-object p2, p0, Le0/p;->e:Le0/y;
return-void
.end method
# virtual methods
.method public close()V
.locals 1
iget-object v0, p0, Le0/p;->d:Ljava/io/OutputStream;
invoke-virtual {v0}, Ljava/io/OutputStream;->close()V
return-void
.end method
.method public flush()V
.locals 1
iget-object v0, p0, Le0/p;->d:Ljava/io/OutputStream;
invoke-virtual {v0}, Ljava/io/OutputStream;->flush()V
return-void
.end method
.method public timeout()Le0/y;
.locals 1
iget-object v0, p0, Le0/p;->e:Le0/y;
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
const-string v0, "sink("
invoke-static {v0}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Le0/p;->d:Ljava/io/OutputStream;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 v1, 0x29
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public write(Le0/e;J)V
.locals 7
const-string v0, "source"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-wide v1, p1, Le0/e;->e:J
const-wide/16 v3, 0x0
move-wide v5, p2
invoke-static/range {v1 .. v6}, Lz/i/s;->n(JJJ)V
:cond_0
:goto_0
const-wide/16 v0, 0x0
cmp-long v2, p2, v0
if-lez v2, :cond_2
iget-object v0, p0, Le0/p;->e:Le0/y;
invoke-virtual {v0}, Le0/y;->f()V
iget-object v0, p1, Le0/e;->d:Le0/s;
if-eqz v0, :cond_1
iget v1, v0, Le0/s;->c:I
iget v2, v0, Le0/s;->b:I
sub-int/2addr v1, v2
int-to-long v1, v1
invoke-static {p2, p3, v1, v2}, Ljava/lang/Math;->min(JJ)J
move-result-wide v1
long-to-int v2, v1
iget-object v1, p0, Le0/p;->d:Ljava/io/OutputStream;
iget-object v3, v0, Le0/s;->a:[B
iget v4, v0, Le0/s;->b:I
invoke-virtual {v1, v3, v4, v2}, Ljava/io/OutputStream;->write([BII)V
iget v1, v0, Le0/s;->b:I
add-int/2addr v1, v2
iput v1, v0, Le0/s;->b:I
int-to-long v2, v2
sub-long/2addr p2, v2
iget-wide v4, p1, Le0/e;->e:J
sub-long/2addr v4, v2
iput-wide v4, p1, Le0/e;->e:J
iget v2, v0, Le0/s;->c:I
if-ne v1, v2, :cond_0
invoke-virtual {v0}, Le0/s;->a()Le0/s;
move-result-object v1
iput-object v1, p1, Le0/e;->d:Le0/s;
invoke-static {v0}, Le0/t;->a(Le0/s;)V
goto :goto_0
:cond_1
invoke-static {}, Lz/n/c/j;->throwNpe()V
const/4 p1, 0x0
throw p1
:cond_2
return-void
.end method

View file

@ -0,0 +1,702 @@
.class public final Le0/q;
.super Ljava/lang/Object;
.source "RealBufferedSink.kt"
# interfaces
.implements Lokio/BufferedSink;
# instance fields
.field public final d:Le0/e;
.field public e:Z
.field public final f:Le0/v;
# direct methods
.method public constructor <init>(Le0/v;)V
.locals 1
const-string v0, "sink"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Le0/q;->f:Le0/v;
new-instance p1, Le0/e;
invoke-direct {p1}, Le0/e;-><init>()V
iput-object p1, p0, Le0/q;->d:Le0/e;
return-void
.end method
# virtual methods
.method public H0(J)Lokio/BufferedSink;
.locals 1
iget-boolean v0, p0, Le0/q;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
iget-object v0, p0, Le0/q;->d:Le0/e;
invoke-virtual {v0, p1, p2}, Le0/e;->H(J)Le0/e;
invoke-virtual {p0}, Le0/q;->S()Lokio/BufferedSink;
return-object p0
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public S()Lokio/BufferedSink;
.locals 5
iget-boolean v0, p0, Le0/q;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_1
iget-object v0, p0, Le0/q;->d:Le0/e;
invoke-virtual {v0}, Le0/e;->c()J
move-result-wide v0
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-lez v4, :cond_0
iget-object v2, p0, Le0/q;->f:Le0/v;
iget-object v3, p0, Le0/q;->d:Le0/e;
invoke-interface {v2, v3, v0, v1}, Le0/v;->write(Le0/e;J)V
:cond_0
return-object p0
:cond_1
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public Z(Ljava/lang/String;)Lokio/BufferedSink;
.locals 1
const-string v0, "string"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-boolean v0, p0, Le0/q;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
iget-object v0, p0, Le0/q;->d:Le0/e;
invoke-virtual {v0, p1}, Le0/e;->N(Ljava/lang/String;)Le0/e;
invoke-virtual {p0}, Le0/q;->S()Lokio/BufferedSink;
move-result-object p1
return-object p1
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "closed"
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
throw p1
.end method
.method public close()V
.locals 6
iget-boolean v0, p0, Le0/q;->e:Z
if-eqz v0, :cond_0
goto :goto_2
:cond_0
const/4 v0, 0x0
:try_start_0
iget-object v1, p0, Le0/q;->d:Le0/e;
iget-wide v1, v1, Le0/e;->e:J
const-wide/16 v3, 0x0
cmp-long v5, v1, v3
if-lez v5, :cond_1
iget-object v1, p0, Le0/q;->f:Le0/v;
iget-object v2, p0, Le0/q;->d:Le0/e;
iget-object v3, p0, Le0/q;->d:Le0/e;
iget-wide v3, v3, Le0/e;->e:J
invoke-interface {v1, v2, v3, v4}, Le0/v;->write(Le0/e;J)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:catchall_0
move-exception v0
:cond_1
:goto_0
:try_start_1
iget-object v1, p0, Le0/q;->f:Le0/v;
invoke-interface {v1}, Le0/v;->close()V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
goto :goto_1
:catchall_1
move-exception v1
if-nez v0, :cond_2
move-object v0, v1
:cond_2
:goto_1
const/4 v1, 0x1
iput-boolean v1, p0, Le0/q;->e:Z
if-nez v0, :cond_3
:goto_2
return-void
:cond_3
throw v0
.end method
.method public e0(Le0/x;)J
.locals 7
const-string v0, "source"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-wide/16 v0, 0x0
:goto_0
iget-object v2, p0, Le0/q;->d:Le0/e;
const/16 v3, 0x2000
int-to-long v3, v3
invoke-interface {p1, v2, v3, v4}, Le0/x;->x0(Le0/e;J)J
move-result-wide v2
const-wide/16 v4, -0x1
cmp-long v6, v2, v4
if-nez v6, :cond_0
return-wide v0
:cond_0
add-long/2addr v0, v2
invoke-virtual {p0}, Le0/q;->S()Lokio/BufferedSink;
goto :goto_0
.end method
.method public f0(J)Lokio/BufferedSink;
.locals 1
iget-boolean v0, p0, Le0/q;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
iget-object v0, p0, Le0/q;->d:Le0/e;
invoke-virtual {v0, p1, p2}, Le0/e;->I(J)Le0/e;
invoke-virtual {p0}, Le0/q;->S()Lokio/BufferedSink;
move-result-object p1
return-object p1
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public flush()V
.locals 6
iget-boolean v0, p0, Le0/q;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_1
iget-object v0, p0, Le0/q;->d:Le0/e;
iget-wide v1, v0, Le0/e;->e:J
const-wide/16 v3, 0x0
cmp-long v5, v1, v3
if-lez v5, :cond_0
iget-object v3, p0, Le0/q;->f:Le0/v;
invoke-interface {v3, v0, v1, v2}, Le0/v;->write(Le0/e;J)V
:cond_0
iget-object v0, p0, Le0/q;->f:Le0/v;
invoke-interface {v0}, Le0/v;->flush()V
return-void
:cond_1
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public i()Le0/e;
.locals 1
iget-object v0, p0, Le0/q;->d:Le0/e;
return-object v0
.end method
.method public isOpen()Z
.locals 1
iget-boolean v0, p0, Le0/q;->e:Z
xor-int/lit8 v0, v0, 0x1
return v0
.end method
.method public t0(Lokio/ByteString;)Lokio/BufferedSink;
.locals 1
const-string v0, "byteString"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-boolean v0, p0, Le0/q;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
iget-object v0, p0, Le0/q;->d:Le0/e;
invoke-virtual {v0, p1}, Le0/e;->B(Lokio/ByteString;)Le0/e;
invoke-virtual {p0}, Le0/q;->S()Lokio/BufferedSink;
return-object p0
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "closed"
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
throw p1
.end method
.method public timeout()Le0/y;
.locals 1
iget-object v0, p0, Le0/q;->f:Le0/v;
invoke-interface {v0}, Le0/v;->timeout()Le0/y;
move-result-object v0
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
const-string v0, "buffer("
invoke-static {v0}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Le0/q;->f:Le0/v;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 v1, 0x29
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public write(Ljava/nio/ByteBuffer;)I
.locals 1
const-string v0, "source"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-boolean v0, p0, Le0/q;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
iget-object v0, p0, Le0/q;->d:Le0/e;
invoke-virtual {v0, p1}, Le0/e;->write(Ljava/nio/ByteBuffer;)I
move-result p1
invoke-virtual {p0}, Le0/q;->S()Lokio/BufferedSink;
return p1
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "closed"
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
throw p1
.end method
.method public write([B)Lokio/BufferedSink;
.locals 1
const-string v0, "source"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-boolean v0, p0, Le0/q;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
iget-object v0, p0, Le0/q;->d:Le0/e;
invoke-virtual {v0, p1}, Le0/e;->D([B)Le0/e;
invoke-virtual {p0}, Le0/q;->S()Lokio/BufferedSink;
return-object p0
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "closed"
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
throw p1
.end method
.method public write([BII)Lokio/BufferedSink;
.locals 1
const-string v0, "source"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-boolean v0, p0, Le0/q;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
iget-object v0, p0, Le0/q;->d:Le0/e;
invoke-virtual {v0, p1, p2, p3}, Le0/e;->E([BII)Le0/e;
invoke-virtual {p0}, Le0/q;->S()Lokio/BufferedSink;
return-object p0
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public write(Le0/e;J)V
.locals 1
const-string v0, "source"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-boolean v0, p0, Le0/q;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
iget-object v0, p0, Le0/q;->d:Le0/e;
invoke-virtual {v0, p1, p2, p3}, Le0/e;->write(Le0/e;J)V
invoke-virtual {p0}, Le0/q;->S()Lokio/BufferedSink;
return-void
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public writeByte(I)Lokio/BufferedSink;
.locals 1
iget-boolean v0, p0, Le0/q;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
iget-object v0, p0, Le0/q;->d:Le0/e;
invoke-virtual {v0, p1}, Le0/e;->F(I)Le0/e;
invoke-virtual {p0}, Le0/q;->S()Lokio/BufferedSink;
return-object p0
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "closed"
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
throw p1
.end method
.method public writeInt(I)Lokio/BufferedSink;
.locals 1
iget-boolean v0, p0, Le0/q;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
iget-object v0, p0, Le0/q;->d:Le0/e;
invoke-virtual {v0, p1}, Le0/e;->L(I)Le0/e;
invoke-virtual {p0}, Le0/q;->S()Lokio/BufferedSink;
move-result-object p1
return-object p1
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "closed"
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
throw p1
.end method
.method public writeShort(I)Lokio/BufferedSink;
.locals 1
iget-boolean v0, p0, Le0/q;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
iget-object v0, p0, Le0/q;->d:Le0/e;
invoke-virtual {v0, p1}, Le0/e;->M(I)Le0/e;
invoke-virtual {p0}, Le0/q;->S()Lokio/BufferedSink;
return-object p0
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "closed"
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
throw p1
.end method
.method public z()Lokio/BufferedSink;
.locals 6
iget-boolean v0, p0, Le0/q;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_1
iget-object v0, p0, Le0/q;->d:Le0/e;
iget-wide v1, v0, Le0/e;->e:J
const-wide/16 v3, 0x0
cmp-long v5, v1, v3
if-lez v5, :cond_0
iget-object v3, p0, Le0/q;->f:Le0/v;
invoke-interface {v3, v0, v1, v2}, Le0/v;->write(Le0/e;J)V
:cond_0
return-object p0
:cond_1
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method

View file

@ -0,0 +1,242 @@
.class public final Le0/r$a;
.super Ljava/io/InputStream;
.source "RealBufferedSource.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Le0/r;->M0()Ljava/io/InputStream;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
# instance fields
.field public final synthetic d:Le0/r;
# direct methods
.method public constructor <init>(Le0/r;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Le0/r$a;->d:Le0/r;
invoke-direct {p0}, Ljava/io/InputStream;-><init>()V
return-void
.end method
# virtual methods
.method public available()I
.locals 4
iget-object v0, p0, Le0/r$a;->d:Le0/r;
iget-boolean v1, v0, Le0/r;->e:Z
if-nez v1, :cond_0
iget-object v0, v0, Le0/r;->d:Le0/e;
iget-wide v0, v0, Le0/e;->e:J
const v2, 0x7fffffff
int-to-long v2, v2
invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->min(JJ)J
move-result-wide v0
long-to-int v1, v0
return v1
:cond_0
new-instance v0, Ljava/io/IOException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public close()V
.locals 1
iget-object v0, p0, Le0/r$a;->d:Le0/r;
invoke-virtual {v0}, Le0/r;->close()V
return-void
.end method
.method public read()I
.locals 7
iget-object v0, p0, Le0/r$a;->d:Le0/r;
iget-boolean v1, v0, Le0/r;->e:Z
if-nez v1, :cond_1
iget-object v1, v0, Le0/r;->d:Le0/e;
iget-wide v2, v1, Le0/e;->e:J
const-wide/16 v4, 0x0
cmp-long v6, v2, v4
if-nez v6, :cond_0
iget-object v0, v0, Le0/r;->f:Le0/x;
const/16 v2, 0x2000
int-to-long v2, v2
invoke-interface {v0, v1, v2, v3}, Le0/x;->x0(Le0/e;J)J
move-result-wide v0
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-nez v4, :cond_0
const/4 v0, -0x1
return v0
:cond_0
iget-object v0, p0, Le0/r$a;->d:Le0/r;
iget-object v0, v0, Le0/r;->d:Le0/e;
invoke-virtual {v0}, Le0/e;->readByte()B
move-result v0
and-int/lit16 v0, v0, 0xff
return v0
:cond_1
new-instance v0, Ljava/io/IOException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public read([BII)I
.locals 7
const-string v0, "data"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Le0/r$a;->d:Le0/r;
iget-boolean v0, v0, Le0/r;->e:Z
if-nez v0, :cond_1
array-length v0, p1
int-to-long v1, v0
int-to-long v3, p2
int-to-long v5, p3
invoke-static/range {v1 .. v6}, Lz/i/s;->n(JJJ)V
iget-object v0, p0, Le0/r$a;->d:Le0/r;
iget-object v1, v0, Le0/r;->d:Le0/e;
iget-wide v2, v1, Le0/e;->e:J
const-wide/16 v4, 0x0
cmp-long v6, v2, v4
if-nez v6, :cond_0
iget-object v0, v0, Le0/r;->f:Le0/x;
const/16 v2, 0x2000
int-to-long v2, v2
invoke-interface {v0, v1, v2, v3}, Le0/x;->x0(Le0/e;J)J
move-result-wide v0
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-nez v4, :cond_0
const/4 p1, -0x1
return p1
:cond_0
iget-object v0, p0, Le0/r$a;->d:Le0/r;
iget-object v0, v0, Le0/r;->d:Le0/e;
invoke-virtual {v0, p1, p2, p3}, Le0/e;->read([BII)I
move-result p1
return p1
:cond_1
new-instance p1, Ljava/io/IOException;
const-string p2, "closed"
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public toString()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-object v1, p0, Le0/r$a;->d:Le0/r;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ".inputStream()"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,281 @@
.class public final Le0/s;
.super Ljava/lang/Object;
.source "Segment.kt"
# instance fields
.field public final a:[B
.field public b:I
.field public c:I
.field public d:Z
.field public e:Z
.field public f:Le0/s;
.field public g:Le0/s;
# direct methods
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/16 v0, 0x2000
new-array v0, v0, [B
iput-object v0, p0, Le0/s;->a:[B
const/4 v0, 0x1
iput-boolean v0, p0, Le0/s;->e:Z
const/4 v0, 0x0
iput-boolean v0, p0, Le0/s;->d:Z
return-void
.end method
.method public constructor <init>([BIIZZ)V
.locals 1
const-string v0, "data"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Le0/s;->a:[B
iput p2, p0, Le0/s;->b:I
iput p3, p0, Le0/s;->c:I
iput-boolean p4, p0, Le0/s;->d:Z
iput-boolean p5, p0, Le0/s;->e:Z
return-void
.end method
# virtual methods
.method public final a()Le0/s;
.locals 4
iget-object v0, p0, Le0/s;->f:Le0/s;
const/4 v1, 0x0
if-eq v0, p0, :cond_0
goto :goto_0
:cond_0
move-object v0, v1
:goto_0
iget-object v2, p0, Le0/s;->g:Le0/s;
if-eqz v2, :cond_2
iget-object v3, p0, Le0/s;->f:Le0/s;
iput-object v3, v2, Le0/s;->f:Le0/s;
iget-object v3, p0, Le0/s;->f:Le0/s;
if-eqz v3, :cond_1
iput-object v2, v3, Le0/s;->g:Le0/s;
iput-object v1, p0, Le0/s;->f:Le0/s;
iput-object v1, p0, Le0/s;->g:Le0/s;
return-object v0
:cond_1
invoke-static {}, Lz/n/c/j;->throwNpe()V
throw v1
:cond_2
invoke-static {}, Lz/n/c/j;->throwNpe()V
throw v1
.end method
.method public final b(Le0/s;)Le0/s;
.locals 1
const-string v0, "segment"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iput-object p0, p1, Le0/s;->g:Le0/s;
iget-object v0, p0, Le0/s;->f:Le0/s;
iput-object v0, p1, Le0/s;->f:Le0/s;
iget-object v0, p0, Le0/s;->f:Le0/s;
if-eqz v0, :cond_0
iput-object p1, v0, Le0/s;->g:Le0/s;
iput-object p1, p0, Le0/s;->f:Le0/s;
return-object p1
:cond_0
invoke-static {}, Lz/n/c/j;->throwNpe()V
const/4 p1, 0x0
throw p1
.end method
.method public final c()Le0/s;
.locals 7
const/4 v0, 0x1
iput-boolean v0, p0, Le0/s;->d:Z
new-instance v0, Le0/s;
iget-object v2, p0, Le0/s;->a:[B
iget v3, p0, Le0/s;->b:I
iget v4, p0, Le0/s;->c:I
const/4 v5, 0x1
const/4 v6, 0x0
move-object v1, v0
invoke-direct/range {v1 .. v6}, Le0/s;-><init>([BIIZZ)V
return-object v0
.end method
.method public final d(Le0/s;I)V
.locals 7
const-string v0, "sink"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-boolean v0, p1, Le0/s;->e:Z
if-eqz v0, :cond_3
iget v5, p1, Le0/s;->c:I
add-int v0, v5, p2
const/16 v1, 0x2000
if-le v0, v1, :cond_2
iget-boolean v0, p1, Le0/s;->d:Z
if-nez v0, :cond_1
add-int v0, v5, p2
iget v4, p1, Le0/s;->b:I
sub-int/2addr v0, v4
if-gt v0, v1, :cond_0
iget-object v2, p1, Le0/s;->a:[B
const/4 v3, 0x0
const/4 v6, 0x2
move-object v1, v2
invoke-static/range {v1 .. v6}, Lz/i/f;->copyInto$default([B[BIIII)[B
iget v0, p1, Le0/s;->c:I
iget v1, p1, Le0/s;->b:I
sub-int/2addr v0, v1
iput v0, p1, Le0/s;->c:I
const/4 v0, 0x0
iput v0, p1, Le0/s;->b:I
goto :goto_0
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-direct {p1}, Ljava/lang/IllegalArgumentException;-><init>()V
throw p1
:cond_1
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-direct {p1}, Ljava/lang/IllegalArgumentException;-><init>()V
throw p1
:cond_2
:goto_0
iget-object v0, p0, Le0/s;->a:[B
iget-object v1, p1, Le0/s;->a:[B
iget v2, p1, Le0/s;->c:I
iget v3, p0, Le0/s;->b:I
add-int v4, v3, p2
invoke-static {v0, v1, v2, v3, v4}, Lz/i/f;->copyInto([B[BIII)[B
iget v0, p1, Le0/s;->c:I
add-int/2addr v0, p2
iput v0, p1, Le0/s;->c:I
iget p1, p0, Le0/s;->b:I
add-int/2addr p1, p2
iput p1, p0, Le0/s;->b:I
return-void
:cond_3
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "only owner can write"
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method

View file

@ -0,0 +1,303 @@
.class public final Le0/t;
.super Ljava/lang/Object;
.source "SegmentPool.kt"
# static fields
.field public static final a:Le0/s;
.field public static final b:I
.field public static final c:[Ljava/util/concurrent/atomic/AtomicReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"[",
"Ljava/util/concurrent/atomic/AtomicReference<",
"Le0/s;",
">;"
}
.end annotation
.end field
.field public static final d:Le0/t;
# direct methods
.method public static constructor <clinit>()V
.locals 8
new-instance v0, Le0/t;
invoke-direct {v0}, Le0/t;-><init>()V
sput-object v0, Le0/t;->d:Le0/t;
new-instance v0, Le0/s;
const/4 v7, 0x0
new-array v2, v7, [B
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
move-object v1, v0
invoke-direct/range {v1 .. v6}, Le0/s;-><init>([BIIZZ)V
sput-object v0, Le0/t;->a:Le0/s;
invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Runtime;->availableProcessors()I
move-result v0
mul-int/lit8 v0, v0, 0x2
add-int/lit8 v0, v0, -0x1
invoke-static {v0}, Ljava/lang/Integer;->highestOneBit(I)I
move-result v0
sput v0, Le0/t;->b:I
new-array v1, v0, [Ljava/util/concurrent/atomic/AtomicReference;
:goto_0
if-ge v7, v0, :cond_0
new-instance v2, Ljava/util/concurrent/atomic/AtomicReference;
invoke-direct {v2}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
aput-object v2, v1, v7
add-int/lit8 v7, v7, 0x1
goto :goto_0
:cond_0
sput-object v1, Le0/t;->c:[Ljava/util/concurrent/atomic/AtomicReference;
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static final a(Le0/s;)V
.locals 8
const-string v0, "segment"
invoke-static {p0, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Le0/s;->f:Le0/s;
const/4 v1, 0x0
if-nez v0, :cond_0
iget-object v0, p0, Le0/s;->g:Le0/s;
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
if-eqz v0, :cond_6
iget-boolean v0, p0, Le0/s;->d:Z
if-eqz v0, :cond_1
return-void
:cond_1
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v0
const-string v2, "Thread.currentThread()"
invoke-static {v0, v2}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Ljava/lang/Thread;->getId()J
move-result-wide v2
sget v0, Le0/t;->b:I
int-to-long v4, v0
const-wide/16 v6, 0x1
sub-long/2addr v4, v6
and-long/2addr v2, v4
long-to-int v0, v2
sget-object v2, Le0/t;->c:[Ljava/util/concurrent/atomic/AtomicReference;
aget-object v0, v2, v0
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v2
check-cast v2, Le0/s;
sget-object v3, Le0/t;->a:Le0/s;
if-ne v2, v3, :cond_2
return-void
:cond_2
if-eqz v2, :cond_3
iget v3, v2, Le0/s;->c:I
goto :goto_1
:cond_3
const/4 v3, 0x0
:goto_1
const/high16 v4, 0x10000
if-lt v3, v4, :cond_4
return-void
:cond_4
iput-object v2, p0, Le0/s;->f:Le0/s;
iput v1, p0, Le0/s;->b:I
add-int/lit16 v3, v3, 0x2000
iput v3, p0, Le0/s;->c:I
invoke-virtual {v0, v2, p0}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_5
const/4 v0, 0x0
iput-object v0, p0, Le0/s;->f:Le0/s;
:cond_5
return-void
:cond_6
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string v0, "Failed requirement."
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static final b()Le0/s;
.locals 6
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v0
const-string v1, "Thread.currentThread()"
invoke-static {v0, v1}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Ljava/lang/Thread;->getId()J
move-result-wide v0
sget v2, Le0/t;->b:I
int-to-long v2, v2
const-wide/16 v4, 0x1
sub-long/2addr v2, v4
and-long/2addr v0, v2
long-to-int v1, v0
sget-object v0, Le0/t;->c:[Ljava/util/concurrent/atomic/AtomicReference;
aget-object v0, v0, v1
sget-object v1, Le0/t;->a:Le0/s;
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Le0/s;
sget-object v2, Le0/t;->a:Le0/s;
if-ne v1, v2, :cond_0
new-instance v0, Le0/s;
invoke-direct {v0}, Le0/s;-><init>()V
return-object v0
:cond_0
const/4 v2, 0x0
if-nez v1, :cond_1
invoke-virtual {v0, v2}, Ljava/util/concurrent/atomic/AtomicReference;->set(Ljava/lang/Object;)V
new-instance v0, Le0/s;
invoke-direct {v0}, Le0/s;-><init>()V
return-object v0
:cond_1
iget-object v3, v1, Le0/s;->f:Le0/s;
invoke-virtual {v0, v3}, Ljava/util/concurrent/atomic/AtomicReference;->set(Ljava/lang/Object;)V
iput-object v2, v1, Le0/s;->f:Le0/s;
const/4 v0, 0x0
iput v0, v1, Le0/s;->c:I
return-object v1
.end method

View file

@ -0,0 +1,808 @@
.class public final Le0/u;
.super Lokio/ByteString;
.source "SegmentedByteString.kt"
# instance fields
.field public final transient h:[[B
.field public final transient i:[I
# direct methods
.method public constructor <init>([[B[I)V
.locals 1
const-string v0, "segments"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "directory"
invoke-static {p2, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v0, Lokio/ByteString;->f:Lokio/ByteString;
iget-object v0, v0, Lokio/ByteString;->data:[B
invoke-direct {p0, v0}, Lokio/ByteString;-><init>([B)V
iput-object p1, p0, Le0/u;->h:[[B
iput-object p2, p0, Le0/u;->i:[I
return-void
.end method
.method private final writeReplace()Ljava/lang/Object;
.locals 1
invoke-virtual {p0}, Le0/u;->t()Lokio/ByteString;
move-result-object v0
return-object v0
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 4
const/4 v0, 0x1
const/4 v1, 0x0
if-ne p1, p0, :cond_0
goto :goto_0
:cond_0
instance-of v2, p1, Lokio/ByteString;
if-eqz v2, :cond_1
check-cast p1, Lokio/ByteString;
invoke-virtual {p1}, Lokio/ByteString;->i()I
move-result v2
invoke-virtual {p0}, Lokio/ByteString;->i()I
move-result v3
if-ne v2, v3, :cond_1
invoke-virtual {p0}, Lokio/ByteString;->i()I
move-result v2
invoke-virtual {p0, v1, p1, v1, v2}, Le0/u;->m(ILokio/ByteString;II)Z
move-result p1
if-eqz p1, :cond_1
goto :goto_0
:cond_1
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public f()Ljava/lang/String;
.locals 1
invoke-virtual {p0}, Le0/u;->t()Lokio/ByteString;
move-result-object v0
invoke-virtual {v0}, Lokio/ByteString;->f()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public g(Ljava/lang/String;)Lokio/ByteString;
.locals 6
const-string v0, "algorithm"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p1}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;
move-result-object p1
iget-object v0, p0, Le0/u;->h:[[B
array-length v0, v0
const/4 v1, 0x0
const/4 v2, 0x0
:goto_0
if-ge v1, v0, :cond_0
iget-object v3, p0, Le0/u;->i:[I
add-int v4, v0, v1
aget v4, v3, v4
aget v3, v3, v1
iget-object v5, p0, Le0/u;->h:[[B
aget-object v5, v5, v1
sub-int v2, v3, v2
invoke-virtual {p1, v5, v4, v2}, Ljava/security/MessageDigest;->update([BII)V
add-int/lit8 v1, v1, 0x1
move v2, v3
goto :goto_0
:cond_0
new-instance v0, Lokio/ByteString;
invoke-virtual {p1}, Ljava/security/MessageDigest;->digest()[B
move-result-object p1
const-string v1, "digest.digest()"
invoke-static {p1, v1}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {v0, p1}, Lokio/ByteString;-><init>([B)V
return-object v0
.end method
.method public hashCode()I
.locals 8
iget v0, p0, Lokio/ByteString;->d:I
if-eqz v0, :cond_0
goto :goto_2
:cond_0
iget-object v0, p0, Le0/u;->h:[[B
array-length v0, v0
const/4 v1, 0x0
const/4 v2, 0x1
const/4 v3, 0x0
:goto_0
if-ge v1, v0, :cond_2
iget-object v4, p0, Le0/u;->i:[I
add-int v5, v0, v1
aget v5, v4, v5
aget v4, v4, v1
iget-object v6, p0, Le0/u;->h:[[B
aget-object v6, v6, v1
sub-int v3, v4, v3
add-int/2addr v3, v5
:goto_1
if-ge v5, v3, :cond_1
mul-int/lit8 v2, v2, 0x1f
aget-byte v7, v6, v5
add-int/2addr v2, v7
add-int/lit8 v5, v5, 0x1
goto :goto_1
:cond_1
add-int/lit8 v1, v1, 0x1
move v3, v4
goto :goto_0
:cond_2
iput v2, p0, Lokio/ByteString;->d:I
move v0, v2
:goto_2
return v0
.end method
.method public i()I
.locals 2
iget-object v0, p0, Le0/u;->i:[I
iget-object v1, p0, Le0/u;->h:[[B
array-length v1, v1
add-int/lit8 v1, v1, -0x1
aget v0, v0, v1
return v0
.end method
.method public j()Ljava/lang/String;
.locals 1
invoke-virtual {p0}, Le0/u;->t()Lokio/ByteString;
move-result-object v0
invoke-virtual {v0}, Lokio/ByteString;->j()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public k()[B
.locals 1
invoke-virtual {p0}, Le0/u;->s()[B
move-result-object v0
return-object v0
.end method
.method public l(I)B
.locals 7
iget-object v0, p0, Le0/u;->i:[I
iget-object v1, p0, Le0/u;->h:[[B
array-length v1, v1
add-int/lit8 v1, v1, -0x1
aget v0, v0, v1
int-to-long v1, v0
int-to-long v3, p1
const-wide/16 v5, 0x1
invoke-static/range {v1 .. v6}, Lz/i/s;->n(JJJ)V
invoke-static {p0, p1}, Lz/i/s;->N(Le0/u;I)I
move-result v0
if-nez v0, :cond_0
const/4 v1, 0x0
goto :goto_0
:cond_0
iget-object v1, p0, Le0/u;->i:[I
add-int/lit8 v2, v0, -0x1
aget v1, v1, v2
:goto_0
iget-object v2, p0, Le0/u;->i:[I
iget-object v3, p0, Le0/u;->h:[[B
array-length v4, v3
add-int/2addr v4, v0
aget v2, v2, v4
aget-object v0, v3, v0
sub-int/2addr p1, v1
add-int/2addr p1, v2
aget-byte p1, v0, p1
return p1
.end method
.method public m(ILokio/ByteString;II)Z
.locals 6
const-string v0, "other"
invoke-static {p2, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
if-ltz p1, :cond_4
invoke-virtual {p0}, Lokio/ByteString;->i()I
move-result v1
sub-int/2addr v1, p4
if-le p1, v1, :cond_0
goto :goto_2
:cond_0
add-int/2addr p4, p1
invoke-static {p0, p1}, Lz/i/s;->N(Le0/u;I)I
move-result v1
:goto_0
if-ge p1, p4, :cond_3
if-nez v1, :cond_1
const/4 v2, 0x0
goto :goto_1
:cond_1
iget-object v2, p0, Le0/u;->i:[I
add-int/lit8 v3, v1, -0x1
aget v2, v2, v3
:goto_1
iget-object v3, p0, Le0/u;->i:[I
aget v4, v3, v1
sub-int/2addr v4, v2
iget-object v5, p0, Le0/u;->h:[[B
array-length v5, v5
add-int/2addr v5, v1
aget v3, v3, v5
add-int/2addr v4, v2
invoke-static {p4, v4}, Ljava/lang/Math;->min(II)I
move-result v4
sub-int/2addr v4, p1
sub-int v2, p1, v2
add-int/2addr v2, v3
iget-object v3, p0, Le0/u;->h:[[B
aget-object v3, v3, v1
invoke-virtual {p2, p3, v3, v2, v4}, Lokio/ByteString;->n(I[BII)Z
move-result v2
if-nez v2, :cond_2
goto :goto_2
:cond_2
add-int/2addr p3, v4
add-int/2addr p1, v4
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_3
const/4 v0, 0x1
:cond_4
:goto_2
return v0
.end method
.method public n(I[BII)Z
.locals 6
const-string v0, "other"
invoke-static {p2, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
if-ltz p1, :cond_4
invoke-virtual {p0}, Lokio/ByteString;->i()I
move-result v1
sub-int/2addr v1, p4
if-gt p1, v1, :cond_4
if-ltz p3, :cond_4
array-length v1, p2
sub-int/2addr v1, p4
if-le p3, v1, :cond_0
goto :goto_2
:cond_0
add-int/2addr p4, p1
invoke-static {p0, p1}, Lz/i/s;->N(Le0/u;I)I
move-result v1
:goto_0
if-ge p1, p4, :cond_3
if-nez v1, :cond_1
const/4 v2, 0x0
goto :goto_1
:cond_1
iget-object v2, p0, Le0/u;->i:[I
add-int/lit8 v3, v1, -0x1
aget v2, v2, v3
:goto_1
iget-object v3, p0, Le0/u;->i:[I
aget v4, v3, v1
sub-int/2addr v4, v2
iget-object v5, p0, Le0/u;->h:[[B
array-length v5, v5
add-int/2addr v5, v1
aget v3, v3, v5
add-int/2addr v4, v2
invoke-static {p4, v4}, Ljava/lang/Math;->min(II)I
move-result v4
sub-int/2addr v4, p1
sub-int v2, p1, v2
add-int/2addr v2, v3
iget-object v3, p0, Le0/u;->h:[[B
aget-object v3, v3, v1
invoke-static {v3, v2, p2, p3, v4}, Lz/i/s;->e([BI[BII)Z
move-result v2
if-nez v2, :cond_2
goto :goto_2
:cond_2
add-int/2addr p3, v4
add-int/2addr p1, v4
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_3
const/4 v0, 0x1
:cond_4
:goto_2
return v0
.end method
.method public o()Lokio/ByteString;
.locals 1
invoke-virtual {p0}, Le0/u;->t()Lokio/ByteString;
move-result-object v0
invoke-virtual {v0}, Lokio/ByteString;->o()Lokio/ByteString;
move-result-object v0
return-object v0
.end method
.method public q(Ljava/io/OutputStream;)V
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "out"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Le0/u;->h:[[B
array-length v0, v0
const/4 v1, 0x0
const/4 v2, 0x0
:goto_0
if-ge v1, v0, :cond_0
iget-object v3, p0, Le0/u;->i:[I
add-int v4, v0, v1
aget v4, v3, v4
aget v3, v3, v1
iget-object v5, p0, Le0/u;->h:[[B
aget-object v5, v5, v1
sub-int v2, v3, v2
invoke-virtual {p1, v5, v4, v2}, Ljava/io/OutputStream;->write([BII)V
add-int/lit8 v1, v1, 0x1
move v2, v3
goto :goto_0
:cond_0
return-void
.end method
.method public r(Le0/e;II)V
.locals 10
const-string v0, "buffer"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
add-int/2addr p3, p2
invoke-static {p0, p2}, Lz/i/s;->N(Le0/u;I)I
move-result v0
:goto_0
if-ge p2, p3, :cond_3
if-nez v0, :cond_0
const/4 v1, 0x0
goto :goto_1
:cond_0
iget-object v1, p0, Le0/u;->i:[I
add-int/lit8 v2, v0, -0x1
aget v1, v1, v2
:goto_1
iget-object v2, p0, Le0/u;->i:[I
aget v3, v2, v0
sub-int/2addr v3, v1
iget-object v4, p0, Le0/u;->h:[[B
array-length v4, v4
add-int/2addr v4, v0
aget v2, v2, v4
add-int/2addr v3, v1
invoke-static {p3, v3}, Ljava/lang/Math;->min(II)I
move-result v3
sub-int/2addr v3, p2
sub-int v1, p2, v1
add-int v6, v1, v2
iget-object v1, p0, Le0/u;->h:[[B
aget-object v5, v1, v0
new-instance v1, Le0/s;
add-int v7, v6, v3
const/4 v8, 0x1
const/4 v9, 0x0
move-object v4, v1
invoke-direct/range {v4 .. v9}, Le0/s;-><init>([BIIZZ)V
iget-object v2, p1, Le0/e;->d:Le0/s;
if-nez v2, :cond_1
iput-object v1, v1, Le0/s;->g:Le0/s;
iput-object v1, v1, Le0/s;->f:Le0/s;
iput-object v1, p1, Le0/e;->d:Le0/s;
goto :goto_2
:cond_1
iget-object v2, v2, Le0/s;->g:Le0/s;
if-eqz v2, :cond_2
invoke-virtual {v2, v1}, Le0/s;->b(Le0/s;)Le0/s;
:goto_2
add-int/2addr p2, v3
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_2
invoke-static {}, Lz/n/c/j;->throwNpe()V
const/4 p1, 0x0
throw p1
:cond_3
iget-wide p2, p1, Le0/e;->e:J
invoke-virtual {p0}, Lokio/ByteString;->i()I
move-result v0
int-to-long v0, v0
add-long/2addr p2, v0
iput-wide p2, p1, Le0/e;->e:J
return-void
.end method
.method public s()[B
.locals 9
invoke-virtual {p0}, Lokio/ByteString;->i()I
move-result v0
new-array v0, v0, [B
iget-object v1, p0, Le0/u;->h:[[B
array-length v1, v1
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x0
:goto_0
if-ge v2, v1, :cond_0
iget-object v5, p0, Le0/u;->i:[I
add-int v6, v1, v2
aget v6, v5, v6
aget v5, v5, v2
iget-object v7, p0, Le0/u;->h:[[B
aget-object v7, v7, v2
sub-int v3, v5, v3
add-int v8, v6, v3
invoke-static {v7, v0, v4, v6, v8}, Lz/i/f;->copyInto([B[BIII)[B
add-int/2addr v4, v3
add-int/lit8 v2, v2, 0x1
move v3, v5
goto :goto_0
:cond_0
return-object v0
.end method
.method public final t()Lokio/ByteString;
.locals 2
new-instance v0, Lokio/ByteString;
invoke-virtual {p0}, Le0/u;->s()[B
move-result-object v1
invoke-direct {v0, v1}, Lokio/ByteString;-><init>([B)V
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 1
invoke-virtual {p0}, Le0/u;->t()Lokio/ByteString;
move-result-object v0
invoke-virtual {v0}, Lokio/ByteString;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method

View file

@ -0,0 +1,36 @@
.class public interface abstract Le0/v;
.super Ljava/lang/Object;
.source "Sink.kt"
# interfaces
.implements Ljava/io/Closeable;
.implements Ljava/io/Flushable;
# virtual methods
.method public abstract close()V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract flush()V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract timeout()Le0/y;
.end method
.method public abstract write(Le0/e;J)V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method

View file

@ -0,0 +1,124 @@
.class public final Le0/w;
.super Le0/b;
.source "JvmOkio.kt"
# instance fields
.field public final l:Ljava/util/logging/Logger;
.field public final m:Ljava/net/Socket;
# direct methods
.method public constructor <init>(Ljava/net/Socket;)V
.locals 1
const-string v0, "socket"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Le0/b;-><init>()V
iput-object p1, p0, Le0/w;->m:Ljava/net/Socket;
const-string p1, "okio.Okio"
invoke-static {p1}, Ljava/util/logging/Logger;->getLogger(Ljava/lang/String;)Ljava/util/logging/Logger;
move-result-object p1
iput-object p1, p0, Le0/w;->l:Ljava/util/logging/Logger;
return-void
.end method
# virtual methods
.method public k(Ljava/io/IOException;)Ljava/io/IOException;
.locals 2
new-instance v0, Ljava/net/SocketTimeoutException;
const-string v1, "timeout"
invoke-direct {v0, v1}, Ljava/net/SocketTimeoutException;-><init>(Ljava/lang/String;)V
if-eqz p1, :cond_0
invoke-virtual {v0, p1}, Ljava/net/SocketTimeoutException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
:cond_0
return-object v0
.end method
.method public l()V
.locals 5
const-string v0, "Failed to close timed out socket "
:try_start_0
iget-object v1, p0, Le0/w;->m:Ljava/net/Socket;
invoke-virtual {v1}, Ljava/net/Socket;->close()V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/AssertionError; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v1
invoke-static {v1}, Lz/i/s;->x(Ljava/lang/AssertionError;)Z
move-result v2
if-eqz v2, :cond_0
iget-object v2, p0, Le0/w;->l:Ljava/util/logging/Logger;
sget-object v3, Ljava/util/logging/Level;->WARNING:Ljava/util/logging/Level;
invoke-static {v0}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v4, p0, Le0/w;->m:Ljava/net/Socket;
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-virtual {v2, v3, v0, v1}, Ljava/util/logging/Logger;->log(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
goto :goto_0
:cond_0
throw v1
:catch_1
move-exception v1
iget-object v2, p0, Le0/w;->l:Ljava/util/logging/Logger;
sget-object v3, Ljava/util/logging/Level;->WARNING:Ljava/util/logging/Level;
invoke-static {v0}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v4, p0, Le0/w;->m:Ljava/net/Socket;
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-virtual {v2, v3, v0, v1}, Ljava/util/logging/Logger;->log(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
:goto_0
return-void
.end method

View file

@ -0,0 +1,27 @@
.class public interface abstract Le0/x;
.super Ljava/lang/Object;
.source "Source.kt"
# interfaces
.implements Ljava/io/Closeable;
# virtual methods
.method public abstract close()V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract timeout()Le0/y;
.end method
.method public abstract x0(Le0/e;J)J
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method

View file

@ -0,0 +1,48 @@
.class public final Le0/y$a;
.super Le0/y;
.source "Timeout.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Le0/y;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Le0/y;-><init>()V
return-void
.end method
# virtual methods
.method public d(J)Le0/y;
.locals 0
return-object p0
.end method
.method public f()V
.locals 0
return-void
.end method
.method public g(JLjava/util/concurrent/TimeUnit;)Le0/y;
.locals 0
const-string p1, "unit"
invoke-static {p3, p1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method

View file

@ -0,0 +1,224 @@
.class public Le0/y;
.super Ljava/lang/Object;
.source "Timeout.kt"
# static fields
.field public static final d:Le0/y;
# instance fields
.field public a:Z
.field public b:J
.field public c:J
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Le0/y$a;
invoke-direct {v0}, Le0/y$a;-><init>()V
sput-object v0, Le0/y;->d:Le0/y;
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public a()Le0/y;
.locals 1
const/4 v0, 0x0
iput-boolean v0, p0, Le0/y;->a:Z
return-object p0
.end method
.method public b()Le0/y;
.locals 2
const-wide/16 v0, 0x0
iput-wide v0, p0, Le0/y;->c:J
return-object p0
.end method
.method public c()J
.locals 2
iget-boolean v0, p0, Le0/y;->a:Z
if-eqz v0, :cond_0
iget-wide v0, p0, Le0/y;->b:J
return-wide v0
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "No deadline"
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public d(J)Le0/y;
.locals 1
const/4 v0, 0x1
iput-boolean v0, p0, Le0/y;->a:Z
iput-wide p1, p0, Le0/y;->b:J
return-object p0
.end method
.method public e()Z
.locals 1
iget-boolean v0, p0, Le0/y;->a:Z
return v0
.end method
.method public f()V
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-static {}, Ljava/lang/Thread;->interrupted()Z
move-result v0
if-nez v0, :cond_2
iget-boolean v0, p0, Le0/y;->a:Z
if-eqz v0, :cond_1
iget-wide v0, p0, Le0/y;->b:J
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v2
sub-long/2addr v0, v2
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-lez v4, :cond_0
goto :goto_0
:cond_0
new-instance v0, Ljava/io/InterruptedIOException;
const-string v1, "deadline reached"
invoke-direct {v0, v1}, Ljava/io/InterruptedIOException;-><init>(Ljava/lang/String;)V
throw v0
:cond_1
:goto_0
return-void
:cond_2
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V
new-instance v0, Ljava/io/InterruptedIOException;
const-string v1, "interrupted"
invoke-direct {v0, v1}, Ljava/io/InterruptedIOException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public g(JLjava/util/concurrent/TimeUnit;)Le0/y;
.locals 3
const-string v0, "unit"
invoke-static {p3, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-wide/16 v0, 0x0
cmp-long v2, p1, v0
if-ltz v2, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
if-eqz v0, :cond_1
invoke-virtual {p3, p1, p2}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
move-result-wide p1
iput-wide p1, p0, Le0/y;->c:J
return-object p0
:cond_1
const-string p3, "timeout < 0: "
invoke-static {p3, p1, p2}, Lf/e/c/a/a;->n(Ljava/lang/String;J)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
throw p2
.end method
.method public h()J
.locals 2
iget-wide v0, p0, Le0/y;->c:J
return-wide v0
.end method

View file

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

View file

@ -0,0 +1,116 @@
.class public final Le0/z/b;
.super Ljava/lang/Object;
.source "ByteString.kt"
# static fields
.field public static final a:[C
# direct methods
.method public static constructor <clinit>()V
.locals 1
const/16 v0, 0x10
new-array v0, v0, [C
fill-array-data v0, :array_0
sput-object v0, Le0/z/b;->a:[C
return-void
:array_0
.array-data 2
0x30s
0x31s
0x32s
0x33s
0x34s
0x35s
0x36s
0x37s
0x38s
0x39s
0x61s
0x62s
0x63s
0x64s
0x65s
0x66s
.end array-data
.end method
.method public static final a(C)I
.locals 3
const/16 v0, 0x30
if-le v0, p0, :cond_0
goto :goto_0
:cond_0
const/16 v1, 0x39
if-lt v1, p0, :cond_1
sub-int/2addr p0, v0
goto :goto_3
:cond_1
:goto_0
const/16 v0, 0x66
const/16 v1, 0x61
if-le v1, p0, :cond_2
goto :goto_1
:cond_2
if-lt v0, p0, :cond_3
goto :goto_2
:cond_3
:goto_1
const/16 v0, 0x46
const/16 v1, 0x41
if-gt v1, p0, :cond_4
if-lt v0, p0, :cond_4
:goto_2
sub-int/2addr p0, v1
add-int/lit8 p0, p0, 0xa
:goto_3
return p0
:cond_4
new-instance v0, Ljava/lang/IllegalArgumentException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected hex digit: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method