//
// sub_100353AC0 from 0x100353ac0 to 0x100353b08 (72 bytes)
//
// 1 xrefs:
// > sub_10024A464 @ 0x10024a468
//
// 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_100353AC0(__int64 a1, unsigned int a2)
{
__int64 v4; // x8
cocos2d::CCObject *v5; // x0
unsigned int v6; // w9
v4 = *(_QWORD *)(a1 + 16);
v5 = *(cocos2d::CCObject **)(v4 + 8LL * a2);
if ( v5 )
{
cocos2d::CCObject::release(v5);
v4 = *(_QWORD *)(a1 + 16);
}
v6 = *(_DWORD *)a1 - 1;
*(_DWORD *)a1 = v6;
*(_QWORD *)(v4 + 8LL * a2) = *(_QWORD *)(v4 + 8LL * v6);
}