//
// GameObject::isFacingDown from 0x1002fee98 to 0x1002fef28 (144 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::gravBumpPlayer @ 0x10028494c
// > PlayerObject::ringJump @ 0x1002c5074
// > PlayerObject::bumpPlayer @ 0x1002c9840
//
// 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::isFacingDown(__int64 a1)
{
int v2; // w20
int v3; // w0
unsigned int v4; // w8
unsigned __int64 v5; // t2
int v6; // w10
_BOOL4 v7; // w10
_BOOL4 v9; // w11
_BOOL4 v10; // w8
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;
if ( v2 >= 0 )
v6 = v2;
else
v6 = -v2;
v7 = v6 == 180;
v9 = (unsigned int)(v2 - 91) < 0xB3 || (unsigned int)(v2 + 269) < 0xB3;
if ( v4 >= 0x2D82D83 )
v10 = v9;
else
v10 = v7;
return v3 ^ (unsigned int)v10;
}