//
// ThreadSearchPopup::onClose from 0x100512a20 to 0x100512ad8 (184 bytes)
//
// 1 xrefs:
// > ??> @ 0x10099acb8
//
// 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 11:07:04 +0000
//
__int64 __fastcall ThreadSearchPopup::onClose(_OWORD *a1)
{
__int64 v2; // x20
__int128 v3; // q1
_QWORD *v4; // x0
_OWORD v6[2]; // [xsp+0h] [xbp-50h]
v2 = 0;
v3 = a1[65];
v6[0] = a1[64];
v6[1] = v3;
do
{
v4 = *(_QWORD **)((char *)v6 + v2);
if ( v4 )
{
v4[73] = 0;
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v4 + 1160LL))(v4, 0);
}
v2 += 8;
}
while ( v2 != 32 );
(*(void (__fastcall **)(_OWORD *, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);
return (*(__int64 (__fastcall **)(_OWORD *, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);
}