//
// FRequestProfilePage::setupCommentsBrowser from 0x10024c794 to 0x10024c8f4 (352 bytes)
//
// 4 xrefs:
// > sub_10024C388 @ 0x10024c534
// > FRequestProfilePage::getUserListFinished @ 0x10024c6d0
// > FRequestProfilePage::getUserListFailed @ 0x10024c968
// > FRequestProfilePage::loadFRequestsFinished @ 0x10024d1a8
//
// 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 11:01:29 +0000
//
__int64 __fastcall FRequestProfilePage::setupCommentsBrowser(__int64 a1, __int64 a2)
{
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
__int64 v7; // x3
char *v8; // x0
__int64 v9; // x0
__int64 v10; // x20
__int64 result; // x0
__int64 v12; // x19
int v13; // w0
float v14; // [xsp+0h] [xbp-20h] BYREF
__int64 v15; // [xsp+8h] [xbp-18h] BYREF
if ( *(_QWORD *)(a1 + 784) )
{
v4 = cocos2d::CCDirector::sharedDirector();
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 160LL))(v4);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, *(_QWORD *)(a1 + 784));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 784) + 536LL))(*(_QWORD *)(a1 + 784));
*(_QWORD *)(a1 + 784) = 0;
}
v6 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v6, &v15);
if ( a2 )
{
if ( *(_BYTE *)(a1 + 880) )
v7 = 38;
else
v7 = 16;
v8 = CustomListView::create(a2, 0, 0, v7, 180.0, 340.0, 0.0);
}
else
{
v8 = nullptr;
}
v9 = GJCommentListLayer::create(v8, 0, 4282282687LL, 0, 340.0, 180.0);
*(_QWORD *)(a1 + 784) = v9;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v9);
v10 = *(_QWORD *)(a1 + 784);
sub_1000262BC(&v14, (float)(*(float *)&v15 + -340.0) * 0.5, (float)(*((float *)&v15 + 1) * 0.5) + -100.0);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v10 + 184LL))(v10, &v14);
result = *(_QWORD *)(*(_QWORD *)(a1 + 784) + 544LL);
if ( result )
{
v12 = *(_QWORD *)(a1 + 552);
v13 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 1032LL))(result);
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v12 + 1024LL))(v12, (unsigned int)(v13 - 2));
}
return result;
}