//
// GameObject::isFacingLeft from 0x100261c6c to 0x100261d1c (176 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::gravBumpPlayer @ 0x1001e90fc
// > PlayerObject::ringJump @ 0x1002283d8
// > PlayerObject::bumpPlayer @ 0x10022cb00
//
// 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 v2; // w20
char v3; // w0
unsigned int v4; // w8
unsigned __int64 v5; // t2
int v6; // w10
char v7; // w11
bool v8; // w10
bool v10; // w11
char v11; // w11
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;
v6 = v2 + 360;
if ( v2 >= 0 )
v6 = v2;
v7 = (v6 != 270) | v3;
v8 = (v6 == 90) & v3;
if ( (v7 & 1) == 0 )
v8 = 1;
v10 = (unsigned int)(v2 - 91) < 0xB3 || (unsigned int)(v2 + 269) < 0xB3;
v11 = v3 ^ v10;
if ( v4 >= 0x2D82D83 )
return v11;
else
return v8;
}