//
// GJBaseGameLayer::getGroundHeightForMode from 0x100122fb0 to 0x100123008 (88 bytes)
//
// 0 xrefs:
//
// 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 __fastcall GJBaseGameLayer::getGroundHeightForMode(GJBaseGameLayer *a1, int m_dualRelated)
{
float result; // xmm0_4
__int64 v3; // rcx
result = 300.0;
while ( (unsigned int)(m_dualRelated - 23) < 2 )
{
m_dualRelated = a1->m_gameState.m_dualRelated;
if ( (unsigned int)(m_dualRelated - 23) < 2 )
return 270.0;
}
if ( (unsigned int)m_dualRelated <= 0x29 )
{
v3 = 0x20004080020LL;
if ( _bittest64(&v3, (unsigned int)m_dualRelated) )
return result;
if ( m_dualRelated == 16 )
return 240.0;
}
return 270.0;
}