//
// sub_100353940 from 0x100353940 to 0x1003539a8 (104 bytes)
//
// 6 xrefs:
// > cocos2d::CCScheduler::unscheduleSelector @ 0x1001aa1c4
// > sub_10024A430 @ 0x10024a440
// > sub_10024A44C @ 0x10024a450
// > sub_10024A46C @ 0x10024a4a4
// > cocos2d::CCActionManager::removeActionAtIndex @ 0x1002f4368
// > sub_100353B08 @ 0x100353b40
//
// 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_100353940(__int64 a1, unsigned int a2, int a3)
{
cocos2d::CCObject *v5; // x0
int v6; // w8
unsigned int v7; // w8
if ( a3 )
{
v5 = *(cocos2d::CCObject **)(*(_QWORD *)(a1 + 16) + 8LL * a2);
if ( v5 )
cocos2d::CCObject::release(v5);
}
v6 = *(_DWORD *)a1 - 1;
*(_DWORD *)a1 = v6;
v7 = v6 - a2;
if ( v7 )
memmove((void *)(*(_QWORD *)(a1 + 16) + 8LL * a2), (const void *)(*(_QWORD *)(a1 + 16) + 8LL * (a2 + 1)), 8LL * v7);
}