//
// GameObject::isFacingLeft from 0x44e8c6 to 0x44e936 (112 bytes)
//
// 3 xrefs:
// > PlayerObject::bumpPlayer @ 0x44669c
// > PlayerObject::ringJump @ 0x4499ba
// > GJBaseGameLayer::gravBumpPlayer @ 0x5a4b44
//
// 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::isFacingLeft(GameObject *this)
{
int v2; // s15
int v3; // r5
int result; // r0
int v5; // r4
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;
if ( v3 )
return (unsigned __int8)result ^ 1;
}
else
{
v5 = v2 + (v2 < 0 ? 0x168 : 0);
if ( v5 == 270 )
{
return (unsigned __int8)v3 ^ 1;
}
else if ( v5 == 90 )
{
return v3;
}
else
{
return 0;
}
}
return result;
}