//
// LevelInfoLayer::levelDeleteFailed from 0x1002c4030 to 0x1002c40f8 (200 bytes)
//
// 2 xrefs:
// > sub_1002C4120 @ 0x1002c412c
// > ??> @ 0x100906cd0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall LevelInfoLayer::levelDeleteFailed(LevelInfoLayer *a1, int a2)
{
__int64 v2; // r14
_QWORD v3[2]; // [rsp+8h] [rbp-28h] BYREF
void *__p; // [rsp+18h] [rbp-18h]
if ( a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed == a2 )
{
__p = operator new(0x30u);
v3[0] = 49;
v3[1] = 44;
strcpy((char *)__p, "Level delete failed, please try again later.");
v2 = FLAlertLayer::create_1(0, "Error", v3, "OK", 0, 300.0);
if ( (v3[0] & 1) != 0 )
operator delete(__p);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1288LL))(v2);
((void (__fastcall *)(LoadingCircle *, _QWORD))a1->m_circle->setVisible)(a1->m_circle, 0);
}
}