//
// CreateParticlePopup::willClose from 0x1405caa00 to 0x1405caa88 (136 bytes)
//
// 5 xrefs:
// > CreateParticlePopup::onPasteSettings @ 0x1405c74d9
// > CreateParticlePopup::onClose @ 0x1405caa99
// > ??> @ 0x1408e0a98
// > ??> @ 0x1408e0aa8
// > ??> @ 0x14092e430
//
// 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:52 +0000
//
__int64 __fastcall CreateParticlePopup::willClose(cocos2d::CCArray **a1)
{
struct cocos2d::CCObject *v2; // rax
__int64 v3; // rcx
__int64 i; // rbx
__int64 *v5; // rcx
__int64 v6; // rax
v2 = cocos2d::CCArray::objectAtIndex(a1[93], 0);
if ( v2 )
{
v3 = *((_QWORD *)v2 + 7);
if ( v3 )
{
for ( i = *(_QWORD *)(v3 + 288); ; i = *(_QWORD *)(i + 288) )
{
v5 = *(__int64 **)(v3 + 264);
v6 = *v5;
v5[75] = 0;
(*(void (__fastcall **)(__int64 *, _QWORD))(v6 + 1032))(v5, 0);
v3 = i;
if ( !i )
break;
}
}
}
return (*((__int64 (__fastcall **)(cocos2d::CCArray **, _QWORD))*a1 + 124))(a1, 0);
}