//
// cocos2d::ccArrayRemoveObjectAtIndexChild from 0xd91eac to 0xd91f20 (116 bytes)
//
// 2 xrefs:
// > cocos2d::CCArray::removeObjectAtIndexChild @ 0xd4744c
// > ??> @ 0x42358
//
// 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
//
__int64 __fastcall cocos2d::ccArrayRemoveObjectAtIndexChild(int *a1, unsigned int a2, char a3)
{
__int64 v4; // x20
__int64 v5; // x0
_QWORD *v6; // x2
_DWORD *v7; // x0
int v8; // w0
__int64 result; // x0
v4 = 8LL * a2;
*(_DWORD *)(*(_QWORD *)(*((_QWORD *)a1 + 2) + v4) + 36LL) = -1;
if ( a3 )
{
v5 = *((_QWORD *)a1 + 2);
v6 = (_QWORD *)(v5 + v4);
v7 = *(_DWORD **)(v5 + 8LL * a2);
if ( !v7 )
goto LABEL_5;
cocos2d::CCObject::release(v7);
}
v6 = (_QWORD *)(*((_QWORD *)a1 + 2) + v4);
LABEL_5:
v8 = *a1;
if ( a1[2] == -1 )
a1[2] = v8;
result = (unsigned int)(v8 - 1);
*a1 = result;
*v6 = 0;
return result;
}