//
// MessageThreadsPage::setupThreadBrowser from 0x746b64 to 0x746cac (328 bytes)
//
// 1 xrefs:
// > MessageThreadsPage::applyThreadList @ 0x751340
//
// 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:58:43 +0000
//
int __fastcall MessageThreadsPage::setupThreadBrowser(cocos2d::CCMenu **this, cocos2d::CCArray *a2, int a3)
{
cocos2d::CCDirector *WinSize; // r0
int v7; // r0
cocos2d::CCTouchDispatcher *v8; // r0
cocos2d::CCLayer *v9; // r0
cocos2d::CCLayerColor *v10; // r0
float v11; // s15
float v12; // s13
cocos2d::CCLayerColor *v13; // r7
void (__fastcall *v14)(cocos2d::CCLayerColor *, int *); // r9
cocos2d::CCDirector *v15; // r0
int v16; // r0
cocos2d::CCTouchDispatcher *v17; // r0
float v19[2]; // [sp+14h] [bp-18h] BYREF
int v20[2]; // [sp+1Ch] [bp-10h] BYREF
cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
WinSize = (cocos2d::CCDirector *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v19);
if ( *(this + 133) )
{
v7 = cocos2d::CCDirector::sharedDirector(WinSize);
v8 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v7 + 80))(v7);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v8, *(this + 133));
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 133) + 264))(*(this + 133), 1);
*(this + 133) = nullptr;
*(this + 166) = nullptr;
}
if ( a2 && cocos2d::CCArray::count(a2) )
v9 = CustomListView::create(a2, 0, 1128529920, 1135214592, 0, 36, a3);
else
v9 = nullptr;
*(this + 166) = v9;
v10 = GJCommentListLayer::create((int)v9, (int)&unk_B6B226, -12684609, 340.0, 196.0, 0);
v11 = (float)(v19[1] * 0.5) - 98.0;
v12 = (float)(v19[0] * 0.5) - 170.0;
*(this + 133) = v10;
v13 = v10;
v14 = *(void (__fastcall **)(cocos2d::CCLayerColor *, int *))(*(_DWORD *)v10 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, v12, v11 - 12.0);
v14(v13, v20);
v15 = (cocos2d::CCDirector *)(*(int (__fastcall **)(_DWORD, _DWORD, int))(*(_DWORD *)*(this + 115) + 232))(
*(this + 115),
*(this + 133),
2);
v20[0] = 0;
v16 = cocos2d::CCDirector::sharedDirector(v15);
v17 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v16 + 80))(v16);
if ( cocos2d::CCTouchDispatcher::ownerLevelOf(v17, *(this + 133), v20) )
return cocos2d::CCMenu::giveMenuTouchPriority(*(this + 111), v20[0] - 1);
else
return cocos2d::CCMenu::giveMenuTouchPriority(*(this + 111));
}