//
// cocos2d::CCParticleSystemQuad::createWithTotalParticles from 0x1006da5e0 to 0x1006da695 (181 bytes)
//
// 1 xrefs:
// > GameToolbox::particleFromStruct @ 0x1004f3924
//
// This function is hookable on this platform (idp: pc, 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 12:35:42 +0000
//
_QWORD *__fastcall cocos2d::CCParticleSystemQuad::createWithTotalParticles(unsigned int a1, unsigned __int8 a2)
{
_QWORD *v2; // rbx
v2 = operator new(0x348u);
cocos2d::CCParticleSystem::CCParticleSystem(v2);
*v2 = off_100B91928;
v2[40] = off_100B91FA8;
*((_OWORD *)v2 + 49) = 0;
*((_DWORD *)v2 + 200) = 0;
sub_1002787A0((_QWORD *)((char *)v2 + 812));
*((_WORD *)v2 + 416) = 0;
*((_BYTE *)v2 + 834) = -1;
*(_QWORD *)((char *)v2 + 804) = 0;
if ( (*(unsigned __int8 (__fastcall **)(_QWORD *, _QWORD, _QWORD))(*v2 + 1608LL))(v2, a1, a2) )
{
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v2 + 16LL))(v2);
return nullptr;
}
return v2;
}