.class public Lcom/esotericsoftware/spine/Animation$PathConstraintMixTimeline;
.super Lcom/esotericsoftware/spine/Animation$CurveTimeline;
.source "Animation.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/esotericsoftware/spine/Animation;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "PathConstraintMixTimeline"
.end annotation


# instance fields
.field a:I

.field private final b:[F


# direct methods
.method public constructor <init>(I)V
    .locals 0

    .line 1487
    invoke-direct {p0, p1}, Lcom/esotericsoftware/spine/Animation$CurveTimeline;-><init>(I)V

    mul-int/lit8 p1, p1, 0x3

    .line 1488
    new-array p1, p1, [F

    iput-object p1, p0, Lcom/esotericsoftware/spine/Animation$PathConstraintMixTimeline;->b:[F

    return-void
.end method


# virtual methods
.method public a()I
    .locals 2

    .line 1492
    sget-object v0, Lcom/esotericsoftware/spine/Animation$TimelineType;->pathConstraintMix:Lcom/esotericsoftware/spine/Animation$TimelineType;

    invoke-virtual {v0}, Lcom/esotericsoftware/spine/Animation$TimelineType;->ordinal()I

    move-result v0

    shl-int/lit8 v0, v0, 0x18

    iget v1, p0, Lcom/esotericsoftware/spine/Animation$PathConstraintMixTimeline;->a:I

    add-int/2addr v0, v1

    return v0
.end method

.method public a(IFFF)V
    .locals 1

    mul-int/lit8 p1, p1, 0x3

    .line 1513
    iget-object v0, p0, Lcom/esotericsoftware/spine/Animation$PathConstraintMixTimeline;->b:[F

    aput p2, v0, p1

    .line 1514
    iget-object p2, p0, Lcom/esotericsoftware/spine/Animation$PathConstraintMixTimeline;->b:[F

    add-int/lit8 v0, p1, 0x1

    aput p3, p2, v0

    .line 1515
    iget-object p2, p0, Lcom/esotericsoftware/spine/Animation$PathConstraintMixTimeline;->b:[F

    add-int/lit8 p1, p1, 0x2

    aput p4, p2, p1

    return-void
.end method

.method public a(Lcom/esotericsoftware/spine/Skeleton;FFLcom/badlogic/gdx/utils/Array;FLcom/esotericsoftware/spine/Animation$MixPose;Lcom/esotericsoftware/spine/Animation$MixDirection;)V
    .locals 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/esotericsoftware/spine/Skeleton;",
            "FF",
            "Lcom/badlogic/gdx/utils/Array<",
            "Lcom/esotericsoftware/spine/Event;",
            ">;F",
            "Lcom/esotericsoftware/spine/Animation$MixPose;",
            "Lcom/esotericsoftware/spine/Animation$MixDirection;",
            ")V"
        }
    .end annotation

    .line 1521
    iget-object p1, p1, Lcom/esotericsoftware/spine/Skeleton;->g:Lcom/badlogic/gdx/utils/Array;

    iget p2, p0, Lcom/esotericsoftware/spine/Animation$PathConstraintMixTimeline;->a:I

    invoke-virtual {p1, p2}, Lcom/badlogic/gdx/utils/Array;->a(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/esotericsoftware/spine/PathConstraint;

    .line 1522
    iget-object p2, p0, Lcom/esotericsoftware/spine/Animation$PathConstraintMixTimeline;->b:[F

    const/4 p4, 0x0

    .line 1523
    aget p4, p2, p4

    cmpg-float p4, p3, p4

    if-gez p4, :cond_0

    .line 1524
    sget-object p2, Lcom/esotericsoftware/spine/Animation$1;->a:[I

    invoke-virtual {p6}, Lcom/esotericsoftware/spine/Animation$MixPose;->ordinal()I

    move-result p3

    aget p2, p2, p3

    packed-switch p2, :pswitch_data_0

    goto :goto_0

    .line 1530
    :pswitch_0
    iget p2, p1, Lcom/esotericsoftware/spine/PathConstraint;->f:F

    iget-object p3, p1, Lcom/esotericsoftware/spine/PathConstraint;->a:Lcom/esotericsoftware/spine/PathConstraintData;

    iget p3, p3, Lcom/esotericsoftware/spine/PathConstraintData;->k:F

    iget p4, p1, Lcom/esotericsoftware/spine/PathConstraint;->f:F

    sub-float/2addr p3, p4

    mul-float p3, p3, p5

    add-float/2addr p2, p3

    iput p2, p1, Lcom/esotericsoftware/spine/PathConstraint;->f:F

    .line 1531
    iget p2, p1, Lcom/esotericsoftware/spine/PathConstraint;->g:F

    iget-object p3, p1, Lcom/esotericsoftware/spine/PathConstraint;->a:Lcom/esotericsoftware/spine/PathConstraintData;

    iget p3, p3, Lcom/esotericsoftware/spine/PathConstraintData;->l:F

    iget p4, p1, Lcom/esotericsoftware/spine/PathConstraint;->g:F

    sub-float/2addr p3, p4

    mul-float p3, p3, p5

    add-float/2addr p2, p3

    iput p2, p1, Lcom/esotericsoftware/spine/PathConstraint;->g:F

    goto :goto_0

    .line 1526
    :pswitch_1
    iget-object p2, p1, Lcom/esotericsoftware/spine/PathConstraint;->a:Lcom/esotericsoftware/spine/PathConstraintData;

    iget p2, p2, Lcom/esotericsoftware/spine/PathConstraintData;->k:F

    iput p2, p1, Lcom/esotericsoftware/spine/PathConstraint;->f:F

    .line 1527
    iget-object p2, p1, Lcom/esotericsoftware/spine/PathConstraint;->a:Lcom/esotericsoftware/spine/PathConstraintData;

    iget p2, p2, Lcom/esotericsoftware/spine/PathConstraintData;->l:F

    iput p2, p1, Lcom/esotericsoftware/spine/PathConstraint;->g:F

    return-void

    :goto_0
    return-void

    .line 1537
    :cond_0
    array-length p4, p2

    const/4 p7, 0x3

    sub-int/2addr p4, p7

    aget p4, p2, p4

    cmpl-float p4, p3, p4

    if-ltz p4, :cond_1

    .line 1538
    array-length p3, p2

    add-int/lit8 p3, p3, -0x2

    aget p3, p2, p3

    .line 1539
    array-length p4, p2

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

    aget p2, p2, p4

    goto :goto_1

    .line 1542
    :cond_1
    invoke-static {p2, p3, p7}, Lcom/esotericsoftware/spine/Animation;->a([FFI)I

    move-result p4

    add-int/lit8 p7, p4, -0x2

    .line 1543
    aget p7, p2, p7

    add-int/lit8 v0, p4, -0x1

    .line 1544
    aget v0, p2, v0

    .line 1545
    aget v1, p2, p4

    .line 1546
    div-int/lit8 v2, p4, 0x3

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

    const/high16 v3, 0x3f800000    # 1.0f

    sub-float/2addr p3, v1

    add-int/lit8 v4, p4, -0x3

    aget v4, p2, v4

    sub-float/2addr v4, v1

    div-float/2addr p3, v4

    sub-float/2addr v3, p3

    invoke-virtual {p0, v2, v3}, Lcom/esotericsoftware/spine/Animation$PathConstraintMixTimeline;->a(IF)F

    move-result p3

    add-int/lit8 v1, p4, 0x1

    .line 1549
    aget v1, p2, v1

    sub-float/2addr v1, p7

    mul-float v1, v1, p3

    add-float/2addr p7, v1

    add-int/lit8 p4, p4, 0x2

    .line 1550
    aget p2, p2, p4

    sub-float/2addr p2, v0

    mul-float p2, p2, p3

    add-float/2addr p2, v0

    move p3, p7

    .line 1553
    :goto_1
    sget-object p4, Lcom/esotericsoftware/spine/Animation$MixPose;->setup:Lcom/esotericsoftware/spine/Animation$MixPose;

    if-ne p6, p4, :cond_2

    .line 1554
    iget-object p4, p1, Lcom/esotericsoftware/spine/PathConstraint;->a:Lcom/esotericsoftware/spine/PathConstraintData;

    iget p4, p4, Lcom/esotericsoftware/spine/PathConstraintData;->k:F

    iget-object p6, p1, Lcom/esotericsoftware/spine/PathConstraint;->a:Lcom/esotericsoftware/spine/PathConstraintData;

    iget p6, p6, Lcom/esotericsoftware/spine/PathConstraintData;->k:F

    sub-float/2addr p3, p6

    mul-float p3, p3, p5

    add-float/2addr p4, p3

    iput p4, p1, Lcom/esotericsoftware/spine/PathConstraint;->f:F

    .line 1555
    iget-object p3, p1, Lcom/esotericsoftware/spine/PathConstraint;->a:Lcom/esotericsoftware/spine/PathConstraintData;

    iget p3, p3, Lcom/esotericsoftware/spine/PathConstraintData;->l:F

    iget-object p4, p1, Lcom/esotericsoftware/spine/PathConstraint;->a:Lcom/esotericsoftware/spine/PathConstraintData;

    iget p4, p4, Lcom/esotericsoftware/spine/PathConstraintData;->l:F

    sub-float/2addr p2, p4

    mul-float p2, p2, p5

    add-float/2addr p3, p2

    iput p3, p1, Lcom/esotericsoftware/spine/PathConstraint;->g:F

    goto :goto_2

    .line 1557
    :cond_2
    iget p4, p1, Lcom/esotericsoftware/spine/PathConstraint;->f:F

    iget p6, p1, Lcom/esotericsoftware/spine/PathConstraint;->f:F

    sub-float/2addr p3, p6

    mul-float p3, p3, p5

    add-float/2addr p4, p3

    iput p4, p1, Lcom/esotericsoftware/spine/PathConstraint;->f:F

    .line 1558
    iget p3, p1, Lcom/esotericsoftware/spine/PathConstraint;->g:F

    iget p4, p1, Lcom/esotericsoftware/spine/PathConstraint;->g:F

    sub-float/2addr p2, p4

    mul-float p2, p2, p5

    add-float/2addr p3, p2

    iput p3, p1, Lcom/esotericsoftware/spine/PathConstraint;->g:F

    :goto_2
    return-void

    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method public b()[F
    .locals 1

    .line 1507
    iget-object v0, p0, Lcom/esotericsoftware/spine/Animation$PathConstraintMixTimeline;->b:[F

    return-object v0
.end method
