//
// sub_1003539A8 from 0x1003539a8 to 0x100353a04 (92 bytes)
//
// 1 xrefs:
// > cocos2d::CCArray::removeObjectAtIndexChild @ 0x10024a458
//
// 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
//
void __fastcall sub_1003539A8(int *a1, unsigned int a2, int a3)
{
cocos2d::CCObject *v5; // x0
int v6; // w8
v5 = *(cocos2d::CCObject **)(*((_QWORD *)a1 + 2) + 8LL * a2);
v5->m_uUnknown = -1;
if ( a3 )
cocos2d::CCObject::release(v5);
v6 = *a1;
if ( a1[2] == -1 )
a1[2] = v6;
*a1 = v6 - 1;
*(_QWORD *)(*((_QWORD *)a1 + 2) + 8LL * a2) = 0;
}