//
// cocos2d::CCParticleSystem::dCCParticleSystem from 0x1007c8b50 to 0x1007c8bc1 (113 bytes)
//
// 6 xrefs:
// > ??> @ 0x1006029ad
// > ??> @ 0x100602a2d
// > cocos2d::CCParticleSystemQuad::dCCParticleSystemQuad @ 0x100602ad5
// > ??> @ 0x100602bd7
// > ??> @ 0x100602cbb
// > ??> @ 0x100603f72
//
// 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
//
__int64 __fastcall cocos2d::CCParticleSystem::dCCParticleSystem(__int64 a1)
{
void *v2; // rdi
cocos2d::CCObject *v3; // rdi
*(_QWORD *)a1 = off_1009963E0;
*(_QWORD *)(a1 + 320) = off_100996A50;
v2 = *(void **)(a1 + 416);
if ( v2 )
{
free(v2);
*(_QWORD *)(a1 + 416) = 0;
}
v3 = *(cocos2d::CCObject **)(a1 + 664);
if ( v3 )
cocos2d::CCObject::release(v3);
if ( (*(_BYTE *)(a1 + 328) & 1) != 0 )
operator delete(*(void **)(a1 + 344));
return cocos2d::CCNode::dCCNode(a1);
}