//
// MessageThreadsPage::onClose from 0xc62e7c to 0xc62f48 (204 bytes)
//
// 4 xrefs:
// > MessageThreadsPage::keyBackClicked @ 0xc62f4c
// > ??> @ 0x824f8
// > MessageThreadsPage::init @ 0xc75564
// > ??> @ 0x1543640
//
// 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::onClose(MessageThreadsPage *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
cocos2d::CCDirector *v4; // x0
__int64 v5; // x0
cocos2d::CCTouchDispatcher *v6; // x0
__int64 v7; // x0
cocos2d::CCTouchDispatcher *v8; // x0
GJAccountManager *v9; // x0
__int64 v10; // x0
__int64 v11; // x0
__int64 v12; // x2
v3 = *((_QWORD *)this + 98);
if ( v3 )
{
*(_QWORD *)(v3 + 584) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 98) + 1160LL))(*((_QWORD *)this + 98), 0);
}
v4 = *((cocos2d::CCDirector **)this + 86);
if ( v4 )
{
v5 = cocos2d::CCDirector::sharedDirector(v4);
v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5);
v4 = (cocos2d::CCDirector *)cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, *((cocos2d::CCObject **)this + 86));
}
v7 = cocos2d::CCDirector::sharedDirector(v4);
v8 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 160LL))(v7);
v9 = (GJAccountManager *)cocos2d::CCTouchDispatcher::unregisterForcePrio(v8, this);
v10 = GJAccountManager::sharedState(v9);
v11 = ProfilePage::create((ProfilePage *)(unsigned int)(*(_DWORD *)(v10 + 352) - *(_DWORD *)(v10 + 356)), 1u);
v12 = *(_QWORD *)v11;
*(_BYTE *)(v11 + 596) = 1;
(*(void (**)(void))(v12 + 1312))();
(*(void (__fastcall **)(MessageThreadsPage *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
return (*(__int64 (__fastcall **)(MessageThreadsPage *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
}