//
// MessageThreadsPage::onClose from 0x100929760 to 0x100929827 (199 bytes)
//
// 3 xrefs:
// > MessageThreadsPage::keyBackClicked @ 0x10092d3b5
// > sub_10092D3C0 @ 0x10092d3cc
// > MessageThreadsPage::init @ 0x10092852d
//
// 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 12:38:21 +0000
//
__int64 __fastcall MessageThreadsPage::onClose(__int64 *a1)
{
_QWORD *v2; // rdi
__int64 v3; // rax
__int64 v4; // rax
__int64 v5; // rax
__int64 v6; // rdi
__int64 v7; // rax
_BYTE *v8; // rax
v2 = (_QWORD *)a1[98];
if ( v2 )
{
v2[73] = 0;
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v2 + 1160LL))(v2, 0);
}
if ( a1[86] )
{
v3 = cocos2d::CCDirector::sharedDirector();
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1[86]);
}
v5 = cocos2d::CCDirector::sharedDirector();
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, (__int64)a1);
v7 = GJAccountManager::sharedState(v6, (__int64)a1);
v8 = ProfilePage::create(*(_DWORD *)(v7 + 352) - *(_DWORD *)(v7 + 356), 1u);
v8[596] = 1;
(*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v8 + 1312LL))(v8);
(*(void (__fastcall **)(__int64 *, _QWORD))(*a1 + 1072))(a1, 0);
return (*(__int64 (__fastcall **)(__int64 *, __int64))(*a1 + 528))(a1, 1);
}