.class public Lv0/b$a;
.super Landroid/media/MediaDataSource;
.source ""


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lv0/b;->f(Lv0/b$b;)V
.end annotation

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


# instance fields
.field public r:J

.field public final synthetic s:Lv0/b$b;


# direct methods
.method public constructor <init>(Lv0/b;Lv0/b$b;)V
    .registers 3

    iput-object p2, p0, Lv0/b$a;->s:Lv0/b$b;

    invoke-direct {p0}, Landroid/media/MediaDataSource;-><init>()V

    return-void
.end method


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

    return-void
.end method

.method public getSize()J
    .registers 3

    const-wide/16 v0, -0x1

    return-wide v0
.end method

.method public readAt(J[BII)I
    .registers 12

    if-nez p5, :cond_4

    const/4 p1, 0x0

    return p1

    :cond_4
    const-wide/16 v0, 0x0

    cmp-long v2, p1, v0

    const/4 v3, -0x1

    if-gez v2, :cond_c

    return v3

    :cond_c
    :try_start_c
    iget-wide v4, p0, Lv0/b$a;->r:J

    cmp-long v2, v4, p1

    if-eqz v2, :cond_2a

    cmp-long v0, v4, v0

    if-ltz v0, :cond_23

    iget-object v0, p0, Lv0/b$a;->s:Lv0/b$b;

    invoke-virtual {v0}, Lv0/b$b;->available()I

    move-result v0

    int-to-long v0, v0

    add-long/2addr v4, v0

    cmp-long v0, p1, v4

    if-ltz v0, :cond_23

    return v3

    :cond_23
    iget-object v0, p0, Lv0/b$a;->s:Lv0/b$b;

    invoke-virtual {v0, p1, p2}, Lv0/b$b;->e(J)V

    iput-wide p1, p0, Lv0/b$a;->r:J

    :cond_2a
    iget-object p1, p0, Lv0/b$a;->s:Lv0/b$b;

    invoke-virtual {p1}, Lv0/b$b;->available()I

    move-result p1

    if-le p5, p1, :cond_38

    iget-object p1, p0, Lv0/b$a;->s:Lv0/b$b;

    invoke-virtual {p1}, Lv0/b$b;->available()I

    move-result p5

    :cond_38
    iget-object p1, p0, Lv0/b$a;->s:Lv0/b$b;

    .line 1
    iget-object p2, p1, Lv0/b$b;->r:Ljava/io/DataInputStream;

    invoke-virtual {p2, p3, p4, p5}, Ljava/io/DataInputStream;->read([BII)I

    move-result p2

    iget p3, p1, Lv0/b$b;->u:I

    add-int/2addr p3, p2

    iput p3, p1, Lv0/b$b;->u:I

    if-ltz p2, :cond_4e

    .line 2
    iget-wide p3, p0, Lv0/b$a;->r:J

    int-to-long v0, p2

    add-long/2addr p3, v0

    iput-wide p3, p0, Lv0/b$a;->r:J
    :try_end_4d
    .catch Ljava/io/IOException; {:try_start_c .. :try_end_4d} :catch_4e

    return p2

    :catch_4e
    :cond_4e
    const-wide/16 p1, -0x1

    iput-wide p1, p0, Lv0/b$a;->r:J

    return v3
.end method
