//
// FriendsProfilePage::onClose from 0xa4f9a8 to 0xa4fa28 (128 bytes)
//
// 2 xrefs:
// > ??> @ 0x6e680
// > ??> @ 0x148c650
//
// 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:04 +0000
//
__int64 __fastcall FriendsProfilePage::onClose(cocos2d::CCObject **this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
cocos2d::CCTouchDispatcher *v4; // x0
cocos2d::CCDirector *v5; // x0
__int64 v6; // x0
cocos2d::CCTouchDispatcher *v7; // x0
GJAccountManager *v8; // x0
__int64 v9; // x0
__int64 v10; // x0
__int64 v11; // x2
v3 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3);
v5 = (cocos2d::CCDirector *)cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, *(this + 104));
v6 = cocos2d::CCDirector::sharedDirector(v5);
v7 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 160LL))(v6);
v8 = (GJAccountManager *)cocos2d::CCTouchDispatcher::unregisterForcePrio(v7, (cocos2d::CCObject *)this);
v9 = GJAccountManager::sharedState(v8);
v10 = ProfilePage::create(
(ProfilePage *)(unsigned int)(*(_DWORD *)(v9 + 352) - *(_DWORD *)(v9 + 356)),
1,
*(_DWORD *)(v9 + 352));
v11 = *(_QWORD *)v10;
*(_BYTE *)(v10 + 596) = 1;
(*(void (**)(void))(v11 + 1312))();
return PagedListPopup::onClose((PagedListPopup *)this, nullptr);
}