//
// cocos2d::ccCArrayRemoveValueAtIndex from 0xb21b2c to 0xb21b88 (92 bytes)
//
// 4 xrefs:
// > cocos2d::ccCArrayRemoveValue @ 0xb21bd0
// > cocos2d::CCTMXLayer::removeChild @ 0xb39ca4
// > cocos2d::CCTMXLayer::removeTileAt @ 0xb39d38
// > ??> @ 0x40d88
//
// 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)
{
unsigned int v2; // w3
unsigned int v3; // w2
__int64 v4; // x2
v2 = *result;
v3 = *result - 1;
*result = v3;
if ( v3 > a2 )
{
v4 = 8LL * a2;
do
{
*(_QWORD *)(*((_QWORD *)result + 2) + v4) = *(_QWORD *)(*((_QWORD *)result + 2)
+ 8 * (a2 + 1 - (unsigned __int64)a2)
+ v4);
v4 += 8;
}
while ( v4 != 8 * (a2 + 1LL + v2 - 2 - a2) );
}
return result;
}