//
// GJBaseGameLayer::removeGroundLayer from 0x58be08 to 0x58be32 (42 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::createGroundLayer @ 0x58be42
// > LevelSettingsLayer::selectArtClosed @ 0x6a8c1c
//
// 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::removeGroundLayer(GJBaseGameLayer *this)
{
int result; // r0
int v3; // r0
result = *((_DWORD *)this + 614);
if ( result )
{
(*(void (__fastcall **)(int))(*(_DWORD *)result + 260))(result);
v3 = *((_DWORD *)this + 615);
*((_DWORD *)this + 614) = 0;
result = (*(int (__fastcall **)(int))(*(_DWORD *)v3 + 260))(v3);
*((_DWORD *)this + 615) = 0;
}
return result;
}