//
// PlayerObject::updatePlayerForce from 0x629028 to 0x6290a0 (120 bytes)
//
// 5 xrefs:
// > PlayerObject::updateStaticForce @ 0x6291b4
// > PlayerObject::redirectPlayerForce @ 0x62931c
// > PlayerObject::stopDashing @ 0x62c978
// > PlayerObject::rotateGameplay @ 0x630668
// > ??> @ 0xa9cc8
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void PlayerObject::updatePlayerForce(PlayerObject *a1, cocos2d::CCPoint a2, bool a3)
{
char v3; // w2
_BOOL4 m_isPlatformer; // w2
float v5; // s0
double m_platformerXVelocity; // d1
_BOOL4 v7; // w2
float v8; // s0
a1->m_isAccelerating = 1;
if ( v3 )
{
m_isPlatformer = a1->m_isPlatformer;
a1->m_yVelocity = a1->m_yVelocity + *(float *)(a3 + 4LL);
if ( m_isPlatformer )
{
v5 = *(float *)a3;
m_platformerXVelocity = a1->m_platformerXVelocity;
a1->m_affectedByForces = 1;
a1->m_platformerXVelocity = v5 + m_platformerXVelocity;
}
}
else
{
v7 = a1->m_isPlatformer;
a1->m_yVelocity = *(float *)(a3 + 4LL);
if ( v7 )
{
v8 = *(float *)a3;
a1->m_affectedByForces = 1;
a1->m_platformerXVelocity = v8;
}
}
}