//
// LevelInfoLayer::levelUpdateFailed from 0x140420fa0 to 0x1404210da (314 bytes)
//
// 2 xrefs:
// > ??> @ 0x14078c668
// > ??> @ 0x140926810
//
// This function is hookable on this platform (idp: pc, 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 11:32:09 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall LevelInfoLayer::levelUpdateFailed(__int64 a1)
{
__int64 v2; // rax
cocos2d::CCObject *v3; // rbx
__int64 v4; // rdx
__int128 v6; // [rsp+50h] [rbp-48h] BYREF
__int64 v7; // [rsp+60h] [rbp-38h]
__int64 v8; // [rsp+68h] [rbp-30h]
_BYTE v9[40]; // [rsp+70h] [rbp-28h] BYREF
v6 = 0;
*(_QWORD *)&v6 = sub_14003D460(0x30u);
v7 = 44;
v8 = 47;
strcpy((char *)v6, "Level update failed, please try again later.");
v2 = sub_14003F4F0((__int64)v9, (__int64)&v6);
v3 = FLAlertLayer::create(0, (int)"Error", v2, (__int64)"OK", 0, 1133903872, 0, 0, 1065353216);
sub_14003D310((__int64)&v6);
*((_QWORD *)v3 + 71) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a1 - 416) + 504LL))(a1 - 416);
(*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 232) + 336LL))(*(_QWORD *)(a1 + 232), 0);
LOBYTE(v4) = 1;
return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 80) + 336LL))(*(_QWORD *)(a1 + 80), v4);
}