//
// GJBaseGameLayer::swapGround from 0x999740 to 0x999790 (80 bytes)
//
// 2 xrefs:
// > ArtTriggerGameObject::triggerObject @ 0x86ffd8
// > ??> @ 0x67168
//
// 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:58:03 +0000
//
__int64 __fastcall GJBaseGameLayer::swapGround(GJBaseGameLayer *this, int a2)
{
__int64 result; // x0
__int64 v4; // x0
*((_DWORD *)this + 476) = a2;
result = *((unsigned __int8 *)this + 12605);
if ( !(_DWORD)result )
{
result = *(unsigned int *)(GameManager::sharedState((GameManager *)result) + 984);
if ( a2 != (_DWORD)result )
{
v4 = GameManager::sharedState((GameManager *)result);
return GameManager::loadGroundAsync(v4, a2);
}
}
return result;
}