//
// sub_100747140 from 0x100747140 to 0x100747185 (69 bytes)
//
// 1 xrefs:
// > cocos2d::CCArray::removeObjectAtIndexChild @ 0x1007ff169
//
// This function is hookable on this platform (idp: pc, 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 12:36:31 +0000
//
__int64 __fastcall sub_100747140(int *a1, unsigned int a2, int a3)
{
_DWORD *v4; // rdi
int v5; // eax
__int64 result; // rax
v4 = *(_DWORD **)(*((_QWORD *)a1 + 2) + 8LL * a2);
v4[9] = -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;
}