t.smali

.class public abstract Lf/b/b/b/t;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lf/b/b/b/u0;
.implements Lf/b/b/b/w0;


# instance fields
.field private final e:I

.field private final f:Lf/b/b/b/g0;

.field private g:Lf/b/b/b/x0;

.field private h:I

.field private i:I

.field private j:Lf/b/b/b/p1/k0;

.field private k:[Lf/b/b/b/f0;

.field private l:J

.field private m:J

.field private n:Z

.field private o:Z


# direct methods
.method public constructor <init>(I)V
    .registers 4

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

    iput p1, p0, Lf/b/b/b/t;->e:I

    new-instance p1, Lf/b/b/b/g0;

    invoke-direct {p1}, Lf/b/b/b/g0;-><init>()V

    iput-object p1, p0, Lf/b/b/b/t;->f:Lf/b/b/b/g0;

    const-wide/high16 v0, -0x8000000000000000L

    iput-wide v0, p0, Lf/b/b/b/t;->m:J

    return-void
.end method

.method protected static K(Lf/b/b/b/i1/r;Lf/b/b/b/i1/n;)Z
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lf/b/b/b/i1/r<",
            "*>;",
            "Lf/b/b/b/i1/n;",
            ")Z"
        }
    .end annotation

    if-nez p1, :cond_4

    const/4 p0, 0x1

    return p0

    :cond_4
    if-nez p0, :cond_8

    const/4 p0, 0x0

    return p0

    :cond_8
    invoke-interface {p0, p1}, Lf/b/b/b/i1/r;->e(Lf/b/b/b/i1/n;)Z

    move-result p0

    return p0
.end method


# virtual methods
.method protected final A()Z
    .registers 2

    invoke-virtual {p0}, Lf/b/b/b/t;->e()Z

    move-result v0

    if-eqz v0, :cond_9

    iget-boolean v0, p0, Lf/b/b/b/t;->n:Z

    goto :goto_f

    :cond_9
    iget-object v0, p0, Lf/b/b/b/t;->j:Lf/b/b/b/p1/k0;

    invoke-interface {v0}, Lf/b/b/b/p1/k0;->isReady()Z

    move-result v0

    :goto_f
    return v0
.end method

.method protected abstract B()V
.end method

.method protected C(Z)V
    .registers 2

    return-void
.end method

.method protected abstract D(JZ)V
.end method

.method protected E()V
    .registers 1

    return-void
.end method

.method protected F()V
    .registers 1

    return-void
.end method

.method protected G()V
    .registers 1

    return-void
.end method

