//
// cocos2d::CCParticleSystem::createWithTotalParticles from 0x180065ab0 to 0x180065b2a (122 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b3bac
//
// 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
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCParticleSystem *__fastcall cocos2d::CCParticleSystem::createWithTotalParticles(unsigned int a1)
{
cocos2d::CCParticleSystem *v2; // rax
cocos2d::CCParticleSystem *v3; // rbx
v2 = (cocos2d::CCParticleSystem *)operator new(0x318u);
if ( v2 )
v3 = cocos2d::CCParticleSystem::CCParticleSystem(v2);
else
v3 = nullptr;
if ( v3 )
{
if ( ((unsigned __int8 (__fastcall *)(cocos2d::CCParticleSystem *, _QWORD, _QWORD))v3->initWithTotalParticles)(
v3,
a1,
0) )
{
cocos2d::CCObject::autorelease(v3);
return v3;
}
((void (__fastcall *)(cocos2d::CCParticleSystem *, __int64))v3->~CCParticleSystem)(v3, 1);
return nullptr;
}
return v3;
}