//
// cocos2d::CCParticleSystemQuad::initIndices from 0xd73afc to 0xd73b84 (136 bytes)
//
// 4 xrefs:
// > cocos2d::CCParticleSystemQuad::setTotalParticles @ 0xd73d50
// > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0xd73f6c
// > cocos2d::CCParticleSystemQuad::setBatchNode @ 0xd74210
// > ??> @ 0x6c580
//
// 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
//
__int64 __fastcall cocos2d::CCParticleSystemQuad::initIndices(__int64 this)
{
__int16 v1; // w2
unsigned int v2; // w1
unsigned int v3; // w4
unsigned int v4; // w12
unsigned int v5; // w11
unsigned int v6; // w10
unsigned int v7; // w8
unsigned int v8; // w5
__int16 v9; // w6
if ( *(_DWORD *)(this + 660) )
{
v1 = 2;
v2 = 0;
v3 = 0;
do
{
v4 = v2 + 1;
v5 = v2 + 2;
v6 = v2 + 5;
*(_WORD *)(*(_QWORD *)(this + 792) + 2LL * v2) = 4 * v3;
v7 = v2 + 4;
v8 = v2 + 3;
v9 = v1 + 1;
++v3;
v2 += 6;
*(_WORD *)(*(_QWORD *)(this + 792) + 2LL * v4) = v1 - 1;
*(_WORD *)(*(_QWORD *)(this + 792) + 2LL * v5) = v1;
*(_WORD *)(*(_QWORD *)(this + 792) + 2LL * v6) = v1 - 1;
*(_WORD *)(*(_QWORD *)(this + 792) + 2LL * v7) = v1;
v1 += 4;
*(_WORD *)(*(_QWORD *)(this + 792) + 2LL * v8) = v9;
}
while ( *(_DWORD *)(this + 660) > v3 );
}
return this;
}