//
// GJBaseGameLayer::getGroundHeightForMode from 0x58e110 to 0x58e14a (58 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::getGroundHeightForMode @ 0x58e140
// > GJBaseGameLayer::getGroundHeight @ 0x58f0c0
// > GJBaseGameLayer::getGroundHeight @ 0x58f108
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:03 +0000
//
int __fastcall GJBaseGameLayer::getGroundHeightForMode(GJBaseGameLayer *this, int a2)
{
bool v2; // zf
while ( a2 <= 24 )
{
if ( a2 < 23 )
{
if ( a2 == 16 )
return 1131413504;
if ( a2 != 19 )
{
v2 = a2 == 5;
goto LABEL_9;
}
return 1133903872;
}
a2 = *((_DWORD *)this + 262);
if ( (unsigned int)(a2 - 23) <= 1 )
return 1132920832;
}
if ( a2 == 33 )
return 1132920832;
if ( a2 != 41 )
{
v2 = a2 == 26;
LABEL_9:
if ( !v2 )
return 1132920832;
}
return 1133903872;
}