//
// MessagesProfilePage::setupCommentsBrowser from 0xa4a0d8 to 0xa4a284 (428 bytes)
//
// 3 xrefs:
// > MessagesProfilePage::loadMessagesFinished @ 0xa4a2cc
// > MessagesProfilePage::loadPage @ 0xa4b1d8
// > ??> @ 0xaa128
//
// 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:01 +0000
//
__int64 __fastcall MessagesProfilePage::setupCommentsBrowser(MessagesProfilePage *this, cocos2d::CCArray *a2)
{
cocos2d::CCDirector *v4; // x0
__int64 v5; // x0
cocos2d::CCTouchDispatcher *v6; // x0
cocos2d::CCDirector *v7; // x0
__int64 v8; // x0
cocos2d::CCLayerColor *v9; // x0
__int64 v10; // x22
void (__fastcall *v11)(__int64, _BYTE *); // x21
__int64 v12; // x0
__int64 v13; // x1
__int64 v14; // x19
void (__fastcall *v15)(__int64, _QWORD); // x21
int v16; // w0
__int64 v18; // [xsp+58h] [xbp+58h] BYREF
_BYTE v19[8]; // [xsp+60h] [xbp+60h] BYREF
v4 = *((cocos2d::CCDirector **)this + 93);
if ( v4 )
{
v5 = cocos2d::CCDirector::sharedDirector(v4);
v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, *((cocos2d::CCObject **)this + 93));
v4 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 93) + 536LL))(*((_QWORD *)this + 93));
*((_QWORD *)this + 93) = 0;
}
v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);
cocos2d::CCDirector::getWinSize(&v18, v7);
if ( a2 )
v8 = CustomListView::create(a2, 0, 0, 17, 196.0, 340.0, 0.0);
else
v8 = 0;
v9 = GJCommentListLayer::create(v8, (__int64)"Old Messages", -12684609, 0, 340.0, 196.0);
*((_QWORD *)this + 93) = v9;
(*(void (__fastcall **)(_QWORD, cocos2d::CCLayerColor *))(**((_QWORD **)this + 73) + 456LL))(
*((_QWORD *)this + 73),
v9);
v10 = *((_QWORD *)this + 93);
v11 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v10 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v19,
(float)(*(float *)&v18 - 340.0) * 0.5,
(float)((float)((float)(*((float *)&v18 + 1) - 196.0) * 0.5) + -10.0) + 5.0);
v11(v10, v19);
v12 = *((_QWORD *)this + 93);
v13 = *(_QWORD *)(v12 + 544);
if ( v13 )
{
v14 = *((_QWORD *)this + 69);
v15 = *(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v14 + 1024LL);
v16 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v13 + 1032LL))(*(_QWORD *)(v12 + 544));
v15(v14, (unsigned int)(v16 - 2));
}
return _stack_chk_guard;
}