//
// GJBaseGameLayer::getGroundHeightForMode from 0x140318c30 to 0x140318c8c (92 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::updateDualGround @ 0x14031a4fa
// > GJBaseGameLayer::updateDualGround @ 0x14031a57a
//
// 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 11:30:19 +0000
//
float __fastcall GJBaseGameLayer::getGroundHeightForMode(__int64 a1, int a2)
{
unsigned int v2; // edx
int v3; // edx
float result; // xmm0_4
v2 = a2 - 5;
while ( 2 )
{
switch ( v2 )
{
case 0u:
case 0xEu:
case 0x15u:
case 0x24u:
result = 300.0;
break;
case 0xBu:
result = 240.0;
break;
case 0x12u:
case 0x13u:
v3 = *(_DWORD *)(a1 + 1344);
if ( v3 != 23 && v3 != 24 )
{
v2 = v3 - 5;
if ( v2 <= 0x24 )
continue;
}
goto LABEL_6;
default:
LABEL_6:
result = 270.0;
break;
}
return result;
}
}