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


# instance fields
.field public final a:I

.field public final b:I

.field public final c:I

.field public final d:I

.field public final e:I

.field public final f:[S

.field public g:I

.field public h:[S

.field public i:I

.field public j:[S

.field public k:I

.field public l:[S

.field public m:I

.field public n:I

.field public o:F

.field public p:F

.field public q:I

.field public r:I

.field public s:I

.field public t:I

.field public u:I

.field public v:I

.field public w:I

.field public x:I


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

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

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

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

    div-int/lit16 v0, p1, 0x190

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

    div-int/lit8 p1, p1, 0x41

    iput p1, p0, Lz5/l9;->d:I

    add-int/2addr p1, p1

    iput p1, p0, Lz5/l9;->e:I

    new-array v0, p1, [S

    iput-object v0, p0, Lz5/l9;->f:[S

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

    mul-int/2addr p2, p1

    new-array v0, p2, [S

    iput-object v0, p0, Lz5/l9;->h:[S

    iput p1, p0, Lz5/l9;->i:I

    new-array v0, p2, [S

    iput-object v0, p0, Lz5/l9;->j:[S

    iput p1, p0, Lz5/l9;->k:I

    new-array p1, p2, [S

    iput-object p1, p0, Lz5/l9;->l:[S

    const/4 p1, 0x0

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

    iput p1, p0, Lz5/l9;->n:I

    iput p1, p0, Lz5/l9;->u:I

    const/high16 p1, 0x3f800000    # 1.0f

    iput p1, p0, Lz5/l9;->o:F

    iput p1, p0, Lz5/l9;->p:F

    return-void
.end method

.method public static g(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(I)V
    .registers 4

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

    iget v1, p0, Lz5/l9;->i:I

    add-int/2addr v0, p1

    if-le v0, v1, :cond_18

    div-int/lit8 v0, v1, 0x2

    add-int/2addr v0, p1

    add-int/2addr v0, v1

    iput v0, p0, Lz5/l9;->i:I

    iget-object p1, p0, Lz5/l9;->j:[S

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

    mul-int/2addr v0, v1

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

    move-result-object p1

    iput-object p1, p0, Lz5/l9;->j:[S

    :cond_18
    return-void
.end method

.method public final b(I)V
    .registers 4

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

    iget v1, p0, Lz5/l9;->g:I

    add-int/2addr v0, p1

    if-le v0, v1, :cond_18

    div-int/lit8 v0, v1, 0x2

    add-int/2addr v0, p1

    add-int/2addr v0, v1

    iput v0, p0, Lz5/l9;->g:I

    iget-object p1, p0, Lz5/l9;->h:[S

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

    mul-int/2addr v0, v1

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

    move-result-object p1

    iput-object p1, p0, Lz5/l9;->h:[S

    :cond_18
    return-void
.end method

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

    invoke-virtual {p0, p3}, Lz5/l9;->a(I)V

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

    mul-int/2addr p2, v0

    iget-object v1, p0, Lz5/l9;->j:[S

    iget v2, p0, Lz5/l9;->r:I

    mul-int/2addr v2, v0

    mul-int/2addr v0, p3

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

    iget p1, p0, Lz5/l9;->r:I

    add-int/2addr p1, p3

    iput p1, p0, Lz5/l9;->r:I

    return-void
.end method

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

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

    div-int/2addr v0, p3

    iget v1, p0, Lz5/l9;->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/l9;->f:[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 e([SIII)I
    .registers 14

    iget v0, p0, Lz5/l9;->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_39

    move v5, v1

    move v6, v5

    :goto_d
    if-ge v5, p3, :cond_22

    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

    if-lt v7, v8, :cond_1c

    sub-int/2addr v7, v8

    goto :goto_1e

    :cond_1c
    sub-int v7, v8, v7

    :goto_1e
    add-int/2addr v6, v7

    add-int/lit8 v5, v5, 0x1

    goto :goto_d

    :cond_22
    mul-int v5, v6, v3

    mul-int v7, v0, p3

    if-ge v5, v7, :cond_29

    move v0, v6

    :cond_29
    if-ge v5, v7, :cond_2c

    move v3, p3

    :cond_2c
    mul-int v5, v6, v2

    mul-int v7, v4, p3

    if-le v5, v7, :cond_33

    move v4, v6

    :cond_33
    if-le v5, v7, :cond_36

    move v2, p3

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

    goto :goto_9

    :cond_39
    div-int/2addr v0, v3

    iput v0, p0, Lz5/l9;->w:I

    div-int/2addr v4, v2

    iput v4, p0, Lz5/l9;->x:I

    return v3
.end method

.method public final f()V
    .registers 21

    move-object/from16 v0, p0

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

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

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

    div-float/2addr v2, v3

    float-to-double v3, v2

    const-wide v5, 0x3ff0000a7c5ac472L    # 1.00001

    cmpl-double v5, v3, v5

    const/high16 v6, 0x3f800000    # 1.0f

    const/4 v7, 0x0

    const/4 v8, 0x1

    if-gtz v5, :cond_2c

    const-wide v9, 0x3fefffeb074a771dL    # 0.99999

    cmpg-double v5, v3, v9

    if-gez v5, :cond_21

    goto :goto_2c

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

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

    invoke-virtual {v0, v2, v7, v3}, Lz5/l9;->c([SII)V

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

    goto/16 :goto_162

    :cond_2c
    :goto_2c
    iget v5, v0, Lz5/l9;->q:I

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

    if-ge v5, v9, :cond_34

    goto/16 :goto_162

    :cond_34
    move v9, v7

    :goto_35
    iget v10, v0, Lz5/l9;->t:I

    if-lez v10, :cond_4c

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

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

    move-result v10

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

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

    iget v11, v0, Lz5/l9;->t:I

    sub-int/2addr v11, v10

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

    add-int/2addr v9, v10

    goto/16 :goto_14f

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

    iget v11, v0, Lz5/l9;->a:I

    const/16 v12, 0xfa0

    if-le v11, v12, :cond_57

    div-int/lit16 v11, v11, 0xfa0

    goto :goto_58

    :cond_57
    move v11, v8

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

    if-ne v12, v8, :cond_67

    if-ne v11, v8, :cond_67

    iget v11, v0, Lz5/l9;->c:I

    iget v12, v0, Lz5/l9;->d:I

    invoke-virtual {v0, v10, v9, v11, v12}, Lz5/l9;->e([SIII)I

    move-result v10

    goto :goto_9d

    :cond_67
    invoke-virtual {v0, v10, v9, v11}, Lz5/l9;->d([SII)V

    iget-object v12, v0, Lz5/l9;->f:[S

    iget v13, v0, Lz5/l9;->c:I

    div-int/2addr v13, v11

    iget v14, v0, Lz5/l9;->d:I

    div-int/2addr v14, v11

    invoke-virtual {v0, v12, v7, v13, v14}, Lz5/l9;->e([SIII)I

    move-result v12

    if-eq v11, v8, :cond_9c

    mul-int/2addr v12, v11

    mul-int/lit8 v11, v11, 0x4

    sub-int v13, v12, v11

    add-int/2addr v12, v11

    iget v11, v0, Lz5/l9;->c:I

    if-lt v13, v11, :cond_83

    goto :goto_84

    :cond_83
    move v13, v11

    :goto_84
    iget v11, v0, Lz5/l9;->d:I

    if-le v12, v11, :cond_89

    move v12, v11

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

    if-ne v11, v8, :cond_92

    invoke-virtual {v0, v10, v9, v13, v12}, Lz5/l9;->e([SIII)I

    move-result v10

    goto :goto_9d

    :cond_92
    invoke-virtual {v0, v10, v9, v8}, Lz5/l9;->d([SII)V

    iget-object v10, v0, Lz5/l9;->f:[S

    invoke-virtual {v0, v10, v7, v13, v12}, Lz5/l9;->e([SIII)I

    move-result v10

    goto :goto_9d

    :cond_9c
    move v10, v12

    :goto_9d
    iget v11, v0, Lz5/l9;->w:I

    iget v12, v0, Lz5/l9;->x:I

    if-eqz v11, :cond_b8

    iget v13, v0, Lz5/l9;->u:I

    if-nez v13, :cond_a8

    goto :goto_b8

    :cond_a8
    mul-int/lit8 v14, v11, 0x3

    if-le v12, v14, :cond_ad

    goto :goto_b8

    :cond_ad
    add-int v12, v11, v11

    iget v14, v0, Lz5/l9;->v:I

    mul-int/lit8 v14, v14, 0x3

    if-gt v12, v14, :cond_b6

    goto :goto_b8

    :cond_b6
    move v15, v13

    goto :goto_b9

    :cond_b8
    :goto_b8
    move v15, v10

    :goto_b9
    iput v11, v0, Lz5/l9;->v:I

    iput v10, v0, Lz5/l9;->u:I

    const-wide/high16 v10, 0x3ff0000000000000L    # 1.0

    cmpl-double v10, v3, v10

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

    if-lez v10, :cond_100

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

    const/high16 v10, 0x40000000    # 2.0f

    cmpl-float v12, v2, v10

    if-ltz v12, :cond_d3

    int-to-float v10, v15

    add-float/2addr v11, v2

    div-float/2addr v10, v11

    float-to-int v10, v10

    move v13, v10

    goto :goto_dc

    :cond_d3
    int-to-float v12, v15

    sub-float/2addr v10, v2

    mul-float/2addr v10, v12

    add-float/2addr v11, v2

    div-float/2addr v10, v11

    float-to-int v10, v10

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

    move v13, v15

    :goto_dc
    invoke-virtual {v0, v13}, Lz5/l9;->a(I)V

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

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

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

    add-int v17, v9, v15

    move/from16 v16, v10

    move v10, v13

    move/from16 v18, v13

    move/from16 v13, v16

    move-object/from16 v16, v14

    move v8, v15

    move v15, v9

    invoke-static/range {v10 .. v17}, Lz5/l9;->g(II[SI[SI[SI)V

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

    add-int v10, v10, v18

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

    add-int v15, v8, v18

    add-int/2addr v15, v9

    move v9, v15

    goto :goto_14f

    :cond_100
    move v8, v15

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

    const/high16 v10, 0x3f000000    # 0.5f

    cmpg-float v10, v2, v10

    if-gez v10, :cond_112

    int-to-float v10, v8

    mul-float/2addr v10, v2

    sub-float v11, v6, v2

    div-float/2addr v10, v11

    float-to-int v10, v10

    move/from16 v18, v10

    goto :goto_11f

    :cond_112
    int-to-float v10, v8

    add-float v12, v2, v2

    add-float/2addr v12, v11

    mul-float/2addr v12, v10

    sub-float v10, v6, v2

    div-float/2addr v12, v10

    float-to-int v10, v12

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

    move/from16 v18, v8

    :goto_11f
    add-int v14, v8, v18

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

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

    mul-int v11, v9, v10

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

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

    mul-int/2addr v13, v10

    mul-int/2addr v10, v8

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

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

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

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

    add-int v13, v10, v8

    add-int/2addr v8, v9

    move/from16 v10, v18

    move/from16 v19, v14

    move-object v14, v15

    move-object/from16 v16, v15

    move v15, v8

    move/from16 v17, v9

    invoke-static/range {v10 .. v17}, Lz5/l9;->g(II[SI[SI[SI)V

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

    add-int v8, v8, v19

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

    add-int v9, v9, v18

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

    add-int/2addr v8, v9

    if-le v8, v5, :cond_22a

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

    sub-int/2addr v2, v9

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

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

    mul-int/2addr v9, v4

    mul-int/2addr v4, v2

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

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

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

    cmpl-float v3, v2, v6

    if-eqz v3, :cond_229

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

    if-ne v3, v1, :cond_16e

    goto/16 :goto_229

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

    int-to-float v4, v3

    div-float/2addr v4, v2

    float-to-int v2, v4

    :goto_173
    const/16 v4, 0x4000

    if-gt v2, v4, :cond_222

    if-le v3, v4, :cond_17b

    goto/16 :goto_222

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

    sub-int/2addr v4, v1

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

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

    add-int/2addr v5, v4

    if-le v5, v6, :cond_196

    div-int/lit8 v5, v6, 0x2

    add-int/2addr v5, v4

    add-int/2addr v5, v6

    iput v5, v0, Lz5/l9;->k:I

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

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

    mul-int/2addr v5, v8

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

    move-result-object v5

    iput-object v5, v0, Lz5/l9;->l:[S

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

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

    mul-int v8, v1, v6

    iget-object v9, v0, Lz5/l9;->l:[S

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

    mul-int/2addr v10, v6

    mul-int/2addr v6, v4

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

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

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

    add-int/2addr v1, v4

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

    move v1, v7

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

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

    if-ge v1, v5, :cond_20f

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

    const/4 v5, 0x1

    add-int/2addr v4, v5

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

    mul-int v8, v4, v2

    mul-int v9, v6, v3

    if-le v8, v9, :cond_1fb

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

    move v4, v7

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

    if-ge v4, v5, :cond_1ef

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

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

    iget-object v9, v0, Lz5/l9;->l:[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/l9;->n:I

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

    add-int/lit8 v13, v12, 0x1

    mul-int/2addr v13, v2

    mul-int/2addr v10, v3

    sub-int v10, v13, v10

    mul-int/2addr v12, v2

    sub-int/2addr v13, v12

    mul-int/2addr v8, v5

    add-int/2addr v8, 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, v8

    add-int/lit8 v4, v4, 0x1

    goto :goto_1c3

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

    const/4 v8, 0x1

    add-int/2addr v4, v8

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

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

    add-int/2addr v4, v8

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

    goto :goto_1b3

    :cond_1fb
    move v8, v5

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

    if-ne v4, v3, :cond_20c

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

    if-ne v6, v2, :cond_206

    move v5, v8

    goto :goto_207

    :cond_206
    move v5, v7

    :goto_207
    invoke-static {v5}, Lcom/google/android/gms/internal/ads/r;->q(Z)V

    iput v7, v0, Lz5/l9;->n:I

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

    goto :goto_1ad

    :cond_20f
    if-eqz v5, :cond_229

    iget-object v1, v0, Lz5/l9;->l:[S

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

    mul-int v3, v5, v2

    sub-int/2addr v4, v5

    mul-int/2addr v4, v2

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

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

    sub-int/2addr v1, v5

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

    return-void

    :cond_222
    :goto_222
    const/4 v8, 0x1

    div-int/lit8 v2, v2, 0x2

    div-int/lit8 v3, v3, 0x2

    goto/16 :goto_173

    :cond_229
    :goto_229
    return-void

    :cond_22a
    const/4 v8, 0x1

    goto/16 :goto_35
.end method
