//
// GJBaseGameLayer::swapGround from 0x58bd7c to 0x58bda8 (44 bytes)
//
// 1 xrefs:
// > ArtTriggerGameObject::triggerObject @ 0x4e690c
//
// 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:02 +0000
//
int __fastcall GJBaseGameLayer::swapGround(int this, const char *a2)
{
int v3; // r0
*(_DWORD *)(this + 1380) = a2;
if ( !*(_BYTE *)(this + 10829) )
{
this = GameManager::sharedState((GameManager *)this);
if ( *(const char **)(this + 772) != a2 )
{
v3 = GameManager::sharedState((GameManager *)this);
return GameManager::loadGroundAsync(v3, a2);
}
}
return this;
}