//
// LevelListLayer::levelListDeleteFailed from 0xbaa38c to 0xbaa490 (260 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'LevelListLayer::levelListDeleteFailed @ 0xbaa498
// > ??> @ 0x91678
// > ??> @ 0x14dbf08
//
// 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 13:02:51 +0000
//
__int64 __fastcall LevelListLayer::levelListDeleteFailed(LevelListLayer *this, int a2)
{
__int64 v4; // x21
__int64 v5[2]; // [xsp+30h] [xbp+30h] BYREF
void *v6; // [xsp+40h] [xbp+40h]
if ( *(_DWORD *)(*((_QWORD *)this + 114) + 344LL) == a2 )
{
v5[0] = 0;
v5[1] = 0;
v6 = nullptr;
std::string::__init(v5, "List delete failed, please try again later.", 0x2Bu);
v4 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Error", (char *)v5, (ButtonSprite *)"OK", nullptr, 300.0);
if ( (v5[0] & 1) != 0 )
operator delete(v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 92) + 344LL))(*((_QWORD *)this + 92), 0);
}
return _stack_chk_guard;
}