//
// cocos2d::CCParticleBatchNode::updateAllAtlasIndexes from 0xd72abc to 0xd72b40 (132 bytes)
//
// 4 xrefs:
// > cocos2d::CCParticleBatchNode::reorderChild @ 0xd72c0c
// > cocos2d::CCParticleBatchNode::insertChild @ 0xd72dbc
// > cocos2d::CCParticleBatchNode::removeChild @ 0xd730b8
// > ??> @ 0xf6a90
//
// 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::CCParticleBatchNode::updateAllAtlasIndexes(cocos2d::CCParticleBatchNode *this)
{
__int64 result; // x0
unsigned int *v2; // x1
char *v3; // x19
char *v4; // x21
__int64 *v5; // x1
int i; // w20
__int64 v7; // x2
result = *((_QWORD *)this + 26);
if ( result )
{
v2 = *(unsigned int **)(result + 56);
result = *v2;
if ( (_DWORD)result )
{
v3 = *((char **)v2 + 2);
result = 8LL * (unsigned int)result - 8;
v4 = &v3[result];
if ( v3 <= &v3[result] )
{
v5 = *(__int64 **)v3;
for ( i = 0; *(_QWORD *)v3; v5 = *(__int64 **)v3 )
{
v7 = *v5;
*((_DWORD *)v5 + 110) = i;
v3 += 8;
result = (*(__int64 (__fastcall **)(__int64 *))(v7 + 1496))(v5);
i += result;
if ( v4 < v3 )
break;
}
}
}
}
return result;
}