//
// StartPosBrowser::setupList from 0x48fdd4 to 0x490020 (588 bytes)
//
// 1 xrefs:
// > StartPosBrowser::init @ 0x49028e
//
// 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:49:36 +0000
//
int __fastcall StartPosBrowser::setupList(StartPosBrowser *this)
{
StartPosBrowser *v1; // r4
int v2; // r0
cocos2d::CCTouchDispatcher *v3; // r0
cocos2d::CCArray *WinSize; // r0
cocos2d::CCArray *v5; // r0
cocos2d::CCArray *v6; // r10
cocos2d::CCObject *v7; // r6
cocos2d::CCLayer *v8; // r0
int v9; // r0
int v10; // r6
void (__fastcall *v11)(int, _BYTE *); // r7
unsigned int v13; // r6
unsigned int v14; // r8
char *v15; // r2
cocos2d::CCString *v16; // r0
size_t v17; // r0
int v18; // r3
char *v19; // r1
size_t v20; // r0
cocos2d::CCObject *v21; // r6
int v22; // [sp+14h] [bp-48h]
const char *CString; // [sp+18h] [bp-44h]
_BOOL4 v24; // [sp+18h] [bp-44h]
char *v25; // [sp+24h] [bp-38h]
float v26[2]; // [sp+2Ch] [bp-30h] BYREF
_BYTE v27[8]; // [sp+34h] [bp-28h] BYREF
int v28[2]; // [sp+3Ch] [bp-20h] BYREF
char *v29; // [sp+44h] [bp-18h]
int v30; // [sp+48h] [bp-14h] BYREF
int v31; // [sp+4Ch] [bp-10h]
char *v32; // [sp+50h] [bp-Ch]
v1 = this;
if ( *((_DWORD *)this + 133) )
{
v2 = cocos2d::CCDirector::sharedDirector(this);
v3 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v2 + 80))(v2);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, *((cocos2d::CCObject **)v1 + 133));
this = (StartPosBrowser *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)v1 + 133) + 268))(*((_DWORD *)v1 + 133));
*((_DWORD *)v1 + 133) = 0;
}
cocos2d::CCDirector::sharedDirector(this);
WinSize = (cocos2d::CCArray *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v26);
v5 = (cocos2d::CCArray *)cocos2d::CCArray::create(WinSize);
v30 = 0;
v31 = 0;
v32 = nullptr;
v6 = v5;
std::string::__init(&v30, "No StartPos", 0xBu);
v7 = (cocos2d::CCObject *)OptionsObject::create(0, 0, &v30, (char *)v1 + 524);
std::string::~string((int)&v30);
*((_DWORD *)v7 + 19) = 1;
(*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v7 + 36))(v7, 0);
cocos2d::CCArray::addObject(v6, v7);
if ( *((_DWORD *)v1 + 132) )
{
v13 = 0;
while ( v13 < cocos2d::CCArray::count(*((cocos2d::CCArray **)v1 + 132)) )
{
v14 = v13 + 1;
v22 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)v1 + 132), v13);
StartPosObject::getDisplayName((StartPosObject *)&v30);
if ( (v30 & 1) != 0 )
v15 = v32;
else
v15 = (char *)&v30 + 1;
v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i: %s",
(const char *)(v13 + 1),
v15);
CString = (const char *)cocos2d::CCString::getCString(v16);
v28[0] = 0;
v28[1] = 0;
v29 = nullptr;
v17 = strlen(CString);
std::string::__init(v28, CString, v17);
std::string::~string((int)&v30);
v18 = *((_DWORD *)v1 + 134);
v30 = 0;
v31 = 0;
v32 = nullptr;
v24 = v18 == v14;
if ( (v28[0] & 1) != 0 )
v19 = v29;
else
v19 = (char *)v28 + 1;
v25 = v19;
v20 = strlen(v19);
std::string::__init(&v30, v25, v20);
v21 = (cocos2d::CCObject *)OptionsObject::create(v13, v24, &v30, (char *)v1 + 524);
std::string::~string((int)&v30);
*((_DWORD *)v21 + 19) = 1;
*((_DWORD *)v21 + 21) = v22;
(*(void (__fastcall **)(cocos2d::CCObject *, unsigned int))(*(_DWORD *)v21 + 36))(v21, v14);
cocos2d::CCArray::addObject(v6, v21);
v13 = v14;
std::string::~string((int)v28);
}
}
v8 = CustomListView::create(v6, (int)v1 + 520, 1130102784, 1135214592, 0, 24, 0);
v9 = GJCommentListLayer::create((int)v8, (int)&unk_B6B226, -13487566, 1135214592, 220.0, 1);
*((_DWORD *)v1 + 133) = v9;
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)v1 + 115) + 232))(*((_DWORD *)v1 + 115), v9, 10);
v10 = *((_DWORD *)v1 + 133);
v11 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v10 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v27,
(float)(v26[0] - 340.0) * 0.5,
(float)((float)(v26[1] - 220.0) * 0.5) - 10.0);
v11(v10, v27);
return StartPosBrowser::updatePageLabel(v1);
}