//
// GameObject::isFacingDown from 0x10069b610 to 0x10069b686 (118 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::gravBumpPlayer @ 0x100105c9e
// > PlayerObject::ringJump @ 0x100401800
// > PlayerObject::bumpPlayer @ 0x100407927
//
// 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 12:35:16 +0000
//
char __fastcall GameObject::isFacingDown(__int64 a1)
{
int v1; // r14d
char v2; // al
bool v3; // cl
int v4; // ecx
v1 = (int)(*(float (__fastcall **)(__int64))(*(_QWORD *)a1 + 1576LL))(a1);
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1432LL))(a1);
if ( __ROR4__(-1527099483 * v1 + 47721858, 1) < 0x2D82D83u )
{
v4 = -v1;
if ( v1 > 0 )
v4 = v1;
v3 = v4 == 180;
}
else
{
v3 = (unsigned int)(v1 - 91) < 0xB3 || (unsigned int)(v1 + 269) < 0xB3;
}
return v3 ^ v2;
}