//
// cocos2d::ccCArrayRemoveValueAtIndex from 0xd926d4 to 0xd92730 (92 bytes)
//
// 4 xrefs:
// > cocos2d::ccCArrayRemoveValue @ 0xd92778
// > cocos2d::CCTMXLayer::removeChild @ 0xdac534
// > cocos2d::CCTMXLayer::removeTileAt @ 0xdac5c8
// > ??> @ 0x5d118
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:08:19 +0000
//
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;
}