//
// ProfilePage::onClose from 0x5f5906 to 0x5f594e (72 bytes)
//
// 5 xrefs:
// > ProfilePage::keyBackClicked @ 0x5f5950
// > ProfilePage::onMessages @ 0x5f5976
// > ProfilePage::onFriends @ 0x5f598e
// > ProfilePage::onRequests @ 0x5f59a8
// > ProfilePage::onNotifications @ 0x5f59c2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:31 +0000
//
int __fastcall ProfilePage::onClose(cocos2d::CCObject **this, cocos2d::CCObject *a2)
{
cocos2d::CCObject **v2; // r4
int v3; // r0
cocos2d::CCTouchDispatcher *v4; // r0
int v5; // r0
cocos2d::CCTouchDispatcher *v6; // r0
v2 = this;
if ( *(this + 146) )
{
v3 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
v4 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v3 + 80))(v3);
this = (cocos2d::CCObject **)cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, v2[146]);
}
v5 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
v6 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v5 + 80))(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, (cocos2d::CCObject *)v2);
(*((void (__fastcall **)(cocos2d::CCObject **, _DWORD))*v2 + 134))(v2, 0);
return (*((int (__fastcall **)(cocos2d::CCObject **, int))*v2 + 66))(v2, 1);
}