//
// LevelPickerPopup::loadLevelsFailed from 0x1009401c0 to 0x10094026a (170 bytes)
//
// 2 xrefs:
// > sub_100940280 @ 0x10094028c
// > ??> @ 0x100bc4cc8
//
// 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:38:30 +0000
//
void __fastcall LevelPickerPopup::loadLevelsFailed(__int64 a1, const char *a2)
{
size_t v2; // rax
unsigned int v3; // ecx
const char *v4; // rsi
if ( *(_BYTE *)(a1 + 808) != 1 )
return;
if ( !a2 )
goto LABEL_11;
v2 = strlen(a2);
v3 = *(unsigned __int8 *)(a1 + 840);
if ( (v3 & 1) == 0 )
{
if ( v2 != v3 >> 1 || memcmp((const void *)(a1 + 841), a2, v2) )
return;
goto LABEL_11;
}
if ( v2 == *(_QWORD *)(a1 + 848) )
{
if ( v2 == -1 )
sub_100056810();
if ( !memcmp(*(const void **)(a1 + 856), a2, v2) )
{
LABEL_11:
sub_10095D090(a1);
v4 = "No levels found";
if ( *(_BYTE *)(a1 + 809) )
v4 = "No lists found";
sub_10095D0B0(a1, v4);
}
}
}