//
// cocos2d::ccArrayInsertObjectAtIndexBatch from 0x7f76de to 0x7f772e (80 bytes)
//
// 1 xrefs:
// > cocos2d::CCSpriteBatchNode::insertChild @ 0x7f2906
//
// 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:10 +0000
//
int __fastcall cocos2d::ccArrayInsertObjectAtIndexBatch(unsigned int *a1, int a2, unsigned int a3)
{
int result; // r0
int v7; // r0
int v8; // r6
unsigned int i; // r3
int v10; // r2
cocos2d::ccArrayEnsureExtraCapacity(a1, 1);
if ( *a1 != a3 )
{
v7 = 4 * (a3 + 1);
v8 = v7 - 4;
memmove((void *)(v7 + a1[3]), (const void *)(a1[3] + v7 - 4), 4 * (*a1 - a3));
for ( i = a3; i < *a1; ++i )
{
v10 = *(_DWORD *)(a1[3] + v8);
v8 += 4;
*(_DWORD *)(v10 + 36) = i;
}
}
result = cocos2d::CCObject::retain(a2);
*(_DWORD *)(a1[3] + 4 * a3) = a2;
*(_DWORD *)(a2 + 36) = a3;
++*a1;
return result;
}