//
// cocos2d::CCParticleSystem::addParticle from 0x180067dc0 to 0x180067e00 (64 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bdedc
//
// 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 11:21:53 +0000
//
char __fastcall cocos2d::CCParticleSystem::addParticle(cocos2d::CCParticleSystem *this)
{
__int64 v1; // rax
v1 = *((unsigned int *)this + 116);
if ( (_DWORD)v1 == *((_DWORD *)this + 167) )
return 0;
cocos2d::CCParticleSystem::initParticle(this, (struct cocos2d::sCCParticle *)(*((_QWORD *)this + 53) + 148 * v1));
++*((_DWORD *)this + 116);
return 1;
}