//
// PlayerObject::animatePlatformerJump from 0x1002bae00 to 0x1002bafec (492 bytes)
//
// 3 xrefs:
// > PlayerObject::updateJump @ 0x1002b80ec
// > PlayerObject::ringJump @ 0x1002c5780
// > PlayerObject::bumpPlayer @ 0x1002c98c0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:02:25 +0000
//
double __fastcall PlayerObject::animatePlatformerJump(__int64 a1, double result)
{
float v3; // s10
char i; // w22
int v5; // w8
float v6; // s8
float v7; // s9
float v8; // s2
float v9; // s1
float *v10; // x0
__int64 v11; // x20
float *v12; // x0
char v13; // w21
float *v14; // x0
__int64 v15; // x1
__int64 v16; // x2
__int64 v17; // x3
__int64 v18; // x4
__int64 v19; // x5
__int64 v20; // x6
__int64 v21; // x7
__int64 v22; // x20
if ( (*(_BYTE *)(a1 + 2721) & 1) == 0
&& (*(_BYTE *)(a1 + 2720) & 1) == 0
&& (*(_BYTE *)(a1 + 2809) & 1) == 0
&& (*(_BYTE *)(a1 + 2810) & 1) == 0
&& (*(_BYTE *)(a1 + 2417) & 1) == 0
&& (*(_BYTE *)(a1 + 2418) & 1) == 0
&& (*(_BYTE *)(a1 + 2420) & 1) == 0
&& (*(_BYTE *)(a1 + 2428) & 1) == 0
&& (*(_BYTE *)(a1 + 2419) & 1) == 0
&& (*(_BYTE *)(a1 + 2421) & 1) == 0
&& (*(_BYTE *)(a1 + 2422) & 1) == 0 )
{
v3 = *(float *)&result * 1.35;
for ( i = 1; ; i = 0 )
{
v5 = (int)fabsf((*(float (__fastcall **)(__int64))(*(_QWORD *)a1 + 368LL))(a1));
if ( (unsigned int)(v5 - 46) < 0x59 || (v6 = 0.9, v7 = 1.1, v8 = v3, v9 = 0.8, (unsigned int)(v5 - 226) <= 0x58) )
{
v6 = 1.1;
v7 = 0.9;
v8 = 0.8;
v9 = v3;
}
v10 = cocos2d::CCScaleTo::create(0.1 / *(float *)(a1 + 2852), v9, v8);
v11 = cocos2d::CCEaseInOut::create(v10, 2.0);
v12 = cocos2d::CCScaleTo::create(0.25 / *(float *)(a1 + 2852), v7, v6);
v13 = cocos2d::CCEaseInOut::create(v12, 2.0);
v14 = cocos2d::CCScaleTo::create(0.15 / *(float *)(a1 + 2852), 1.0, 1.0);
cocos2d::CCEaseInOut::create(v14, 2.0);
v22 = sub_10021D420(v11, v15, v16, v17, v18, v19, v20, v21, v13);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v22 + 72LL))(v22, 13);
if ( (i & 1) == 0 )
break;
cocos2d::CCNode::runAction(*(_QWORD *)(a1 + 1800), v22);
}
*(_QWORD *)&result = cocos2d::CCNode::runAction(*(_QWORD *)(a1 + 1824), v22).n128_u64[0];
}
return result;
}