//
// PagedListPopup::initFrame from 0x72e5ac to 0x72e708 (348 bytes)
//
// 2 xrefs:
// > FriendsProfilePage::init @ 0x5f3b02
// > PagedListPopup::initPaged @ 0x72e73c
//
// 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::initFrame(PagedListPopup *this, float a2, float a3)
{
int v6; // r11
int v7; // r3
cocos2d::CCDirector *v8; // r0
cocos2d::CCLayer *v9; // r0
int v10; // r0
int v11; // r3
int v12; // r6
cocos2d::CCMenu *v13; // r0
int v14; // r0
void (__fastcall *v16)(int, _BYTE *); // [sp+Ch] [bp-28h]
float v17[2]; // [sp+14h] [bp-20h] BYREF
_BYTE v18[16]; // [sp+1Ch] [bp-18h] BYREF
v18[3] = -106;
v18[0] = 0;
v18[1] = 0;
v18[2] = 0;
v6 = cocos2d::CCLayerColor::initWithColor(this, v18);
if ( v6 )
{
(*(void (__fastcall **)(PagedListPopup *, int))(*(_DWORD *)this + 584))(this, 150);
FLAlertLayer::incrementForcePrio(this);
v7 = *(_DWORD *)this;
*((_BYTE *)this + 468) = 1;
(*(void (__fastcall **)(PagedListPopup *, int))(v7 + 500))(this, 1);
v8 = (cocos2d::CCDirector *)(*(int (__fastcall **)(PagedListPopup *, int))(*(_DWORD *)this + 536))(this, 1);
cocos2d::CCDirector::sharedDirector(v8);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v17);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, v17[0] * 0.5, v17[1] * 0.5);
cocos2d::CCPoint::operator=((char *)this + 520, v18);
*((float *)this + 132) = a2;
*((float *)this + 133) = a3;
v9 = (cocos2d::CCLayer *)cocos2d::CCPoint::operator=((char *)this + 560, (char *)this + 520);
v10 = cocos2d::CCLayer::create(v9);
v11 = *(_DWORD *)this;
*((_DWORD *)this + 115) = v10;
(*(void (__fastcall **)(PagedListPopup *, int))(v11 + 228))(this, v10);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v18, 0.0, 0.0, 80.0, 80.0);
v12 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v18);
v16 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v12 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v18, a2, a3);
v16(v12, v18);
(*(void (__fastcall **)(int, char *))(*(_DWORD *)v12 + 92))(v12, (char *)this + 520);
v13 = (cocos2d::CCMenu *)(*(int (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
v12,
-2);
v14 = cocos2d::CCMenu::create(v13);
*((_DWORD *)this + 111) = v14;
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v14, 10);
(*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 111) + 92))(*((_DWORD *)this + 111), &unk_D2DD4C);
*((_DWORD *)this + 125) = -1;
}
return v6;
}