//
// GJBaseGameLayer::updateDualGround from 0x5b8c2c to 0x5b8ca2 (118 bytes)
//
// 7 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x411b10
// > GJBaseGameLayer::updateCameraMode @ 0x5b8d3c
// > GJBaseGameLayer::exitStaticCamera @ 0x5b8ede
// > GJBaseGameLayer::playerWillSwitchMode @ 0x5b8f3e
// > GJBaseGameLayer::toggleDualMode @ 0x5b9188
// > GJBaseGameLayer::updateZoom @ 0x5b92c6
// > GJBaseGameLayer::setupLevelStart @ 0x5b9ff6
//
// 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:40 +0000
//
void __fastcall GJBaseGameLayer::updateDualGround(GJBaseGameLayer *this, PlayerObject *a2, int a3, int a4, float a5)
{
GameObject *v8; // r6
float v9; // r0
if ( !*((_BYTE *)this + 866) || (v8 = *((GameObject **)this + 211)) == nullptr )
v8 = *((GameObject **)this + 210);
if ( (unsigned int)(a3 - 23) > 1 )
*((_DWORD *)this + 262) = a3;
v9 = COERCE_FLOAT(GJBaseGameLayer::getGroundHeight(this, a2, a3));
if ( *((_BYTE *)this + 689) || v9 == 270.0 && a3 != 33 && !*((_BYTE *)this + 866) )
GJBaseGameLayer::animateOutGroundNew(this, a4);
else
GJBaseGameLayer::animateInDualGroundNew(this, v8, SLODWORD(v9), a4, a5);
}