//
// FRequestProfilePage::onClose from 0x140211db0 to 0x140211e6c (188 bytes)
//
// 5 xrefs:
// > FRequestProfilePage::keyBackClicked @ 0x140211f19
// > FRequestProfilePage::init @ 0x14020f865
// > ??> @ 0x1408a5040
// > ??> @ 0x1408a5050
// > ??> @ 0x14091b548
//
// This function is hookable on this platform (idp: pc, 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 11:28:19 +0000
//
__int64 __fastcall FRequestProfilePage::onClose(struct cocos2d::CCObject *a1)
{
__int64 v2; // rax
struct cocos2d::CCObject *v3; // rbx
cocos2d::CCTouchDispatcher *v4; // rax
__int64 v5; // rax
cocos2d::CCTouchDispatcher *v6; // rax
__int64 v7; // rcx
__int64 v8; // rax
__int64 v9; // rdx
__int64 v10; // rax
__int64 v11; // rcx
__int64 v12; // rdx
if ( *((_QWORD *)a1 + 100) )
{
v2 = cocos2d::CCDirector::sharedDirector(a1);
v3 = *((struct cocos2d::CCObject **)a1 + 100);
v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, v3);
}
v5 = cocos2d::CCDirector::sharedDirector(a1);
v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 144LL))(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1);
FRequestProfilePage::untoggleAll(a1);
v8 = GJAccountManager::sharedState(v7);
LOBYTE(v9) = 1;
v10 = ProfilePage::create((unsigned int)(*(_DWORD *)(v8 + 360) - *(_DWORD *)(v8 + 364)), v9);
v11 = *(_QWORD *)v10;
*(_BYTE *)(v10 + 596) = 1;
(*(void (__fastcall **)(__int64))(v11 + 1064))(v10);
(*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);
LOBYTE(v12) = 1;
return (*(__int64 (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)a1 + 520LL))(a1, v12);
}