//
// CreateParticlePopup::onAnimateActiveOnly from 0x140431510 to 0x14043159b (139 bytes)
//
// 4 xrefs:
// > CreateParticlePopup::init @ 0x14042fe89
// > ??> @ 0x1406a1300
// > ??> @ 0x1406a1310
// > ??> @ 0x1406d9aac
//
// 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::onAnimateActiveOnly(CreateParticlePopup *a1, cocos2d::CCObject *a2)
{
bool v3; // cl
ParticleGameObject *m_targetObject; // rax
cocos2d::CCArray *m_targetObjects; // rcx
unsigned int v6; // edi
struct cocos2d::CCObject *v7; // rax
v3 = !a1->m_onlyAnimateActive;
a1->m_onlyAnimateActive = v3;
m_targetObject = a1->m_targetObject;
if ( m_targetObject )
{
m_targetObject->m_animateOnlyWhenActive = v3;
}
else
{
m_targetObjects = a1->m_targetObjects;
if ( m_targetObjects )
{
v6 = 0;
if ( cocos2d::CCArray::count(m_targetObjects) )
{
do
{
v7 = cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, v6++);
LOBYTE(v7[26].__vftable) = a1->m_onlyAnimateActive;
}
while ( v6 < cocos2d::CCArray::count(a1->m_targetObjects) );
}
}
}
}