//
// CreateParticlePopup::willClose from 0xaff29c to 0xaff310 (116 bytes)
//
// 3 xrefs:
// > CreateParticlePopup::onPasteSettings @ 0xaff344
// > CreateParticlePopup::onClose @ 0xaff390
// > ??> @ 0x60e68
//
// 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:01:19 +0000
//
__int64 __fastcall CreateParticlePopup::willClose(cocos2d::CCArray **this)
{
__int64 PageInputNodes; // x0
__int64 v3; // x0
__int64 i; // x19
__int64 *v5; // x0
__int64 v6; // x3
PageInputNodes = CreateParticlePopup::getPageInputNodes(this, 0);
if ( PageInputNodes )
{
v3 = *(_QWORD *)(PageInputNodes + 56);
if ( v3 )
{
for ( i = *(_QWORD *)(v3 + 288); ; i = *(_QWORD *)(i + 288) )
{
v5 = *(__int64 **)(v3 + 264);
v6 = *v5;
v5[73] = 0;
(*(void (__fastcall **)(__int64 *, _QWORD))(v6 + 1160))(v5, 0);
v3 = i;
if ( !i )
break;
}
}
}
return (*((__int64 (__fastcall **)(cocos2d::CCArray **, _QWORD))*this + 134))(this, 0);
}