//
// LevelInfoLayer::levelDownloadFailed from 0x7e5b08 to 0x7e5c44 (316 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'LevelInfoLayer::levelDownloadFailed @ 0x7e5c4c
// > ??> @ 0x4a878
// > ??> @ 0x143c0f0
//
// 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 12:54:28 +0000
//
__int64 __fastcall LevelInfoLayer::levelDownloadFailed(LevelInfoLayer *this)
{
_QWORD *v2; // x21
_QWORD v4[2]; // [xsp+30h] [xbp+30h] BYREF
void *v5; // [xsp+40h] [xbp+40h]
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 81) + 344LL))(*((_QWORD *)this + 81), 0);
v5 = (void *)operator new(0x30u);
v4[0] = 49;
v4[1] = 46;
strcpy((char *)v5, "Level download failed, please try again later.");
v2 = (_QWORD *)FLAlertLayer::create(
0,
(cocos2d::CCLabelBMFont *)"Error",
(char *)v4,
(ButtonSprite *)"OK",
nullptr,
300.0);
if ( (v4[0] & 1) != 0 )
operator delete(v5);
v2[71] = (*(__int64 (__fastcall **)(LevelInfoLayer *))(*(_QWORD *)this + 512LL))(this);
(*(void (__fastcall **)(_QWORD *))(*v2 + 1312LL))(v2);
return _stack_chk_guard;
}