445 lines
9.9 KiB
Smali
445 lines
9.9 KiB
Smali
.class public Lcom/esotericsoftware/spine/Animation$IkConstraintTimeline;
|
|
.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 = "IkConstraintTimeline"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field a:I
|
|
|
|
.field private final b:[F
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(I)V
|
|
.locals 0
|
|
|
|
.line 1170
|
|
invoke-direct {p0, p1}, Lcom/esotericsoftware/spine/Animation$CurveTimeline;-><init>(I)V
|
|
|
|
mul-int/lit8 p1, p1, 0x3
|
|
|
|
.line 1171
|
|
new-array p1, p1, [F
|
|
|
|
iput-object p1, p0, Lcom/esotericsoftware/spine/Animation$IkConstraintTimeline;->b:[F
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()I
|
|
.locals 2
|
|
|
|
.line 1175
|
|
sget-object v0, Lcom/esotericsoftware/spine/Animation$TimelineType;->ikConstraint: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$IkConstraintTimeline;->a:I
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public a(IFFI)V
|
|
.locals 1
|
|
|
|
mul-int/lit8 p1, p1, 0x3
|
|
|
|
.line 1196
|
|
iget-object v0, p0, Lcom/esotericsoftware/spine/Animation$IkConstraintTimeline;->b:[F
|
|
|
|
aput p2, v0, p1
|
|
|
|
.line 1197
|
|
iget-object p2, p0, Lcom/esotericsoftware/spine/Animation$IkConstraintTimeline;->b:[F
|
|
|
|
add-int/lit8 v0, p1, 0x1
|
|
|
|
aput p3, p2, v0
|
|
|
|
.line 1198
|
|
iget-object p2, p0, Lcom/esotericsoftware/spine/Animation$IkConstraintTimeline;->b:[F
|
|
|
|
add-int/lit8 p1, p1, 0x2
|
|
|
|
int-to-float p3, p4
|
|
|
|
aput p3, 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 1204
|
|
iget-object p1, p1, Lcom/esotericsoftware/spine/Skeleton;->e:Lcom/badlogic/gdx/utils/Array;
|
|
|
|
iget p2, p0, Lcom/esotericsoftware/spine/Animation$IkConstraintTimeline;->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/IkConstraint;
|
|
|
|
.line 1205
|
|
iget-object p2, p0, Lcom/esotericsoftware/spine/Animation$IkConstraintTimeline;->b:[F
|
|
|
|
const/4 p4, 0x0
|
|
|
|
.line 1206
|
|
aget p4, p2, p4
|
|
|
|
cmpg-float p4, p3, p4
|
|
|
|
if-gez p4, :cond_0
|
|
|
|
.line 1207
|
|
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 1213
|
|
:pswitch_0
|
|
iget p2, p1, Lcom/esotericsoftware/spine/IkConstraint;->d:F
|
|
|
|
iget-object p3, p1, Lcom/esotericsoftware/spine/IkConstraint;->a:Lcom/esotericsoftware/spine/IkConstraintData;
|
|
|
|
iget p3, p3, Lcom/esotericsoftware/spine/IkConstraintData;->f:F
|
|
|
|
iget p4, p1, Lcom/esotericsoftware/spine/IkConstraint;->d:F
|
|
|
|
sub-float/2addr p3, p4
|
|
|
|
mul-float p3, p3, p5
|
|
|
|
add-float/2addr p2, p3
|
|
|
|
iput p2, p1, Lcom/esotericsoftware/spine/IkConstraint;->d:F
|
|
|
|
.line 1214
|
|
iget-object p2, p1, Lcom/esotericsoftware/spine/IkConstraint;->a:Lcom/esotericsoftware/spine/IkConstraintData;
|
|
|
|
iget p2, p2, Lcom/esotericsoftware/spine/IkConstraintData;->e:I
|
|
|
|
iput p2, p1, Lcom/esotericsoftware/spine/IkConstraint;->e:I
|
|
|
|
goto :goto_0
|
|
|
|
.line 1209
|
|
:pswitch_1
|
|
iget-object p2, p1, Lcom/esotericsoftware/spine/IkConstraint;->a:Lcom/esotericsoftware/spine/IkConstraintData;
|
|
|
|
iget p2, p2, Lcom/esotericsoftware/spine/IkConstraintData;->f:F
|
|
|
|
iput p2, p1, Lcom/esotericsoftware/spine/IkConstraint;->d:F
|
|
|
|
.line 1210
|
|
iget-object p2, p1, Lcom/esotericsoftware/spine/IkConstraint;->a:Lcom/esotericsoftware/spine/IkConstraintData;
|
|
|
|
iget p2, p2, Lcom/esotericsoftware/spine/IkConstraintData;->e:I
|
|
|
|
iput p2, p1, Lcom/esotericsoftware/spine/IkConstraint;->e:I
|
|
|
|
return-void
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
.line 1219
|
|
:cond_0
|
|
array-length p4, p2
|
|
|
|
const/4 v0, 0x3
|
|
|
|
sub-int/2addr p4, v0
|
|
|
|
aget p4, p2, p4
|
|
|
|
cmpl-float p4, p3, p4
|
|
|
|
if-ltz p4, :cond_4
|
|
|
|
.line 1220
|
|
sget-object p3, Lcom/esotericsoftware/spine/Animation$MixPose;->setup:Lcom/esotericsoftware/spine/Animation$MixPose;
|
|
|
|
if-ne p6, p3, :cond_2
|
|
|
|
.line 1221
|
|
iget-object p3, p1, Lcom/esotericsoftware/spine/IkConstraint;->a:Lcom/esotericsoftware/spine/IkConstraintData;
|
|
|
|
iget p3, p3, Lcom/esotericsoftware/spine/IkConstraintData;->f:F
|
|
|
|
array-length p4, p2
|
|
|
|
add-int/lit8 p4, p4, -0x2
|
|
|
|
aget p4, p2, p4
|
|
|
|
iget-object p6, p1, Lcom/esotericsoftware/spine/IkConstraint;->a:Lcom/esotericsoftware/spine/IkConstraintData;
|
|
|
|
iget p6, p6, Lcom/esotericsoftware/spine/IkConstraintData;->f:F
|
|
|
|
sub-float/2addr p4, p6
|
|
|
|
mul-float p4, p4, p5
|
|
|
|
add-float/2addr p3, p4
|
|
|
|
iput p3, p1, Lcom/esotericsoftware/spine/IkConstraint;->d:F
|
|
|
|
.line 1222
|
|
sget-object p3, Lcom/esotericsoftware/spine/Animation$MixDirection;->out:Lcom/esotericsoftware/spine/Animation$MixDirection;
|
|
|
|
if-ne p7, p3, :cond_1
|
|
|
|
iget-object p2, p1, Lcom/esotericsoftware/spine/IkConstraint;->a:Lcom/esotericsoftware/spine/IkConstraintData;
|
|
|
|
iget p2, p2, Lcom/esotericsoftware/spine/IkConstraintData;->e:I
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
array-length p3, p2
|
|
|
|
add-int/lit8 p3, p3, -0x1
|
|
|
|
aget p2, p2, p3
|
|
|
|
float-to-int p2, p2
|
|
|
|
:goto_1
|
|
iput p2, p1, Lcom/esotericsoftware/spine/IkConstraint;->e:I
|
|
|
|
goto :goto_2
|
|
|
|
.line 1225
|
|
:cond_2
|
|
iget p3, p1, Lcom/esotericsoftware/spine/IkConstraint;->d:F
|
|
|
|
array-length p4, p2
|
|
|
|
add-int/lit8 p4, p4, -0x2
|
|
|
|
aget p4, p2, p4
|
|
|
|
iget p6, p1, Lcom/esotericsoftware/spine/IkConstraint;->d:F
|
|
|
|
sub-float/2addr p4, p6
|
|
|
|
mul-float p4, p4, p5
|
|
|
|
add-float/2addr p3, p4
|
|
|
|
iput p3, p1, Lcom/esotericsoftware/spine/IkConstraint;->d:F
|
|
|
|
.line 1226
|
|
sget-object p3, Lcom/esotericsoftware/spine/Animation$MixDirection;->in:Lcom/esotericsoftware/spine/Animation$MixDirection;
|
|
|
|
if-ne p7, p3, :cond_3
|
|
|
|
array-length p3, p2
|
|
|
|
add-int/lit8 p3, p3, -0x1
|
|
|
|
aget p2, p2, p3
|
|
|
|
float-to-int p2, p2
|
|
|
|
iput p2, p1, Lcom/esotericsoftware/spine/IkConstraint;->e:I
|
|
|
|
:cond_3
|
|
:goto_2
|
|
return-void
|
|
|
|
.line 1232
|
|
:cond_4
|
|
invoke-static {p2, p3, v0}, Lcom/esotericsoftware/spine/Animation;->a([FFI)I
|
|
|
|
move-result p4
|
|
|
|
add-int/lit8 v0, p4, -0x2
|
|
|
|
.line 1233
|
|
aget v0, p2, v0
|
|
|
|
.line 1234
|
|
aget v1, p2, p4
|
|
|
|
.line 1235
|
|
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$IkConstraintTimeline;->a(IF)F
|
|
|
|
move-result p3
|
|
|
|
.line 1237
|
|
sget-object v1, Lcom/esotericsoftware/spine/Animation$MixPose;->setup:Lcom/esotericsoftware/spine/Animation$MixPose;
|
|
|
|
if-ne p6, v1, :cond_6
|
|
|
|
.line 1238
|
|
iget-object p6, p1, Lcom/esotericsoftware/spine/IkConstraint;->a:Lcom/esotericsoftware/spine/IkConstraintData;
|
|
|
|
iget p6, p6, Lcom/esotericsoftware/spine/IkConstraintData;->f:F
|
|
|
|
add-int/lit8 v1, p4, 0x1
|
|
|
|
aget v1, p2, v1
|
|
|
|
sub-float/2addr v1, v0
|
|
|
|
mul-float v1, v1, p3
|
|
|
|
add-float/2addr v0, v1
|
|
|
|
iget-object p3, p1, Lcom/esotericsoftware/spine/IkConstraint;->a:Lcom/esotericsoftware/spine/IkConstraintData;
|
|
|
|
iget p3, p3, Lcom/esotericsoftware/spine/IkConstraintData;->f:F
|
|
|
|
sub-float/2addr v0, p3
|
|
|
|
mul-float v0, v0, p5
|
|
|
|
add-float/2addr p6, v0
|
|
|
|
iput p6, p1, Lcom/esotericsoftware/spine/IkConstraint;->d:F
|
|
|
|
.line 1239
|
|
sget-object p3, Lcom/esotericsoftware/spine/Animation$MixDirection;->out:Lcom/esotericsoftware/spine/Animation$MixDirection;
|
|
|
|
if-ne p7, p3, :cond_5
|
|
|
|
iget-object p2, p1, Lcom/esotericsoftware/spine/IkConstraint;->a:Lcom/esotericsoftware/spine/IkConstraintData;
|
|
|
|
iget p2, p2, Lcom/esotericsoftware/spine/IkConstraintData;->e:I
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
add-int/lit8 p4, p4, -0x1
|
|
|
|
aget p2, p2, p4
|
|
|
|
float-to-int p2, p2
|
|
|
|
:goto_3
|
|
iput p2, p1, Lcom/esotericsoftware/spine/IkConstraint;->e:I
|
|
|
|
goto :goto_4
|
|
|
|
.line 1242
|
|
:cond_6
|
|
iget p6, p1, Lcom/esotericsoftware/spine/IkConstraint;->d:F
|
|
|
|
add-int/lit8 v1, p4, 0x1
|
|
|
|
aget v1, p2, v1
|
|
|
|
sub-float/2addr v1, v0
|
|
|
|
mul-float v1, v1, p3
|
|
|
|
add-float/2addr v0, v1
|
|
|
|
iget p3, p1, Lcom/esotericsoftware/spine/IkConstraint;->d:F
|
|
|
|
sub-float/2addr v0, p3
|
|
|
|
mul-float v0, v0, p5
|
|
|
|
add-float/2addr p6, v0
|
|
|
|
iput p6, p1, Lcom/esotericsoftware/spine/IkConstraint;->d:F
|
|
|
|
.line 1243
|
|
sget-object p3, Lcom/esotericsoftware/spine/Animation$MixDirection;->in:Lcom/esotericsoftware/spine/Animation$MixDirection;
|
|
|
|
if-ne p7, p3, :cond_7
|
|
|
|
add-int/lit8 p4, p4, -0x1
|
|
|
|
aget p2, p2, p4
|
|
|
|
float-to-int p2, p2
|
|
|
|
iput p2, p1, Lcom/esotericsoftware/spine/IkConstraint;->e:I
|
|
|
|
:cond_7
|
|
:goto_4
|
|
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 1190
|
|
iget-object v0, p0, Lcom/esotericsoftware/spine/Animation$IkConstraintTimeline;->b:[F
|
|
|
|
return-object v0
|
|
.end method
|