mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 09:02:34 -06:00
133 lines
3 KiB
Smali
133 lines
3 KiB
Smali
|
.class public final Lokio/Throttler$sink$1;
|
||
|
.super Lokio/ForwardingSink;
|
||
|
.source "Throttler.kt"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
value = Lokio/Throttler;->sink(Lokio/Sink;)Lokio/Sink;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x19
|
||
|
name = null
|
||
|
.end annotation
|
||
|
|
||
|
.annotation runtime Lkotlin/Metadata;
|
||
|
bv = {
|
||
|
0x1,
|
||
|
0x0,
|
||
|
0x3
|
||
|
}
|
||
|
d1 = {
|
||
|
"\u0000\u001d\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0000*\u0001\u0000\u0008\n\u0018\u00002\u00020\u0001J\u0018\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u0007H\u0016\u00a8\u0006\u0008"
|
||
|
}
|
||
|
d2 = {
|
||
|
"okio/Throttler$sink$1",
|
||
|
"Lokio/ForwardingSink;",
|
||
|
"write",
|
||
|
"",
|
||
|
"source",
|
||
|
"Lokio/Buffer;",
|
||
|
"byteCount",
|
||
|
"",
|
||
|
"okio"
|
||
|
}
|
||
|
k = 0x1
|
||
|
mv = {
|
||
|
0x1,
|
||
|
0x4,
|
||
|
0x0
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field final synthetic $sink:Lokio/Sink;
|
||
|
|
||
|
.field final synthetic this$0:Lokio/Throttler;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Lokio/Throttler;Lokio/Sink;Lokio/Sink;)V
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lokio/Sink;",
|
||
|
"Lokio/Sink;",
|
||
|
")V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
iput-object p1, p0, Lokio/Throttler$sink$1;->this$0:Lokio/Throttler;
|
||
|
|
||
|
iput-object p2, p0, Lokio/Throttler$sink$1;->$sink:Lokio/Sink;
|
||
|
|
||
|
.line 151
|
||
|
invoke-direct {p0, p3}, Lokio/ForwardingSink;-><init>(Lokio/Sink;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public write(Lokio/Buffer;J)V
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const-string v0, "source"
|
||
|
|
||
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
:goto_0
|
||
|
const-wide/16 v0, 0x0
|
||
|
|
||
|
cmp-long v0, p2, v0
|
||
|
|
||
|
if-lez v0, :cond_0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v0, p0, Lokio/Throttler$sink$1;->this$0:Lokio/Throttler;
|
||
|
|
||
|
.line 157
|
||
|
invoke-virtual {v0, p2, p3}, Lokio/Throttler;->take$okio(J)J
|
||
|
|
||
|
move-result-wide v0
|
||
|
|
||
|
.line 158
|
||
|
invoke-super {p0, p1, v0, v1}, Lokio/ForwardingSink;->write(Lokio/Buffer;J)V
|
||
|
:try_end_0
|
||
|
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
|
||
|
|
||
|
sub-long/2addr p2, v0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 162
|
||
|
:catch_0
|
||
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/Thread;->interrupt()V
|
||
|
|
||
|
.line 163
|
||
|
new-instance p0, Ljava/io/InterruptedIOException;
|
||
|
|
||
|
const-string p1, "interrupted"
|
||
|
|
||
|
invoke-direct {p0, p1}, Ljava/io/InterruptedIOException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
check-cast p0, Ljava/lang/Throwable;
|
||
|
|
||
|
throw p0
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|