//
// LevelBrowserLayer::loadLevelsFailed from 0x1403e6160 to 0x1403e61ab (75 bytes)
//
// 3 xrefs:
// > ??> @ 0x140789fe0
// > ??> @ 0x14078f988
// > ??> @ 0x140924f08
//
// 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:31:43 +0000
//
// Merged with: LevelBrowserLayer::loadLevelsFailed, LevelListLayer::loadLevelsFailed
__int64 __fastcall LevelBrowserLayer::loadLevelsFailed(__int64 a1, _BYTE *a2)
{
__int64 result; // rax
__int64 v4; // rdx
__int64 v5; // rcx
result = LevelBrowserLayer::isCorrect(a1 - 544, a2);
if ( (_BYTE)result )
{
result = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 192) + 336LL))(*(_QWORD *)(a1 + 192), 0);
v5 = *(_QWORD *)(a1 + 104);
if ( v5 )
{
LOBYTE(v4) = 1;
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 336LL))(v5, v4);
}
}
return result;
}