//
// GJBaseGameLayer::getGroundHeightForMode from 0x46e5b8 to 0x46e5f2 (58 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::getGroundHeightForMode @ 0x46e5e8
// > GJBaseGameLayer::getGroundHeight @ 0x46f208
// > GJBaseGameLayer::getGroundHeight @ 0x46f250
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
float GJBaseGameLayer::getGroundHeightForMode(GJBaseGameLayer *a1, int m_dualRelated)
{
bool v2; // zf
while ( m_dualRelated <= 24 )
{
if ( m_dualRelated < 23 )
{
if ( m_dualRelated == 16 )
return 240.0;
if ( m_dualRelated != 19 )
{
v2 = m_dualRelated == 5;
goto LABEL_9;
}
return 300.0;
}
m_dualRelated = a1->m_gameState.m_dualRelated;
if ( (unsigned int)(m_dualRelated - 23) <= 1 )
return 270.0;
}
if ( m_dualRelated == 33 )
return 270.0;
if ( m_dualRelated != 41 )
{
v2 = m_dualRelated == 26;
LABEL_9:
if ( !v2 )
return 270.0;
}
return 300.0;
}