//
// PlayerObject::animatePlatformerJump from 0x14038cc80 to 0x14038cf2c (684 bytes)
//
// 6 xrefs:
// > PlayerObject::updateJump @ 0x14038bff8
// > PlayerObject::ringJump @ 0x14039958e
// > PlayerObject::bumpPlayer @ 0x14039f819
// > ??> @ 0x1406975d0
// > ??> @ 0x1406975e0
// > ??> @ 0x1406d6044
//
// 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 PlayerObject::animatePlatformerJump(PlayerObject *a1, float a2)
{
float v2; // xmm3_4
float v3; // xmm15_4
int v5; // ebp
float v6; // xmm7_4
float v7; // xmm6_4
float v8; // xmm8_4
float v9; // xmm9_4
int v10; // ecx
struct cocos2d::CCScaleTo *v11; // rax
struct cocos2d::CCEaseInOut *v12; // rdi
struct cocos2d::CCScaleTo *v13; // rax
struct cocos2d::CCEaseInOut *v14; // rbx
struct cocos2d::CCScaleTo *v15; // rax
struct cocos2d::CCEaseInOut *v16; // rax
struct cocos2d::CCSequence *v17; // rbx
cocos2d::ccColor3B *v18; // r8
float v19; // [rsp+20h] [rbp-A8h]
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 )
{
v5 = 0;
v19 = v3;
do
{
while ( 1 )
{
v6 = 0.80000001;
v7 = a2 * 1.35;
v8 = 1.1;
v9 = 0.89999998;
v10 = (int)fabs(a1->getRotation(a1));
if ( (unsigned int)(v10 - 46) <= 0x58 || (unsigned int)(v10 - 226) <= 0x58 )
{
v6 = a2 * 1.35;
v8 = 0.89999998;
v7 = 0.80000001;
v9 = 1.1;
}
v11 = cocos2d::CCScaleTo::create(0.1 / a1->m_gravityMod, v6, v7);
v12 = cocos2d::CCEaseInOut::create(v11, 2.0);
v13 = cocos2d::CCScaleTo::create(0.25 / a1->m_gravityMod, v8, v9);
v14 = cocos2d::CCEaseInOut::create(v13, 2.0);
v15 = cocos2d::CCScaleTo::create(0.15000001 / a1->m_gravityMod, 1.0, 1.0);
v16 = cocos2d::CCEaseInOut::create(v15, 2.0);
v17 = cocos2d::CCSequence::create(v12, v14, v16, 0);
v17->setTag(v17, 13);
if ( v5 )
break;
cocos2d::CCNode::runAction((CCLightFlash *)a1->m_iconSprite, (cocos2d::CCPoint)v17, v18, v2, v19);
v5 = 1;
}
cocos2d::CCNode::runAction((CCLightFlash *)a1->m_iconGlow, (cocos2d::CCPoint)v17, v18, v2, v19);
++v5;
}
while ( v5 < 2 );
}
}