//
// GJBaseGameLayer::removeGroundLayer from 0x999848 to 0x999894 (76 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::createGroundLayer @ 0x9998b8
// > LevelSettingsLayer::selectArtClosed @ 0xb61b44
// > ??> @ 0xf8128
//
// 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::removeGroundLayer(GJBaseGameLayer *this)
{
__int64 result; // x0
result = *((_QWORD *)this + 495);
if ( result )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)result + 520LL))(result);
*((_QWORD *)this + 495) = 0;
result = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 496) + 520LL))(*((_QWORD *)this + 496));
*((_QWORD *)this + 496) = 0;
}
return result;
}