//
// LevelInfoLayer::levelUpdateFailed from 0x49a758 to 0x49a7ea (146 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'LevelInfoLayer::levelUpdateFailed @ 0x49a804
//
// 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::levelUpdateFailed(LevelInfoLayer *this, int a2)
{
int *v3; // r4
int v4; // r0
int v5; // r3
int v7[3]; // [sp+8h] [bp-14h] BYREF
memset(v7, 0, sizeof(v7));
std::string::__init(v7, "Level update failed, please try again later.", 0x2Cu);
v3 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Error", (int)v7, (ButtonSprite *)"OK", nullptr, 300.0);
std::string::~string((int)v7);
v4 = (*(int (__fastcall **)(LevelInfoLayer *))(*(_DWORD *)this + 256))(this);
v5 = *v3;
v3[113] = v4;
(*(void (__fastcall **)(int *))(v5 + 656))(v3);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 110) + 172))(*((_DWORD *)this + 110), 0);
return (*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 90) + 172))(*((_DWORD *)this + 90), 1);
}