//
// SetIDPopup::onClose from 0x5d2856 to 0x5d28bc (102 bytes)
//
// 2 xrefs:
// > SetIDPopup::onCancel @ 0x5d28c4
// > SetIDPopup::keyBackClicked @ 0x5d28ca
//
// 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:06 +0000
//
int __fastcall SetIDPopup::onClose(SetIDPopup *this, cocos2d::CCObject *a2)
{
int v3; // r2
void (__fastcall ***v4)(_DWORD, SetIDPopup *); // r0
*(_DWORD *)(*((_DWORD *)this + 130) + 420) = 0;
(*(void (__fastcall **)(_DWORD))(**((_DWORD **)this + 130) + 580))(*((_DWORD *)this + 130));
v3 = *((_DWORD *)this + 131);
v4 = *((void (__fastcall ****)(_DWORD, SetIDPopup *))this + 136);
if ( v3 >= *((_DWORD *)this + 134) )
v3 = *((_DWORD *)this + 134);
if ( v3 < *((_DWORD *)this + 133) )
v3 = *((_DWORD *)this + 133);
*((_DWORD *)this + 131) = v3;
if ( v4 && !*((_BYTE *)this + 529) )
(**v4)(v4, this);
(*(void (__fastcall **)(SetIDPopup *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
return (*(int (__fastcall **)(SetIDPopup *, int))(*(_DWORD *)this + 264))(this, 1);
}