//
// cocos2d::CCParticleSystemQuad::createWithTotalParticles from 0xb03294 to 0xb03320 (140 bytes)
//
// 2 xrefs:
// > GameToolbox::particleFromStruct @ 0x581f18
// > ??> @ 0x2e458
//
// 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::CCParticleSystemQuad *cocos2d::CCParticleSystemQuad::createWithTotalParticles(unsigned int a1, bool a2)
{
_BOOL4 v3; // w20
cocos2d::CCParticleSystemQuad *v4; // x19
v3 = a2;
v4 = (cocos2d::CCParticleSystemQuad *)operator new(0x330u);
cocos2d::CCParticleSystemQuad::CCParticleSystemQuad(v4);
if ( v4->initWithTotalParticles(v4, a1, v3) )
{
cocos2d::CCObject::autorelease(v4);
return v4;
}
else
{
v4->~CCParticleSystemQuad_0(v4);
return nullptr;
}
}