//
// sub_777030 from 0x777030 to 0x777058 (40 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_777030(int *a1, wchar_t a2, unsigned int a3)
{
int v3; // r4
unsigned int v4; // r3
wchar_t *v6; // r0
v3 = *a1;
v4 = *(_DWORD *)(*a1 - 12);
if ( a3 < v4 && (v6 = wmemchr((const wchar_t *)(v3 + 4 * a3), a2, v4 - a3)) != nullptr )
return ((int)v6 - v3) >> 2;
else
return -1;
}