//
// FRequestProfilePage::setupCommentsBrowser from 0x5f134c to 0x5f1476 (298 bytes)
//
// 4 xrefs:
// > FRequestProfilePage::getUserListFinished @ 0x5f14b6
// > FRequestProfilePage::getUserListFailed @ 0x5f1588
// > FRequestProfilePage::loadFRequestsFinished @ 0x5f1c1c
// > FRequestProfilePage::loadPage @ 0x5f219c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:28 +0000
//
int __fastcall FRequestProfilePage::setupCommentsBrowser(FRequestProfilePage *this, cocos2d::CCArray *a2)
{
FRequestProfilePage *v2; // r4
int v4; // r0
cocos2d::CCTouchDispatcher *v5; // r0
int v6; // r3
cocos2d::CCLayer *v7; // r0
cocos2d::CCLayerColor *v8; // r0
int v9; // r7
void (__fastcall *v10)(int, _BYTE *); // r8
int result; // r0
int v12; // r4
int (__fastcall *v13)(int, int); // r5
int v14; // r0
float v15[2]; // [sp+14h] [bp-14h] BYREF
_BYTE v16[8]; // [sp+1Ch] [bp-Ch] BYREF
v2 = this;
if ( *((_DWORD *)this + 145) )
{
v4 = cocos2d::CCDirector::sharedDirector(this);
v5 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 80))(v4);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, *((cocos2d::CCObject **)v2 + 145));
this = (FRequestProfilePage *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)v2 + 145) + 268))(*((_DWORD *)v2 + 145));
*((_DWORD *)v2 + 145) = 0;
}
cocos2d::CCDirector::sharedDirector(this);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v15);
if ( a2 )
{
if ( *((_BYTE *)v2 + 628) )
v6 = 38;
else
v6 = 16;
v7 = CustomListView::create(a2, 0, 1127481344, 1135214592, 0, v6, 0);
}
else
{
v7 = nullptr;
}
v8 = GJCommentListLayer::create((int)v7, 0, -12684609, 340.0, 180.0, 0);
*((_DWORD *)v2 + 145) = v8;
(*(void (__fastcall **)(_DWORD, cocos2d::CCLayerColor *))(**((_DWORD **)v2 + 115) + 228))(*((_DWORD *)v2 + 115), v8);
v9 = *((_DWORD *)v2 + 145);
v10 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v9 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, (float)(v15[0] - 340.0) * 0.5, (float)(v15[1] * 0.5) - 100.0);
v10(v9, v16);
result = *(_DWORD *)(*((_DWORD *)v2 + 145) + 440);
if ( result )
{
v12 = *((_DWORD *)v2 + 111);
v13 = *(int (__fastcall **)(int, int))(*(_DWORD *)v12 + 512);
v14 = (*(int (__fastcall **)(int))(*(_DWORD *)result + 516))(result);
return v13(v12, v14 - 2);
}
return result;
}