//
// FRequestProfilePage::onClose from 0x5f12cc to 0x5f133c (112 bytes)
//
// 1 xrefs:
// > FRequestProfilePage::keyBackClicked @ 0x5f133e
//
// 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:28 +0000
//
int __fastcall FRequestProfilePage::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
GJAccountManager *v7; // r0
int v8; // r0
bool v9; // r2
int *v10; // r0
int v11; // r3
v2 = this;
if ( *(this + 145) )
{
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[145]);
}
v5 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
v6 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v5 + 80))(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, (cocos2d::CCObject *)v2);
v7 = (GJAccountManager *)FRequestProfilePage::untoggleAll((FRequestProfilePage *)v2);
v8 = GJAccountManager::sharedState(v7);
v10 = (int *)ProfilePage::create((ProfilePage *)(*(_DWORD *)(v8 + 280) - *(_DWORD *)(v8 + 284)), 1, v9);
v11 = *v10;
*((_BYTE *)v10 + 468) = 1;
(*(void (**)(void))(v11 + 656))();
(*((void (__fastcall **)(cocos2d::CCObject **, _DWORD))*v2 + 134))(v2, 0);
return (*((int (__fastcall **)(cocos2d::CCObject **, int))*v2 + 66))(v2, 1);
}