//
// cocos2d::CCParticleFireworks::createWithTotalParticles from 0x100485300 to 0x100485363 (99 bytes)
//
// 0 xrefs:
//
// 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::CCParticleFireworks *__fastcall cocos2d::CCParticleFireworks::createWithTotalParticles(unsigned int a1)
{
cocos2d::CCParticleFireworks *v1; // rbx
v1 = (cocos2d::CCParticleFireworks *)operator new(0x348u);
cocos2d::CCParticleSystemQuad::CCParticleSystemQuad(v1);
v1->cocos2d::CCParticleSystemQuad::cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCParticleFireworks_vtbl *)off_10093DA88;
v1->cocos2d::CCParticleSystemQuad::cocos2d::CCParticleSystem::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)off_10093E100;
if ( cocos2d::CCParticleFireworks::initWithTotalParticles(v1, a1) )
{
cocos2d::CCObject::autorelease(v1);
}
else
{
((void (__fastcall *)(cocos2d::CCParticleFireworks *))v1->~CCParticleFireworks_0)(v1);
return nullptr;
}
return v1;
}