//
// CreateParticlePopup::onEmitterMode from 0x100473870 to 0x1004738e8 (120 bytes)
//
// 2 xrefs:
// > CreateParticlePopup::init @ 0x1004700c1
// > CreateParticlePopup::init @ 0x1004701f6
//
// 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 __fastcall CreateParticlePopup::onEmitterMode(CreateParticlePopup *a1, cocos2d::CCObject *a2)
{
int v2; // r14d
int v3; // eax
v2 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
CreateParticlePopup::updateParticleValueForType(a1, (float)v2, EmitterMode, nullptr);
CCMenuItemToggler::toggle(a1->m_gravityToggler, v2 == 0);
CCMenuItemToggler::toggle(a1->m_radiusToggler, v2 == 1);
v3 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getEmitterMode)(a1->m_particle);
CreateParticlePopup::toggleGravityMode(a1, v3 == 0);
}