//
// cocos2d::CCParticleSystemQuad::createWithTotalParticles from 0x5ddccc to 0x5ddd08 (60 bytes)
//
// 1 xrefs:
// > GameToolbox::particleFromStruct @ 0x2ed328
//
// 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; // r5
cocos2d::CCParticleSystemQuad *v4; // r4
cocos2d::CCParticleSystemQuad_vtbl *v5; // r3
cocos2d::CCParticleSystemQuad *v6; // r0
v3 = a2;
v4 = (cocos2d::CCParticleSystemQuad *)operator new(0x2D8u);
cocos2d::CCParticleSystemQuad::CCParticleSystemQuad(v4);
if ( ((int (__fastcall *)(cocos2d::CCParticleSystemQuad *, unsigned int, _BOOL4))v4->initWithTotalParticles)(
v4,
a1,
v3) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
v5 = v4->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v6 = v4;
v4 = nullptr;
v5->~CCParticleSystemQuad_0(v6);
}
return v4;
}