//
// GameObject::isFacingDown from 0x14029e820 to 0x14029e8d7 (183 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031cc9b
// > PlayerObject::ringJump @ 0x1404f7242
// > PlayerObject::bumpPlayer @ 0x1404fdb48
// > ??> @ 0x14091d900
//
// This function is hookable on this platform (idp: pc, 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:29:14 +0000
//
char __fastcall GameObject::isFacingDown(__int64 a1)
{
int v2; // edi
char v3; // r9
char v4; // r8
char result; // al
int v6; // ecx
v2 = (int)(*(float (__fastcall **)(__int64))(*(_QWORD *)a1 + 1424LL))(a1);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1280LL))(a1);
v4 = 0;
if ( v2 == 90 * (v2 / 90) )
{
v6 = -v2;
if ( v2 > 0 )
v6 = v2;
if ( v3 )
{
if ( v6 == 180 )
return 0;
}
else if ( v6 != 180 )
{
return 0;
}
return 1;
}
if ( (unsigned int)(v2 - 91) <= 0xB2 || (unsigned int)(v2 + 269) <= 0xB2 )
v4 = 1;
result = v4 ^ 1;
if ( !v3 )
return v4;
return result;
}