//
// SetIDPopup::onClose from 0xa1c258 to 0xa1c2fc (164 bytes)
//
// 5 xrefs:
// > SetIDPopup::onCancel @ 0xa1c308
// > SetIDPopup::keyBackClicked @ 0xa1c310
// > ??> @ 0x492d0
// > SetIDPopup::init @ 0xa29d60
// > ??> @ 0x15416d8
//
// 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 12:59:37 +0000
//
__int64 __fastcall SetIDPopup::onClose(SetIDPopup *this, cocos2d::CCObject *a2)
{
int v3; // w1
int v4; // w2
void (__fastcall ***v5)(_QWORD, SetIDPopup *); // x0
*(_QWORD *)(*((_QWORD *)this + 83) + 584LL) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 83) + 1160LL))(*((_QWORD *)this + 83), 0);
v3 = *((_DWORD *)this + 168);
v4 = *((_DWORD *)this + 170);
v5 = *((void (__fastcall ****)(_QWORD, SetIDPopup *))this + 87);
if ( v3 > *((_DWORD *)this + 171) )
v3 = *((_DWORD *)this + 171);
if ( v3 >= v4 )
v4 = v3;
*((_DWORD *)this + 168) = v4;
if ( v5 && !*((_BYTE *)this + 677) )
(**v5)(v5, this);
(*(void (__fastcall **)(SetIDPopup *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
return (*(__int64 (__fastcall **)(SetIDPopup *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
}