//
// cocos2d::CCParticleSystem::updateEmissionRate from 0x1008b0390 to 0x1008b03d8 (72 bytes)
//
// 13 xrefs:
// > ??> @ 0x100b47a08
// > ??> @ 0x100b480d8
// > ??> @ 0x100b487a8
// > ??> @ 0x100b48e78
// > ??> @ 0x100b49548
// > ??> @ 0x100b49c18
// > ??> @ 0x100b4a2e8
// > ??> @ 0x100b4a9b8
// > ??> @ 0x100b4b088
// > ??> @ 0x100b4b758
// > ??> @ 0x100b4be28
// > ??> @ 0x100b91d30
// > ??> @ 0x100baca50
//
// This function is hookable on this platform (idp: pc, 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 12:37:20 +0000
//
__int64 __fastcall cocos2d::CCParticleSystem::updateEmissionRate(__int64 a1)
{
float v1; // xmm1_4
v1 = *(float *)(a1 + 480);
if ( v1 <= 0.0 )
return (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)a1 + 1488LL))(a1, -1.0);
else
return (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)a1 + 1488LL))(a1, (float)*(int *)(a1 + 660) / v1);
}