//
// IDNameBrowserPopup::onClose from 0xcdca58 to 0xcdcb38 (224 bytes)
//
// 5 xrefs:
// > IDNameBrowserPopup::keyBackClicked @ 0xcdcb3c
// > IDNameBrowserPopup::onSelectRow @ 0xcdd734
// > ??> @ 0xc8068
// > IDNameBrowserPopup::init @ 0xce28f4
// > ??> @ 0x1545da0
//
// 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:06:33 +0000
//
__int64 __fastcall IDNameBrowserPopup::onClose(IDNameBrowserPopup *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x0
GameManager *v6; // x0
GameManager *v7; // x0
v3 = *((_QWORD *)this + 86);
if ( v3 )
{
*(_QWORD *)(v3 + 584) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 86) + 1160LL))(*((_QWORD *)this + 86), 0);
}
v4 = *((_QWORD *)this + 89);
if ( v4 )
{
*(_QWORD *)(v4 + 584) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 89) + 1160LL))(*((_QWORD *)this + 89), 0);
}
v5 = *((_QWORD *)this + 90);
if ( v5 )
{
*(_QWORD *)(v5 + 584) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 90) + 1160LL))(*((_QWORD *)this + 90), 0);
}
v6 = *((GameManager **)this + 85);
if ( v6 )
v6 = (GameManager *)(**(__int64 (__fastcall ***)(GameManager *, IDNameBrowserPopup *, _QWORD))v6)(
v6,
this,
*((unsigned int *)this + 188));
v7 = (GameManager *)GameManager::sharedState(v6);
if ( v7 )
*(_DWORD *)(GameManager::sharedState(v7) + 1148) = *((_DWORD *)this + 184);
(*(void (__fastcall **)(IDNameBrowserPopup *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
return (*(__int64 (__fastcall **)(IDNameBrowserPopup *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
}