//
// GameObject::isFacingDown from 0x357254 to 0x3572b4 (96 bytes)
//
// 3 xrefs:
// > PlayerObject::bumpPlayer @ 0x34b424
// > PlayerObject::ringJump @ 0x34e202
// > GJBaseGameLayer::gravBumpPlayer @ 0x4921d2
//
// 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 GameObject::isFacingDown(GameObject *a1)
{
int v2; // s15
int v3; // r5
bool result; // r0
v2 = (int)COERCE_FLOAT(((int (__fastcall *)(GameObject *))a1->getObjectRotation)(a1));
v3 = ((int (__fastcall *)(GameObject *))a1->isFlipY)(a1);
if ( v2 % 90 )
result = (unsigned int)(v2 - 91) <= 0xB2 || (unsigned int)(v2 + 269) <= 0xB2;
else
result = abs32(v2) == 180;
if ( v3 )
return !result;
return result;
}