//
// GJBaseGameLayer::updateDualGround from 0x9e6610 to 0x9e66cc (188 bytes)
//
// 8 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x70f96c
// > GJBaseGameLayer::updateCameraMode @ 0x9e674c
// > GJBaseGameLayer::exitStaticCamera @ 0x9e6988
// > GJBaseGameLayer::playerWillSwitchMode @ 0x9e69f0
// > GJBaseGameLayer::toggleDualMode @ 0x9e6c68
// > GJBaseGameLayer::updateZoom @ 0x9e6f08
// > GJBaseGameLayer::setupLevelStart @ 0x9e80f0
// > ??> @ 0xe15e0
//
// 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 12:59:00 +0000
//
__int64 __fastcall GJBaseGameLayer::updateDualGround(
GJBaseGameLayer *this,
PlayerObject *a2,
int a3,
unsigned __int8 a4,
float a5)
{
GameObject *v9; // x22
float GroundHeight; // s0
if ( !*((_BYTE *)this + 1010) || (v9 = *((GameObject **)this + 123)) == nullptr )
v9 = *((GameObject **)this + 122);
if ( (unsigned int)(a3 - 23) > 1 )
*((_DWORD *)this + 314) = a3;
GroundHeight = GJBaseGameLayer::getGroundHeight(this, a2, a3);
if ( !*((_BYTE *)this + 785) && (GroundHeight != 270.0 || a3 == 33 || *((_BYTE *)this + 1010)) )
return GJBaseGameLayer::animateInDualGroundNew(this, v9, GroundHeight, a4, a5);
else
return GJBaseGameLayer::animateOutGroundNew(this);
}