//
// cocos2d::CCParticleBatchNode::updateAllAtlasIndexes from 0xb02524 to 0xb025a8 (132 bytes)
//
// 4 xrefs:
// > cocos2d::CCParticleBatchNode::reorderChild @ 0xb02674
// > cocos2d::CCParticleBatchNode::insertChild @ 0xb02824
// > cocos2d::CCParticleBatchNode::removeChild @ 0xb02b20
// > ??> @ 0xbd2b8
//
// 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::CCParticleBatchNode::updateAllAtlasIndexes(cocos2d::CCParticleBatchNode *a1)
{
cocos2d::CCArray *m_pChildren; // x0
cocos2d::ccArray *data; // x1
char *arr; // x19
__int64 v4; // x0
char *v5; // x21
__int64 *v6; // x1
int i; // w20
__int64 v8; // x2
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
data = m_pChildren->data;
if ( data->num )
{
arr = (char *)data->arr;
v4 = 8LL * data->num - 8;
v5 = &arr[v4];
if ( arr <= &arr[v4] )
{
v6 = *(__int64 **)arr;
for ( i = 0; *(_QWORD *)arr; v6 = *(__int64 **)arr )
{
v8 = *v6;
*((_DWORD *)v6 + 106) = i;
arr += 8;
i += (*(__int64 (__fastcall **)(__int64 *))(v8 + 1480))(v6);
if ( v5 < arr )
break;
}
}
}
}
}