m$1.smali

.class Lokio/m$1;
.super Ljava/io/InputStream;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lokio/m;->g()Ljava/io/InputStream;
.end annotation

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


# instance fields
.field final synthetic a:Lokio/m;


# direct methods
.method constructor <init>(Lokio/m;)V
    .registers 2

    iput-object p1, p0, Lokio/m$1;->a:Lokio/m;

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

    return-void
.end method


# virtual methods
.method public available()I
    .registers 5

    iget-object v0, p0, Lokio/m$1;->a:Lokio/m;

    iget-boolean v0, v0, Lokio/m;->c:Z

    if-eqz v0, :cond_f

    new-instance v0, Ljava/io/IOException;

    const-string/jumbo v1, "closed"

    invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_f
    iget-object v0, p0, Lokio/m$1;->a:Lokio/m;

    iget-object v0, v0, Lokio/m;->a:Lokio/c;

    iget-wide v0, v0, Lokio/c;->b:J

    const-wide/32 v2, 0x7fffffff

    invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->min(JJ)J

    move-result-wide v0

    long-to-int v0, v0

    return v0
.end method

.method public close()V
    .registers 2

    iget-object v0, p0, Lokio/m$1;->a:Lokio/m;

    invoke-virtual {v0}, Lokio/m;->close()V

    return-void
.end method

.method public read()I
    .registers 5

    iget-object v0, p0, Lokio/m$1;->a:Lokio/m;

    iget-boolean v0, v0, Lokio/m;->c:Z

    if-eqz v0, :cond_f

    new-instance v0, Ljava/io/IOException;

    const-string/jumbo v1, "closed"

    invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_f
    iget-object v0, p0, Lokio/m$1;->a:Lokio/m;

    iget-object v0, v0, Lokio/m;->a:Lokio/c;

    iget-wide v0, v0, Lokio/c;->b:J

    const-wide/16 v2, 0x0

    cmp-long v0, v0, v2

    if-nez v0, :cond_31

    iget-object v0, p0, Lokio/m$1;->a:Lokio/m;

    iget-object v0, v0, Lokio/m;->b:Lokio/q;

    iget-object v1, p0, Lokio/m$1;->a:Lokio/m;

    iget-object v1, v1, Lokio/m;->a:Lokio/c;

    const-wide/16 v2, 0x2000

    invoke-interface {v0, v1, v2, v3}, Lokio/q;->read(Lokio/c;J)J

    move-result-wide v0

    const-wide/16 v2, -0x1

    cmp-long v0, v0, v2

    if-nez v0, :cond_31

    const/4 v0, -0x1

    :goto_30
    return v0

    :cond_31
    iget-object v0, p0, Lokio/m$1;->a:Lokio/m;

    iget-object v0, v0, Lokio/m;->a:Lokio/c;

    invoke-virtual {v0}, Lokio/c;->i()B

    move-result v0

    and-int/lit16 v0, v0, 0xff

    goto :goto_30
.end method

.method public read([BII)I
    .registers 10

    iget-object v0, p0, Lokio/m$1;->a:Lokio/m;

    iget-boolean v0, v0, Lokio/m;->c:Z

    if-eqz v0, :cond_f

    new-instance v0, Ljava/io/IOException;

    const-string/jumbo v1, "closed"

    invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_f
    array-length v0, p1

    int-to-long v0, v0

    int-to-long v2, p2

    int-to-long v4, p3

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

    iget-object v0, p0, Lokio/m$1;->a:Lokio/m;

    iget-object v0, v0, Lokio/m;->a:Lokio/c;

    iget-wide v0, v0, Lokio/c;->b:J

    const-wide/16 v2, 0x0

    cmp-long v0, v0, v2

    if-nez v0, :cond_38

    iget-object v0, p0, Lokio/m$1;->a:Lokio/m;

    iget-object v0, v0, Lokio/m;->b:Lokio/q;

    iget-object v1, p0, Lokio/m$1;->a:Lokio/m;

    iget-object v1, v1, Lokio/m;->a:Lokio/c;

    const-wide/16 v2, 0x2000

    invoke-interface {v0, v1, v2, v3}, Lokio/q;->read(Lokio/c;J)J

    move-result-wide v0

    const-wide/16 v2, -0x1

    cmp-long v0, v0, v2

    if-nez v0, :cond_38

    const/4 v0, -0x1

    :goto_37
    return v0

    :cond_38
    iget-object v0, p0, Lokio/m$1;->a:Lokio/m;

    iget-object v0, v0, Lokio/m;->a:Lokio/c;

    invoke-virtual {v0, p1, p2, p3}, Lokio/c;->a([BII)I

    move-result v0

    goto :goto_37
.end method

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

    new-instance v0, Ljava/lang/StringBuilder;

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

    iget-object v1, p0, Lokio/m$1;->a:Lokio/m;

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

    move-result-object v0

    const-string/jumbo v1, ".inputStream()"

    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