f0.smali

.class final Lf/b/b/b/k1/g0/f0;
.super Ljava/lang/Object;
.source ""


# instance fields
.field private final a:Lf/b/b/b/s1/j0;

.field private final b:Lf/b/b/b/s1/y;

.field private c:Z

.field private d:Z

.field private e:Z

.field private f:J

.field private g:J

.field private h:J


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

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

    new-instance v0, Lf/b/b/b/s1/j0;

    const-wide/16 v1, 0x0

    invoke-direct {v0, v1, v2}, Lf/b/b/b/s1/j0;-><init>(J)V

    iput-object v0, p0, Lf/b/b/b/k1/g0/f0;->a:Lf/b/b/b/s1/j0;

    const-wide v0, -0x7fffffffffffffffL    # -4.9E-324

    iput-wide v0, p0, Lf/b/b/b/k1/g0/f0;->f:J

    iput-wide v0, p0, Lf/b/b/b/k1/g0/f0;->g:J

    iput-wide v0, p0, Lf/b/b/b/k1/g0/f0;->h:J

    new-instance v0, Lf/b/b/b/s1/y;

    invoke-direct {v0}, Lf/b/b/b/s1/y;-><init>()V

    iput-object v0, p0, Lf/b/b/b/k1/g0/f0;->b:Lf/b/b/b/s1/y;

    return-void
.end method

