//
// SetupPulsePopup::onClose from 0x1405d16e0 to 0x1405d18ba (474 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407fa9c0
// > ??> @ 0x14092e7b4
//
// 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 11:34:55 +0000
//
__int64 __fastcall SetupPulsePopup::onClose(__int64 a1, __int64 a2)
{
unsigned int v4; // edi
__int64 v5; // rcx
__int64 v6; // rax
cocos2d::CCArray *v7; // rcx
struct cocos2d::CCObject *v8; // rax
v4 = 0;
*(_QWORD *)(*(_QWORD *)(a1 + 1184) + 600LL) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1184) + 1032LL))(*(_QWORD *)(a1 + 1184), 0);
*(_QWORD *)(*(_QWORD *)(a1 + 1192) + 600LL) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1192) + 1032LL))(*(_QWORD *)(a1 + 1192), 0);
*(_QWORD *)(*(_QWORD *)(a1 + 1160) + 600LL) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1160) + 1032LL))(*(_QWORD *)(a1 + 1160), 0);
*(_QWORD *)(*(_QWORD *)(a1 + 1168) + 600LL) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1168) + 1032LL))(*(_QWORD *)(a1 + 1168), 0);
*(_QWORD *)(*(_QWORD *)(a1 + 1176) + 600LL) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1176) + 1032LL))(*(_QWORD *)(a1 + 1176), 0);
*(_QWORD *)(*(_QWORD *)(a1 + 1304) + 600LL) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1304) + 1032LL))(*(_QWORD *)(a1 + 1304), 0);
*(_QWORD *)(*(_QWORD *)(a1 + 1312) + 600LL) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1312) + 1032LL))(*(_QWORD *)(a1 + 1312), 0);
*(_QWORD *)(*(_QWORD *)(a1 + 1320) + 600LL) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1320) + 1032LL))(*(_QWORD *)(a1 + 1320), 0);
*(_QWORD *)(*(_QWORD *)(a1 + 1328) + 600LL) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1328) + 1032LL))(*(_QWORD *)(a1 + 1328), 0);
v5 = *(_QWORD *)(a1 + 1144);
if ( !*(_BYTE *)(v5 + 392) )
{
v6 = *(_QWORD *)(a1 + 680);
*(_OWORD *)(a1 + 1288) = *(_OWORD *)(v5 + 376);
if ( v6 )
{
*(_OWORD *)(v6 + 1628) = *(_OWORD *)(v5 + 376);
}
else
{
v7 = *(cocos2d::CCArray **)(a1 + 688);
if ( v7 && cocos2d::CCArray::count(v7) )
{
do
{
v8 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), v4++);
*(_OWORD *)((char *)v8 + 1628) = *(_OWORD *)(a1 + 1288);
}
while ( v4 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)) );
}
}
}
return SetupTriggerPopup::onClose(a1, a2);
}