//
// LevelPickerPopup::loadLevelsFinished from 0x1400ea7e0 to 0x1400ea8ea (266 bytes)
//
// 4 xrefs:
// > ??> @ 0x14072cec8
// > ??> @ 0x140893994
// > ??> @ 0x1408939a4
// > ??> @ 0x140914eac
//
// 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:26:34 +0000
//
void __fastcall LevelPickerPopup::loadLevelsFinished(__int64 a1, cocos2d::CCArray *a2, size_t a3)
{
const void *v3; // r9
__int64 v6; // rax
const void *v7; // rcx
__int64 v8; // rcx
int v9; // edi
__int64 v10; // r8
__int64 v11; // r9
cocos2d::CCArray *v12; // rax
const char *v13; // rdx
v3 = (const void *)a3;
if ( *(_BYTE *)(a1 + 32) )
{
if ( !a3 )
goto LABEL_10;
v6 = -1;
do
++v6;
while ( *(_BYTE *)(a3 + v6) );
v7 = (const void *)(a1 + 64);
if ( *(_QWORD *)(a1 + 88) > 0xFu )
v7 = *(const void **)(a1 + 64);
a3 = *(_QWORD *)(a1 + 80);
if ( a3 == v6 && (!a3 || !memcmp(v7, v3, a3)) )
{
LABEL_10:
v8 = *(_QWORD *)(a1 - 80);
if ( v8 )
LoadingCircle::fadeAndRemove(v8);
if ( a2 )
{
v9 = cocos2d::CCArray::count(a2);
v12 = nullptr;
if ( v9 > 0 )
v12 = a2;
LevelPickerPopup::setupList(a1 - 776, v12, v10, v11);
if ( v9 )
goto LABEL_21;
}
else
{
v9 = 0;
LevelPickerPopup::setupList(a1 - 776, 0, a3, v3);
}
v13 = "No online levels";
if ( *(_BYTE *)(a1 + 33) )
v13 = "No online lists";
PagedListPopup::showStatus(a1 - 776, v13);
LABEL_21:
PagedListPopup::updatePageUI((_QWORD *)(a1 - 776), *(unsigned int *)(a1 + 96), *(_DWORD *)(a1 + 100), v9);
}
}
}