//
// sub_777330 from 0x777330 to 0x777378 (72 bytes)
//
// 0 xrefs:
//
// 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 sub_777330(int *a1, const wchar_t **a2, unsigned int a3)
{
int v3; // r5
int v4; // r3
unsigned int v6; // r2
const wchar_t *v8; // r6
size_t v9; // r8
wchar_t v10; // r1
v4 = *a1;
v6 = *(_DWORD *)(*a1 - 12);
v8 = *a2;
if ( a3 < v6 )
v3 = 4 * a3;
v9 = *(v8 - 3);
if ( a3 >= v6 )
return -1;
while ( 1 )
{
v10 = *(_DWORD *)(v4 + v3);
v3 += 4;
if ( !wmemchr(v8, v10, v9) )
break;
v4 = *a1;
if ( ++a3 >= *(_DWORD *)(*a1 - 12) )
return -1;
}
return a3;
}