//
// cocos2d::CCParticleSystem::updateEmissionRate from 0xd6e824 to 0xd6e870 (76 bytes)
//
// 14 xrefs:
// > ??> @ 0xfc760
// > ??> @ 0x1527f28
// > ??> @ 0x15285e8
// > ??> @ 0x1528ca8
// > ??> @ 0x1529368
// > ??> @ 0x1529a28
// > ??> @ 0x152a0e8
// > ??> @ 0x152a7a8
// > ??> @ 0x152ae68
// > ??> @ 0x152b528
// > ??> @ 0x152bbe8
// > ??> @ 0x152c2a8
// > ??> @ 0x152c9a8
// > ??> @ 0x152d498
//
// 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:07:58 +0000
//
__int64 __fastcall cocos2d::CCParticleSystem::updateEmissionRate(cocos2d::CCParticleSystem *this)
{
float v1; // s1
v1 = *((float *)this + 120);
if ( v1 <= 0.0 )
return (*(__int64 (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)this + 1488LL))(this, -1.0);
else
return (*(__int64 (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)this + 1488LL))(
this,
(float)*((unsigned int *)this + 165) / v1);
}