//
// MessageThreadsPage::setupThreadBrowser from 0x1400d8dd0 to 0x1400d8fc5 (501 bytes)
//
// 2 xrefs:
// > MessageThreadsPage::applyThreadList @ 0x1400d8a66
// > ??> @ 0x1409147d4
//
// 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 11:26:27 +0000
//
void __fastcall MessageThreadsPage::setupThreadBrowser(__int64 a1, cocos2d::CCArray *a2)
{
__int64 v4; // rax
int v5; // edx
__int64 v6; // rcx
int v7; // r9d
__int64 v8; // rax
struct cocos2d::CCObject *v9; // rbx
cocos2d::CCTouchDispatcher *v10; // rax
__int64 v11; // rdx
__int64 v12; // rbx
int v13; // r8d
_QWORD *v14; // rax
float v15; // xmm2_4
_QWORD *v16; // rdi
__int64 v17; // rbx
__int64 v18; // rax
__int64 v19; // rcx
__int64 v20; // rax
struct cocos2d::CCNode *v21; // rbx
cocos2d::CCTouchDispatcher *v22; // rax
bool v23; // al
cocos2d::CCMenu *v24; // rcx
int v25; // [rsp+80h] [rbp+8h] BYREF
float v26; // [rsp+88h] [rbp+10h] BYREF
float v27; // [rsp+8Ch] [rbp+14h]
char v28; // [rsp+98h] [rbp+20h] BYREF
v4 = cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize(v4, &v26);
if ( *(_QWORD *)(a1 + 688) )
{
v8 = cocos2d::CCDirector::sharedDirector(v6);
v9 = *(struct cocos2d::CCObject **)(a1 + 688);
v10 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 144LL))(v8);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v10, v9);
LOBYTE(v11) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 688) + 520LL))(*(_QWORD *)(a1 + 688), v11);
*(_QWORD *)(a1 + 688) = 0;
*(_QWORD *)(a1 + 952) = 0;
}
v12 = 0;
if ( a2 && cocos2d::CCArray::count(a2) )
v12 = CustomListView::create((_DWORD)a2, 0, v13, v7);
*(_QWORD *)(a1 + 952) = v12;
v14 = (_QWORD *)GJCommentListLayer::create(v12, v5, -12684609, v7, 1128529920, 0);
v15 = v27 * 0.5;
v16 = v14;
*(_QWORD *)(a1 + 688) = v14;
v17 = *v14;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, (float)(v26 * 0.5) - 170.0, (float)(v15 - 98.0) - 12.0);
(*(void (__fastcall **)(_QWORD *, __int64))(v17 + 184))(v16, v18);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
*(_QWORD *)(a1 + 688),
2);
v25 = 0;
v20 = cocos2d::CCDirector::sharedDirector(v19);
v21 = *(struct cocos2d::CCNode **)(a1 + 688);
v22 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v20 + 144LL))(v20);
v23 = cocos2d::CCTouchDispatcher::ownerLevelOf(v22, v21, &v25);
v24 = *(cocos2d::CCMenu **)(a1 + 552);
if ( v23 )
cocos2d::CCMenu::giveMenuTouchPriority(v24, v25 - 1);
else
cocos2d::CCMenu::giveMenuTouchPriority(v24);
}