//
// GameObject::isFacingLeft from 0x1005c9f90 to 0x1005ca024 (148 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::gravBumpPlayer @ 0x1001283f6
// > PlayerObject::ringJump @ 0x10041475e
// > PlayerObject::bumpPlayer @ 0x10041ab26
//
// 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::isFacingLeft(GameObject *a1)
{
int v1; // r14d
char v2; // al
int v4; // ecx
v1 = (int)((float (__fastcall *)(GameObject *))a1->getObjectRotation)(a1);
v2 = ((__int64 (__fastcall *)(GameObject *))a1->isFlipY)(a1);
if ( __ROR4__(-1527099483 * v1 + 47721858, 1) >= 0x2D82D83u )
return ((unsigned int)(v1 - 91) < 0xB3 || (unsigned int)(v1 + 269) < 0xB3) ^ v2;
v4 = v1 + 360;
if ( v1 >= 0 )
v4 = v1;
return v2 & (v4 == 90) | (v4 == 270) & (v2 ^ 1);
}