//
// ProfilePage::setupCommentsBrowser from 0x1403c64c0 to 0x1403c6625 (357 bytes)
//
// 9 xrefs:
// > ProfilePage::init @ 0x1403bf609
// > ProfilePage::init @ 0x1403bf71b
// > ProfilePage::init @ 0x1403bf760
// > ProfilePage::onUpdate @ 0x1403bfe0b
// > ProfilePage::updateUserScoreFinished @ 0x1403c5309
// > ProfilePage::userInfoChanged @ 0x1403c605e
// > ProfilePage::loadPage @ 0x1403c643a
// > ProfilePage::loadCommentsFinished @ 0x1403c6662
// > ??> @ 0x1406d78d4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void ProfilePage::setupCommentsBrowser(ProfilePage *a1, cocos2d::CCArray *a2)
{
CustomListView *v2; // rbx
__int64 v5; // rax
cocos2d::CCTouchDispatcher *v6; // rax
cocos2d::CCDirector *v7; // rax
const char *v8; // rdx
GJCommentListLayer *v9; // rax
cocos2d::CCLayer *m_mainLayer; // rcx
float v11; // xmm0_4
GJCommentListLayer_vtbl *v12; // rbx
const cocos2d::CCPoint *v13; // rax
int v14; // [rsp+20h] [rbp-38h]
float v15; // [rsp+60h] [rbp+8h]
v2 = nullptr;
if ( a1->m_list )
{
v5 = cocos2d::CCDirector::sharedDirector(a1);
v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 144LL))(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1->m_list);
a1->m_list->removeMeAndCleanup(a1->m_list);
a1->m_list = nullptr;
}
v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize(v7);
if ( a2 )
v2 = CustomListView::create(a2, nullptr, 100.0, 340.0, v14, Comment4, 0.0);
v9 = GJCommentListLayer::create(v2, v8, (cocos2d::ccColor4B)-12684609, 340.0, 100.0, 0);
m_mainLayer = a1->m_mainLayer;
a1->m_list = v9;
v11 = ((float (__fastcall *)(cocos2d::CCLayer *, GJCommentListLayer *))m_mainLayer->addChild_1)(m_mainLayer, v9);
v12 = a1->m_list->__vftable;
cocos2d::CCPoint::CCPoint(v11, (float)(v15 - 340.0) * 0.5);
v12->setPosition_0(a1->m_list, v13);
if ( a1->m_ownProfile )
cocos2d::CCMenu::giveMenuTouchPriority(a1->m_buttonMenu);
}