//
// cocos2d::CCParticleSystemQuad::createWithTotalParticles from 0xd73880 to 0xd7390c (140 bytes)
//
// 2 xrefs:
// > GameToolbox::particleFromStruct @ 0x69d8dc
// > ??> @ 0x458b0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:08:01 +0000
//
cocos2d::CCParticleSystemQuad *__fastcall cocos2d::CCParticleSystemQuad::createWithTotalParticles(
cocos2d::CCParticleSystemQuad *this,
unsigned __int8 a2)
{
unsigned int v2; // w21
unsigned int v3; // w20
cocos2d::CCParticleSystemQuad *v4; // x19
float v5; // s0
v2 = (unsigned int)this;
v3 = a2;
v4 = (cocos2d::CCParticleSystemQuad *)operator new(0x348u);
v5 = cocos2d::CCParticleSystemQuad::CCParticleSystemQuad(v4);
if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCParticleSystemQuad *, _QWORD, _QWORD, float))(*(_QWORD *)v4 + 1608LL))(
v4,
v2,
v3,
v5) )
{
cocos2d::CCObject::autorelease(v4);
return v4;
}
else
{
(*(void (__fastcall **)(cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
}