//
// cocos2d::CCParticleSmoke::createWithTotalParticles from 0x100486680 to 0x1004866e3 (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::CCParticleSmoke *__fastcall cocos2d::CCParticleSmoke::createWithTotalParticles(unsigned int a1)
{
cocos2d::CCParticleSmoke *v1; // rbx
v1 = (cocos2d::CCParticleSmoke *)operator new(0x348u);
cocos2d::CCParticleSystemQuad::CCParticleSystemQuad(v1);
v1->cocos2d::CCParticleSystemQuad::cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCParticleSmoke_vtbl *)off_1009409C8;
v1->cocos2d::CCParticleSystemQuad::cocos2d::CCParticleSystem::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)off_100941040;
if ( cocos2d::CCParticleSmoke::initWithTotalParticles(v1, a1) )
{
cocos2d::CCObject::autorelease(v1);
}
else
{
((void (__fastcall *)(cocos2d::CCParticleSmoke *))v1->~CCParticleSmoke_0)(v1);
return nullptr;
}
return v1;
}