//
// ThreadSearchPopup::onClose from 0xc61ba4 to 0xc61c6c (200 bytes)
//
// 2 xrefs:
// > ??> @ 0x100c60
// > ??> @ 0x14f1e78
//
// 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 13:05:22 +0000
//
__int64 __fastcall ThreadSearchPopup::onClose(ThreadSearchPopup *this, cocos2d::CCObject *a2)
{
__int64 v3; // x19
__int64 v4; // x3
__int64 v5; // x2
__int64 v6; // x1
__int64 v7; // x0
__int64 *v8; // x1
__int64 v9; // x2
__int64 v10; // x0
_QWORD v12[4]; // [xsp+38h] [xbp+38h]
v3 = 0;
v4 = *((_QWORD *)this + 128);
v5 = *((_QWORD *)this + 129);
v6 = *((_QWORD *)this + 130);
v7 = *((_QWORD *)this + 131);
v12[0] = v4;
v12[1] = v5;
v12[2] = v6;
v12[3] = v7;
do
{
v8 = (__int64 *)v12[v3];
if ( v8 )
{
v9 = *v8;
v10 = v12[v3];
v8[73] = 0;
(*(void (__fastcall **)(__int64, _QWORD))(v9 + 1160))(v10, 0);
}
++v3;
}
while ( v3 != 4 );
(*(void (__fastcall **)(ThreadSearchPopup *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
(*(void (__fastcall **)(ThreadSearchPopup *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
return _stack_chk_guard;
}