//
// LevelPickerPopup::loadLevelsFailed from 0x1005061ac to 0x10050626c (192 bytes)
//
// 2 xrefs:
// > sub_100506274 @ 0x100506278
// > ??> @ 0x100997948
//
// 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:06:56 +0000
//
__int64 __fastcall LevelPickerPopup::loadLevelsFailed(__int64 result, char *__s)
{
__int64 v3; // x19
_QWORD *v4; // x21
__int64 v5; // x8
const char *v6; // x1
if ( *(_BYTE *)(result + 808) == 1 )
{
v3 = result;
if ( !__s )
goto LABEL_11;
v4 = (_QWORD *)(result + 840);
result = strlen(__s);
v5 = *(char *)(v3 + 863);
if ( v5 < 0 )
{
if ( result != *(_QWORD *)(v3 + 848) )
return result;
if ( result == -1 )
sub_100050040();
v4 = (_QWORD *)*v4;
}
else if ( result != v5 )
{
return result;
}
result = memcmp(v4, __s, result);
if ( !(_DWORD)result )
{
LABEL_11:
sub_10051B1EC(v3);
if ( *(_BYTE *)(v3 + 809) )
v6 = "No lists found";
else
v6 = "No levels found";
return sub_10051B1FC(v3, v6);
}
}
return result;
}