//
// LevelPickerPopup::loadLevelsFinished from 0x74eca8 to 0x74ed3a (146 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'LevelPickerPopup::loadLevelsFinished @ 0x74ed48
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:49 +0000
//
int __fastcall LevelPickerPopup::loadLevelsFinished(int this, cocos2d::CCArray *a2, char *a3, int a4)
{
int v4; // r4
int v7; // r2
int v8; // r2
int v9; // r6
cocos2d::CCArray *v10; // r1
char *v11; // r1
v4 = this;
if ( !*(_BYTE *)(this + 612) )
return this;
if ( a3 )
{
this = strlen(a3);
v7 = *(unsigned __int8 *)(v4 + 628);
v8 = (v7 & 1) != 0 ? *(_DWORD *)(v4 + 632) : v7 >> 1;
if ( this != v8 )
return this;
this = std::string::compare((unsigned __int8 *)(v4 + 628), 0, 0xFFFFFFFF, a3, this);
if ( this )
return this;
}
PagedListPopup::fadeLoading((PagedListPopup *)v4, (int)a2, (int)a3);
if ( a2 )
{
v9 = cocos2d::CCArray::count(a2);
if ( v9 > 0 )
{
v10 = a2;
goto LABEL_12;
}
}
else
{
v9 = 0;
}
v10 = nullptr;
LABEL_12:
LevelPickerPopup::setupList((LevelPickerPopup *)v4, v10);
if ( !v9 )
{
if ( *(_BYTE *)(v4 + 613) )
v11 = "No online lists";
else
v11 = "No online levels";
PagedListPopup::showStatus((PagedListPopup *)v4, (cocos2d::CCLabelBMFont *)v11);
}
return PagedListPopup::updatePageUI((int **)v4, *(_DWORD *)(v4 + 640), *(_DWORD *)(v4 + 644), v9);
}