//
// GameObject::isFacingDown from 0x44e868 to 0x44e8c6 (94 bytes)
//
// 3 xrefs:
// > PlayerObject::bumpPlayer @ 0x4466ac
// > PlayerObject::ringJump @ 0x4499cc
// > GJBaseGameLayer::gravBumpPlayer @ 0x5a4b4a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:48:36 +0000
//
int __fastcall GameObject::isFacingDown(GameObject *this)
{
int v2; // s15
int v3; // r5
int result; // r0
v2 = (int)COERCE_FLOAT((*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 788))(this));
v3 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 716))(this);
if ( v2 % 90 )
result = (unsigned int)(v2 - 91) <= 0xB2 || (unsigned int)(v2 + 269) <= 0xB2;
else
result = abs(v2) == 180;
if ( v3 )
return result ^ 1;
return result;
}