//
// MessageThreadsPage::onLegacyMessages from 0xc62b48 to 0xc62bd8 (144 bytes)
//
// 3 xrefs:
// > ??> @ 0xa4a58
// > MessageThreadsPage::init @ 0xc75628
// > ??> @ 0x1544998
//
// 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:23 +0000
//
__int64 __fastcall MessageThreadsPage::onLegacyMessages(MessageThreadsPage *this, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // x0
__int64 v4; // x0
cocos2d::CCTouchDispatcher *v5; // x0
__int64 v6; // x0
cocos2d::CCTouchDispatcher *v7; // x0
__int64 v8; // x0
v3 = *((cocos2d::CCDirector **)this + 86);
if ( v3 )
{
v4 = cocos2d::CCDirector::sharedDirector(v3);
v5 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 160LL))(v4);
v3 = (cocos2d::CCDirector *)cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, *((cocos2d::CCObject **)this + 86));
}
v6 = cocos2d::CCDirector::sharedDirector(v3);
v7 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 160LL))(v6);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v7, this);
v8 = MessagesProfilePage::create(nullptr);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 1312LL))(v8);
(*(void (__fastcall **)(MessageThreadsPage *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
return (*(__int64 (__fastcall **)(MessageThreadsPage *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
}