//
// CreateParticlePopup::willClose from 0x5323e4 to 0x532434 (80 bytes)
//
// 2 xrefs:
// > CreateParticlePopup::onPasteSettings @ 0x532458
// > CreateParticlePopup::onClose @ 0x532480
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void CreateParticlePopup::willClose(CreateParticlePopup *a1)
{
cocos2d::CCDictionary *PageInputNodes; // r0
cocos2d::CCDictElement *m_pElements; // r3
cocos2d::CCDictElement *next; // r4
int *m_pObject; // r0
int v6; // r3
cocos2d::CCDictElement *v7; // r2
PageInputNodes = CreateParticlePopup::getPageInputNodes(a1, 0);
if ( PageInputNodes )
{
m_pElements = PageInputNodes->m_pElements;
if ( m_pElements )
next = (cocos2d::CCDictElement *)m_pElements->hh.next;
else
next = nullptr;
while ( m_pElements )
{
m_pObject = (int *)m_pElements->m_pObject;
v6 = *m_pObject;
m_pObject[96] = 0;
(*(void (__fastcall **)(int *, _DWORD))(v6 + 572))(m_pObject, 0);
if ( next )
v7 = (cocos2d::CCDictElement *)next->hh.next;
else
v7 = nullptr;
m_pElements = next;
next = v7;
}
}
a1->setKeypadEnabled(a1, 0);
}