//
// cocos2d::ccArrayGetIndexOfObject from 0x7f759c to 0x7f75ba (30 bytes)
//
// 7 xrefs:
// > cocos2d::CCActionManager::removeAction @ 0x7c0434
// > cocos2d::CCArray::indexOfObject @ 0x7c9002
// > cocos2d::CCArray::exchangeObject @ 0x7c92a6
// > cocos2d::CCArray::exchangeObject @ 0x7c92b4
// > cocos2d::ccArrayContainsObject @ 0x7f75bc
// > cocos2d::ccArrayFastRemoveObject @ 0x7f795e
// > cocos2d::ccArrayRemoveObject @ 0x7f797a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:01:10 +0000
//
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;
}