y.smali

.class final Lf/b/b/b/y;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lf/b/b/b/s1/t;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lf/b/b/b/y$a;
    }
.end annotation


# instance fields
.field private final e:Lf/b/b/b/s1/f0;

.field private final f:Lf/b/b/b/y$a;

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

.field private h:Lf/b/b/b/s1/t;

.field private i:Z

.field private j:Z


# direct methods
.method public constructor <init>(Lf/b/b/b/y$a;Lf/b/b/b/s1/g;)V
    .registers 3

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

    iput-object p1, p0, Lf/b/b/b/y;->f:Lf/b/b/b/y$a;

    new-instance p1, Lf/b/b/b/s1/f0;

    invoke-direct {p1, p2}, Lf/b/b/b/s1/f0;-><init>(Lf/b/b/b/s1/g;)V

    iput-object p1, p0, Lf/b/b/b/y;->e:Lf/b/b/b/s1/f0;

    const/4 p1, 0x1

    iput-boolean p1, p0, Lf/b/b/b/y;->i:Z

    return-void
.end method

.method private f(Z)Z
    .registers 3

    iget-object v0, p0, Lf/b/b/b/y;->g:Lf/b/b/b/u0;

    if-eqz v0, :cond_1f

    invoke-interface {v0}, Lf/b/b/b/u0;->b()Z

    move-result v0

    if-nez v0, :cond_1f

    iget-object v0, p0, Lf/b/b/b/y;->g:Lf/b/b/b/u0;

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

    move-result v0

    if-nez v0, :cond_1d

    if-nez p1, :cond_1f

    iget-object p1, p0, Lf/b/b/b/y;->g:Lf/b/b/b/u0;

    invoke-interface {p1}, Lf/b/b/b/u0;->e()Z

    move-result p1

    if-eqz p1, :cond_1d

    goto :goto_1f

    :cond_1d
    const/4 p1, 0x0

    goto :goto_20

    :cond_1f
    :goto_1f
    const/4 p1, 0x1

    :goto_20
    return p1
.end method

.method private k(Z)V
    .registers 6

    invoke-direct {p0, p1}, Lf/b/b/b/y;->f(Z)Z

    move-result p1

    if-eqz p1, :cond_13

    const/4 p1, 0x1

    iput-boolean p1, p0, Lf/b/b/b/y;->i:Z

    iget-boolean p1, p0, Lf/b/b/b/y;->j:Z

    if-eqz p1, :cond_12

    iget-object p1, p0, Lf/b/b/b/y;->e:Lf/b/b/b/s1/f0;

    invoke-virtual {p1}, Lf/b/b/b/s1/f0;->b()V

    :cond_12
    return-void

    :cond_13
    iget-object p1, p0, Lf/b/b/b/y;->h:Lf/b/b/b/s1/t;

    invoke-interface {p1}, Lf/b/b/b/s1/t;->i()J

    move-result-wide v0

    iget-boolean p1, p0, Lf/b/b/b/y;->i:Z

    if-eqz p1, :cond_39

    iget-object p1, p0, Lf/b/b/b/y;->e:Lf/b/b/b/s1/f0;

    invoke-virtual {p1}, Lf/b/b/b/s1/f0;->i()J

    move-result-wide v2

    cmp-long p1, v0, v2

    if-gez p1, :cond_2d

    iget-object p1, p0, Lf/b/b/b/y;->e:Lf/b/b/b/s1/f0;

    invoke-virtual {p1}, Lf/b/b/b/s1/f0;->e()V

    return-void

    :cond_2d
    const/4 p1, 0x0

    iput-boolean p1, p0, Lf/b/b/b/y;->i:Z

    iget-boolean p1, p0, Lf/b/b/b/y;->j:Z

    if-eqz p1, :cond_39

    iget-object p1, p0, Lf/b/b/b/y;->e:Lf/b/b/b/s1/f0;

    invoke-virtual {p1}, Lf/b/b/b/s1/f0;->b()V

    :cond_39
    iget-object p1, p0, Lf/b/b/b/y;->e:Lf/b/b/b/s1/f0;

    invoke-virtual {p1, v0, v1}, Lf/b/b/b/s1/f0;->a(J)V

    iget-object p1, p0, Lf/b/b/b/y;->h:Lf/b/b/b/s1/t;

    invoke-interface {p1}, Lf/b/b/b/s1/t;->c()Lf/b/b/b/o0;

    move-result-object p1

    iget-object v0, p0, Lf/b/b/b/y;->e:Lf/b/b/b/s1/f0;

    invoke-virtual {v0}, Lf/b/b/b/s1/f0;->c()Lf/b/b/b/o0;

    move-result-object v0

    invoke-virtual {p1, v0}, Lf/b/b/b/o0;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_5a

    iget-object v0, p0, Lf/b/b/b/y;->e:Lf/b/b/b/s1/f0;

    invoke-virtual {v0, p1}, Lf/b/b/b/s1/f0;->d(Lf/b/b/b/o0;)V

    iget-object v0, p0, Lf/b/b/b/y;->f:Lf/b/b/b/y$a;

    invoke-interface {v0, p1}, Lf/b/b/b/y$a;->c(Lf/b/b/b/o0;)V

    :cond_5a
    return-void
.end method


