//
// cocos2d::CCParticleSystem::createWithTotalParticles from 0xafda50 to 0xafdad0 (128 bytes)
//
// 1 xrefs:
// > ??> @ 0x64f80
//
// 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
//
cocos2d::CCParticleSystem *cocos2d::CCParticleSystem::createWithTotalParticles(unsigned int a1)
{
cocos2d::CCParticleSystem *v1; // x19
__int64 v3; // [xsp+28h] [xbp+28h]
v3 = a1;
v1 = (cocos2d::CCParticleSystem *)operator new(0x300u);
cocos2d::CCParticleSystem::CCParticleSystem(v1);
if ( v1->initWithTotalParticles(v1, v3, 0) )
{
cocos2d::CCObject::autorelease(v1);
return v1;
}
else
{
v1->~CCParticleSystem_0(v1);
return nullptr;
}
}