//
// sub_C2E10 from 0xc2e10 to 0xc2e58 (72 bytes)
//
// 3 xrefs:
// > sub_C2668 @ 0xc26c4
// > sub_C271C @ 0xc276c
// > sub_C27BC @ 0xc27fc
//
// This function is hookable on this platform (idp: arm, 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 12:14:45 +0000
//
__int64 __fastcall sub_C2E10(__int64 a1, int **a2, int *a3, _QWORD *a4)
{
int v4; // w8
int *i; // x9
__int64 v6; // x9
_DWORD *v7; // x9
v4 = *a3;
for ( i = *a2; ; *a2 = i )
{
v6 = *i;
if ( (_DWORD)v6 == -1 )
return 74;
v7 = (_DWORD *)(*(_QWORD *)(a1 + 16) + 16 * v6);
if ( *v7 == v4 )
break;
i = v7 + 1;
}
*a4 = v7;
return 0;
}