//
// sub_100667C10 from 0x100667c10 to 0x100667c55 (69 bytes)
//
// 1 xrefs:
// > cocos2d::CCArray::removeObjectAtIndexChild @ 0x100720249
//
// 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
//
__int64 __fastcall sub_100667C10(int *a1, unsigned int a2, int a3)
{
cocos2d::CCObject *v4; // rdi
int v5; // eax
__int64 result; // rax
v4 = *(cocos2d::CCObject **)(*((_QWORD *)a1 + 2) + 8LL * a2);
v4->m_uUnknown = -1;
if ( a3 )
cocos2d::CCObject::release(v4);
v5 = *a1;
if ( a1[2] == -1 )
a1[2] = v5;
*a1 = v5 - 1;
result = *((_QWORD *)a1 + 2);
*(_QWORD *)(result + 8LL * a2) = 0;
return result;
}