//
// CreateParticlePopup::willClose from 0x665b90 to 0x665be0 (80 bytes)
//
// 2 xrefs:
// > CreateParticlePopup::onPasteSettings @ 0x665c04
// > CreateParticlePopup::onClose @ 0x665daa
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:55:40 +0000
//
int __fastcall CreateParticlePopup::willClose(cocos2d::CCArray **this)
{
int PageInputNodes; // r0
int v4; // r3
int v5; // r4
int *v6; // r0
int v7; // r3
int v8; // r2
PageInputNodes = CreateParticlePopup::getPageInputNodes(this, 0);
if ( PageInputNodes )
{
v4 = *(_DWORD *)(PageInputNodes + 52);
if ( v4 )
v5 = *(_DWORD *)(v4 + 272);
else
v5 = 0;
while ( v4 )
{
v6 = *(int **)(v4 + 260);
v7 = *v6;
v6[105] = 0;
(*(void (__fastcall **)(int *, _DWORD))(v7 + 580))(v6, 0);
if ( v5 )
v8 = *(_DWORD *)(v5 + 272);
else
v8 = 0;
v4 = v5;
v5 = v8;
}
}
return (*((int (__fastcall **)(cocos2d::CCArray **, _DWORD))*this + 134))(this, 0);
}