//
// CreateParticlePopup::willClose from 0x1404350b0 to 0x140435138 (136 bytes)
//
// 5 xrefs:
// > CreateParticlePopup::onPasteSettings @ 0x140431e49
// > CreateParticlePopup::onClose @ 0x140435149
// > ??> @ 0x1406a1518
// > ??> @ 0x1406a1528
// > ??> @ 0x1406d9cb0
//
// 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)
{
struct cocos2d::CCObject *v2; // rax
cocos2d::CCObject_vtbl *v3; // rcx
cocos2d::CCObject_vtbl *i; // rbx
bool (__fastcall *canEncode)(cocos2d::CCObject *__hidden); // rcx
__int64 v6; // rax
v2 = cocos2d::CCArray::objectAtIndex(a1->m_inputDicts, 0);
if ( v2 )
{
v3 = v2[1].__vftable;
if ( v3 )
{
for ( i = (cocos2d::CCObject_vtbl *)v3[4].copyWithZone; ; i = (cocos2d::CCObject_vtbl *)i[4].copyWithZone )
{
canEncode = v3[3].canEncode;
v6 = *(_QWORD *)canEncode;
*((_QWORD *)canEncode + 70) = 0;
(*(void (__fastcall **)(bool (__fastcall *)(cocos2d::CCObject *__hidden), _QWORD))(v6 + 1016))(canEncode, 0);
v3 = i;
if ( !i )
break;
}
}
}
a1->setKeypadEnabled(a1, 0);
}