//
// SetIDPopup::onClose from 0x100298960 to 0x1002989ed (141 bytes)
//
// 1 xrefs:
// > SetIDPopup::init @ 0x100298331
//
// 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 12:27:52 +0000
//
__int64 __fastcall SetIDPopup::onClose(__int64 a1)
{
_QWORD *v2; // rdi
int v3; // edx
void (__fastcall ***v4)(_QWORD, __int64); // rdi
v2 = *(_QWORD **)(a1 + 664);
v2[73] = 0;
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v2 + 1160LL))(v2, 0);
v3 = *(_DWORD *)(a1 + 672);
if ( *(_DWORD *)(a1 + 684) < v3 )
v3 = *(_DWORD *)(a1 + 684);
if ( *(_DWORD *)(a1 + 680) > v3 )
v3 = *(_DWORD *)(a1 + 680);
*(_DWORD *)(a1 + 672) = v3;
v4 = *(void (__fastcall ****)(_QWORD, __int64))(a1 + 696);
if ( v4 && !*(_BYTE *)(a1 + 677) )
(**v4)(v4, a1);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);
}