//
// sub_D1ABE8 from 0xd1abe8 to 0xd1ac80 (152 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
//
__int64 __fastcall sub_D1ABE8(__int64 *a1, const wchar_t **a2, unsigned __int64 a3)
{
__int64 v4; // x0
const wchar_t *v5; // x21
unsigned __int64 v6; // x19
__int64 v7; // x20
size_t v8; // x23
wchar_t v9; // w1
v4 = *a1;
v5 = *a2;
v6 = a3;
v7 = 4 * a3;
v8 = *((_QWORD *)*a2 - 3);
if ( a3 >= *(_QWORD *)(v4 - 24) )
return -1;
while ( 1 )
{
v9 = *(_DWORD *)(v4 + v7);
v7 += 4;
if ( !wmemchr(v5, v9, v8) )
break;
v4 = *a1;
if ( ++v6 >= *(_QWORD *)(*a1 - 24) )
return -1;
}
return v6;
}