f$a.smali

.class Lrb/f$a;
.super Lokio/h;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lrb/f;
.end annotation

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


# instance fields
.field b:Z

.field c:J

.field final synthetic d:Lrb/f;


# direct methods
.method constructor <init>(Lrb/f;Lokio/s;)V
    .registers 3

    iput-object p1, p0, Lrb/f$a;->d:Lrb/f;

    invoke-direct {p0, p2}, Lokio/h;-><init>(Lokio/s;)V

    const/4 p1, 0x0

    iput-boolean p1, p0, Lrb/f$a;->b:Z

    const-wide/16 p1, 0x0

    iput-wide p1, p0, Lrb/f$a;->c:J

    return-void
.end method

.method private b(Ljava/io/IOException;)V
    .registers 9

    iget-boolean v0, p0, Lrb/f$a;->b:Z

    if-eqz v0, :cond_5

    return-void

    :cond_5
    const/4 v0, 0x1

    iput-boolean v0, p0, Lrb/f$a;->b:Z

    iget-object v3, p0, Lrb/f$a;->d:Lrb/f;

    iget-object v1, v3, Lrb/f;->b:Lob/g;

    const/4 v2, 0x0

    iget-wide v4, p0, Lrb/f$a;->c:J

    move-object v6, p1

    invoke-virtual/range {v1 .. v6}, Lob/g;->r(ZLpb/c;JLjava/io/IOException;)V

    return-void
.end method


# virtual methods
.method public close()V
    .registers 2

    invoke-super {p0}, Lokio/h;->close()V

    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lrb/f$a;->b(Ljava/io/IOException;)V

    return-void
.end method

.method public m0(Lokio/c;J)J
    .registers 6

    :try_start_0
    invoke-virtual {p0}, Lokio/h;->a()Lokio/s;

    move-result-object v0

    invoke-interface {v0, p1, p2, p3}, Lokio/s;->m0(Lokio/c;J)J

    move-result-wide p1

    const-wide/16 v0, 0x0

    cmp-long p3, p1, v0

    if-lez p3, :cond_13

    iget-wide v0, p0, Lrb/f$a;->c:J

    add-long/2addr v0, p1

    iput-wide v0, p0, Lrb/f$a;->c:J
    :try_end_13
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_13} :catch_14

    :cond_13
    return-wide p1

    :catch_14
    move-exception p1

    invoke-direct {p0, p1}, Lrb/f$a;->b(Ljava/io/IOException;)V

    throw p1
.end method