//
// cocos2d::CCParticleSystemQuad::createWithTotalParticles from 0x100602c00 to 0x100602cb5 (181 bytes)
//
// 1 xrefs:
// > GameToolbox::particleFromStruct @ 0x1004f6064
//
// 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 *__fastcall cocos2d::CCParticleSystemQuad::createWithTotalParticles(
unsigned int a1,
bool a2)
{
char *v2; // rbx
v2 = (char *)operator new(0x348u);
cocos2d::CCParticleSystem::CCParticleSystem(v2);
*(_QWORD *)v2 = off_10097E268;
*((_QWORD *)v2 + 40) = off_10097E8D8;
*((_OWORD *)v2 + 49) = 0;
*((_DWORD *)v2 + 200) = 0;
sub_10028D130(v2 + 812);
*((_WORD *)v2 + 416) = 0;
v2[834] = -1;
*(_QWORD *)(v2 + 804) = 0;
if ( (*(unsigned __int8 (__fastcall **)(char *, _QWORD, bool))(*(_QWORD *)v2 + 1592LL))(v2, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (cocos2d::CCParticleSystemQuad *)v2;
}