//
// LevelPickerPopup::setupList from 0x1400eab50 to 0x1400eace3 (403 bytes)
//
// 4 xrefs:
// > LevelPickerPopup::loadLevelsFinished @ 0x1400ea880
// > LevelPickerPopup::loadLevelsFinished @ 0x1400ea898
// > LevelPickerPopup::buildSavedPage @ 0x1400eb825
// > ??> @ 0x140914ee8
//
// 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
//
__int64 __fastcall LevelPickerPopup::setupList(__int64 a1, cocos2d::CCArray *a2, __int64 a3, int a4)
{
int v4; // edi
__int64 v7; // rax
struct cocos2d::CCObject *v8; // rbx
cocos2d::CCTouchDispatcher *v9; // rax
__int64 v10; // rdx
__int64 v11; // rcx
int v12; // r8d
int v13; // edx
int v14; // eax
_QWORD *v15; // rax
float v16; // xmm0_4
_QWORD *v17; // rdi
__int64 v18; // rbx
__int64 v19; // rax
int v21; // [rsp+28h] [rbp-20h]
int v22; // [rsp+30h] [rbp-18h]
char v23; // [rsp+50h] [rbp+8h] BYREF
v4 = 0;
if ( *(_QWORD *)(a1 + 800) )
{
v7 = cocos2d::CCDirector::sharedDirector(a1);
v8 = *(struct cocos2d::CCObject **)(a1 + 800);
v9 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 144LL))(v7);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v9, v8);
LOBYTE(v10) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 800) + 520LL))(*(_QWORD *)(a1 + 800), v10);
*(_QWORD *)(a1 + 800) = 0;
}
v11 = *(_QWORD *)(a1 + 760);
if ( v11 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v11 + 512LL))(v11);
*(_QWORD *)(a1 + 760) = 0;
}
if ( a2 && cocos2d::CCArray::count(a2) )
{
v13 = a1 + 784;
v14 = 37;
if ( *(_BYTE *)(a1 + 809) )
v14 = 39;
v22 = 0;
v21 = v14;
if ( !a1 )
v13 = 0;
v4 = CustomListView::create((_DWORD)a2, v13, v12, a4);
}
LOBYTE(v21) = 0;
v15 = (_QWORD *)GJCommentListLayer::create(v4, (_DWORD)a2, -12684609, a4, *(_DWORD *)(a1 + 708), v21, v22);
v16 = *(float *)(a1 + 708) * 0.5;
v17 = v15;
*(_QWORD *)(a1 + 800) = v15;
v18 = *v15;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v23,
*(float *)(a1 + 712) - (float)(*(float *)(a1 + 704) * 0.5),
*(float *)(a1 + 716) - v16);
(*(void (__fastcall **)(_QWORD *, __int64))(v18 + 184))(v17, v19);
return (*(__int64 (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
*(_QWORD *)(a1 + 800),
2);
}