//
// GameObject::isFacingLeft from 0x3572b4 to 0x357324 (112 bytes)
//
// 3 xrefs:
// > PlayerObject::bumpPlayer @ 0x34b414
// > PlayerObject::ringJump @ 0x34e1f0
// > GJBaseGameLayer::gravBumpPlayer @ 0x4921cc
//
// 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::isFacingLeft(GameObject *a1)
{
int v2; // s15
int v3; // r5
bool result; // r0
int v5; // r4
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;
if ( v3 )
return !result;
}
else
{
v5 = v2 + (v2 < 0 ? 0x168 : 0);
if ( v5 == 270 )
{
return v3 ^ 1;
}
else if ( v5 == 90 )
{
return v3;
}
else
{
return 0;
}
}
return result;
}