//
// CreateParticlePopup::onCalcEmission from 0xb00de8 to 0xb00e94 (172 bytes)
//
// 3 xrefs:
// > ??> @ 0xabca0
// > CreateParticlePopup::createParticleSlider @ 0xb00854
// > ??> @ 0x1544dc8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:01:20 +0000
//
__int64 __fastcall CreateParticlePopup::onCalcEmission(CreateParticlePopup *this, cocos2d::CCObject *a2)
{
float v3; // s8
long double v4; // q0
float v5; // s8
v3 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 89) + 968LL))(*((_QWORD *)this + 89));
v5 = v3 + (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 89) + 984LL))(*((_QWORD *)this + 89));
if ( v5 <= 0.0 )
LODWORD(v4) = -1.0;
else
*(float *)&v4 = (float)(*(unsigned int (__fastcall **)(_QWORD))(**((_QWORD **)this + 89) + 1496LL))(*((_QWORD *)this + 89))
/ v5;
CreateParticlePopup::updateParticleValueForType((__int64)this, 5u, nullptr, v4);
CreateParticlePopup::updateSliderForType((cocos2d::CCArray **)this, 5u);
CreateParticlePopup::updateInputNodeStringForType((__int64)this, 5u);
return cocos2d::CCParticleSystem::resetSystem(*((cocos2d::CCParticleSystem **)this + 89));
}