//
// FRequestProfilePage::setupCommentsBrowser from 0x100871280 to 0x1008713e5 (357 bytes)
//
// 5 xrefs:
// > sub_100870C20 @ 0x100870ec8
// > FRequestProfilePage::getUserListFinished @ 0x1008711bb
// > FRequestProfilePage::getUserListFailed @ 0x10087147b
// > FRequestProfilePage::loadFRequestsFinished @ 0x100872118
// > sub_100872170 @ 0x1008721a5
//
// 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 12:36:51 +0000
//
__int64 __fastcall FRequestProfilePage::setupCommentsBrowser(__int64 a1, __int64 a2)
{
__int64 v3; // rax
__int64 v4; // rax
__int64 v5; // rax
unsigned int v6; // ecx
char *v7; // rdi
_QWORD *v8; // rax
__int64 v9; // r14
__int64 result; // rax
__int64 v11; // rdi
__int64 v12; // rbx
int v13; // eax
float v14; // [rsp+8h] [rbp-28h] BYREF
__int64 v15; // [rsp+10h] [rbp-20h] BYREF
if ( *(_QWORD *)(a1 + 784) )
{
v3 = cocos2d::CCDirector::sharedDirector();
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, *(_QWORD *)(a1 + 784));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 784) + 536LL))(*(_QWORD *)(a1 + 784));
*(_QWORD *)(a1 + 784) = 0;
}
v5 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v15, v5);
if ( a2 )
{
v6 = 16;
if ( *(_BYTE *)(a1 + 880) )
v6 = 38;
v7 = CustomListView::create(a2, 0, 0, v6, 180.0, 340.0, 0.0);
}
else
{
v7 = nullptr;
}
v8 = GJCommentListLayer::create((__int64)v7, 340.0, 180.0, 0, 0xFF3E72BF, 0);
*(_QWORD *)(a1 + 784) = v8;
(*(void (__fastcall **)(_QWORD, _QWORD *))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v8);
v9 = *(_QWORD *)(a1 + 784);
sub_100278250(&v14, (float)(*(float *)&v15 + -340.0) * 0.5, (float)(0.5 * *((float *)&v15 + 1)) + -100.0);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v9 + 184LL))(v9, &v14);
result = *(_QWORD *)(a1 + 784);
v11 = *(_QWORD *)(result + 544);
if ( v11 )
{
v12 = *(_QWORD *)(a1 + 552);
v13 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 1032LL))(v11);
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v12 + 1024LL))(v12, (unsigned int)(v13 - 2));
}
return result;
}