//
// CreateParticlePopup::onCalcEmission from 0x1002cf92c to 0x1002cf9c8 (156 bytes)
//
// 1 xrefs:
// > CreateParticlePopup::createParticleSlider @ 0x1002cec90
//
// 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::onCalcEmission(CreateParticlePopup *a1, cocos2d::CCObject *a2)
{
float v3; // s8
float v4; // s8
float v5; // s0
v3 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *, cocos2d::CCObject *))a1->m_particle->getLife)(
a1->m_particle,
a2);
v4 = v3 + ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getLifeVar)(a1->m_particle);
v5 = -1.0;
if ( v4 > 0.0 )
v5 = (float)((unsigned int (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))a1->m_particle->getTotalParticles)(
a1->m_particle,
-1.0)
/ v4;
CreateParticlePopup::updateParticleValueForType(a1, v5, Emission, nullptr);
CreateParticlePopup::updateSliderForType(a1, Emission);
CreateParticlePopup::updateInputNodeStringForType(a1, Emission);
cocos2d::CCParticleSystem::resetSystem(a1->m_particle);
}