a$1.smali

.class final Ld/a$1;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ld/t;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Ld/a;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Ld/t;

.field final synthetic b:Ld/a;


# direct methods
.method constructor <init>(Ld/a;Ld/t;)V
    .registers 3

    .line 160
    iput-object p1, p0, Ld/a$1;->b:Ld/a;

    iput-object p2, p0, Ld/a$1;->a:Ld/t;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final a_(Ld/c;J)V
    .registers 10
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 162
    iget-wide v0, p1, Ld/c;->b:J

    const-wide/16 v2, 0x0

    move-wide v4, p2

    invoke-static/range {v0 .. v5}, Ld/w;->a(JJJ)V

    :goto_8
    const-wide/16 v0, 0x0

    cmp-long v2, p2, v0

    if-lez v2, :cond_4a

    .line 167
    iget-object v2, p1, Ld/c;->a:Ld/q;

    :goto_10
    const-wide/32 v3, 0x10000

    cmp-long v5, v0, v3

    if-gez v5, :cond_27

    .line 168
    iget v3, v2, Ld/q;->c:I

    iget v4, v2, Ld/q;->b: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_24

    move-wide v0, p2

    goto :goto_27

    .line 167
    :cond_24
    iget-object v2, v2, Ld/q;->f:Ld/q;

    goto :goto_10

    .line 178
    :cond_27
    :goto_27
    iget-object v2, p0, Ld/a$1;->b:Ld/a;

    invoke-virtual {v2}, Ld/a;->aG_()V

    .line 180
    :try_start_2c
    iget-object v2, p0, Ld/a$1;->a:Ld/t;

    invoke-interface {v2, p1, v0, v1}, Ld/t;->a_(Ld/c;J)V
    :try_end_31
    .catch Ljava/io/IOException; {:try_start_2c .. :try_end_31} :catch_3b
    .catchall {:try_start_2c .. :try_end_31} :catchall_39

    sub-long/2addr p2, v0

    .line 186
    iget-object v0, p0, Ld/a$1;->b:Ld/a;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Ld/a;->a(Z)V

    goto :goto_8

    :catchall_39
    move-exception p1

    goto :goto_43

    :catch_3b
    move-exception p1

    .line 184
    :try_start_3c
    iget-object p2, p0, Ld/a$1;->b:Ld/a;

    invoke-virtual {p2, p1}, Ld/a;->b(Ljava/io/IOException;)Ljava/io/IOException;

    move-result-object p1

    throw p1
    :try_end_43
    .catchall {:try_start_3c .. :try_end_43} :catchall_39

    .line 186
    :goto_43
    iget-object p2, p0, Ld/a$1;->b:Ld/a;

    const/4 p3, 0x0

    invoke-virtual {p2, p3}, Ld/a;->a(Z)V

    throw p1

    :cond_4a
    return-void
.end method

.method public final ae_()Ld/v;
    .registers 2

    .line 218
    iget-object v0, p0, Ld/a$1;->b:Ld/a;

    return-object v0
.end method

.method public final close()V
    .registers 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 206
    iget-object v0, p0, Ld/a$1;->b:Ld/a;

    invoke-virtual {v0}, Ld/a;->aG_()V

    .line 208
    :try_start_5
    iget-object v0, p0, Ld/a$1;->a:Ld/t;

    invoke-interface {v0}, Ld/t;->close()V
    :try_end_a
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_a} :catch_13
    .catchall {:try_start_5 .. :try_end_a} :catchall_11

    .line 213
    iget-object v0, p0, Ld/a$1;->b:Ld/a;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Ld/a;->a(Z)V

    return-void

    :catchall_11
    move-exception v0

    goto :goto_1b

    :catch_13
    move-exception v0

    .line 211
    :try_start_14
    iget-object v1, p0, Ld/a$1;->b:Ld/a;

    invoke-virtual {v1, v0}, Ld/a;->b(Ljava/io/IOException;)Ljava/io/IOException;

    move-result-object v0

    throw v0
    :try_end_1b
    .catchall {:try_start_14 .. :try_end_1b} :catchall_11

    .line 213
    :goto_1b
    iget-object v1, p0, Ld/a$1;->b:Ld/a;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Ld/a;->a(Z)V

    throw v0
.end method

.method public final flush()V
    .registers 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 193
    iget-object v0, p0, Ld/a$1;->b:Ld/a;

    invoke-virtual {v0}, Ld/a;->aG_()V

    .line 195
    :try_start_5
    iget-object v0, p0, Ld/a$1;->a:Ld/t;

    invoke-interface {v0}, Ld/t;->flush()V
    :try_end_a
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_a} :catch_13
    .catchall {:try_start_5 .. :try_end_a} :catchall_11

    .line 200
    iget-object v0, p0, Ld/a$1;->b:Ld/a;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Ld/a;->a(Z)V

    return-void

    :catchall_11
    move-exception v0

    goto :goto_1b

    :catch_13
    move-exception v0

    .line 198
    :try_start_14
    iget-object v1, p0, Ld/a$1;->b:Ld/a;

    invoke-virtual {v1, v0}, Ld/a;->b(Ljava/io/IOException;)Ljava/io/IOException;

    move-result-object v0

    throw v0
    :try_end_1b
    .catchall {:try_start_14 .. :try_end_1b} :catchall_11

    .line 200
    :goto_1b
    iget-object v1, p0, Ld/a$1;->b:Ld/a;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Ld/a;->a(Z)V

    throw v0
.end method

.method public final toString()Ljava/lang/String;
    .registers 3

    .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, Ld/a$1;->a:Ld/t;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v1, ")"

    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