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


# instance fields
.field public final a:I

.field public final b:I

.field public final c:F

.field public final d:F

.field public final e:F

.field public final f:I

.field public final g:I

.field public final h:I

.field public final i:[S

.field public j:[S

.field public k:I

.field public l:[S

.field public m:I

.field public n:[S

.field public o:I

.field public p:I

.field public q:I

.field public r:I

.field public s:I

.field public t:I

.field public u:I

.field public v:I


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

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

    iput p1, p0, Lz5/z01;->a:I

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

    iput p3, p0, Lz5/z01;->c:F

    iput p4, p0, Lz5/z01;->d:F

    int-to-float p3, p1

    int-to-float p4, p5

    div-float/2addr p3, p4

    iput p3, p0, Lz5/z01;->e:F

    div-int/lit16 p3, p1, 0x190

    iput p3, p0, Lz5/z01;->f:I

    div-int/lit8 p1, p1, 0x41

    iput p1, p0, Lz5/z01;->g:I

    add-int/2addr p1, p1

    iput p1, p0, Lz5/z01;->h:I

    new-array p3, p1, [S

    iput-object p3, p0, Lz5/z01;->i:[S

    mul-int/2addr p1, p2

    new-array p2, p1, [S

    iput-object p2, p0, Lz5/z01;->j:[S

    new-array p2, p1, [S

    iput-object p2, p0, Lz5/z01;->l:[S

    new-array p1, p1, [S

    iput-object p1, p0, Lz5/z01;->n:[S

    return-void
.end method

.method public static f(II[SI[SI[SI)V
    .registers 16

    const/4 v0, 0x0

    move v1, v0

    :goto_2
    if-ge v1, p1, :cond_26

    mul-int v2, p3, p1

    add-int/2addr v2, v1

    mul-int v3, p7, p1

    add-int/2addr v3, v1

    mul-int v4, p5, p1

    add-int/2addr v4, v1

    move v5, v0

    :goto_e
    if-ge v5, p0, :cond_23

    aget-short v6, p4, v4

    sub-int v7, p0, v5

    mul-int/2addr v7, v6

    aget-short v6, p6, v3

    mul-int/2addr v6, v5

    add-int/2addr v6, v7

    div-int/2addr v6, p0

    int-to-short v6, v6

    aput-short v6, p2, v2

    add-int/2addr v2, p1

    add-int/2addr v4, p1

    add-int/2addr v3, p1

    add-int/lit8 v5, v5, 0x1

    goto :goto_e

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

    goto :goto_2

    :cond_26
    return-void
.end method


# virtual methods
.method public final a([SII)[S
    .registers 6

    array-length v0, p1

    iget v1, p0, Lz5/z01;->b:I

    div-int/2addr v0, v1

    add-int/2addr p2, p3

    if-gt p2, v0, :cond_8

    return-object p1

    :cond_8
    mul-int/lit8 v0, v0, 0x3

    div-int/lit8 v0, v0, 0x2

    add-int/2addr v0, p3

    mul-int/2addr v0, v1

    invoke-static {p1, v0}, Ljava/util/Arrays;->copyOf([SI)[S

    move-result-object p1

    return-object p1
.end method

.method public final b([SII)V
    .registers 7

    iget-object v0, p0, Lz5/z01;->l:[S

    iget v1, p0, Lz5/z01;->m:I

    invoke-virtual {p0, v0, v1, p3}, Lz5/z01;->a([SII)[S

    move-result-object v0

    iput-object v0, p0, Lz5/z01;->l:[S

    iget v1, p0, Lz5/z01;->b:I

    mul-int/2addr p2, v1

    iget v2, p0, Lz5/z01;->m:I

    mul-int/2addr v2, v1

    mul-int/2addr v1, p3

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

    iget p1, p0, Lz5/z01;->m:I

    add-int/2addr p1, p3

    iput p1, p0, Lz5/z01;->m:I

    return-void
.end method

.method public final c([SII)V
    .registers 10

    iget v0, p0, Lz5/z01;->h:I

    div-int/2addr v0, p3

    iget v1, p0, Lz5/z01;->b:I

    mul-int/2addr p3, v1

    mul-int/2addr p2, v1

    const/4 v1, 0x0

    move v2, v1

    :goto_9
    if-ge v2, v0, :cond_22

    move v3, v1

    move v4, v3

    :goto_d
    if-ge v3, p3, :cond_19

    mul-int v5, v2, p3

    add-int/2addr v5, p2

    add-int/2addr v5, v3

    aget-short v5, p1, v5

    add-int/2addr v4, v5

    add-int/lit8 v3, v3, 0x1

    goto :goto_d

    :cond_19
    div-int/2addr v4, p3

    iget-object v3, p0, Lz5/z01;->i:[S

    int-to-short v4, v4

    aput-short v4, v3, v2

    add-int/lit8 v2, v2, 0x1

    goto :goto_9

    :cond_22
    return-void
.end method

.method public final d([SIII)I
    .registers 14

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

    mul-int/2addr p2, v0

    const/4 v0, 0x1

    const/4 v1, 0x0

    const/16 v2, 0xff

    move v3, v1

    move v4, v3

    :goto_9
    if-gt p3, p4, :cond_38

    move v5, v1

    move v6, v5

    :goto_d
    if-ge v5, p3, :cond_21

    add-int v7, p2, v5

    aget-short v7, p1, v7

    add-int v8, p2, p3

    add-int/2addr v8, v5

    aget-short v8, p1, v8

    sub-int/2addr v7, v8

    invoke-static {v7}, Ljava/lang/Math;->abs(I)I

    move-result v7

    add-int/2addr v6, v7

    add-int/lit8 v5, v5, 0x1

    goto :goto_d

    :cond_21
    mul-int v5, v6, v3

    mul-int v7, v0, p3

    if-ge v5, v7, :cond_28

    move v0, v6

    :cond_28
    if-ge v5, v7, :cond_2b

    move v3, p3

    :cond_2b
    mul-int v5, v6, v2

    mul-int v7, v4, p3

    if-le v5, v7, :cond_32

    move v4, v6

    :cond_32
    if-le v5, v7, :cond_35

    move v2, p3

    :cond_35
    add-int/lit8 p3, p3, 0x1

    goto :goto_9

    :cond_38
    div-int/2addr v0, v3

    iput v0, p0, Lz5/z01;->u:I

    div-int/2addr v4, v2

    iput v4, p0, Lz5/z01;->v:I

    return v3
.end method

.method public final e()V
    .registers 21

    move-object/from16 v0, p0

    iget v1, v0, Lz5/z01;->m:I

    iget v2, v0, Lz5/z01;->c:F

    iget v3, v0, Lz5/z01;->d:F

    div-float/2addr v2, v3

    iget v4, v0, Lz5/z01;->e:F

    mul-float/2addr v4, v3

    float-to-double v5, v2

    const-wide v7, 0x3ff0000a7c5ac472L    # 1.00001

    cmpl-double v3, v5, v7

    const/high16 v7, 0x3f800000    # 1.0f

    const/4 v8, 0x0

    const/4 v9, 0x1

    if-gtz v3, :cond_2f

    const-wide v10, 0x3fefffeb074a771dL    # 0.99999

    cmpg-double v3, v5, v10

    if-gez v3, :cond_24

    goto :goto_2f

    :cond_24
    iget-object v2, v0, Lz5/z01;->j:[S

    iget v3, v0, Lz5/z01;->k:I

    invoke-virtual {v0, v2, v8, v3}, Lz5/z01;->b([SII)V

    iput v8, v0, Lz5/z01;->k:I

    goto/16 :goto_177

    :cond_2f
    :goto_2f
    iget v3, v0, Lz5/z01;->k:I

    iget v10, v0, Lz5/z01;->h:I

    if-ge v3, v10, :cond_37

    goto/16 :goto_177

    :cond_37
    move v10, v8

    :goto_38
    iget v11, v0, Lz5/z01;->r:I

    if-lez v11, :cond_4f

    iget v12, v0, Lz5/z01;->h:I

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

    move-result v11

    iget-object v12, v0, Lz5/z01;->j:[S

    invoke-virtual {v0, v12, v10, v11}, Lz5/z01;->b([SII)V

    iget v12, v0, Lz5/z01;->r:I

    sub-int/2addr v12, v11

    iput v12, v0, Lz5/z01;->r:I

    add-int/2addr v10, v11

    goto/16 :goto_162

    :cond_4f
    iget-object v11, v0, Lz5/z01;->j:[S

    iget v12, v0, Lz5/z01;->a:I

    const/16 v13, 0xfa0

    if-le v12, v13, :cond_5a

    div-int/lit16 v12, v12, 0xfa0

    goto :goto_5b

    :cond_5a
    move v12, v9

    :goto_5b
    iget v13, v0, Lz5/z01;->b:I

    if-ne v13, v9, :cond_6a

    if-ne v12, v9, :cond_6a

    iget v12, v0, Lz5/z01;->f:I

    iget v13, v0, Lz5/z01;->g:I

    invoke-virtual {v0, v11, v10, v12, v13}, Lz5/z01;->d([SIII)I

    move-result v11

    goto :goto_a0

    :cond_6a
    invoke-virtual {v0, v11, v10, v12}, Lz5/z01;->c([SII)V

    iget-object v13, v0, Lz5/z01;->i:[S

    iget v14, v0, Lz5/z01;->f:I

    div-int/2addr v14, v12

    iget v15, v0, Lz5/z01;->g:I

    div-int/2addr v15, v12

    invoke-virtual {v0, v13, v8, v14, v15}, Lz5/z01;->d([SIII)I

    move-result v13

    if-eq v12, v9, :cond_9f

    mul-int/2addr v13, v12

    mul-int/lit8 v12, v12, 0x4

    sub-int v14, v13, v12

    add-int/2addr v13, v12

    iget v12, v0, Lz5/z01;->f:I

    if-lt v14, v12, :cond_86

    goto :goto_87

    :cond_86
    move v14, v12

    :goto_87
    iget v12, v0, Lz5/z01;->g:I

    if-le v13, v12, :cond_8c

    move v13, v12

    :cond_8c
    iget v12, v0, Lz5/z01;->b:I

    if-ne v12, v9, :cond_95

    invoke-virtual {v0, v11, v10, v14, v13}, Lz5/z01;->d([SIII)I

    move-result v11

    goto :goto_a0

    :cond_95
    invoke-virtual {v0, v11, v10, v9}, Lz5/z01;->c([SII)V

    iget-object v11, v0, Lz5/z01;->i:[S

    invoke-virtual {v0, v11, v8, v14, v13}, Lz5/z01;->d([SIII)I

    move-result v11

    goto :goto_a0

    :cond_9f
    move v11, v13

    :goto_a0
    iget v12, v0, Lz5/z01;->u:I

    iget v13, v0, Lz5/z01;->v:I

    if-eqz v12, :cond_bb

    iget v14, v0, Lz5/z01;->s:I

    if-nez v14, :cond_ab

    goto :goto_bb

    :cond_ab
    mul-int/lit8 v15, v12, 0x3

    if-le v13, v15, :cond_b0

    goto :goto_bb

    :cond_b0
    add-int v13, v12, v12

    iget v15, v0, Lz5/z01;->t:I

    mul-int/lit8 v15, v15, 0x3

    if-gt v13, v15, :cond_b9

    goto :goto_bb

    :cond_b9
    move v15, v14

    goto :goto_bc

    :cond_bb
    :goto_bb
    move v15, v11

    :goto_bc
    iput v12, v0, Lz5/z01;->t:I

    iput v11, v0, Lz5/z01;->s:I

    const-wide/high16 v11, 0x3ff0000000000000L    # 1.0

    cmpl-double v11, v5, v11

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

    if-lez v11, :cond_110

    iget-object v14, v0, Lz5/z01;->j:[S

    const/high16 v11, 0x40000000    # 2.0f

    cmpl-float v13, v2, v11

    if-ltz v13, :cond_d6

    int-to-float v11, v15

    add-float/2addr v12, v2

    div-float/2addr v11, v12

    float-to-int v11, v11

    move v13, v11

    goto :goto_df

    :cond_d6
    int-to-float v13, v15

    sub-float/2addr v11, v2

    mul-float/2addr v11, v13

    add-float/2addr v12, v2

    div-float/2addr v11, v12

    float-to-int v11, v11

    iput v11, v0, Lz5/z01;->r:I

    move v13, v15

    :goto_df
    iget-object v11, v0, Lz5/z01;->l:[S

    iget v12, v0, Lz5/z01;->m:I

    invoke-virtual {v0, v11, v12, v13}, Lz5/z01;->a([SII)[S

    move-result-object v12

    iput-object v12, v0, Lz5/z01;->l:[S

    iget v11, v0, Lz5/z01;->b:I

    iget v9, v0, Lz5/z01;->m:I

    add-int v18, v10, v15

    move/from16 v16, v11

    move v11, v13

    move-object/from16 v17, v12

    move/from16 v12, v16

    move/from16 v19, v13

    move-object/from16 v13, v17

    move-object/from16 v17, v14

    move v14, v9

    move v9, v15

    move-object/from16 v15, v17

    move/from16 v16, v10

    invoke-static/range {v11 .. v18}, Lz5/z01;->f(II[SI[SI[SI)V

    iget v11, v0, Lz5/z01;->m:I

    add-int v11, v11, v19

    iput v11, v0, Lz5/z01;->m:I

    add-int v15, v9, v19

    add-int/2addr v15, v10

    move v10, v15

    goto :goto_162

    :cond_110
    move v9, v15

    iget-object v15, v0, Lz5/z01;->j:[S

    const/high16 v11, 0x3f000000    # 0.5f

    cmpg-float v11, v2, v11

    if-gez v11, :cond_122

    int-to-float v11, v9

    mul-float/2addr v11, v2

    sub-float v12, v7, v2

    div-float/2addr v11, v12

    float-to-int v11, v11

    move/from16 v19, v11

    goto :goto_12f

    :cond_122
    int-to-float v11, v9

    add-float v13, v2, v2

    add-float/2addr v13, v12

    mul-float/2addr v13, v11

    sub-float v11, v7, v2

    div-float/2addr v13, v11

    float-to-int v11, v13

    iput v11, v0, Lz5/z01;->r:I

    move/from16 v19, v9

    :goto_12f
    add-int v14, v9, v19

    iget-object v11, v0, Lz5/z01;->l:[S

    iget v12, v0, Lz5/z01;->m:I

    invoke-virtual {v0, v11, v12, v14}, Lz5/z01;->a([SII)[S

    move-result-object v11

    iput-object v11, v0, Lz5/z01;->l:[S

    iget v12, v0, Lz5/z01;->b:I

    mul-int v13, v10, v12

    iget v7, v0, Lz5/z01;->m:I

    mul-int/2addr v7, v12

    mul-int/2addr v12, v9

    invoke-static {v15, v13, v11, v7, v12}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    iget v12, v0, Lz5/z01;->b:I

    iget-object v13, v0, Lz5/z01;->l:[S

    iget v7, v0, Lz5/z01;->m:I

    add-int/2addr v7, v9

    add-int v16, v10, v9

    move/from16 v11, v19

    move v9, v14

    move v14, v7

    move-object v7, v15

    move-object/from16 v17, v7

    move/from16 v18, v10

    invoke-static/range {v11 .. v18}, Lz5/z01;->f(II[SI[SI[SI)V

    iget v7, v0, Lz5/z01;->m:I

    add-int/2addr v7, v9

    iput v7, v0, Lz5/z01;->m:I

    add-int v10, v10, v19

    :goto_162
    iget v7, v0, Lz5/z01;->h:I

    add-int/2addr v7, v10

    if-le v7, v3, :cond_234

    iget v2, v0, Lz5/z01;->k:I

    sub-int/2addr v2, v10

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

    iget v5, v0, Lz5/z01;->b:I

    mul-int/2addr v10, v5

    mul-int/2addr v5, v2

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

    iput v2, v0, Lz5/z01;->k:I

    const/high16 v7, 0x3f800000    # 1.0f

    :goto_177
    cmpl-float v2, v4, v7

    if-eqz v2, :cond_233

    iget v2, v0, Lz5/z01;->m:I

    if-ne v2, v1, :cond_181

    goto/16 :goto_233

    :cond_181
    iget v2, v0, Lz5/z01;->a:I

    int-to-float v3, v2

    div-float/2addr v3, v4

    float-to-int v3, v3

    :goto_186
    const/16 v4, 0x4000

    if-gt v3, v4, :cond_22c

    if-le v2, v4, :cond_18e

    goto/16 :goto_22c

    :cond_18e
    iget v4, v0, Lz5/z01;->m:I

    sub-int/2addr v4, v1

    iget-object v5, v0, Lz5/z01;->n:[S

    iget v6, v0, Lz5/z01;->o:I

    invoke-virtual {v0, v5, v6, v4}, Lz5/z01;->a([SII)[S

    move-result-object v5

    iput-object v5, v0, Lz5/z01;->n:[S

    iget-object v6, v0, Lz5/z01;->l:[S

    iget v7, v0, Lz5/z01;->b:I

    mul-int v9, v1, v7

    iget v10, v0, Lz5/z01;->o:I

    mul-int/2addr v10, v7

    mul-int/2addr v7, v4

    invoke-static {v6, v9, v5, v10, v7}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    iput v1, v0, Lz5/z01;->m:I

    iget v1, v0, Lz5/z01;->o:I

    add-int/2addr v1, v4

    iput v1, v0, Lz5/z01;->o:I

    move v1, v8

    :goto_1b0
    iget v4, v0, Lz5/z01;->o:I

    add-int/lit8 v5, v4, -0x1

    if-ge v1, v5, :cond_219

    :goto_1b6
    iget v4, v0, Lz5/z01;->p:I

    const/4 v5, 0x1

    add-int/2addr v4, v5

    iget v6, v0, Lz5/z01;->q:I

    mul-int v7, v4, v3

    mul-int v9, v6, v2

    if-le v7, v9, :cond_205

    iget-object v4, v0, Lz5/z01;->l:[S

    iget v6, v0, Lz5/z01;->m:I

    invoke-virtual {v0, v4, v6, v5}, Lz5/z01;->a([SII)[S

    move-result-object v4

    iput-object v4, v0, Lz5/z01;->l:[S

    move v4, v8

    :goto_1cd
    iget v5, v0, Lz5/z01;->b:I

    if-ge v4, v5, :cond_1f9

    iget-object v6, v0, Lz5/z01;->l:[S

    iget v7, v0, Lz5/z01;->m:I

    iget-object v9, v0, Lz5/z01;->n:[S

    mul-int v10, v1, v5

    add-int/2addr v10, v4

    aget-short v11, v9, v10

    add-int/2addr v10, v5

    aget-short v9, v9, v10

    iget v10, v0, Lz5/z01;->q:I

    iget v12, v0, Lz5/z01;->p:I

    add-int/lit8 v13, v12, 0x1

    mul-int/2addr v13, v3

    mul-int/2addr v10, v2

    sub-int v10, v13, v10

    mul-int/2addr v12, v3

    sub-int/2addr v13, v12

    mul-int/2addr v7, v5

    add-int/2addr v7, v4

    mul-int/2addr v11, v10

    sub-int v5, v13, v10

    mul-int/2addr v5, v9

    add-int/2addr v5, v11

    div-int/2addr v5, v13

    int-to-short v5, v5

    aput-short v5, v6, v7

    add-int/lit8 v4, v4, 0x1

    goto :goto_1cd

    :cond_1f9
    iget v4, v0, Lz5/z01;->q:I

    const/4 v9, 0x1

    add-int/2addr v4, v9

    iput v4, v0, Lz5/z01;->q:I

    iget v4, v0, Lz5/z01;->m:I

    add-int/2addr v4, v9

    iput v4, v0, Lz5/z01;->m:I

    goto :goto_1b6

    :cond_205
    move v9, v5

    iput v4, v0, Lz5/z01;->p:I

    if-ne v4, v2, :cond_216

    iput v8, v0, Lz5/z01;->p:I

    if-ne v6, v3, :cond_210

    move v5, v9

    goto :goto_211

    :cond_210
    move v5, v8

    :goto_211
    invoke-static {v5}, Lcom/google/android/gms/internal/ads/d;->n(Z)V

    iput v8, v0, Lz5/z01;->q:I

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

    goto :goto_1b0

    :cond_219
    if-eqz v5, :cond_233

    iget-object v1, v0, Lz5/z01;->n:[S

    iget v2, v0, Lz5/z01;->b:I

    mul-int v3, v5, v2

    sub-int/2addr v4, v5

    mul-int/2addr v4, v2

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

    iget v1, v0, Lz5/z01;->o:I

    sub-int/2addr v1, v5

    iput v1, v0, Lz5/z01;->o:I

    return-void

    :cond_22c
    :goto_22c
    const/4 v9, 0x1

    div-int/lit8 v3, v3, 0x2

    div-int/lit8 v2, v2, 0x2

    goto/16 :goto_186

    :cond_233
    :goto_233
    return-void

    :cond_234
    const/high16 v7, 0x3f800000    # 1.0f

    const/4 v9, 0x1

    goto/16 :goto_38
.end method
