//
// LevelPickerPopup::setupList from 0xc66fa8 to 0xc67120 (376 bytes)
//
// 5 xrefs:
// > LevelPickerPopup::loadLevelsFinished @ 0xc710bc
// > LevelPickerPopup::loadLevelsFinished @ 0xc710e8
// > LevelPickerPopup::loadLevelsFinished @ 0xc7113c
// > LevelPickerPopup::buildSavedPage @ 0xc845b0
// > ??> @ 0x88c48
//
// This function is hookable on this platform (idp: arm, 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 13:05:25 +0000
//
__int64 __fastcall LevelPickerPopup::setupList(LevelPickerPopup *this, cocos2d::CCArray *a2)
{
cocos2d::CCDirector *v4; // x0
__int64 v5; // x0
cocos2d::CCTouchDispatcher *v6; // x0
__int64 v7; // x0
cocos2d::CCLayerColor *v8; // x22
float v9; // s4
void (__fastcall *v10)(cocos2d::CCLayerColor *, _BYTE *); // x21
int v12; // w3
_BYTE v13[8]; // [xsp+40h] [xbp+40h] BYREF
v4 = *((cocos2d::CCDirector **)this + 100);
if ( v4 )
{
v5 = cocos2d::CCDirector::sharedDirector(v4);
v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, *((cocos2d::CCObject **)this + 100));
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 100) + 528LL))(*((_QWORD *)this + 100), 1);
*((_QWORD *)this + 100) = 0;
}
PagedListPopup::clearStatus((__int64)this);
if ( a2 && (unsigned int)cocos2d::CCArray::count(a2) )
{
if ( *((_BYTE *)this + 809) )
v12 = 39;
else
v12 = 37;
v7 = CustomListView::create(a2, (int)this + 784, 0, v12, *((float *)this + 177), *((float *)this + 176), 0.0);
}
else
{
v7 = 0;
}
v8 = GJCommentListLayer::create(
v7,
(__int64)&byte_11B8890,
-12684609,
0,
*((float *)this + 176),
*((float *)this + 177));
v9 = *((float *)this + 176);
*((_QWORD *)this + 100) = v8;
v10 = *(void (__fastcall **)(cocos2d::CCLayerColor *, _BYTE *))(*(_QWORD *)v8 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v13,
*((float *)this + 178) - (float)(v9 * 0.5),
*((float *)this + 179) - (float)(*((float *)this + 177) * 0.5));
v10(v8, v13);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
*((_QWORD *)this + 100),
2);
return _stack_chk_guard;
}