//
// cocos2d::ccArrayRemoveObjectAtIndexBatch from 0x7f7890 to 0x7f78de (78 bytes)
//
// 1 xrefs:
// > cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas @ 0x7f2b94
//
// 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:01:11 +0000
//
int *__fastcall cocos2d::ccArrayRemoveObjectAtIndexBatch(int *result, unsigned int a2, int a3)
{
unsigned int v3; // r4
int v4; // r6
int *v5; // r5
int v6; // r2
unsigned int v7; // r2
int v8; // r3
v3 = a2;
v4 = 4 * a2;
v5 = result;
*(_DWORD *)(*(_DWORD *)(result[3] + 4 * a2) + 36) = -1;
if ( a3 )
{
result = *(int **)(result[3] + 4 * a2);
if ( result )
result = cocos2d::CCObject::release(result);
}
v6 = *v5 - 1;
*v5 = v6;
v7 = v6 - v3;
if ( v7 )
{
result = (int *)memmove((void *)(v5[3] + v4), (const void *)(v4 + 4 + v5[3]), 4 * v7);
while ( v3 < *v5 )
{
v8 = *(_DWORD *)(v5[3] + v4);
v4 += 4;
*(_DWORD *)(v8 + 36) = v3++;
}
}
return result;
}