//
// sub_1800A1750 from 0x1800a1750 to 0x1800a1776 (38 bytes)
//
// 4 xrefs:
// > cocos2d::CCArray::exchangeObject @ 0x180006fa9
// > cocos2d::CCArray::exchangeObject @ 0x180006fbc
// > cocos2d::CCArray::indexOfObject @ 0x180007044
// > cocos2d::CCActionManager::removeAction @ 0x180038b94
//
// 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 11:22:13 +0000
//
__int64 __fastcall sub_1800A1750(__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;
}