//
// GJBaseGameLayer::getGroundHeight from 0x100280b18 to 0x100280c20 (264 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::getGroundHeight @ 0x100280b30
// > GJBaseGameLayer::updateDualGround @ 0x1002820d4
//
// 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:01:55 +0000
//
__int64 __fastcall GJBaseGameLayer::getGroundHeight(__int64 result, __int64 a2, int a3)
{
__int64 v3; // x8
do
{
if ( (unsigned int)(a3 - 23) >= 2 )
break;
a3 = *(_DWORD *)(result + 1256);
}
while ( (unsigned int)(a3 - 23) >= 2 );
if ( *(_BYTE *)(result + 1010) == 1 )
{
v3 = 3256;
if ( *(_DWORD *)(a2 + 916) == *(_DWORD *)(*(_QWORD *)(result + 3256) + 916LL) )
v3 = 3264;
return PlayerObject::isFlying(*(_QWORD *)(result + v3));
}
return result;
}