//
// GameObject::isFacingLeft from 0x771194 to 0x771260 (204 bytes)
//
// 4 xrefs:
// > PlayerObject::bumpPlayer @ 0x765f14
// > PlayerObject::ringJump @ 0x76a4ac
// > GJBaseGameLayer::gravBumpPlayer @ 0x9c24f0
// > ??> @ 0x41ed8
//
// 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 12:53:13 +0000
//
__int64 __fastcall GameObject::isFacingLeft(GameObject *this)
{
float v2; // s0
__int64 v3; // x1
GameObject *v4; // x0
int v5; // w19
unsigned int v6; // w2
__int64 result; // x0
int v8; // w19
v2 = (*(float (__fastcall **)(GameObject *))(*(_QWORD *)this + 1576LL))(this);
v3 = *(_QWORD *)this;
v4 = this;
v5 = (int)v2;
v6 = (*(unsigned __int8 (__fastcall **)(GameObject *))(v3 + 1432))(v4);
if ( v5 % 90 )
{
LODWORD(result) = 1;
if ( (unsigned int)(v5 - 91) > 0xB2 )
LODWORD(result) = (unsigned int)(v5 + 269) <= 0xB2;
if ( v6 )
return (unsigned int)result ^ 1;
else
return (unsigned int)result;
}
else
{
v8 = v5 + (v5 < 0 ? 0x168 : 0);
result = 1;
if ( (v8 == 270) <= v6 )
return (unsigned __int8)v6 & (v8 == 90);
}
return result;
}