//
// GameObject::isFacingDown from 0x7710e0 to 0x771194 (180 bytes)
//
// 4 xrefs:
// > PlayerObject::bumpPlayer @ 0x765e94
// > PlayerObject::ringJump @ 0x76a21c
// > GJBaseGameLayer::gravBumpPlayer @ 0x9c2608
// > ??> @ 0x63430
//
// 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::isFacingDown(GameObject *this)
{
float v2; // s0
__int64 v3; // x1
GameObject *v4; // x0
int v5; // w19
unsigned int v6; // w20
__int64 result; // x0
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) )
return (abs(v5) == 180) ^ v6;
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;
}