//
// cocos2d::ccCArrayGetIndexOfValue from 0x7f7a22 to 0x7f7a44 (34 bytes)
//
// 2 xrefs:
// > cocos2d::ccCArrayContainsValue @ 0x7f7a46
// > cocos2d::ccCArrayRemoveValue @ 0x7f7b54
//
// 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:11 +0000
//
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;
}