//
// LevelPickerPopup::loadLevelsFinished from 0x10093ff30 to 0x10094003a (266 bytes)
//
// 2 xrefs:
// > sub_1009401A0 @ 0x1009401ac
// > ??> @ 0x100bc4cc0
//
// 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
//
int __fastcall LevelPickerPopup::loadLevelsFinished(__int64 a1, __int64 a2, const char *a3)
{
size_t v3; // rax
unsigned int v6; // ecx
int v7; // r15d
__int64 v8; // rsi
__int64 v9; // rcx
const char *v10; // rsi
if ( *(_BYTE *)(a1 + 808) == 1 )
{
if ( !a3 )
goto LABEL_11;
v3 = strlen(a3);
v6 = *(unsigned __int8 *)(a1 + 840);
if ( (v6 & 1) != 0 )
{
if ( v3 == *(_QWORD *)(a1 + 848) )
{
if ( v3 == -1 )
sub_100056810();
LODWORD(v3) = memcmp(*(const void **)(a1 + 856), a3, v3);
if ( !(_DWORD)v3 )
{
LABEL_11:
sub_10095D090(a1);
if ( a2 )
{
v7 = sub_1007FEF90(a2);
v8 = 0;
if ( v7 > 0 )
v8 = a2;
sub_100940050(a1, v8);
v9 = (unsigned int)v7;
if ( v7 )
goto LABEL_20;
}
else
{
sub_100940050(a1, 0);
}
v10 = "No online levels";
if ( *(_BYTE *)(a1 + 809) )
v10 = "No online lists";
sub_10095D0B0(a1, v10);
v9 = 0;
LABEL_20:
LODWORD(v3) = sub_10095D170(a1, *(unsigned int *)(a1 + 864), *(unsigned int *)(a1 + 868), v9);
}
}
}
else if ( v3 == v6 >> 1 )
{
LODWORD(v3) = memcmp((const void *)(a1 + 841), a3, v3);
if ( !(_DWORD)v3 )
goto LABEL_11;
}
}
return v3;
}