//
// ProfilePage::onClose from 0x4c4262 to 0x4c42aa (72 bytes)
//
// 4 xrefs:
// > ProfilePage::keyBackClicked @ 0x4c42ac
// > ProfilePage::onMessages @ 0x4c4f02
// > ProfilePage::onFriends @ 0x4c4f1c
// > ProfilePage::onRequests @ 0x4c4f36
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void ProfilePage::onClose(ProfilePage *a1, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // r0
cocos2d::CCTouchDispatcher *v4; // r0
cocos2d::CCDirector *v5; // r0
cocos2d::CCTouchDispatcher *v6; // r0
if ( a1->m_list )
{
v3 = cocos2d::CCDirector::sharedDirector();
v4 = v3->getTouchDispatcher(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1->m_list);
}
v5 = cocos2d::CCDirector::sharedDirector();
v6 = v5->getTouchDispatcher(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1);
a1->setKeypadEnabled(a1, 0);
a1->removeFromParentAndCleanup(a1, 1);
}