//
// FRequestProfilePage::setupCommentsBrowser from 0xa4caac to 0xa4cc58 (428 bytes)
//
// 5 xrefs:
// > FRequestProfilePage::getUserListFinished @ 0xa4ccbc
// > FRequestProfilePage::getUserListFailed @ 0xa4ce14
// > FRequestProfilePage::loadFRequestsFinished @ 0xa4cf14
// > FRequestProfilePage::loadPage @ 0xa4dfac
// > ??> @ 0xe99b0
//
// 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:00:03 +0000
//
__int64 __fastcall FRequestProfilePage::setupCommentsBrowser(FRequestProfilePage *this, cocos2d::CCArray *a2)
{
cocos2d::CCDirector *v4; // x0
__int64 v5; // x0
cocos2d::CCTouchDispatcher *v6; // x0
cocos2d::CCDirector *v7; // x0
int v8; // w3
__int64 v9; // x0
cocos2d::CCLayerColor *v10; // x0
__int64 v11; // x22
void (__fastcall *v12)(__int64, _BYTE *); // x21
__int64 v13; // x0
__int64 v14; // x1
__int64 v15; // x19
void (__fastcall *v16)(__int64, _QWORD); // x21
int v17; // w0
__int64 v19; // [xsp+58h] [xbp+58h] BYREF
_BYTE v20[8]; // [xsp+60h] [xbp+60h] BYREF
v4 = *((cocos2d::CCDirector **)this + 98);
if ( v4 )
{
v5 = cocos2d::CCDirector::sharedDirector(v4);
v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, *((cocos2d::CCObject **)this + 98));
v4 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 98) + 536LL))(*((_QWORD *)this + 98));
*((_QWORD *)this + 98) = 0;
}
v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);
cocos2d::CCDirector::getWinSize(&v19, v7);
if ( a2 )
{
if ( *((_BYTE *)this + 880) )
v8 = 38;
else
v8 = 16;
v9 = CustomListView::create(a2, 0, 0, v8, 180.0, 340.0, 0.0);
}
else
{
v9 = 0;
}
v10 = GJCommentListLayer::create(v9, 0, -12684609, 0, 340.0, 180.0);
*((_QWORD *)this + 98) = v10;
(*(void (__fastcall **)(_QWORD, cocos2d::CCLayerColor *))(**((_QWORD **)this + 73) + 456LL))(
*((_QWORD *)this + 73),
v10);
v11 = *((_QWORD *)this + 98);
v12 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v11 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v20,
(float)(*(float *)&v19 - 340.0) * 0.5,
(float)(*((float *)&v19 + 1) * 0.5) + -100.0);
v12(v11, v20);
v13 = *((_QWORD *)this + 98);
v14 = *(_QWORD *)(v13 + 544);
if ( v14 )
{
v15 = *((_QWORD *)this + 69);
v16 = *(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v15 + 1024LL);
v17 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v14 + 1032LL))(*(_QWORD *)(v13 + 544));
v16(v15, (unsigned int)(v17 - 2));
}
return _stack_chk_guard;
}