//
// GJBaseGameLayer::removeMiddleground from 0x58bda8 to 0x58bdc2 (26 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::createMiddleground @ 0x58bdce
// > LevelSettingsLayer::selectArtClosed @ 0x6a8c98
//
// 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::removeMiddleground(GJBaseGameLayer *this)
{
int result; // r0
result = *((_DWORD *)this + 616);
if ( result )
{
result = (*(int (__fastcall **)(int))(*(_DWORD *)result + 260))(result);
*((_DWORD *)this + 616) = 0;
}
return result;
}