//
// sub_1004F4FC8 from 0x1004f4fc8 to 0x1004f5088 (192 bytes)
//
// 3 xrefs:
// > MessageThreadsPage::keyBackClicked @ 0x1004f7d28
// > sub_1004F7D2C @ 0x1004f7d30
// > MessageThreadsPage::init @ 0x1004f40ac
//
// 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 11:06:47 +0000
//
__int64 __fastcall sub_1004F4FC8(__int64 *a1)
{
_QWORD *v2; // x0
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
__int64 v7; // x0
_BYTE *v8; // x0
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();
v8 = ProfilePage::create((unsigned int)(*(_DWORD *)(v7 + 352) - *(_DWORD *)(v7 + 356)), 1);
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);
}