//
// ProfilePage::setupCommentsBrowser from 0x14055a240 to 0x14055a3e7 (423 bytes)
//
// 9 xrefs:
// > ProfilePage::init @ 0x1405517da
// > ProfilePage::init @ 0x1405518fd
// > ProfilePage::init @ 0x140551954
// > ProfilePage::onUpdate @ 0x14055233d
// > ProfilePage::updateUserScoreFinished @ 0x1405592b5
// > ProfilePage::userInfoChanged @ 0x140559dbe
// > ProfilePage::loadPage @ 0x14055a1b2
// > ProfilePage::loadCommentsFinished @ 0x14055a422
// > ??> @ 0x14092c06c
//
// 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:34:12 +0000
//
void __fastcall ProfilePage::setupCommentsBrowser(_QWORD *a1, cocos2d::CCObject *a2)
{
__int64 v4; // rax
struct cocos2d::CCObject *v5; // rbx
cocos2d::CCTouchDispatcher *v6; // rax
__int64 v7; // rax
int v8; // edx
int v9; // eax
cocos2d::CCLayerColor *v10; // rax
__int64 v11; // rcx
__int64 *v12; // rdi
__int64 v13; // rbx
__int64 v14; // rax
__int64 v15; // rcx
__int64 v16; // rax
struct cocos2d::CCNode *v17; // rbx
cocos2d::CCTouchDispatcher *v18; // rax
bool v19; // al
cocos2d::CCMenu *v20; // rcx
__int64 v21; // [rsp+20h] [rbp-48h]
int v22; // [rsp+30h] [rbp-38h]
int v23; // [rsp+70h] [rbp+8h] BYREF
float v24; // [rsp+78h] [rbp+10h] BYREF
float v25; // [rsp+7Ch] [rbp+14h]
char v26; // [rsp+80h] [rbp+18h] BYREF
if ( a1[99] )
{
v4 = cocos2d::CCDirector::sharedDirector(a1);
v5 = (struct cocos2d::CCObject *)a1[99];
v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 144LL))(v4);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, v5);
(*(void (__fastcall **)(_QWORD))(*(_QWORD *)a1[99] + 528LL))(a1[99]);
a1[99] = 0;
}
v7 = cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize(v7, &v24);
v9 = 0;
if ( a2 )
{
v22 = 0;
v9 = (unsigned int)CustomListView::create(a2, 0, 100.0, 340.0, v21, 15);
}
v10 = GJCommentListLayer::create(v9, v8, -12684609, 340.0, 1120403456, 0, v22);
v11 = a1[73];
a1[99] = v10;
(*(void (__fastcall **)(__int64, cocos2d::CCLayerColor *))(*(_QWORD *)v11 + 464LL))(v11, v10);
v12 = (__int64 *)a1[99];
v13 = *v12;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v26,
(float)(v24 - 340.0) * 0.5,
(float)((float)(v25 - 100.0) * 0.5) - 53.0);
(*(void (__fastcall **)(__int64 *, __int64))(v13 + 184))(v12, v14);
v23 = 0;
v16 = cocos2d::CCDirector::sharedDirector(v15);
v17 = (struct cocos2d::CCNode *)a1[99];
v18 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v16 + 144LL))(v16);
v19 = cocos2d::CCTouchDispatcher::ownerLevelOf(v18, v17, &v23);
v20 = (cocos2d::CCMenu *)a1[69];
if ( v19 )
cocos2d::CCMenu::giveMenuTouchPriority(v20, v23 - 1);
else
cocos2d::CCMenu::giveMenuTouchPriority(v20);
}