//
// LevelBrowserLayer::loadLevelsFailed from 0x4a53c8 to 0x4a540a (66 bytes)
//
// 2 xrefs:
// > `non-virtual thunk to'LevelBrowserLayer::loadLevelsFailed @ 0x4a540e
// > LevelListLayer::loadLevelsFailed @ 0x6d48e2
//
// 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:53 +0000
//
unsigned int __fastcall LevelBrowserLayer::loadLevelsFailed(LevelBrowserLayer *this, const char *a2, int a3)
{
unsigned int result; // r0
PlatformToolbox *v5; // r0
result = LevelBrowserLayer::isCorrect(this, a2);
if ( result )
{
v5 = (PlatformToolbox *)(*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 135) + 172))(
*((_DWORD *)this + 135),
0);
if ( !PlatformToolbox::isNetworkAvailable(v5) )
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 117) + 172))(*((_DWORD *)this + 117), 1);
result = *((_DWORD *)this + 123);
if ( result )
return (*(int (__fastcall **)(unsigned int, int))(*(_DWORD *)result + 172))(result, 1);
}
return result;
}