//
// cocos2d::CCParticleSystemQuad::initWithTotalParticles from 0x1002f043c to 0x1002f04b4 (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009282c8
//
// 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 11:02:55 +0000
//
bool __fastcall cocos2d::CCParticleSystemQuad::initWithTotalParticles(_DWORD *a1, size_t a2, char a3)
{
_BOOL8 result; // x0
__int64 v5; // x0
__int64 v6; // x0
result = cocos2d::CCParticleSystem::initWithTotalParticles((__int64)a1, a2, a3);
if ( result )
{
if ( (cocos2d::CCParticleSystemQuad::allocMemory(a1) & 1) != 0 )
{
cocos2d::CCParticleSystemQuad::initIndices(a1);
cocos2d::CCParticleSystemQuad::setupVBOandVAO(a1);
v5 = cocos2d::CCShaderCache::sharedShaderCache();
v6 = cocos2d::CCShaderCache::programForKey(v5, "ShaderPositionTextureColor");
(*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)a1 + 664LL))(a1, v6);
return 1;
}
else
{
cocos2d::CCObject::release(a1);
return 0;
}
}
return result;
}