//
// EditLevelLayer::onDelete from 0x4a05d4 to 0x4a05fe (42 bytes)
//
// 1 xrefs:
// > EditLevelLayer::FLAlert_Clicked @ 0x4a2192
//
// 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:49:49 +0000
//
int __fastcall EditLevelLayer::onDelete(EditLevelLayer *this)
{
GameLevelManager *v2; // r0
GameLevelManager *v3; // r0
GJSearchObject *v4; // r2
int v5; // r3
v2 = (GameLevelManager *)(*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 86) + 636))(
*((_DWORD *)this + 86),
0);
v3 = (GameLevelManager *)GameLevelManager::sharedState(v2);
GameLevelManager::deleteLevel(v3, *((GJGameLevel **)this + 87));
return EditLevelLayer::onBack(this, nullptr, v4, v5);
}