//
// GJBaseGameLayer::swapGround from 0x1002785cc to 0x10027861c (80 bytes)
//
// 1 xrefs:
// > ArtTriggerGameObject::triggerObject @ 0x10043e1f8
//
// 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:51 +0000
//
__int64 __fastcall GJBaseGameLayer::swapGround(__int64 result, __int64 a2)
{
__int64 v3; // x0
*(_DWORD *)(result + 1904) = a2;
if ( (*(_BYTE *)(result + 12605) & 1) == 0 )
{
result = GameManager::sharedState(result);
if ( *(_DWORD *)(result + 984) != (_DWORD)a2 )
{
v3 = GameManager::sharedState(result);
return sub_1003B57D0(v3, a2);
}
}
return result;
}