//
// cocos2d::ccArrayGetIndexOfObject from 0x5ec578 to 0x5ec596 (30 bytes)
//
// 7 xrefs:
// > cocos2d::CCActionManager::removeAction @ 0x5b9b80
// > cocos2d::CCArray::indexOfObject @ 0x5c1eb6
// > cocos2d::CCArray::exchangeObject @ 0x5c215a
// > cocos2d::CCArray::exchangeObject @ 0x5c2168
// > cocos2d::ccArrayContainsObject @ 0x5ec598
// > cocos2d::ccArrayFastRemoveObject @ 0x5ec918
// > cocos2d::ccArrayRemoveObject @ 0x5ec934
//
// 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
//
int __fastcall cocos2d::ccArrayGetIndexOfObject(int *a1, int a2)
{
int v2; // r3
int v3; // r2
int result; // r0
v2 = *a1;
v3 = a1[3];
for ( result = 0; result != v2; ++result )
{
if ( *(_DWORD *)(v3 + 4 * result) == a2 )
return result;
}
return -1;
}