//
// sub_1006674C0 from 0x1006674c0 to 0x1006674f3 (51 bytes)
//
// 4 xrefs:
// > cocos2d::CCActionManager::removeAction @ 0x1002343cc
// > sub_100720090 @ 0x100720099
// > sub_1007202C0 @ 0x1007202d4
// > sub_1007202C0 @ 0x1007202e8
//
// 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_1006674C0(int *a1, __int64 a2)
{
int v2; // ecx
__int64 result; // rax
__int64 v4; // rdi
__int64 v5; // rdx
v2 = *a1;
result = 0xFFFFFFFFLL;
if ( *a1 )
{
v4 = *((_QWORD *)a1 + 2);
v5 = 0;
while ( *(_QWORD *)(v4 + 8 * v5) != a2 )
{
if ( v2 == (_DWORD)++v5 )
return result;
}
return (unsigned int)v5;
}
return result;
}