//
// ProfilePage::onClose from 0x100197460 to 0x1001974d8 (120 bytes)
//
// 6 xrefs:
// > ProfilePage::onMessages @ 0x10019b4e0
// > ProfilePage::onFriends @ 0x10019b504
// > ProfilePage::onRequests @ 0x10019b528
// > ProfilePage::keyBackClicked @ 0x10019c0ec
// > sub_10019C0F0 @ 0x10019c0f4
// > ProfilePage::init @ 0x100196edc
//
// 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 __fastcall ProfilePage::onClose(ProfilePage *a1, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // x0
cocos2d::CCTouchDispatcher *v4; // x0
cocos2d::CCDirector *v5; // x0
cocos2d::CCTouchDispatcher *v6; // x0
if ( a1->m_list )
{
v3 = cocos2d::CCDirector::sharedDirector();
v4 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v3->getTouchDispatcher)(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1->m_list);
}
v5 = cocos2d::CCDirector::sharedDirector();
v6 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v5->getTouchDispatcher)(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1);
((void (__fastcall *)(ProfilePage *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(ProfilePage *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}