//
// FriendsProfilePage::onClose from 0x5f3384 to 0x5f33d8 (84 bytes)
//
// 0 xrefs:
//
// 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:29 +0000
//
int __fastcall FriendsProfilePage::onClose(cocos2d::CCObject **this, cocos2d::CCObject *a2)
{
int v3; // r0
cocos2d::CCTouchDispatcher *v4; // r0
cocos2d::CCDirector *v5; // r0
int v6; // r0
cocos2d::CCTouchDispatcher *v7; // r0
GJAccountManager *v8; // r0
int v9; // r0
bool v10; // r2
int *v11; // r0
int v12; // r3
v3 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
v4 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v3 + 80))(v3);
v5 = (cocos2d::CCDirector *)cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, *(this + 156));
v6 = cocos2d::CCDirector::sharedDirector(v5);
v7 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v6 + 80))(v6);
v8 = (GJAccountManager *)cocos2d::CCTouchDispatcher::unregisterForcePrio(v7, (cocos2d::CCObject *)this);
v9 = GJAccountManager::sharedState(v8);
v11 = (int *)ProfilePage::create((ProfilePage *)(*(_DWORD *)(v9 + 280) - *(_DWORD *)(v9 + 284)), 1, v10);
v12 = *v11;
*((_BYTE *)v11 + 468) = 1;
(*(void (**)(void))(v12 + 656))();
return PagedListPopup::onClose((PagedListPopup *)this, nullptr);
}