//
// cocos2d::ccCArrayGetIndexOfValue from 0x5ec9dc to 0x5ec9fe (34 bytes)
//
// 2 xrefs:
// > cocos2d::ccCArrayContainsValue @ 0x5eca00
// > cocos2d::ccCArrayRemoveValue @ 0x5ecb0c
//
// 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::ccCArrayGetIndexOfValue(_DWORD *a1, int a2)
{
int i; // r3
for ( i = 0; ; ++i )
{
if ( i == *a1 )
return -1;
if ( *(_DWORD *)(a1[3] + 4 * i) == a2 )
break;
}
return i;
}