//
// LevelInfoLayer::onDelete from 0x1002b1540 to 0x1002b1585 (69 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:28:01 +0000
//
__int64 __fastcall LevelInfoLayer::onDelete(__int64 a1)
{
double v1; // xmm0_8
__int64 v2; // rax
__int64 result; // rax
v1 = (*(double (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 496) + 1272LL))(*(_QWORD *)(a1 + 496), 0);
v2 = GameLevelManager::sharedState(v1);
GameLevelManager::deleteLevel(v2, *(_QWORD *)(a1 + 504));
result = LevelInfoLayer::onBack(a1);
*(_BYTE *)(a1 + 488) = 1;
return result;
}