//
// PlayerObject::playerIsFallingBugged from 0x1002bafec to 0x1002bb098 (172 bytes)
//
// 7 xrefs:
// > PlayerObject::updateJump @ 0x1002b7308
// > PlayerObject::updateJump @ 0x1002b7328
// > PlayerObject::updateJump @ 0x1002b75f0
// > PlayerObject::updateJump @ 0x1002b7770
// > PlayerObject::updateJump @ 0x1002b7a54
// > PlayerObject::updateJump @ 0x1002b7b0c
// > PlayerObject::updateJump @ 0x1002b7cbc
//
// 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:02:25 +0000
//
bool __fastcall PlayerObject::playerIsFallingBugged(__int64 a1)
{
float v1; // s0
double v2; // d1
double v4; // d0
float v5; // s0
if ( (*(_BYTE *)(a1 + 2427) & 1) != 0
|| (*(_BYTE *)(a1 + 2832) & 1) != 0
|| (*(_BYTE *)(a1 + 2428) & 1) != 0
|| *(_BYTE *)(a1 + 1369) == 1 )
{
v1 = *(double *)(a1 + 1944) + *(double *)(a1 + 1944);
v2 = *(double *)(a1 + 2392);
if ( (*(_BYTE *)(a1 + 2423) & 1) != 0 )
return v2 > (float)-v1;
else
return v2 < v1;
}
else
{
v4 = *(double *)(a1 + 1944);
if ( (*(_BYTE *)(a1 + 2423) & 1) != 0 )
{
return *(double *)(a1 + 2392) > v4 + v4;
}
else
{
v5 = v4;
if ( *(_BYTE *)(a1 + 2617) )
v5 = -v5;
return *(double *)(a1 + 2392) < (float)(v5 + v5);
}
}
}