//
// sub_1007474A0 from 0x1007474a0 to 0x1007474e9 (73 bytes)
//
// 1 xrefs:
// > cocos2d::CCArray::fastRemoveObjectAtIndexChild @ 0x1007ff1c9
//
// 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_1007474A0(__int64 a1, unsigned int a2)
{
__int64 v3; // r14
__int64 result; // rax
__int64 v5; // rcx
_DWORD *v6; // rdi
v3 = (unsigned int)(*(_DWORD *)a1 - 1);
*(_DWORD *)a1 = v3;
result = *(_QWORD *)(a1 + 16);
v5 = *(_QWORD *)(result + 8 * v3);
*(_DWORD *)(v5 + 36) = a2;
v6 = *(_DWORD **)(result + 8LL * a2);
if ( v6 )
{
cocos2d::CCObject::release(v6);
result = *(_QWORD *)(a1 + 16);
v5 = *(_QWORD *)(result + 8 * v3);
}
*(_QWORD *)(result + 8LL * a2) = v5;
return result;
}