//
// cocos2d::ccArrayRemoveObjectAtIndex from 0x7f7746 to 0x7f777a (52 bytes)
//
// 7 xrefs:
// > cocos2d::CCScheduler::unscheduleSelector @ 0x7b4e44
// > cocos2d::CCActionManager::removeActionAtIndex @ 0x7bfcaa
// > cocos2d::CCArray::removeLastObject @ 0x7c9262
// > cocos2d::CCArray::removeObjectAtIndex @ 0x7c926e
// > cocos2d::CCArray::replaceObjectAtIndex @ 0x7c92ec
// > cocos2d::ccArrayRemoveObject @ 0x7f798c
// > cocos2d::CCParallaxNode::removeChild @ 0x803936
//
// 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::ccArrayRemoveObjectAtIndex(int *result, int a2, int a3)
{
int *v3; // r5
int v5; // r2
int v6; // r2
v3 = result;
if ( a3 )
{
result = *(int **)(result[3] + 4 * a2);
if ( result )
result = cocos2d::CCObject::release(result);
}
v5 = *v3 - 1;
*v3 = v5;
v6 = v5 - a2;
if ( v6 )
return (int *)sub_AF7E54((void *)(4 * a2 + v3[3]), (const void *)(4 * a2 + 4 + v3[3]), 4 * v6);
return result;
}