//
// cocos2d::CCParticleSystem::createWithTotalParticles from 0xd70bcc to 0xd70c4c (128 bytes)
//
// 1 xrefs:
// > ??> @ 0x89398
//
// 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:07:59 +0000
//
cocos2d::CCParticleSystem *__fastcall cocos2d::CCParticleSystem::createWithTotalParticles(
cocos2d::CCParticleSystem *this)
{
cocos2d::CCParticleSystem *v1; // x19
__int64 v3; // [xsp+28h] [xbp+28h]
v3 = (unsigned int)this;
v1 = (cocos2d::CCParticleSystem *)operator new(0x310u);
cocos2d::CCParticleSystem::CCParticleSystem(v1);
if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCParticleSystem *, __int64, _QWORD))(*(_QWORD *)v1 + 1608LL))(
v1,
v3,
0) )
{
cocos2d::CCObject::autorelease(v1);
return v1;
}
else
{
(*(void (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
}