//
// PlayerObject::animatePlatformerJump from 0x10021e30c to 0x10021e4f8 (492 bytes)
//
// 3 xrefs:
// > PlayerObject::updateJump @ 0x10021b620
// > PlayerObject::ringJump @ 0x100228b00
// > PlayerObject::bumpPlayer @ 0x10022cb9c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall PlayerObject::animatePlatformerJump(PlayerObject *a1, float a2)
{
float v3; // s10
char i; // w22
int v5; // w8
float v6; // s8
float v7; // s9
float v8; // s2
float v9; // s1
cocos2d::CCScaleTo *v10; // x0
cocos2d::CCEaseInOut *v11; // x20
cocos2d::CCScaleTo *v12; // x0
char v13; // w21
cocos2d::CCScaleTo *v14; // x0
__int64 v15; // x1
__int64 v16; // x2
__int64 v17; // x3
__int64 v18; // x4
__int64 v19; // x5
__int64 v20; // x6
__int64 v21; // x7
cocos2d::CCSequence *v22; // x20
if ( !a1->m_holdingLeft
&& !a1->m_holdingRight
&& !a1->m_platformerMovingLeft
&& !a1->m_platformerMovingRight
&& !a1->m_isShip
&& !a1->m_isBird
&& !a1->m_isDart
&& !a1->m_isSwing
&& !a1->m_isBall
&& !a1->m_isRobot
&& !a1->m_isSpider )
{
v3 = a2 * 1.35;
for ( i = 1; ; i = 0 )
{
v5 = (int)fabsf(((float (__fastcall *)(PlayerObject *))a1->getRotation)(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 / a1->m_gravityMod, v9, v8);
v11 = cocos2d::CCEaseInOut::create(v10, 2.0);
v12 = cocos2d::CCScaleTo::create(0.25 / a1->m_gravityMod, v7, v6);
v13 = (unsigned __int8)cocos2d::CCEaseInOut::create(v12, 2.0);
v14 = cocos2d::CCScaleTo::create(0.15 / a1->m_gravityMod, 1.0, 1.0);
cocos2d::CCEaseInOut::create(v14, 2.0);
v22 = sub_10018A494(v11, v15, v16, v17, v18, v19, v20, v21, v13);
((void (__fastcall *)(cocos2d::CCSequence *, __int64))v22->setTag)(v22, 13);
if ( (i & 1) == 0 )
break;
cocos2d::CCNode::runAction(a1->m_iconSprite, v22);
}
cocos2d::CCNode::runAction(a1->m_iconGlow, v22);
}
}