//
// PlayerObject::playerIsFallingBugged from 0x33eefa to 0x33ef7a (128 bytes)
//
// 7 xrefs:
// > PlayerObject::updateJump @ 0x349990
// > PlayerObject::updateJump @ 0x3499ca
// > PlayerObject::updateJump @ 0x349ae4
// > PlayerObject::updateJump @ 0x349c80
// > PlayerObject::updateJump @ 0x349cbe
// > PlayerObject::updateJump @ 0x349e54
// > PlayerObject::updateJump @ 0x34a0dc
//
// 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
//
bool PlayerObject::playerIsFallingBugged(PlayerObject *a1)
{
double *p_m_gravity; // r3
float v2; // s15
double v4; // d6
float v5; // s14
_BOOL4 m_isUpsideDown; // r3
double *p_m_yVelocity; // r0
p_m_gravity = &a1->m_gravity;
if ( a1->m_isSideways || a1->m_isPlatformer || a1->m_isSwing || a1->m_fixGravityBug )
{
v2 = *p_m_gravity + *p_m_gravity;
return PlayerObject::playerIsFalling(a1, v2);
}
else
{
v4 = *p_m_gravity;
v5 = *p_m_gravity;
if ( a1->m_unkA99 )
v5 = -v5;
m_isUpsideDown = a1->m_isUpsideDown;
p_m_yVelocity = &a1->m_yVelocity;
if ( m_isUpsideDown )
return *p_m_yVelocity > v4 + v4;
else
return *p_m_yVelocity < (float)(v5 + v5);
}
}