//
// GJBaseGameLayer::updateDualGround from 0x100282088 to 0x100282138 (176 bytes)
//
// 7 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x10014a648
// > GJBaseGameLayer::setupLevelStart @ 0x100281748
// > GJBaseGameLayer::toggleDualMode @ 0x100281c38
// > GJBaseGameLayer::updateCameraMode @ 0x10028231c
// > GJBaseGameLayer::playerWillSwitchMode @ 0x100282384
// > GJBaseGameLayer::updateZoom @ 0x1002990b0
// > GJBaseGameLayer::exitStaticCamera @ 0x1002a0dec
//
// This function is hookable on this platform (idp: arm, 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:01:56 +0000
//
__int64 __fastcall GJBaseGameLayer::updateDualGround(__int64 a1, __int64 a2, int a3, __int64 a4)
{
__int64 v7; // x21
float v8; // s0
if ( *(_BYTE *)(a1 + 1010) != 1 || (v7 = *(_QWORD *)(a1 + 984)) == 0 )
v7 = *(_QWORD *)(a1 + 976);
if ( (unsigned int)(a3 - 25) <= 0xFFFFFFFD )
*(_DWORD *)(a1 + 1256) = a3;
GJBaseGameLayer::getGroundHeight(a1, a2, a3);
if ( (*(_BYTE *)(a1 + 785) & 1) != 0 || a3 != 33 && v8 == 270.0 && *(_BYTE *)(a1 + 1010) != 1 )
return GJBaseGameLayer::animateOutGroundNew(a1, 0);
else
return GJBaseGameLayer::animateInDualGroundNew(a1, v7, a4);
}