//
// PagedListPopup::initPaged from 0x72e718 to 0x72ea66 (846 bytes)
//
// 7 xrefs:
// > AccountReviewPopup::init @ 0x7354a4
// > ReportQueuePopup::init @ 0x73b228
// > AutoBackupPopup::init @ 0x742134
// > FriendPickerPopup::init @ 0x749e0c
// > LevelPickerPopup::init @ 0x74a5d4
// > MemberListPopup::init @ 0x74ae8a
// > InvitesPopup::init @ 0x74c13e
//
// 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:18 +0000
//
int __fastcall PagedListPopup::initPaged(int a1, cocos2d::CCLabelBMFont *a2, unsigned __int8 *a3, float a4, float a5)
{
const char *v9; // r2
int inited; // r8
int v11; // r0
int v12; // r9
void (__fastcall *v13)(int, _DWORD *); // r10
float v14; // s18
const char *v15; // r1
unsigned int v16; // r3
cocos2d::CCLabelBMFont *v17; // r0
int v18; // r0
int v19; // r0
void (__fastcall *v20)(int, _DWORD *); // r3
int v21; // r6
void (__fastcall *v22)(int, _DWORD *); // r9
int v23; // r6
int v24; // r6
void (__fastcall *v25)(int, _DWORD *); // r9
const char *v26; // r1
int v27; // r10
int v28; // r0
int v29; // r10
void (__fastcall *v30)(int, _DWORD *); // r11
const char *v31; // r1
cocos2d::CCSprite *v32; // r5
int v33; // r0
int v34; // r9
void (__fastcall *v35)(int, _BYTE *); // r10
const char *v36; // r2
int v37; // r0
int v38; // r0
void (__fastcall *v39)(int, _BYTE *); // r2
int v40; // r6
void (__fastcall *v41)(int, _BYTE *); // r9
_BYTE v43[8]; // [sp+Ch] [bp-28h] BYREF
int v44; // [sp+14h] [bp-20h]
int v45; // [sp+18h] [bp-1Ch]
_DWORD (*v46)(PagedListPopup *__hidden, cocos2d::CCObject *); // [sp+1Ch] [bp-18h]
int v47; // [sp+20h] [bp-14h]
_DWORD v48[2]; // [sp+24h] [bp-10h] BYREF
inited = PagedListPopup::initFrame((PagedListPopup *)a1, a4, a5);
if ( inited )
{
v11 = cocos2d::CCLabelBMFont::create(a2, "goldFont.fnt", v9);
*(_DWORD *)(a1 + 580) = v11;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v11 + 80))(v11, 1060320051);
v12 = *(_DWORD *)(a1 + 580);
v13 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v12 + 92);
v14 = a5 * 0.5;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v48,
*(float *)(a1 + 520),
(float)((float)(a5 * 0.5) + *(float *)(a1 + 524)) - 18.0);
v13(v12, v48);
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 460) + 228))(
*(_DWORD *)(a1 + 460),
*(_DWORD *)(a1 + 580));
v16 = *a3;
if ( (v16 & 1) != 0 )
{
if ( *((_DWORD *)a3 + 1) )
{
v17 = *((cocos2d::CCLabelBMFont **)a3 + 2);
LABEL_7:
v18 = cocos2d::CCLabelBMFont::create(v17, "bigFont.fnt", (const char *)(v16 << 31));
*(_DWORD *)(a1 + 584) = v18;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v18 + 80))(v18, 1053609165);
v19 = *(_DWORD *)(a1 + 584);
v20 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v19 + 536);
LOWORD(v48[0]) = -11521;
BYTE2(v48[0]) = 60;
v20(v19, v48);
cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 584), a4 - 60.0, 0.4, 0.2);
v21 = *(_DWORD *)(a1 + 584);
v22 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v21 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v48,
*(float *)(a1 + 520),
(float)(v14 + *(float *)(a1 + 524)) - 38.0);
v22(v21, v48);
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 460) + 228))(
*(_DWORD *)(a1 + 460),
*(_DWORD *)(a1 + 584));
}
}
else if ( v16 >> 1 )
{
v17 = (cocos2d::CCLabelBMFont *)(a3 + 1);
goto LABEL_7;
}
v23 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v15);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v23 + 80))(v23, 1060655596);
v44 = 680;
v45 = 1;
v24 = CCMenuItemSpriteExtra::create(v23, 0, a1, 680, 1);
CCMenuItemSpriteExtra::setSizeMult(v24, 1.5);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v24);
v25 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v24 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v48,
(float)(*(float *)(a1 + 520) - (float)(a4 * 0.5)) + 4.0,
(float)(v14 + *(float *)(a1 + 524)) - 8.0);
v25(v24, v48);
v27 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v26);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v27 + 80))(v27, 1060320051);
v46 = PagedListPopup::onPrevPage;
v47 = 0;
v28 = CCMenuItemSpriteExtra::create(v27, 0, a1, (int)PagedListPopup::onPrevPage, 0);
*(_DWORD *)(a1 + 568) = v28;
CCMenuItemSpriteExtra::setSizeMult(v28, 2.0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 444) + 228))(
*(_DWORD *)(a1 + 444),
*(_DWORD *)(a1 + 568));
v29 = *(_DWORD *)(a1 + 568);
v30 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v29 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v48,
(float)(*(float *)(a1 + 520) - (float)(a4 * 0.5)) - 24.0,
*(float *)(a1 + 524));
v30(v29, v48);
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 568) + 172))(*(_DWORD *)(a1 + 568), 0);
v32 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_arrow_01_001.png",
v31);
cocos2d::CCSprite::setFlipX(v32, 1);
(*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v32 + 80))(v32, 1060320051);
v48[0] = PagedListPopup::onNextPage;
v48[1] = 0;
v33 = CCMenuItemSpriteExtra::create((int)v32, 0, a1, (int)PagedListPopup::onNextPage, 0);
*(_DWORD *)(a1 + 572) = v33;
CCMenuItemSpriteExtra::setSizeMult(v33, 2.0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 444) + 228))(
*(_DWORD *)(a1 + 444),
*(_DWORD *)(a1 + 572));
v34 = *(_DWORD *)(a1 + 572);
v35 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v34 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v43,
(float)((float)(a4 * 0.5) + *(float *)(a1 + 520)) + 24.0,
*(float *)(a1 + 524));
v35(v34, v43);
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 572) + 172))(*(_DWORD *)(a1 + 572), 0);
v37 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&unk_B6B226, "chatFont.fnt", v36);
*(_DWORD *)(a1 + 576) = v37;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v37 + 80))(v37, 1053609165);
v38 = *(_DWORD *)(a1 + 576);
v39 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v38 + 536);
memset(v43, 150, 3);
v39(v38, v43);
v40 = *(_DWORD *)(a1 + 576);
v41 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v40 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, *(float *)(a1 + 520), (float)(*(float *)(a1 + 524) - v14) + 8.0);
v41(v40, v43);
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 460) + 228))(
*(_DWORD *)(a1 + 460),
*(_DWORD *)(a1 + 576));
}
return inited;
}