//
// GJBaseGameLayer::getGroundHeightForMode from 0x100100000 to 0x100100058 (88 bytes)
//
// 0 xrefs:
//
// 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:21:20 +0000
//
float __fastcall GJBaseGameLayer::getGroundHeightForMode(__int64 a1, unsigned int a2)
{
float result; // xmm0_4
__int64 v3; // rcx
result = 300.0;
while ( a2 - 23 < 2 )
{
a2 = *(_DWORD *)(a1 + 1256);
if ( a2 - 23 < 2 )
return 270.0;
}
if ( a2 <= 0x29 )
{
v3 = 0x20004080020LL;
if ( _bittest64(&v3, a2) )
return result;
if ( a2 == 16 )
return 240.0;
}
return 270.0;
}