//
// ProfilePage::onClose from 0xa53354 to 0xa533d0 (124 bytes)
//
// 9 xrefs:
// > ProfilePage::keyBackClicked @ 0xa533d4
// > ProfilePage::onMessages @ 0xa53410
// > ProfilePage::onFriends @ 0xa53438
// > ProfilePage::onRequests @ 0xa53464
// > ProfilePage::onNotifications @ 0xa53490
// > ??> @ 0x570d0
// > ProfilePage::createOfflineNotice @ 0xa53b4c
// > ProfilePage::init @ 0xa5bf5c
// > ??> @ 0x1541f88
//
// 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:00:06 +0000
//
__int64 __fastcall ProfilePage::onClose(ProfilePage *this, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // x0
__int64 v4; // x0
cocos2d::CCTouchDispatcher *v5; // x0
__int64 v6; // x0
cocos2d::CCTouchDispatcher *v7; // x0
v3 = *((cocos2d::CCDirector **)this + 98);
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 + 98));
}
v6 = cocos2d::CCDirector::sharedDirector(v3);
v7 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 160LL))(v6);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v7, this);
(*(void (__fastcall **)(ProfilePage *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
return (*(__int64 (__fastcall **)(ProfilePage *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
}