Rabbit-R1/switch port/smali/smali_classes3/okio/AsyncTimeout$sink$1.smali
2024-05-21 17:08:36 -04:00

448 lines
9.6 KiB
Smali

.class public final Lokio/AsyncTimeout$sink$1;
.super Ljava/lang/Object;
.source "AsyncTimeout.kt"
# interfaces
.implements Lokio/Sink;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lokio/AsyncTimeout;->sink(Lokio/Sink;)Lokio/Sink;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nAsyncTimeout.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AsyncTimeout.kt\nokio/AsyncTimeout$sink$1\n+ 2 AsyncTimeout.kt\nokio/AsyncTimeout\n*L\n1#1,327:1\n147#2,11:328\n147#2,11:339\n147#2,11:350\n*E\n*S KotlinDebug\n*F\n+ 1 AsyncTimeout.kt\nokio/AsyncTimeout$sink$1\n*L\n103#1,11:328\n109#1,11:339\n113#1,11:350\n*E\n"
.end annotation
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u0000-\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0000*\u0001\u0000\u0008\n\u0018\u00002\u00020\u0001J\u0008\u0010\u0002\u001a\u00020\u0003H\u0016J\u0008\u0010\u0004\u001a\u00020\u0003H\u0016J\u0008\u0010\u0005\u001a\u00020\u0006H\u0016J\u0008\u0010\u0007\u001a\u00020\u0008H\u0016J\u0018\u0010\t\u001a\u00020\u00032\u0006\u0010\n\u001a\u00020\u000b2\u0006\u0010\u000c\u001a\u00020\rH\u0016\u00a8\u0006\u000e"
}
d2 = {
"okio/AsyncTimeout$sink$1",
"Lokio/Sink;",
"close",
"",
"flush",
"timeout",
"Lokio/AsyncTimeout;",
"toString",
"",
"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/AsyncTimeout;
# direct methods
.method constructor <init>(Lokio/AsyncTimeout;Lokio/Sink;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lokio/Sink;",
")V"
}
.end annotation
iput-object p1, p0, Lokio/AsyncTimeout$sink$1;->this$0:Lokio/AsyncTimeout;
iput-object p2, p0, Lokio/AsyncTimeout$sink$1;->$sink:Lokio/Sink;
.line 83
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public close()V
.locals 2
iget-object v0, p0, Lokio/AsyncTimeout$sink$1;->this$0:Lokio/AsyncTimeout;
.line 351
invoke-virtual {v0}, Lokio/AsyncTimeout;->enter()V
:try_start_0
iget-object p0, p0, Lokio/AsyncTimeout$sink$1;->$sink:Lokio/Sink;
.line 113
invoke-interface {p0}, Lokio/Sink;->close()V
sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 359
invoke-virtual {v0}, Lokio/AsyncTimeout;->exit()Z
move-result p0
if-nez p0, :cond_0
return-void
:cond_0
const/4 p0, 0x0
.line 360
invoke-virtual {v0, p0}, Lokio/AsyncTimeout;->access$newTimeoutException(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object p0
check-cast p0, Ljava/lang/Throwable;
throw p0
:catchall_0
move-exception p0
goto :goto_2
:catch_0
move-exception p0
.line 357
:try_start_1
invoke-virtual {v0}, Lokio/AsyncTimeout;->exit()Z
move-result v1
if-nez v1, :cond_1
:goto_0
check-cast p0, Ljava/lang/Throwable;
goto :goto_1
:cond_1
invoke-virtual {v0, p0}, Lokio/AsyncTimeout;->access$newTimeoutException(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object p0
goto :goto_0
:goto_1
throw p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 359
:goto_2
invoke-virtual {v0}, Lokio/AsyncTimeout;->exit()Z
.line 360
throw p0
.end method
.method public flush()V
.locals 2
iget-object v0, p0, Lokio/AsyncTimeout$sink$1;->this$0:Lokio/AsyncTimeout;
.line 340
invoke-virtual {v0}, Lokio/AsyncTimeout;->enter()V
:try_start_0
iget-object p0, p0, Lokio/AsyncTimeout$sink$1;->$sink:Lokio/Sink;
.line 109
invoke-interface {p0}, Lokio/Sink;->flush()V
sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 348
invoke-virtual {v0}, Lokio/AsyncTimeout;->exit()Z
move-result p0
if-nez p0, :cond_0
return-void
:cond_0
const/4 p0, 0x0
.line 349
invoke-virtual {v0, p0}, Lokio/AsyncTimeout;->access$newTimeoutException(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object p0
check-cast p0, Ljava/lang/Throwable;
throw p0
:catchall_0
move-exception p0
goto :goto_2
:catch_0
move-exception p0
.line 346
:try_start_1
invoke-virtual {v0}, Lokio/AsyncTimeout;->exit()Z
move-result v1
if-nez v1, :cond_1
:goto_0
check-cast p0, Ljava/lang/Throwable;
goto :goto_1
:cond_1
invoke-virtual {v0, p0}, Lokio/AsyncTimeout;->access$newTimeoutException(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object p0
goto :goto_0
:goto_1
throw p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 348
:goto_2
invoke-virtual {v0}, Lokio/AsyncTimeout;->exit()Z
.line 349
throw p0
.end method
.method public timeout()Lokio/AsyncTimeout;
.locals 0
iget-object p0, p0, Lokio/AsyncTimeout$sink$1;->this$0:Lokio/AsyncTimeout;
return-object p0
.end method
.method public bridge synthetic timeout()Lokio/Timeout;
.locals 0
.line 83
invoke-virtual {p0}, Lokio/AsyncTimeout$sink$1;->timeout()Lokio/AsyncTimeout;
move-result-object p0
check-cast p0, Lokio/Timeout;
return-object p0
.end method
.method public toString()Ljava/lang/String;
.locals 2
.line 118
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "AsyncTimeout.sink("
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object p0, p0, Lokio/AsyncTimeout$sink$1;->$sink:Lokio/Sink;
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p0
const/16 v0, 0x29
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public write(Lokio/Buffer;J)V
.locals 7
const-string v0, "source"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 85
invoke-virtual {p1}, Lokio/Buffer;->size()J
move-result-wide v1
const-wide/16 v3, 0x0
move-wide v5, p2
invoke-static/range {v1 .. v6}, Lokio/-Util;->checkOffsetAndCount(JJJ)V
:goto_0
const-wide/16 v0, 0x0
cmp-long v2, p2, v0
if-lez v2, :cond_4
.line 91
iget-object v2, p1, Lokio/Buffer;->head:Lokio/Segment;
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
:goto_1
const/high16 v3, 0x10000
int-to-long v3, v3
cmp-long v3, v0, v3
if-gez v3, :cond_1
.line 93
iget v3, v2, Lokio/Segment;->limit:I
iget v4, v2, Lokio/Segment;->pos:I
sub-int/2addr v3, v4
int-to-long v3, v3
add-long/2addr v0, v3
cmp-long v3, v0, p2
if-ltz v3, :cond_0
move-wide v0, p2
goto :goto_2
.line 99
:cond_0
iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment;
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
goto :goto_1
:cond_1
:goto_2
iget-object v2, p0, Lokio/AsyncTimeout$sink$1;->this$0:Lokio/AsyncTimeout;
.line 329
invoke-virtual {v2}, Lokio/AsyncTimeout;->enter()V
:try_start_0
iget-object v3, p0, Lokio/AsyncTimeout$sink$1;->$sink:Lokio/Sink;
.line 103
invoke-interface {v3, p1, v0, v1}, Lokio/Sink;->write(Lokio/Buffer;J)V
sget-object v3, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 337
invoke-virtual {v2}, Lokio/AsyncTimeout;->exit()Z
move-result v3
if-nez v3, :cond_2
sub-long/2addr p2, v0
goto :goto_0
:cond_2
const/4 p0, 0x0
.line 338
invoke-virtual {v2, p0}, Lokio/AsyncTimeout;->access$newTimeoutException(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object p0
check-cast p0, Ljava/lang/Throwable;
throw p0
:catchall_0
move-exception p0
goto :goto_5
:catch_0
move-exception p0
.line 335
:try_start_1
invoke-virtual {v2}, Lokio/AsyncTimeout;->exit()Z
move-result p1
if-nez p1, :cond_3
:goto_3
check-cast p0, Ljava/lang/Throwable;
goto :goto_4
:cond_3
invoke-virtual {v2, p0}, Lokio/AsyncTimeout;->access$newTimeoutException(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object p0
goto :goto_3
:goto_4
throw p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 337
:goto_5
invoke-virtual {v2}, Lokio/AsyncTimeout;->exit()Z
.line 338
throw p0
:cond_4
return-void
.end method