//
// cocos2d::ccCArrayRemoveValueAtIndex from 0x5ecad6 to 0x5ecaf6 (32 bytes)
//
// 3 xrefs:
// > cocos2d::ccCArrayRemoveValue @ 0x5ecb1c
// > cocos2d::CCTMXLayer::removeChild @ 0x5f7f3a
// > cocos2d::CCTMXLayer::removeTileAt @ 0x5f7f90
//
// 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
//
unsigned int *__fastcall cocos2d::ccCArrayRemoveValueAtIndex(unsigned int *result, unsigned int a2)
{
int v2; // r2
unsigned int v3; // r3
v2 = 4 * a2;
v3 = *result - 1;
*result = v3;
while ( a2 < v3 )
{
++a2;
*(_DWORD *)(result[3] + v2) = *(_DWORD *)(result[3] + v2 + 4);
v2 += 4;
}
return result;
}