//
// cocos2d::CCParticleSun::createWithTotalParticles from 0xafc7c8 to 0xafc854 (140 bytes)
//
// 1 xrefs:
// > ??> @ 0xc5778
//
// 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::CCParticleSun *cocos2d::CCParticleSun::createWithTotalParticles(unsigned int a1)
{
cocos2d::CCParticleSun *v1; // x19
v1 = (cocos2d::CCParticleSun *)operator new(0x330u);
cocos2d::CCParticleSystemQuad::CCParticleSystemQuad(v1);
v1->cocos2d::CCParticleSystemQuad::cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCParticleSun_vtbl *)&off_1212B20;
v1->cocos2d::CCParticleSystemQuad::cocos2d::CCParticleSystem::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_1213198;
if ( cocos2d::CCParticleSun::initWithTotalParticles(v1, a1) )
{
cocos2d::CCObject::autorelease(v1);
return v1;
}
else
{
v1->~CCParticleSun_0(v1);
return nullptr;
}
}