//
// FRequestProfilePage::setupCommentsBrowser from 0x14013f670 to 0x14013f80c (412 bytes)
//
// 3 xrefs:
// > FRequestProfilePage::loadPage @ 0x14013f5ab
// > FRequestProfilePage::loadFRequestsFinished @ 0x14013f842
// > ??> @ 0x1406ca254
//
// 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 FRequestProfilePage::setupCommentsBrowser(FRequestProfilePage *a1, cocos2d::CCArray *a2)
{
CustomListView *v2; // rbx
__int64 v5; // rax
cocos2d::CCTouchDispatcher *v6; // rax
cocos2d::CCDirector *v7; // rax
const char *v8; // rdx
BoomListType v9; // eax
GJCommentListLayer *v10; // rax
cocos2d::CCLayer *m_mainLayer; // rcx
GJCommentListLayer_vtbl *v12; // rbx
const cocos2d::CCPoint *v13; // rax
BoomListView *m_list; // rcx
cocos2d::CCMenu_vtbl *v15; // rbx
int v16; // eax
int v17; // [rsp+20h] [rbp-38h]
float v18; // [rsp+60h] [rbp+8h]
float v19; // [rsp+64h] [rbp+Ch]
cocos2d::CCPoint v20; // [rsp+68h] [rbp+10h] BYREF
v2 = nullptr;
if ( a1->m_listLayer )
{
v5 = cocos2d::CCDirector::sharedDirector(a1);
v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 144LL))(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1->m_listLayer);
a1->m_listLayer->removeMeAndCleanup(a1->m_listLayer);
a1->m_listLayer = nullptr;
}
v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize(v7);
if ( a2 )
{
v9 = User;
if ( !a1->m_sent )
v9 = Request;
v2 = CustomListView::create(a2, nullptr, 196.0, 340.0, v17, v9, 0.0);
}
v10 = GJCommentListLayer::create(v2, v8, (cocos2d::ccColor4B)-12684609, 340.0, 196.0, 0);
m_mainLayer = a1->m_mainLayer;
a1->m_listLayer = v10;
m_mainLayer->addChild_1(m_mainLayer, v10);
v12 = a1->m_listLayer->__vftable;
cocos2d::CCPoint::CCPoint(&v20, (float)(v18 - 340.0) * 0.5, (float)((float)((float)(v19 - 196.0) * 0.5) - 10.0) + 5.0);
v12->setPosition_0(a1->m_listLayer, v13);
m_list = a1->m_listLayer->m_list;
if ( m_list )
{
v15 = a1->m_buttonMenu->FLAlertLayer::__vftable;
v16 = m_list->getTouchPriority(m_list);
v15->setTouchPriority(a1->m_buttonMenu, v16 - 2);
}
}