//
// LevelBrowserLayer::loadLevelsFailed from 0x1004868e0 to 0x10048694c (108 bytes)
//
// 3 xrefs:
// > LevelListLayer::loadLevelsFailed @ 0x10034abf5
// > sub_10034AC00 @ 0x10034ac0c
// > ??> @ 0x100b4cd50
//
// 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 12:30:43 +0000
//
__int64 __fastcall LevelBrowserLayer::loadLevelsFailed(__int64 a1, const char *a2)
{
__int64 result; // rax
__int64 v4; // rdi
__int64 v5; // rdi
result = LevelBrowserLayer::isCorrect(a1, a2);
if ( (_BYTE)result )
{
v4 = *(_QWORD *)(a1 + 736);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 344LL))(v4, 0);
result = PlatformToolbox::isNetworkAvailable(v4);
if ( !(_BYTE)result )
result = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 600) + 344LL))(*(_QWORD *)(a1 + 600), 1);
v5 = *(_QWORD *)(a1 + 648);
if ( v5 )
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 344LL))(v5, 1);
}
return result;
}