.method private a(Lf/b/b/b/k1/i;)I
    .registers 4

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

    sget-object v1, Lf/b/b/b/s1/m0;->f:[B

    invoke-virtual {v0, v1}, Lf/b/b/b/s1/y;->K([B)V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lf/b/b/b/k1/g0/f0;->c:Z

    invoke-interface {p1}, Lf/b/b/b/k1/i;->g()V

    const/4 p1, 0x0

    return p1
.end method

.method private f(Lf/b/b/b/k1/i;Lf/b/b/b/k1/s;I)I
    .registers 12

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

    move-result-wide v0

    const-wide/32 v2, 0x1b8a0

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

    move-result-wide v0

    long-to-int v1, v0

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

    move-result-wide v2

    const/4 v0, 0x0

    int-to-long v4, v0

    const/4 v6, 0x1

    cmp-long v7, v2, v4

    if-eqz v7, :cond_1a

    iput-wide v4, p2, Lf/b/b/b/k1/s;->a:J

    return v6

    :cond_1a
    iget-object p2, p0, Lf/b/b/b/k1/g0/f0;->b:Lf/b/b/b/s1/y;

    invoke-virtual {p2, v1}, Lf/b/b/b/s1/y;->J(I)V

    invoke-interface {p1}, Lf/b/b/b/k1/i;->g()V

    iget-object p2, p0, Lf/b/b/b/k1/g0/f0;->b:Lf/b/b/b/s1/y;

    iget-object p2, p2, Lf/b/b/b/s1/y;->a:[B

    invoke-interface {p1, p2, v0, v1}, Lf/b/b/b/k1/i;->j([BII)V

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

    invoke-direct {p0, p1, p3}, Lf/b/b/b/k1/g0/f0;->g(Lf/b/b/b/s1/y;I)J

    move-result-wide p1

    iput-wide p1, p0, Lf/b/b/b/k1/g0/f0;->f:J

    iput-boolean v6, p0, Lf/b/b/b/k1/g0/f0;->d:Z

    return v0
.end method

.method private g(Lf/b/b/b/s1/y;I)J
    .registers 10

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

    move-result v0

    invoke-virtual {p1}, Lf/b/b/b/s1/y;->d()I

    move-result v1

    :goto_8
    const-wide v2, -0x7fffffffffffffffL    # -4.9E-324

    if-ge v0, v1, :cond_24

    iget-object v4, p1, Lf/b/b/b/s1/y;->a:[B

    aget-byte v4, v4, v0

    const/16 v5, 0x47

    if-eq v4, v5, :cond_18

    goto :goto_21

    :cond_18
    invoke-static {p1, v0, p2}, Lf/b/b/b/k1/g0/i0;->b(Lf/b/b/b/s1/y;II)J

    move-result-wide v4

    cmp-long v6, v4, v2

    if-eqz v6, :cond_21

    return-wide v4

    :cond_21
    :goto_21
    add-int/lit8 v0, v0, 0x1

    goto :goto_8

    :cond_24
    return-wide v2
.end method

.method private h(Lf/b/b/b/k1/i;Lf/b/b/b/k1/s;I)I
    .registers 11

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

    move-result-wide v0

    const-wide/32 v2, 0x1b8a0

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

    move-result-wide v2

    long-to-int v3, v2

    int-to-long v4, v3

    sub-long/2addr v0, v4

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

    move-result-wide v4

    const/4 v2, 0x1

    cmp-long v6, v4, v0

    if-eqz v6, :cond_1a

    iput-wide v0, p2, Lf/b/b/b/k1/s;->a:J

    return v2

    :cond_1a
    iget-object p2, p0, Lf/b/b/b/k1/g0/f0;->b:Lf/b/b/b/s1/y;

    invoke-virtual {p2, v3}, Lf/b/b/b/s1/y;->J(I)V

    invoke-interface {p1}, Lf/b/b/b/k1/i;->g()V

    iget-object p2, p0, Lf/b/b/b/k1/g0/f0;->b:Lf/b/b/b/s1/y;

    iget-object p2, p2, Lf/b/b/b/s1/y;->a:[B

    const/4 v0, 0x0

    invoke-interface {p1, p2, v0, v3}, Lf/b/b/b/k1/i;->j([BII)V

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

    invoke-direct {p0, p1, p3}, Lf/b/b/b/k1/g0/f0;->i(Lf/b/b/b/s1/y;I)J

    move-result-wide p1

    iput-wide p1, p0, Lf/b/b/b/k1/g0/f0;->g:J

    iput-boolean v2, p0, Lf/b/b/b/k1/g0/f0;->e:Z

    return v0
.end method

.method private i(Lf/b/b/b/s1/y;I)J
    .registers 10

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

    move-result v0

    invoke-virtual {p1}, Lf/b/b/b/s1/y;->d()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    :goto_a
    const-wide v2, -0x7fffffffffffffffL    # -4.9E-324

    if-lt v1, v0, :cond_26

    iget-object v4, p1, Lf/b/b/b/s1/y;->a:[B

    aget-byte v4, v4, v1

    const/16 v5, 0x47

    if-eq v4, v5, :cond_1a

    goto :goto_23

    :cond_1a
    invoke-static {p1, v1, p2}, Lf/b/b/b/k1/g0/i0;->b(Lf/b/b/b/s1/y;II)J

    move-result-wide v4

    cmp-long v6, v4, v2

    if-eqz v6, :cond_23

    return-wide v4

    :cond_23
    :goto_23
    add-int/lit8 v1, v1, -0x1

    goto :goto_a

    :cond_26
    return-wide v2
.end method


# virtual methods
.method public b()J
    .registers 3

    iget-wide v0, p0, Lf/b/b/b/k1/g0/f0;->h:J

    return-wide v0
.end method

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

    iget-object v0, p0, Lf/b/b/b/k1/g0/f0;->a:Lf/b/b/b/s1/j0;

    return-object v0
.end method

.method public d()Z
    .registers 2

    iget-boolean v0, p0, Lf/b/b/b/k1/g0/f0;->c:Z

    return v0
.end method

.method public e(Lf/b/b/b/k1/i;Lf/b/b/b/k1/s;I)I
    .registers 9

    if-gtz p3, :cond_7

    invoke-direct {p0, p1}, Lf/b/b/b/k1/g0/f0;->a(Lf/b/b/b/k1/i;)I

    move-result p1

    return p1

    :cond_7
    iget-boolean v0, p0, Lf/b/b/b/k1/g0/f0;->e:Z

    if-nez v0, :cond_10

    invoke-direct {p0, p1, p2, p3}, Lf/b/b/b/k1/g0/f0;->h(Lf/b/b/b/k1/i;Lf/b/b/b/k1/s;I)I

    move-result p1

    return p1

    :cond_10
    iget-wide v0, p0, Lf/b/b/b/k1/g0/f0;->g:J

    const-wide v2, -0x7fffffffffffffffL    # -4.9E-324

    cmp-long v4, v0, v2

    if-nez v4, :cond_20

    invoke-direct {p0, p1}, Lf/b/b/b/k1/g0/f0;->a(Lf/b/b/b/k1/i;)I

    move-result p1

    return p1

    :cond_20
    iget-boolean v0, p0, Lf/b/b/b/k1/g0/f0;->d:Z

    if-nez v0, :cond_29

    invoke-direct {p0, p1, p2, p3}, Lf/b/b/b/k1/g0/f0;->f(Lf/b/b/b/k1/i;Lf/b/b/b/k1/s;I)I

    move-result p1

    return p1

    :cond_29
    iget-wide p2, p0, Lf/b/b/b/k1/g0/f0;->f:J

    cmp-long v0, p2, v2

    if-nez v0, :cond_34

    invoke-direct {p0, p1}, Lf/b/b/b/k1/g0/f0;->a(Lf/b/b/b/k1/i;)I

    move-result p1

    return p1

    :cond_34
    iget-object v0, p0, Lf/b/b/b/k1/g0/f0;->a:Lf/b/b/b/s1/j0;

    invoke-virtual {v0, p2, p3}, Lf/b/b/b/s1/j0;->b(J)J

    move-result-wide p2

    iget-object v0, p0, Lf/b/b/b/k1/g0/f0;->a:Lf/b/b/b/s1/j0;

    iget-wide v1, p0, Lf/b/b/b/k1/g0/f0;->g:J

    invoke-virtual {v0, v1, v2}, Lf/b/b/b/s1/j0;->b(J)J

    move-result-wide v0

    sub-long/2addr v0, p2

    iput-wide v0, p0, Lf/b/b/b/k1/g0/f0;->h:J

    invoke-direct {p0, p1}, Lf/b/b/b/k1/g0/f0;->a(Lf/b/b/b/k1/i;)I

    move-result p1

    return p1
.end method