.method protected H([Lf/b/b/b/f0;J)V
    .registers 4

    return-void
.end method

.method protected final I(Lf/b/b/b/g0;Lf/b/b/b/h1/e;Z)I
    .registers 9

    iget-object v0, p0, Lf/b/b/b/t;->j:Lf/b/b/b/p1/k0;

    invoke-interface {v0, p1, p2, p3}, Lf/b/b/b/p1/k0;->g(Lf/b/b/b/g0;Lf/b/b/b/h1/e;Z)I

    move-result p3

    const/4 v0, -0x4

    if-ne p3, v0, :cond_2a

    invoke-virtual {p2}, Lf/b/b/b/h1/a;->isEndOfStream()Z

    move-result p1

    if-eqz p1, :cond_1a

    const-wide/high16 p1, -0x8000000000000000L

    iput-wide p1, p0, Lf/b/b/b/t;->m:J

    iget-boolean p1, p0, Lf/b/b/b/t;->n:Z

    if-eqz p1, :cond_18

    goto :goto_19

    :cond_18
    const/4 v0, -0x3

    :goto_19
    return v0

    :cond_1a
    iget-wide v0, p2, Lf/b/b/b/h1/e;->h:J

    iget-wide v2, p0, Lf/b/b/b/t;->l:J

    add-long/2addr v0, v2

    iput-wide v0, p2, Lf/b/b/b/h1/e;->h:J

    iget-wide p1, p0, Lf/b/b/b/t;->m:J

    invoke-static {p1, p2, v0, v1}, Ljava/lang/Math;->max(JJ)J

    move-result-wide p1

    iput-wide p1, p0, Lf/b/b/b/t;->m:J

    goto :goto_43

    :cond_2a
    const/4 p2, -0x5

    if-ne p3, p2, :cond_43

    iget-object p2, p1, Lf/b/b/b/g0;->c:Lf/b/b/b/f0;

    iget-wide v0, p2, Lf/b/b/b/f0;->q:J

    const-wide v2, 0x7fffffffffffffffL

    cmp-long v4, v0, v2

    if-eqz v4, :cond_43

    iget-wide v2, p0, Lf/b/b/b/t;->l:J

    add-long/2addr v0, v2

    invoke-virtual {p2, v0, v1}, Lf/b/b/b/f0;->n(J)Lf/b/b/b/f0;

    move-result-object p2

    iput-object p2, p1, Lf/b/b/b/g0;->c:Lf/b/b/b/f0;

    :cond_43
    :goto_43
    return p3
.end method

.method protected J(J)I
    .registers 6

    iget-object v0, p0, Lf/b/b/b/t;->j:Lf/b/b/b/p1/k0;

    iget-wide v1, p0, Lf/b/b/b/t;->l:J

    sub-long/2addr p1, v1

    invoke-interface {v0, p1, p2}, Lf/b/b/b/p1/k0;->k(J)I

    move-result p1

    return p1
.end method

.method public final disable()V
    .registers 4

    iget v0, p0, Lf/b/b/b/t;->i:I

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-ne v0, v1, :cond_7

    goto :goto_8

    :cond_7
    const/4 v1, 0x0

    :goto_8
    invoke-static {v1}, Lf/b/b/b/s1/e;->f(Z)V

    iget-object v0, p0, Lf/b/b/b/t;->f:Lf/b/b/b/g0;

    invoke-virtual {v0}, Lf/b/b/b/g0;->a()V

    iput v2, p0, Lf/b/b/b/t;->i:I

    const/4 v0, 0x0

    iput-object v0, p0, Lf/b/b/b/t;->j:Lf/b/b/b/p1/k0;

    iput-object v0, p0, Lf/b/b/b/t;->k:[Lf/b/b/b/f0;

    iput-boolean v2, p0, Lf/b/b/b/t;->n:Z

    invoke-virtual {p0}, Lf/b/b/b/t;->B()V

    return-void
.end method

.method public final e()Z
    .registers 6

    iget-wide v0, p0, Lf/b/b/b/t;->m:J

    const-wide/high16 v2, -0x8000000000000000L

    cmp-long v4, v0, v2

    if-nez v4, :cond_a

    const/4 v0, 0x1

    goto :goto_b

    :cond_a
    const/4 v0, 0x0

    :goto_b
    return v0
.end method

.method public final f(Lf/b/b/b/x0;[Lf/b/b/b/f0;Lf/b/b/b/p1/k0;JZJ)V
    .registers 11

    iget v0, p0, Lf/b/b/b/t;->i:I

    const/4 v1, 0x1

    if-nez v0, :cond_7

    const/4 v0, 0x1

    goto :goto_8

    :cond_7
    const/4 v0, 0x0

    :goto_8
    invoke-static {v0}, Lf/b/b/b/s1/e;->f(Z)V

    iput-object p1, p0, Lf/b/b/b/t;->g:Lf/b/b/b/x0;

    iput v1, p0, Lf/b/b/b/t;->i:I

    invoke-virtual {p0, p6}, Lf/b/b/b/t;->C(Z)V

    invoke-virtual {p0, p2, p3, p7, p8}, Lf/b/b/b/t;->t([Lf/b/b/b/f0;Lf/b/b/b/p1/k0;J)V

    invoke-virtual {p0, p4, p5, p6}, Lf/b/b/b/t;->D(JZ)V

    return-void
.end method

.method public final g()V
    .registers 2

    const/4 v0, 0x1

    iput-boolean v0, p0, Lf/b/b/b/t;->n:Z

    return-void
.end method

.method public final getState()I
    .registers 2

    iget v0, p0, Lf/b/b/b/t;->i:I

    return v0
.end method

.method public final getTrackType()I
    .registers 2

    iget v0, p0, Lf/b/b/b/t;->e:I

    return v0
.end method

.method public final h()Lf/b/b/b/w0;
    .registers 1

    return-object p0
.end method

.method public j()I
    .registers 2

    const/4 v0, 0x0

    return v0
.end method

.method public l(ILjava/lang/Object;)V
    .registers 3

    return-void
.end method

.method public final m()Lf/b/b/b/p1/k0;
    .registers 2

    iget-object v0, p0, Lf/b/b/b/t;->j:Lf/b/b/b/p1/k0;

    return-object v0
.end method

.method public synthetic n(F)V
    .registers 2

    invoke-static {p0, p1}, Lf/b/b/b/t0;->a(Lf/b/b/b/u0;F)V

    return-void
.end method

.method public final o()V
    .registers 2

    iget-object v0, p0, Lf/b/b/b/t;->j:Lf/b/b/b/p1/k0;

    invoke-interface {v0}, Lf/b/b/b/p1/k0;->a()V

    return-void
.end method

.method public final p()J
    .registers 3

    iget-wide v0, p0, Lf/b/b/b/t;->m:J

    return-wide v0
.end method

.method public final q(J)V
    .registers 4

    const/4 v0, 0x0

    iput-boolean v0, p0, Lf/b/b/b/t;->n:Z

    iput-wide p1, p0, Lf/b/b/b/t;->m:J

    invoke-virtual {p0, p1, p2, v0}, Lf/b/b/b/t;->D(JZ)V

    return-void
.end method

.method public final r()Z
    .registers 2

    iget-boolean v0, p0, Lf/b/b/b/t;->n:Z

    return v0
.end method

.method public final reset()V
    .registers 2

    iget v0, p0, Lf/b/b/b/t;->i:I

    if-nez v0, :cond_6

    const/4 v0, 0x1

    goto :goto_7

    :cond_6
    const/4 v0, 0x0

    :goto_7
    invoke-static {v0}, Lf/b/b/b/s1/e;->f(Z)V

    iget-object v0, p0, Lf/b/b/b/t;->f:Lf/b/b/b/g0;

    invoke-virtual {v0}, Lf/b/b/b/g0;->a()V

    invoke-virtual {p0}, Lf/b/b/b/t;->E()V

    return-void
.end method

.method public s()Lf/b/b/b/s1/t;
    .registers 2

    const/4 v0, 0x0

    return-object v0
.end method

.method public final setIndex(I)V
    .registers 2

    iput p1, p0, Lf/b/b/b/t;->h:I

    return-void
.end method

.method public final start()V
    .registers 3

    iget v0, p0, Lf/b/b/b/t;->i:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_6

    goto :goto_7

    :cond_6
    const/4 v1, 0x0

    :goto_7
    invoke-static {v1}, Lf/b/b/b/s1/e;->f(Z)V

    const/4 v0, 0x2

    iput v0, p0, Lf/b/b/b/t;->i:I

    invoke-virtual {p0}, Lf/b/b/b/t;->F()V

    return-void
.end method

.method public final stop()V
    .registers 4

    iget v0, p0, Lf/b/b/b/t;->i:I

    const/4 v1, 0x1

    const/4 v2, 0x2

    if-ne v0, v2, :cond_8

    const/4 v0, 0x1

    goto :goto_9

    :cond_8
    const/4 v0, 0x0

    :goto_9
    invoke-static {v0}, Lf/b/b/b/s1/e;->f(Z)V

    iput v1, p0, Lf/b/b/b/t;->i:I

    invoke-virtual {p0}, Lf/b/b/b/t;->G()V

    return-void
.end method

.method public final t([Lf/b/b/b/f0;Lf/b/b/b/p1/k0;J)V
    .registers 6

    iget-boolean v0, p0, Lf/b/b/b/t;->n:Z

    xor-int/lit8 v0, v0, 0x1

    invoke-static {v0}, Lf/b/b/b/s1/e;->f(Z)V

    iput-object p2, p0, Lf/b/b/b/t;->j:Lf/b/b/b/p1/k0;

    iput-wide p3, p0, Lf/b/b/b/t;->m:J

    iput-object p1, p0, Lf/b/b/b/t;->k:[Lf/b/b/b/f0;

    iput-wide p3, p0, Lf/b/b/b/t;->l:J

    invoke-virtual {p0, p1, p3, p4}, Lf/b/b/b/t;->H([Lf/b/b/b/f0;J)V

    return-void
.end method

.method protected final u(Ljava/lang/Exception;Lf/b/b/b/f0;)Lf/b/b/b/a0;
    .registers 5

    if-eqz p2, :cond_1b

    iget-boolean v0, p0, Lf/b/b/b/t;->o:Z

    if-nez v0, :cond_1b

    const/4 v0, 0x1

    iput-boolean v0, p0, Lf/b/b/b/t;->o:Z

    const/4 v0, 0x0

    :try_start_a
    invoke-interface {p0, p2}, Lf/b/b/b/w0;->a(Lf/b/b/b/f0;)I

    move-result v1

    invoke-static {v1}, Lf/b/b/b/v0;->d(I)I

    move-result v1
    :try_end_12
    .catch Lf/b/b/b/a0; {:try_start_a .. :try_end_12} :catch_19
    .catchall {:try_start_a .. :try_end_12} :catchall_15

    iput-boolean v0, p0, Lf/b/b/b/t;->o:Z

    goto :goto_1c

    :catchall_15
    move-exception p1

    iput-boolean v0, p0, Lf/b/b/b/t;->o:Z

    throw p1

    :catch_19
    iput-boolean v0, p0, Lf/b/b/b/t;->o:Z

    :cond_1b
    const/4 v1, 0x4

    :goto_1c
    invoke-virtual {p0}, Lf/b/b/b/t;->x()I

    move-result v0

    invoke-static {p1, v0, p2, v1}, Lf/b/b/b/a0;->g(Ljava/lang/Exception;ILf/b/b/b/f0;I)Lf/b/b/b/a0;

    move-result-object p1

    return-object p1
.end method

.method protected final v()Lf/b/b/b/x0;
    .registers 2

    iget-object v0, p0, Lf/b/b/b/t;->g:Lf/b/b/b/x0;

    return-object v0
.end method

.method protected final w()Lf/b/b/b/g0;
    .registers 2

    iget-object v0, p0, Lf/b/b/b/t;->f:Lf/b/b/b/g0;

    invoke-virtual {v0}, Lf/b/b/b/g0;->a()V

    iget-object v0, p0, Lf/b/b/b/t;->f:Lf/b/b/b/g0;

    return-object v0
.end method

.method protected final x()I
    .registers 2

    iget v0, p0, Lf/b/b/b/t;->h:I

    return v0
.end method

.method protected final y()[Lf/b/b/b/f0;
    .registers 2

    iget-object v0, p0, Lf/b/b/b/t;->k:[Lf/b/b/b/f0;

    return-object v0
.end method

.method protected final z(Lf/b/b/b/f0;Lf/b/b/b/f0;Lf/b/b/b/i1/r;Lf/b/b/b/i1/p;)Lf/b/b/b/i1/p;
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T::",
            "Lf/b/b/b/i1/u;",
            ">(",
            "Lf/b/b/b/f0;",
            "Lf/b/b/b/f0;",
            "Lf/b/b/b/i1/r<",
            "TT;>;",
            "Lf/b/b/b/i1/p<",
            "TT;>;)",
            "Lf/b/b/b/i1/p<",
            "TT;>;"
        }
    .end annotation

    iget-object v0, p2, Lf/b/b/b/f0;->p:Lf/b/b/b/i1/n;

    const/4 v1, 0x0

    if-nez p1, :cond_7

    move-object p1, v1

    goto :goto_9

    :cond_7
    iget-object p1, p1, Lf/b/b/b/f0;->p:Lf/b/b/b/i1/n;

    :goto_9
    invoke-static {v0, p1}, Lf/b/b/b/s1/m0;->b(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result p1

    xor-int/lit8 p1, p1, 0x1

    if-nez p1, :cond_12

    return-object p4

    :cond_12
    iget-object p1, p2, Lf/b/b/b/f0;->p:Lf/b/b/b/i1/n;

    if-eqz p1, :cond_32

    if-eqz p3, :cond_26

    invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;

    move-result-object p1

    invoke-static {p1}, Lf/b/b/b/s1/e;->e(Ljava/lang/Object;)Ljava/lang/Object;

    iget-object p2, p2, Lf/b/b/b/f0;->p:Lf/b/b/b/i1/n;

    invoke-interface {p3, p1, p2}, Lf/b/b/b/i1/r;->d(Landroid/os/Looper;Lf/b/b/b/i1/n;)Lf/b/b/b/i1/p;

    move-result-object v1

    goto :goto_32

    :cond_26
    new-instance p1, Ljava/lang/IllegalStateException;

    const-string p3, "Media requires a DrmSessionManager"

    invoke-direct {p1, p3}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, p1, p2}, Lf/b/b/b/t;->u(Ljava/lang/Exception;Lf/b/b/b/f0;)Lf/b/b/b/a0;

    move-result-object p1

    throw p1

    :cond_32
    :goto_32
    if-eqz p4, :cond_37

    invoke-interface {p4}, Lf/b/b/b/i1/p;->release()V

    :cond_37
    return-object v1
.end method