# virtual methods
.method public a(Lf/b/b/b/u0;)V
    .registers 3

    iget-object v0, p0, Lf/b/b/b/y;->g:Lf/b/b/b/u0;

    if-ne p1, v0, :cond_c

    const/4 p1, 0x0

    iput-object p1, p0, Lf/b/b/b/y;->h:Lf/b/b/b/s1/t;

    iput-object p1, p0, Lf/b/b/b/y;->g:Lf/b/b/b/u0;

    const/4 p1, 0x1

    iput-boolean p1, p0, Lf/b/b/b/y;->i:Z

    :cond_c
    return-void
.end method

.method public b(Lf/b/b/b/u0;)V
    .registers 4

    invoke-interface {p1}, Lf/b/b/b/u0;->s()Lf/b/b/b/s1/t;

    move-result-object v0

    if-eqz v0, :cond_26

    iget-object v1, p0, Lf/b/b/b/y;->h:Lf/b/b/b/s1/t;

    if-eq v0, v1, :cond_26

    if-nez v1, :cond_1a

    iput-object v0, p0, Lf/b/b/b/y;->h:Lf/b/b/b/s1/t;

    iput-object p1, p0, Lf/b/b/b/y;->g:Lf/b/b/b/u0;

    iget-object p1, p0, Lf/b/b/b/y;->e:Lf/b/b/b/s1/f0;

    invoke-virtual {p1}, Lf/b/b/b/s1/f0;->c()Lf/b/b/b/o0;

    move-result-object p1

    invoke-interface {v0, p1}, Lf/b/b/b/s1/t;->d(Lf/b/b/b/o0;)V

    goto :goto_26

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

    const-string v0, "Multiple renderer media clocks enabled."

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

    invoke-static {p1}, Lf/b/b/b/a0;->i(Ljava/lang/RuntimeException;)Lf/b/b/b/a0;

    move-result-object p1

    throw p1

    :cond_26
    :goto_26
    return-void
.end method

.method public c()Lf/b/b/b/o0;
    .registers 2

    iget-object v0, p0, Lf/b/b/b/y;->h:Lf/b/b/b/s1/t;

    if-eqz v0, :cond_9

    invoke-interface {v0}, Lf/b/b/b/s1/t;->c()Lf/b/b/b/o0;

    move-result-object v0

    goto :goto_f

    :cond_9
    iget-object v0, p0, Lf/b/b/b/y;->e:Lf/b/b/b/s1/f0;

    invoke-virtual {v0}, Lf/b/b/b/s1/f0;->c()Lf/b/b/b/o0;

    move-result-object v0

    :goto_f
    return-object v0
.end method

.method public d(Lf/b/b/b/o0;)V
    .registers 3

    iget-object v0, p0, Lf/b/b/b/y;->h:Lf/b/b/b/s1/t;

    if-eqz v0, :cond_d

    invoke-interface {v0, p1}, Lf/b/b/b/s1/t;->d(Lf/b/b/b/o0;)V

    iget-object p1, p0, Lf/b/b/b/y;->h:Lf/b/b/b/s1/t;

    invoke-interface {p1}, Lf/b/b/b/s1/t;->c()Lf/b/b/b/o0;

    move-result-object p1

    :cond_d
    iget-object v0, p0, Lf/b/b/b/y;->e:Lf/b/b/b/s1/f0;

    invoke-virtual {v0, p1}, Lf/b/b/b/s1/f0;->d(Lf/b/b/b/o0;)V

    return-void
.end method

.method public e(J)V
    .registers 4

    iget-object v0, p0, Lf/b/b/b/y;->e:Lf/b/b/b/s1/f0;

    invoke-virtual {v0, p1, p2}, Lf/b/b/b/s1/f0;->a(J)V

    return-void
.end method

.method public g()V
    .registers 2

    const/4 v0, 0x1

    iput-boolean v0, p0, Lf/b/b/b/y;->j:Z

    iget-object v0, p0, Lf/b/b/b/y;->e:Lf/b/b/b/s1/f0;

    invoke-virtual {v0}, Lf/b/b/b/s1/f0;->b()V

    return-void
.end method

.method public h()V
    .registers 2

    const/4 v0, 0x0

    iput-boolean v0, p0, Lf/b/b/b/y;->j:Z

    iget-object v0, p0, Lf/b/b/b/y;->e:Lf/b/b/b/s1/f0;

    invoke-virtual {v0}, Lf/b/b/b/s1/f0;->e()V

    return-void
.end method

.method public i()J
    .registers 3

    iget-boolean v0, p0, Lf/b/b/b/y;->i:Z

    if-eqz v0, :cond_b

    iget-object v0, p0, Lf/b/b/b/y;->e:Lf/b/b/b/s1/f0;

    invoke-virtual {v0}, Lf/b/b/b/s1/f0;->i()J

    move-result-wide v0

    goto :goto_11

    :cond_b
    iget-object v0, p0, Lf/b/b/b/y;->h:Lf/b/b/b/s1/t;

    invoke-interface {v0}, Lf/b/b/b/s1/t;->i()J

    move-result-wide v0

    :goto_11
    return-wide v0
.end method

.method public j(Z)J
    .registers 4

    invoke-direct {p0, p1}, Lf/b/b/b/y;->k(Z)V

    invoke-virtual {p0}, Lf/b/b/b/y;->i()J

    move-result-wide v0

    return-wide v0
.end method