//
// cocos2d::CCParticleSystemQuad::createWithTotalParticles from 0x100253760 to 0x1002537d8 (120 bytes)
//
// 1 xrefs:
// > GameToolbox::particleFromStruct @ 0x100047a20
//
// 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
//
// local variable allocation has failed, the output may be wrong!
cocos2d::CCParticleSystemQuad *__fastcall cocos2d::CCParticleSystemQuad::createWithTotalParticles(
unsigned int a1,
bool a2)
{
_BOOL8 v2; // x20
__int64 v3; // x21
cocos2d::CCParticleSystemQuad *v4; // x19
v2 = a2;
v3 = *(_QWORD *)&a1;
v4 = (cocos2d::CCParticleSystemQuad *)operator new(0x348u);
cocos2d::CCParticleSystemQuad::CCParticleSystemQuad((__int64)v4);
if ( ((unsigned int (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64, _BOOL8))v4->initWithTotalParticles)(
v4,
v3,
v2) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v4->~CCParticleSystemQuad_0)(v4);
return nullptr;
}
return v4;
}