//
// sub_100667540 from 0x100667540 to 0x10066756b (43 bytes)
//
// 2 xrefs:
// > cocos2d::CCActionManager::addAction @ 0x1002340fb
// > cocos2d::CCScheduler::scheduleSelector @ 0x100442692
//
// 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
//
__int64 __fastcall sub_100667540(unsigned int *a1, cocos2d::CCObject *a2)
{
__int64 v2; // rcx
__int64 result; // rax
cocos2d::CCObject::retain(a2);
v2 = *a1;
*(_QWORD *)(*((_QWORD *)a1 + 2) + 8 * v2) = a2;
result = (unsigned int)(v2 + 1);
*a1 = result;
return result;
}