//
// cocos2d::CCParticleSystemQuad::createWithTotalParticles from 0x7e64e4 to 0x7e6520 (60 bytes)
//
// 1 xrefs:
// > GameToolbox::particleFromStruct @ 0x3ce1d8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:00:54 +0000
//
cocos2d::CCParticleSystemQuad *__fastcall cocos2d::CCParticleSystemQuad::createWithTotalParticles(
cocos2d::CCParticleSystemQuad *this,
unsigned int a2,
bool a3)
{
cocos2d::CCParticleSystemQuad *v5; // r4
int v6; // r3
cocos2d::CCParticleSystemQuad *v7; // r0
v5 = (cocos2d::CCParticleSystemQuad *)operator new(0x2E8u);
cocos2d::CCParticleSystemQuad::CCParticleSystemQuad(v5);
if ( (*(int (__fastcall **)(cocos2d::CCParticleSystemQuad *, cocos2d::CCParticleSystemQuad *, unsigned int))(*(_DWORD *)v5 + 804))(
v5,
this,
a2) )
{
cocos2d::CCObject::autorelease(v5);
}
else
{
v6 = *(_DWORD *)v5;
v7 = v5;
v5 = nullptr;
(*(void (__fastcall **)(cocos2d::CCParticleSystemQuad *))(v6 + 8))(v7);
}
return v5;
}