//
// LevelBrowserLayer::loadLevelsFailed from 0x100499e70 to 0x100499ee4 (116 bytes)
//
// 4 xrefs:
// > LevelListLayer::loadLevelsFailed @ 0x1002e35ec
// > sub_1002E35F0 @ 0x1002e35f4
// > sub_100499EE4 @ 0x100499ee8
// > ??> @ 0x10097bbd8
//
// 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 11:05:58 +0000
//
__int64 __fastcall LevelBrowserLayer::loadLevelsFailed(__int64 a1, char *a2)
{
__int64 result; // x0
result = LevelBrowserLayer::isCorrect(a1, a2);
if ( (_DWORD)result )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 736) + 344LL))(*(_QWORD *)(a1 + 736), 0);
if ( !sub_1001F91E0() )
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 600) + 344LL))(*(_QWORD *)(a1 + 600), 1);
result = *(_QWORD *)(a1 + 648);
if ( result )
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 344LL))(result, 1);
}
return result;
}