.class public final Lz5/m9;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lz5/v8;


# instance fields
.field public b:I

.field public c:I

.field public d:Lz5/l9;

.field public e:F

.field public f:F

.field public g:Ljava/nio/ByteBuffer;

.field public h:Ljava/nio/ShortBuffer;

.field public i:Ljava/nio/ByteBuffer;

.field public j:J

.field public k:J

.field public l:Z


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

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

    const/high16 v0, 0x3f800000    # 1.0f

    iput v0, p0, Lz5/m9;->e:F

    iput v0, p0, Lz5/m9;->f:F

    const/4 v0, -0x1

    iput v0, p0, Lz5/m9;->b:I

    iput v0, p0, Lz5/m9;->c:I

    sget-object v0, Lz5/v8;->a:Ljava/nio/ByteBuffer;

    iput-object v0, p0, Lz5/m9;->g:Ljava/nio/ByteBuffer;

    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->asShortBuffer()Ljava/nio/ShortBuffer;

    move-result-object v1

    iput-object v1, p0, Lz5/m9;->h:Ljava/nio/ShortBuffer;

    iput-object v0, p0, Lz5/m9;->i:Ljava/nio/ByteBuffer;

    return-void
.end method


# virtual methods
.method public final a(III)Z
    .registers 5

    const/4 v0, 0x2

    if-ne p3, v0, :cond_13

    iget p3, p0, Lz5/m9;->c:I

    if-ne p3, p1, :cond_d

    iget p3, p0, Lz5/m9;->b:I

    if-ne p3, p2, :cond_d

    const/4 p1, 0x0

    return p1

    :cond_d
    iput p1, p0, Lz5/m9;->c:I

    iput p2, p0, Lz5/m9;->b:I

    const/4 p1, 0x1

    return p1

    :cond_13
    new-instance v0, Lz5/u8;

    invoke-direct {v0, p1, p2, p3}, Lz5/u8;-><init>(III)V

    throw v0
.end method

