//
// CreateParticlePopup::onEmitterMode from 0x532388 to 0x5323e4 (92 bytes)
//
// 0 xrefs:
//
// 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::onEmitterMode(CreateParticlePopup *a1, cocos2d::CCObject *a2)
{
int v3; // r5
unsigned int v4; // r1
v3 = a2->getTag(a2);
CreateParticlePopup::updateParticleValueForType(a1, (float)v3, EmitterMode, nullptr);
CCMenuItemToggler::toggle(a1->m_gravityToggler, v3 == 0);
CCMenuItemToggler::toggle(a1->m_radiusToggler, v3 == 1);
v4 = __clz(a1->m_particle->getEmitterMode(a1->m_particle));
CreateParticlePopup::toggleGravityMode(a1, v4 >> 5);
}