//
// PagedListPopup::initFrame from 0x1400c2ba0 to 0x1400c2dc3 (547 bytes)
//
// 3 xrefs:
// > PagedListPopup::initPaged @ 0x1400c2e0a
// > FriendsProfilePage::init @ 0x140213685
// > ??> @ 0x140913be0
//
// This function is hookable on this platform (idp: pc, 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 11:26:19 +0000
//
bool __fastcall PagedListPopup::initFrame(__int64 *a1, float a2, float a3)
{
bool result; // al
__int64 v5; // rdx
__int64 v6; // rax
__int64 v7; // rdx
__int64 v8; // rdx
__int64 v9; // rcx
__int64 v10; // rax
__int64 v11; // rax
__int64 v12; // rax
__int64 v13; // rcx
__int64 v14; // rax
__int64 v15; // rdi
__int64 v16; // rbx
__int64 v17; // rax
__int64 v18; // rax
__int64 v19; // rcx
float v20[2]; // [rsp+30h] [rbp-48h] BYREF
_BYTE v21[24]; // [rsp+38h] [rbp-40h] BYREF
int v22; // [rsp+98h] [rbp+20h] BYREF
v22 = -1778384896;
result = cocos2d::CCLayerColor::initWithColor((cocos2d::CCLayerColor *)a1, (const struct cocos2d::_ccColor4B *)&v22);
if ( result )
{
LOBYTE(v5) = -106;
(*(void (__fastcall **)(__int64 *, __int64))(a1[51] + 40))(a1 + 51, v5);
FLAlertLayer::incrementForcePrio((struct cocos2d::CCObject *)a1);
v6 = *a1;
LOBYTE(v7) = 1;
*((_BYTE *)a1 + 596) = 1;
(*(void (__fastcall **)(__int64 *, __int64))(v6 + 920))(a1, v7);
LOBYTE(v8) = 1;
(*(void (__fastcall **)(__int64 *, __int64))(*a1 + 992))(a1, v8);
v10 = cocos2d::CCDirector::sharedDirector(v9);
cocos2d::CCDirector::getWinSize(v10, v20);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, v20[0] * 0.5, v20[1] * 0.5);
cocos2d::CCPoint::operator=(a1 + 83, v11);
*((float *)a1 + 168) = a2;
*((float *)a1 + 169) = a3;
cocos2d::CCPoint::operator=(a1 + 89, a1 + 83);
v12 = cocos2d::CCLayer::create();
v13 = *a1;
a1[73] = v12;
(*(void (__fastcall **)(__int64 *, __int64))(v13 + 464))(a1, v12);
v14 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v21, 0.0, 0.0, 80.0, 80.0);
v15 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v14);
v16 = *(_QWORD *)v15;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v22, a2, a3);
(*(void (__fastcall **)(__int64, __int64))(v16 + 312))(v15, v17);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v15 + 184LL))(v15, a1 + 83);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1[73] + 456LL))(a1[73], v15, 4294967294LL);
v18 = cocos2d::CCMenu::create();
v19 = a1[73];
a1[69] = v18;
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v19 + 456LL))(v19, v18, 10);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1[69] + 184LL))(a1[69], &unk_14090A108);
*((_DWORD *)a1 + 160) = -1;
return 1;
}
return result;
}