//
// cocos2d::CCParticleSystemQuad::initIndices from 0x5dde64 to 0x5ddea4 (64 bytes)
//
// 3 xrefs:
// > cocos2d::CCParticleSystemQuad::setTotalParticles @ 0x5ddfac
// > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x5de0ce
// > cocos2d::CCParticleSystemQuad::setBatchNode @ 0x5de208
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void cocos2d::CCParticleSystemQuad::initIndices(cocos2d::CCParticleSystemQuad *a1)
{
__int16 v1; // r3
unsigned int m_uTotalParticles; // r6
int v3; // r4
int v4; // r1
int v5; // r5
GLushort *m_pIndices; // r2
GLushort v7; // lr
GLushort *v8; // r2
v1 = 1;
m_uTotalParticles = a1->m_uTotalParticles;
v3 = 1;
v4 = 0;
while ( v4 != m_uTotalParticles )
{
v5 = 6 * v4;
m_pIndices = a1->m_pIndices;
v7 = 4 * v4++;
m_pIndices[v5] = v7;
m_pIndices[v3] = v1;
v8 = &m_pIndices[v3];
v3 += 6;
v8[1] = v1 + 1;
v8[4] = v1;
v8[3] = v1 + 1;
v8[2] = v1 + 2;
v1 += 4;
}
}