a$1.smali
.class final Lokio/a$1;
.super Ljava/lang/Object;
.source "AsyncTimeout.java"
# interfaces
.implements Lokio/r;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokio/a;
.end annotation
# instance fields
.field private synthetic bZe:Lokio/r;
.field private synthetic bZf:Lokio/a;
# direct methods
.method constructor <init>(Lokio/a;Lokio/r;)V
.registers 3
.prologue
.line 160
iput-object p1, p0, Lokio/a$1;->bZf:Lokio/a;
iput-object p2, p0, Lokio/a$1;->bZe:Lokio/r;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final a(Lokio/d;J)V
.registers 14
.prologue
const-wide/16 v2, 0x0
.line 162
iget-wide v0, p1, Lokio/d;->size:J
move-wide v4, p2
invoke-static/range {v0 .. v5}, Lokio/u;->a(JJJ)V
move-wide v4, p2
.line 164
:goto_9
cmp-long v0, v4, v2
if-lez v0, :cond_4b
.line 167
iget-object v0, p1, Lokio/d;->bZk:Lokio/p;
move-object v6, v0
move-wide v0, v2
:goto_11
const-wide/32 v8, 0x10000
cmp-long v7, v0, v8
if-gez v7, :cond_24
.line 168
iget v7, v6, Lokio/p;->limit:I
iget v8, v6, Lokio/p;->pos:I
sub-int/2addr v7, v8
.line 169
int-to-long v8, v7
add-long/2addr v8, v0
.line 170
cmp-long v0, v8, v4
if-ltz v0, :cond_36
move-wide v0, v4
.line 178
:cond_24
iget-object v6, p0, Lokio/a$1;->bZf:Lokio/a;
invoke-virtual {v6}, Lokio/a;->enter()V
.line 180
:try_start_29
iget-object v6, p0, Lokio/a$1;->bZe:Lokio/r;
invoke-interface {v6, p1, v0, v1}, Lokio/r;->a(Lokio/d;J)V
:try_end_2e
.catch Ljava/io/IOException; {:try_start_29 .. :try_end_2e} :catch_3b
.catchall {:try_start_29 .. :try_end_2e} :catchall_43
.line 181
sub-long/2addr v4, v0
.line 186
iget-object v0, p0, Lokio/a$1;->bZf:Lokio/a;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lokio/a;->bo(Z)V
goto :goto_9
.line 167
:cond_36
iget-object v0, v6, Lokio/p;->bZC:Lokio/p;
move-object v6, v0
move-wide v0, v8
goto :goto_11
.line 183
:catch_3b
move-exception v0
.line 184
:try_start_3c
iget-object v1, p0, Lokio/a$1;->bZf:Lokio/a;
invoke-virtual {v1, v0}, Lokio/a;->e(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object v0
throw v0
:try_end_43
.catchall {:try_start_3c .. :try_end_43} :catchall_43
.line 186
:catchall_43
move-exception v0
iget-object v1, p0, Lokio/a$1;->bZf:Lokio/a;
const/4 v2, 0x0
invoke-virtual {v1, v2}, Lokio/a;->bo(Z)V
throw v0
.line 189
:cond_4b
return-void
.end method
.method public final close()V
.registers 4
.prologue
.line 206
iget-object v0, p0, Lokio/a$1;->bZf:Lokio/a;
invoke-virtual {v0}, Lokio/a;->enter()V
.line 208
:try_start_5
iget-object v0, p0, Lokio/a$1;->bZe:Lokio/r;
invoke-interface {v0}, Lokio/r;->close()V
:try_end_a
.catch Ljava/io/IOException; {:try_start_5 .. :try_end_a} :catch_11
.catchall {:try_start_5 .. :try_end_a} :catchall_19
.line 213
iget-object v0, p0, Lokio/a$1;->bZf:Lokio/a;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lokio/a;->bo(Z)V
.line 214
return-void
.line 210
:catch_11
move-exception v0
.line 211
:try_start_12
iget-object v1, p0, Lokio/a$1;->bZf:Lokio/a;
invoke-virtual {v1, v0}, Lokio/a;->e(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object v0
throw v0
:try_end_19
.catchall {:try_start_12 .. :try_end_19} :catchall_19
.line 213
:catchall_19
move-exception v0
iget-object v1, p0, Lokio/a$1;->bZf:Lokio/a;
const/4 v2, 0x0
invoke-virtual {v1, v2}, Lokio/a;->bo(Z)V
throw v0
.end method
.method public final flush()V
.registers 4
.prologue
.line 193
iget-object v0, p0, Lokio/a$1;->bZf:Lokio/a;
invoke-virtual {v0}, Lokio/a;->enter()V
.line 195
:try_start_5
iget-object v0, p0, Lokio/a$1;->bZe:Lokio/r;
invoke-interface {v0}, Lokio/r;->flush()V
:try_end_a
.catch Ljava/io/IOException; {:try_start_5 .. :try_end_a} :catch_11
.catchall {:try_start_5 .. :try_end_a} :catchall_19
.line 200
iget-object v0, p0, Lokio/a$1;->bZf:Lokio/a;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lokio/a;->bo(Z)V
.line 201
return-void
.line 197
:catch_11
move-exception v0
.line 198
:try_start_12
iget-object v1, p0, Lokio/a$1;->bZf:Lokio/a;
invoke-virtual {v1, v0}, Lokio/a;->e(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object v0
throw v0
:try_end_19
.catchall {:try_start_12 .. :try_end_19} :catchall_19
.line 200
:catchall_19
move-exception v0
iget-object v1, p0, Lokio/a$1;->bZf:Lokio/a;
const/4 v2, 0x0
invoke-virtual {v1, v2}, Lokio/a;->bo(Z)V
throw v0
.end method
.method public final timeout()Lokio/t;
.registers 2
.prologue
.line 218
iget-object v0, p0, Lokio/a$1;->bZf:Lokio/a;
return-object v0
.end method
.method public final toString()Ljava/lang/String;
.registers 3
.prologue
.line 222
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 v1, p0, Lokio/a$1;->bZe:Lokio/r;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ")"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method