//
// PagedListPopup::initFrame from 0xc396e0 to 0xc398f8 (536 bytes)
//
// 3 xrefs:
// > FriendsProfilePage::init @ 0xa50548
// > PagedListPopup::initPaged @ 0xc39948
// > ??> @ 0xa9600
//
// 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:04:53 +0000
//
__int64 __fastcall PagedListPopup::initFrame(PagedListPopup *this, float a2, float a3)
{
unsigned __int8 v6; // w0
unsigned int v7; // w22
cocos2d::CCDirector *v8; // x0
cocos2d::CCDirector *v9; // x0
cocos2d::CCLayer *v10; // x0
__int64 v11; // x0
__int64 v12; // x23
void (__fastcall *v13)(__int64, _BYTE *); // x25
cocos2d::CCMenu *v14; // x0
__int64 v15; // x0
__int64 v17; // [xsp+60h] [xbp+60h] BYREF
_BYTE v18[16]; // [xsp+68h] [xbp+68h] BYREF
v18[0] = 0;
v18[1] = 0;
v18[2] = 0;
v18[3] = -106;
v6 = cocos2d::CCLayerColor::initWithColor(this, v18);
v7 = v6;
if ( v6 )
{
(*(void (__fastcall **)(PagedListPopup *, __int64))(*(_QWORD *)this + 1168LL))(this, 4294967190LL);
FLAlertLayer::incrementForcePrio(this);
*((_BYTE *)this + 596) = 1;
(*(void (__fastcall **)(PagedListPopup *, __int64))(*(_QWORD *)this + 1000LL))(this, 1);
v8 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(PagedListPopup *, __int64))(*(_QWORD *)this + 1072LL))(
this,
1);
v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8);
cocos2d::CCDirector::getWinSize(&v17, v9);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, *(float *)&v17 * 0.5, *((float *)&v17 + 1) * 0.5);
cocos2d::CCPoint::operator=((char *)this + 660, v18);
*((float *)this + 167) = a2;
*((float *)this + 168) = a3;
cocos2d::CCPoint::operator=((char *)this + 712, (char *)this + 660);
v11 = cocos2d::CCLayer::create(v10);
*((_QWORD *)this + 73) = v11;
(*(void (__fastcall **)(PagedListPopup *, __int64))(*(_QWORD *)this + 456LL))(this, v11);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v18, 0.0, 0.0, 80.0, 80.0);
v12 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v18);
v13 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v12 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v18, a2, a3);
v13(v12, v18);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v12 + 184LL))(v12, (char *)this + 660);
v14 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v12,
4294967294LL);
v15 = cocos2d::CCMenu::create(v14);
*((_QWORD *)this + 69) = v15;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v15,
10);
(*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 69) + 184LL))(*((_QWORD *)this + 69), &unk_155EC68);
*((_DWORD *)this + 160) = -1;
}
return v7;
}