.method public final b(Ljava/nio/ByteBuffer;)V
    .registers 10

    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->hasRemaining()Z

    move-result v0

    if-eqz v0, :cond_41

    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->asShortBuffer()Ljava/nio/ShortBuffer;

    move-result-object v0

    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I

    move-result v1

    iget-wide v2, p0, Lz5/m9;->j:J

    int-to-long v4, v1

    add-long/2addr v2, v4

    iput-wide v2, p0, Lz5/m9;->j:J

    iget-object v2, p0, Lz5/m9;->d:Lz5/l9;

    invoke-static {v2}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 1
    invoke-virtual {v0}, Ljava/nio/ShortBuffer;->remaining()I

    move-result v3

    iget v4, v2, Lz5/l9;->b:I

    div-int/2addr v3, v4

    mul-int/2addr v4, v3

    invoke-virtual {v2, v3}, Lz5/l9;->b(I)V

    iget-object v5, v2, Lz5/l9;->h:[S

    iget v6, v2, Lz5/l9;->q:I

    iget v7, v2, Lz5/l9;->b:I

    mul-int/2addr v6, v7

    add-int/2addr v4, v4

    div-int/lit8 v4, v4, 0x2

    invoke-virtual {v0, v5, v6, v4}, Ljava/nio/ShortBuffer;->get([SII)Ljava/nio/ShortBuffer;

    iget v0, v2, Lz5/l9;->q:I

    add-int/2addr v0, v3

    iput v0, v2, Lz5/l9;->q:I

    invoke-virtual {v2}, Lz5/l9;->f()V

    .line 2
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->position()I

    move-result v0

    add-int/2addr v0, v1

    invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;

    :cond_41
    iget-object p1, p0, Lz5/m9;->d:Lz5/l9;

    .line 3
    iget p1, p1, Lz5/l9;->r:I

    .line 4
    iget v0, p0, Lz5/m9;->b:I

    mul-int/2addr p1, v0

    add-int/2addr p1, p1

    if-lez p1, :cond_ac

    iget-object v0, p0, Lz5/m9;->g:Ljava/nio/ByteBuffer;

    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->capacity()I

    move-result v0

    if-ge v0, p1, :cond_68

    invoke-static {p1}, Ljava/nio/ByteBuffer;->allocateDirect(I)Ljava/nio/ByteBuffer;

    move-result-object v0

    invoke-static {}, Ljava/nio/ByteOrder;->nativeOrder()Ljava/nio/ByteOrder;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;

    move-result-object v0

    iput-object v0, p0, Lz5/m9;->g:Ljava/nio/ByteBuffer;

    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->asShortBuffer()Ljava/nio/ShortBuffer;

    move-result-object v0

    iput-object v0, p0, Lz5/m9;->h:Ljava/nio/ShortBuffer;

    goto :goto_72

    :cond_68
    iget-object v0, p0, Lz5/m9;->g:Ljava/nio/ByteBuffer;

    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;

    iget-object v0, p0, Lz5/m9;->h:Ljava/nio/ShortBuffer;

    invoke-virtual {v0}, Ljava/nio/ShortBuffer;->clear()Ljava/nio/Buffer;

    :goto_72
    iget-object v0, p0, Lz5/m9;->d:Lz5/l9;

    iget-object v1, p0, Lz5/m9;->h:Ljava/nio/ShortBuffer;

    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 5
    invoke-virtual {v1}, Ljava/nio/ShortBuffer;->remaining()I

    move-result v2

    iget v3, v0, Lz5/l9;->b:I

    div-int/2addr v2, v3

    iget v3, v0, Lz5/l9;->r:I

    invoke-static {v2, v3}, Ljava/lang/Math;->min(II)I

    move-result v2

    iget-object v3, v0, Lz5/l9;->j:[S

    iget v4, v0, Lz5/l9;->b:I

    mul-int/2addr v4, v2

    const/4 v5, 0x0

    invoke-virtual {v1, v3, v5, v4}, Ljava/nio/ShortBuffer;->put([SII)Ljava/nio/ShortBuffer;

    iget v1, v0, Lz5/l9;->r:I

    sub-int/2addr v1, v2

    iput v1, v0, Lz5/l9;->r:I

    iget-object v3, v0, Lz5/l9;->j:[S

    iget v0, v0, Lz5/l9;->b:I

    mul-int/2addr v2, v0

    mul-int/2addr v1, v0

    invoke-static {v3, v2, v3, v5, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 6
    iget-wide v0, p0, Lz5/m9;->k:J

    int-to-long v2, p1

    add-long/2addr v0, v2

    iput-wide v0, p0, Lz5/m9;->k:J

    iget-object v0, p0, Lz5/m9;->g:Ljava/nio/ByteBuffer;

    invoke-virtual {v0, p1}, Ljava/nio/ByteBuffer;->limit(I)Ljava/nio/Buffer;

    iget-object p1, p0, Lz5/m9;->g:Ljava/nio/ByteBuffer;

    iput-object p1, p0, Lz5/m9;->i:Ljava/nio/ByteBuffer;

    :cond_ac
    return-void
.end method

.method public final zzb()Z
    .registers 4

    iget v0, p0, Lz5/m9;->e:F

    const/high16 v1, -0x40800000    # -1.0f

    add-float/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->abs(F)F

    move-result v0

    const v2, 0x3c23d70a    # 0.01f

    cmpl-float v0, v0, v2

    if-gez v0, :cond_1e

    iget v0, p0, Lz5/m9;->f:F

    add-float/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->abs(F)F

    move-result v0

    cmpl-float v0, v0, v2

    if-ltz v0, :cond_1c

    goto :goto_1e

    :cond_1c
    const/4 v0, 0x0

    return v0

    :cond_1e
    :goto_1e
    const/4 v0, 0x1

    return v0
.end method

.method public final zzc()I
    .registers 2

    iget v0, p0, Lz5/m9;->b:I

    return v0
.end method

.method public final zzd()I
    .registers 2

    const/4 v0, 0x2

    return v0
.end method

.method public final zzf()V
    .registers 9

    iget-object v0, p0, Lz5/m9;->d:Lz5/l9;

    .line 1
    iget v1, v0, Lz5/l9;->q:I

    iget v2, v0, Lz5/l9;->o:F

    iget v3, v0, Lz5/l9;->p:F

    iget v4, v0, Lz5/l9;->r:I

    int-to-float v5, v1

    div-float/2addr v2, v3

    div-float/2addr v5, v2

    iget v2, v0, Lz5/l9;->s:I

    int-to-float v2, v2

    add-float/2addr v5, v2

    div-float/2addr v5, v3

    const/high16 v2, 0x3f000000    # 0.5f

    add-float/2addr v5, v2

    float-to-int v2, v5

    add-int/2addr v4, v2

    iget v2, v0, Lz5/l9;->e:I

    add-int/2addr v2, v2

    add-int/2addr v2, v1

    invoke-virtual {v0, v2}, Lz5/l9;->b(I)V

    const/4 v2, 0x0

    move v3, v2

    :goto_20
    iget v5, v0, Lz5/l9;->e:I

    add-int/2addr v5, v5

    iget v6, v0, Lz5/l9;->b:I

    mul-int v7, v5, v6

    if-ge v3, v7, :cond_32

    iget-object v5, v0, Lz5/l9;->h:[S

    mul-int/2addr v6, v1

    add-int/2addr v6, v3

    aput-short v2, v5, v6

    add-int/lit8 v3, v3, 0x1

    goto :goto_20

    :cond_32
    iget v1, v0, Lz5/l9;->q:I

    add-int/2addr v1, v5

    iput v1, v0, Lz5/l9;->q:I

    invoke-virtual {v0}, Lz5/l9;->f()V

    iget v1, v0, Lz5/l9;->r:I

    if-le v1, v4, :cond_40

    iput v4, v0, Lz5/l9;->r:I

    :cond_40
    iput v2, v0, Lz5/l9;->q:I

    iput v2, v0, Lz5/l9;->t:I

    iput v2, v0, Lz5/l9;->s:I

    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Lz5/m9;->l:Z

    return-void
.end method

.method public final zzg()Ljava/nio/ByteBuffer;
    .registers 3

    iget-object v0, p0, Lz5/m9;->i:Ljava/nio/ByteBuffer;

    sget-object v1, Lz5/v8;->a:Ljava/nio/ByteBuffer;

    iput-object v1, p0, Lz5/m9;->i:Ljava/nio/ByteBuffer;

    return-object v0
.end method

.method public final zzh()Z
    .registers 3

    iget-boolean v0, p0, Lz5/m9;->l:Z

    const/4 v1, 0x1

    if-eqz v0, :cond_f

    iget-object v0, p0, Lz5/m9;->d:Lz5/l9;

    if-eqz v0, :cond_10

    .line 1
    iget v0, v0, Lz5/l9;->r:I

    if-eqz v0, :cond_e

    goto :goto_f

    :cond_e
    return v1

    :cond_f
    :goto_f
    const/4 v1, 0x0

    :cond_10
    return v1
.end method

.method public final zzi()V
    .registers 4

    new-instance v0, Lz5/l9;

    iget v1, p0, Lz5/m9;->c:I

    iget v2, p0, Lz5/m9;->b:I

    invoke-direct {v0, v1, v2}, Lz5/l9;-><init>(II)V

    iput-object v0, p0, Lz5/m9;->d:Lz5/l9;

    iget v1, p0, Lz5/m9;->e:F

    .line 1
    iput v1, v0, Lz5/l9;->o:F

    .line 2
    iget v1, p0, Lz5/m9;->f:F

    .line 3
    iput v1, v0, Lz5/l9;->p:F

    .line 4
    sget-object v0, Lz5/v8;->a:Ljava/nio/ByteBuffer;

    iput-object v0, p0, Lz5/m9;->i:Ljava/nio/ByteBuffer;

    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lz5/m9;->j:J

    iput-wide v0, p0, Lz5/m9;->k:J

    const/4 v0, 0x0

    iput-boolean v0, p0, Lz5/m9;->l:Z

    return-void
.end method

.method public final zzj()V
    .registers 3

    const/4 v0, 0x0

    iput-object v0, p0, Lz5/m9;->d:Lz5/l9;

    sget-object v0, Lz5/v8;->a:Ljava/nio/ByteBuffer;

    iput-object v0, p0, Lz5/m9;->g:Ljava/nio/ByteBuffer;

    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->asShortBuffer()Ljava/nio/ShortBuffer;

    move-result-object v1

    iput-object v1, p0, Lz5/m9;->h:Ljava/nio/ShortBuffer;

    iput-object v0, p0, Lz5/m9;->i:Ljava/nio/ByteBuffer;

    const/4 v0, -0x1

    iput v0, p0, Lz5/m9;->b:I

    iput v0, p0, Lz5/m9;->c:I

    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lz5/m9;->j:J

    iput-wide v0, p0, Lz5/m9;->k:J

    const/4 v0, 0x0

    iput-boolean v0, p0, Lz5/m9;->l:Z

    return-void
.end method
