//
// MessageThreadsPage::setupThreadBrowser from 0xc654cc to 0xc656b4 (488 bytes)
//
// 2 xrefs:
// > MessageThreadsPage::applyThreadList @ 0xc76964
// > ??> @ 0x726e8
//
// 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:05:24 +0000
//
__int64 __fastcall MessageThreadsPage::setupThreadBrowser(MessageThreadsPage *this, cocos2d::CCArray *a2, float a3)
{
cocos2d::CCDirector *v6; // x0
cocos2d::CCDirector *v7; // x0
__int64 v8; // x0
cocos2d::CCTouchDispatcher *v9; // x0
__int64 v10; // x0
cocos2d::CCLayerColor *v11; // x22
void (__fastcall *v12)(cocos2d::CCLayerColor *, int *); // x23
cocos2d::CCDirector *v13; // x0
__int64 v14; // x0
cocos2d::CCTouchDispatcher *v15; // x0
__int64 v17; // [xsp+58h] [xbp+58h] BYREF
int v18; // [xsp+60h] [xbp+60h] BYREF
v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);
cocos2d::CCDirector::getWinSize(&v17, v6);
v7 = *((cocos2d::CCDirector **)this + 86);
if ( v7 )
{
v8 = cocos2d::CCDirector::sharedDirector(v7);
v9 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 160LL))(v8);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v9, *((cocos2d::CCObject **)this + 86));
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 86) + 528LL))(*((_QWORD *)this + 86), 1);
*((_QWORD *)this + 86) = 0;
*((_QWORD *)this + 117) = 0;
}
if ( a2 && (unsigned int)cocos2d::CCArray::count(a2) )
v10 = CustomListView::create(a2, 0, 0, 36, 196.0, 340.0, a3);
else
v10 = 0;
*((_QWORD *)this + 117) = v10;
v11 = GJCommentListLayer::create(v10, (__int64)&byte_11B8890, -12684609, 0, 340.0, 196.0);
*((_QWORD *)this + 86) = v11;
v12 = *(void (__fastcall **)(cocos2d::CCLayerColor *, int *))(*(_QWORD *)v11 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v18,
(float)(*(float *)&v17 * 0.5) + -170.0,
(float)((float)(*((float *)&v17 + 1) * 0.5) + -98.0) - 12.0);
v12(v11, &v18);
v13 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
*((_QWORD *)this + 86),
2);
v18 = 0;
v14 = cocos2d::CCDirector::sharedDirector(v13);
v15 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v14 + 160LL))(v14);
if ( (unsigned __int8)cocos2d::CCTouchDispatcher::ownerLevelOf(v15, *((cocos2d::CCNode **)this + 86), &v18) )
cocos2d::CCMenu::giveMenuTouchPriority(*((cocos2d::CCMenu **)this + 69), v18 - 1);
else
cocos2d::CCMenu::giveMenuTouchPriority(*((cocos2d::CCMenu **)this + 69));
return _stack_chk_guard;
}