//
// sub_1007469F0 from 0x1007469f0 to 0x100746a23 (51 bytes)
//
// 4 xrefs:
// > cocos2d::CCActionManager::removeAction @ 0x100218c0c
// > sub_1007FEFB0 @ 0x1007fefb9
// > sub_1007FF1E0 @ 0x1007ff1f4
// > sub_1007FF1E0 @ 0x1007ff208
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:36:31 +0000
//
__int64 __fastcall sub_1007469F0(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;
}