//
// LevelInfoLayer::levelDeleteFailed from 0x49a8b0 to 0x49a93c (140 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'LevelInfoLayer::levelDeleteFailed @ 0x49a954
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:49:45 +0000
//
int __fastcall LevelInfoLayer::levelDeleteFailed(LevelInfoLayer *this, int a2)
{
int v3; // r0
int v4; // r2
int result; // r0
int *v6; // r4
int v7[3]; // [sp+8h] [bp-14h] BYREF
v3 = *((_DWORD *)this + 91);
v4 = *(_DWORD *)(v3 + 268);
result = *(_DWORD *)(v3 + 272);
if ( v4 - result == a2 )
{
memset(v7, 0, sizeof(v7));
std::string::__init(v7, "Level delete failed, please try again later.", 0x2Cu);
v6 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Error", (int)v7, (ButtonSprite *)"OK", nullptr, 300.0);
std::string::~string((int)v7);
(*(void (__fastcall **)(int *))(*v6 + 656))(v6);
return (*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 110) + 172))(*((_DWORD *)this + 110), 0);
}
return result;
}