//
// IDNameBrowserPopup::onClose from 0x78ed5a to 0x78ede6 (140 bytes)
//
// 2 xrefs:
// > IDNameBrowserPopup::keyBackClicked @ 0x78ede8
// > IDNameBrowserPopup::onSelectRow @ 0x78f248
//
// 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:59:39 +0000
//
int __fastcall IDNameBrowserPopup::onClose(IDNameBrowserPopup *this, cocos2d::CCObject *a2)
{
int v3; // r3
int v4; // r3
int v5; // r3
GameManager *v6; // r0
GameManager *v7; // r0
v3 = *((_DWORD *)this + 134);
if ( v3 )
{
*(_DWORD *)(v3 + 420) = 0;
(*(void (__fastcall **)(_DWORD))(**((_DWORD **)this + 134) + 580))(*((_DWORD *)this + 134));
}
v4 = *((_DWORD *)this + 137);
if ( v4 )
{
*(_DWORD *)(v4 + 420) = 0;
(*(void (__fastcall **)(_DWORD))(**((_DWORD **)this + 137) + 580))(*((_DWORD *)this + 137));
}
v5 = *((_DWORD *)this + 138);
if ( v5 )
{
*(_DWORD *)(v5 + 420) = 0;
(*(void (__fastcall **)(_DWORD))(**((_DWORD **)this + 138) + 580))(*((_DWORD *)this + 138));
}
v6 = *((GameManager **)this + 133);
if ( v6 )
v6 = (GameManager *)(**(int (__fastcall ***)(GameManager *, IDNameBrowserPopup *, _DWORD))v6)(
v6,
this,
*((_DWORD *)this + 142));
v7 = (GameManager *)GameManager::sharedState(v6);
if ( v7 )
*(_DWORD *)(GameManager::sharedState(v7) + 916) = *((_DWORD *)this + 140);
(*(void (__fastcall **)(IDNameBrowserPopup *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
return (*(int (__fastcall **)(IDNameBrowserPopup *, int))(*(_DWORD *)this + 264))(this, 1);
}