//
// GJBaseGameLayer::updateDualGround from 0x1001e66f4 to 0x1001e67a4 (176 bytes)
//
// 7 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x100121394
// > GJBaseGameLayer::setupLevelStart @ 0x1001e6028
// > GJBaseGameLayer::toggleDualMode @ 0x1001e6458
// > GJBaseGameLayer::updateCameraMode @ 0x1001e6988
// > GJBaseGameLayer::playerWillSwitchMode @ 0x1001e69f0
// > GJBaseGameLayer::updateZoom @ 0x1001fcfe8
// > GJBaseGameLayer::exitStaticCamera @ 0x100203fe4
//
// 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
//
void __fastcall GJBaseGameLayer::updateDualGround(GJBaseGameLayer *a1, PlayerObject *a2, int a3, bool a4, float a5)
{
GameObject *m_lastActivatedPortal1; // x21
float GroundHeight; // s0
float v10; // s1
if ( !a1->m_gameState.m_isDualMode || (m_lastActivatedPortal1 = a1->m_gameState.m_lastActivatedPortal2) == nullptr )
m_lastActivatedPortal1 = a1->m_gameState.m_lastActivatedPortal1;
if ( (unsigned int)(a3 - 25) <= 0xFFFFFFFD )
a1->m_gameState.m_dualRelated = a3;
GroundHeight = GJBaseGameLayer::getGroundHeight(a1, a2, a3);
if ( a1->m_gameState.m_isFreeMode || a3 != 33 && (v10 = 270.0, GroundHeight == 270.0) && !a1->m_gameState.m_isDualMode )
GJBaseGameLayer::animateOutGroundNew(a1, 0);
else
GJBaseGameLayer::animateInDualGroundNew(a1, m_lastActivatedPortal1, GroundHeight, a4, v10);
}