//
// LevelInfoLayer::onDelete from 0x10002e294 to 0x10002e2e0 (76 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::FLAlert_Clicked @ 0x10002e684
//
// 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 10:57:29 +0000
//
_BYTE *__fastcall LevelInfoLayer::onDelete(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
_BYTE *result; // x0
v2 = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 496) + 1272LL))(*(_QWORD *)(a1 + 496), 0);
v3 = GameLevelManager::sharedState(v2);
GameLevelManager::deleteLevel(v3, *(_QWORD *)(a1 + 504));
result = LevelInfoLayer::onBack((_BYTE *)a1);
*(_BYTE *)(a1 + 488) = 1;
return result;
}