//
// cocos2d::ccArrayRemoveObjectAtIndexBatch from 0x5ec856 to 0x5ec89c (70 bytes)
//
// 1 xrefs:
// > cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas @ 0x5e82f0
//
// 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 __fastcall cocos2d::ccArrayRemoveObjectAtIndexBatch(int *a1, unsigned int a2, int a3)
{
cocos2d::CCObject *v4; // r0
unsigned int v5; // r4
int v6; // r6
int v7; // r2
unsigned int v8; // r2
unsigned int v9; // r3
int v10; // r2
v4 = *(cocos2d::CCObject **)(a1[3] + 4 * a2);
v5 = a2;
v6 = 4 * a2;
v4->m_unknown2 = -1;
if ( a3 )
cocos2d::CCObject::release(v4);
v7 = *a1 - 1;
*a1 = v7;
v8 = v7 - v5;
if ( v8 )
{
memmove((void *)(a1[3] + v6), (const void *)(v6 + 4 + a1[3]), 4 * v8);
v9 = *a1;
while ( v5 < v9 )
{
v10 = *(_DWORD *)(a1[3] + v6);
v6 += 4;
*(_DWORD *)(v10 + 36) = v5++;
}
}
}