//
// GameObject::isFacingDown from 0x100261bdc to 0x100261c6c (144 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::gravBumpPlayer @ 0x1001e9104
// > PlayerObject::ringJump @ 0x1002283f4
// > PlayerObject::bumpPlayer @ 0x10022cb1c
//
// 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 __fastcall GameObject::isFacingDown(GameObject *a1)
{
int v2; // w20
char v3; // w0
unsigned int v4; // w8
unsigned __int64 v5; // t2
int v6; // w10
bool v7; // w10
bool v9; // w11
bool v10; // w8
v2 = (int)((float (__fastcall *)(GameObject *))a1->getObjectRotation)(a1);
v3 = ((__int64 (__fastcall *)(GameObject *))a1->isFlipY)(a1);
HIDWORD(v5) = -1527099483 * v2 + 47721858;
LODWORD(v5) = HIDWORD(v5);
v4 = v5 >> 1;
if ( v2 >= 0 )
v6 = v2;
else
v6 = -v2;
v7 = v6 == 180;
v9 = (unsigned int)(v2 - 91) < 0xB3 || (unsigned int)(v2 + 269) < 0xB3;
if ( v4 >= 0x2D82D83 )
v10 = v9;
else
v10 = v7;
return v3 ^ v10;
}