//
// cocos2d::ccArrayRemoveObjectAtIndexChild from 0x7f777a to 0x7f77b2 (56 bytes)
//
// 1 xrefs:
// > cocos2d::CCArray::removeObjectAtIndexChild @ 0x7c9274
//
// 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::ccArrayRemoveObjectAtIndexChild(int *result, int a2, int a3)
{
int *v4; // r4
int v5; // r3
v4 = result;
*(_DWORD *)(*(_DWORD *)(result[3] + 4 * a2) + 32) = -1;
if ( a3 )
{
result = *(int **)(result[3] + 4 * a2);
if ( result )
result = cocos2d::CCObject::release(result);
}
v5 = *v4;
if ( v4[2] == -1 )
v4[2] = v5;
*v4 = v5 - 1;
*(_DWORD *)(v4[3] + 4 * a2) = 0;
return result;
}