//
// GameObject::isFacingLeft from 0x1002fef28 to 0x1002fefd8 (176 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::gravBumpPlayer @ 0x100284944
// > PlayerObject::ringJump @ 0x1002c5058
// > PlayerObject::bumpPlayer @ 0x1002c9824
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:03:04 +0000
//
__int64 __fastcall GameObject::isFacingLeft(__int64 a1)
{
int v2; // w20
int v3; // w0
unsigned int v4; // w8
unsigned __int64 v5; // t2
int v6; // w10
char v7; // w11
unsigned int v8; // w10
_BOOL4 v10; // w11
unsigned int v11; // w11
v2 = (int)(*(float (__fastcall **)(__int64))(*(_QWORD *)a1 + 1576LL))(a1);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1432LL))(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) & (unsigned __int8)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;
}