//
// sub_100667BA0 from 0x100667ba0 to 0x100667c04 (100 bytes)
//
// 8 xrefs:
// > cocos2d::CCActionManager::removeActionAtIndex @ 0x100233a03
// > cocos2d::CCActionManager::removeAction @ 0x10023440a
// > cocos2d::CCActionManager::removeActionByTag @ 0x1002345b4
// > cocos2d::CCScheduler::unscheduleSelector @ 0x100441e54
// > cocos2d::CCParallaxNode::removeChild @ 0x1004aebd4
// > sub_100720200 @ 0x10072020f
// > sub_100720230 @ 0x100720239
// > sub_100720330 @ 0x10072035b
//
// 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_100667BA0(__int64 a1, unsigned int a2, int a3)
{
int v3; // edx
unsigned int v4; // edx
if ( a3 && *(_QWORD *)(*(_QWORD *)(a1 + 16) + 8LL * a2) )
cocos2d::CCObject::release(*(cocos2d::CCObject **)(*(_QWORD *)(a1 + 16) + 8LL * a2));
v3 = *(_DWORD *)a1 - 1;
*(_DWORD *)a1 = v3;
v4 = v3 - a2;
if ( v4 )
memmove((void *)(*(_QWORD *)(a1 + 16) + 8LL * a2), (const void *)(*(_QWORD *)(a1 + 16) + 8LL * (a2 + 1)), 8LL * v4);
}