//
// sub_18009DAC0 from 0x18009dac0 to 0x18009dae6 (38 bytes)
//
// 4 xrefs:
// > cocos2d::CCArray::exchangeObject @ 0x180006e59
// > cocos2d::CCArray::exchangeObject @ 0x180006e6c
// > cocos2d::CCArray::indexOfObject @ 0x180006ef4
// > cocos2d::CCActionManager::removeAction @ 0x18003846f
//
// 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_18009DAC0(__int64 a1, __int64 a2)
{
__int64 result; // rax
_QWORD *v3; // r8
result = 0;
v3 = *(_QWORD **)(a1 + 16);
if ( !*(_DWORD *)a1 )
return 0xFFFFFFFFLL;
while ( *v3 != a2 )
{
result = (unsigned int)(result + 1);
++v3;
if ( (unsigned int)result >= *(_DWORD *)a1 )
return 0xFFFFFFFFLL;
}
return result;
}