//
// NotificationsPage::onClose from 0xc5e82c to 0xc5e8d4 (168 bytes)
//
// 4 xrefs:
// > NotificationsPage::keyBackClicked @ 0xc5e8d8
// > ??> @ 0x86158
// > NotificationsPage::init @ 0xc5f1d4
// > ??> @ 0x1543800
//
// 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:20 +0000
//
__int64 __fastcall NotificationsPage::onClose(NotificationsPage *this, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // x0
__int64 v4; // x0
cocos2d::CCTouchDispatcher *v5; // x0
__int64 v6; // x0
cocos2d::CCTouchDispatcher *v7; // x0
GJAccountManager *v8; // x0
__int64 v9; // x0
__int64 v10; // x0
__int64 v11; // x2
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);
v8 = (GJAccountManager *)cocos2d::CCTouchDispatcher::unregisterForcePrio(v7, this);
v9 = GJAccountManager::sharedState(v8);
v10 = ProfilePage::create((ProfilePage *)(unsigned int)(*(_DWORD *)(v9 + 352) - *(_DWORD *)(v9 + 356)), 1u);
v11 = *(_QWORD *)v10;
*(_BYTE *)(v10 + 596) = 1;
(*(void (**)(void))(v11 + 1312))();
(*(void (__fastcall **)(NotificationsPage *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
return (*(__int64 (__fastcall **)(NotificationsPage *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
}