//
// cocos2d::CCParticleSystem::dCCParticleSystem from 0x10019478c to 0x1001947ec (96 bytes)
//
// 4 xrefs:
// > j_cocos2d::CCParticleSystem::dCCParticleSystem @ 0x1001947f0
// > sub_1001947F4 @ 0x1001947fc
// > sub_100253630 @ 0x100253638
// > cocos2d::CCParticleSystemQuad::dCCParticleSystemQuad @ 0x1002536bc
//
// 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; // x0
cocos2d::CCObject *v3; // x0
*(_QWORD *)a1 = off_1007A8230;
*(_QWORD *)(a1 + 320) = off_1007A88A0;
v2 = *(void **)(a1 + 416);
if ( v2 )
{
free(v2);
*(_QWORD *)(a1 + 416) = 0;
}
v3 = *(cocos2d::CCObject **)(a1 + 664);
if ( v3 )
cocos2d::CCObject::release(v3);
if ( *(char *)(a1 + 351) < 0 )
operator delete(*(void **)(a1 + 328));
return cocos2d::CCNode::dCCNode(a1);
}