//
// cocos2d::CCParticleBatchNode::updateAllAtlasIndexes from 0x7e5c02 to 0x7e5c3a (56 bytes)
//
// 3 xrefs:
// > cocos2d::CCParticleBatchNode::reorderChild @ 0x7e5cbc
// > cocos2d::CCParticleBatchNode::insertChild @ 0x7e5e00
// > cocos2d::CCParticleBatchNode::removeChild @ 0x7e5f5a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:53 +0000
//
int __fastcall cocos2d::CCParticleBatchNode::updateAllAtlasIndexes(int this)
{
int v1; // r3
_DWORD *v2; // r2
int *v3; // r5
int v4; // r6
int *v5; // r4
int v6; // t1
int v7; // r3
v1 = *(_DWORD *)(this + 192);
if ( v1 )
{
v2 = *(_DWORD **)(v1 + 52);
if ( *v2 )
{
v3 = (int *)v2[3];
v4 = 0;
v5 = &v3[*v2 - 1];
while ( v3 <= v5 )
{
v6 = *v3++;
this = v6;
if ( !v6 )
break;
v7 = *(_DWORD *)this;
*(_DWORD *)(this + 360) = v4;
this = (*(int (**)(void))(v7 + 748))();
v4 += this;
}
}
}
return this;
}