//
// PlayerObject::isBoostValid from 0x33d518 to 0x33d56c (84 bytes)
//
// 1 xrefs:
// > PlayerObject::postCollision @ 0x34c814
//
// 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::isBoostValid(PlayerObject *a1, float a2)
{
double *p_m_yVelocity; // r3
double v3; // d7
p_m_yVelocity = &a1->m_yVelocity;
v3 = a2;
if ( a1->m_isUpsideDown )
{
if ( a1->m_isCurrentSlopeTop || !a1->m_slopeFlipGravityRelated )
return *p_m_yVelocity > v3;
}
else if ( a1->m_isCurrentSlopeTop && a1->m_slopeFlipGravityRelated )
{
return *p_m_yVelocity > v3;
}
return *p_m_yVelocity < v3;
}