//
// LevelInfoLayer::levelDeleteFailed from 0x10002db98 to 0x10002dc44 (172 bytes)
//
// 2 xrefs:
// > sub_10002DC60 @ 0x10002dc64
// > ??> @ 0x1008b0998
//
// 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
//
__int64 __fastcall LevelInfoLayer::levelDeleteFailed(__int64 result, int a2)
{
__int64 v2; // x19
__int64 v3; // x20
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v5; // [xsp+1Fh] [xbp-11h]
if ( *(_DWORD *)(*(_QWORD *)(result + 504) + 328LL) - *(_DWORD *)(*(_QWORD *)(result + 504) + 332LL) == a2 )
{
v2 = result;
sub_100009900(__p, "Level delete failed, please try again later.");
v3 = FLAlertLayer::create_1(0, "Error", __p, "OK", 0, 300.0);
if ( v5 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v2 + 648) + 344LL))(*(_QWORD *)(v2 + 648), 0);
}
return result;
}