//
// cocos2d::ccArrayRemoveObjectAtIndex from 0x5ec718 to 0x5ec74c (52 bytes)
//
// 7 xrefs:
// > cocos2d::CCScheduler::unscheduleSelector @ 0x5ae8c8
// > cocos2d::CCActionManager::removeActionAtIndex @ 0x5b9448
// > cocos2d::CCArray::removeLastObject @ 0x5c2116
// > cocos2d::CCArray::removeObjectAtIndex @ 0x5c2122
// > cocos2d::CCArray::replaceObjectAtIndex @ 0x5c21a0
// > cocos2d::ccArrayRemoveObject @ 0x5ec946
// > cocos2d::CCParallaxNode::removeChild @ 0x5f6dc6
//
// 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::ccArrayRemoveObjectAtIndex(int *a1, int a2, int a3)
{
cocos2d::CCObject *v5; // r0
int v6; // r2
int v7; // r2
if ( a3 )
{
v5 = *(cocos2d::CCObject **)(a1[3] + 4 * a2);
if ( v5 )
cocos2d::CCObject::release(v5);
}
v6 = *a1 - 1;
*a1 = v6;
v7 = v6 - a2;
if ( v7 )
j_memmove((void *)(4 * a2 + a1[3]), (const void *)(4 * a2 + 4 + a1[3]), 4 * v7);
}