//
// sub_D1AC80 from 0xd1ac80 to 0xd1ad18 (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
//
unsigned __int64 __fastcall sub_D1AC80(__int64 *a1, wchar_t *s, unsigned __int64 a3, size_t n)
{
__int64 v5; // x0
unsigned __int64 v7; // x19
__int64 v9; // x20
wchar_t v10; // w1
v5 = *a1;
v7 = a3;
v9 = 4 * a3;
if ( a3 >= *(_QWORD *)(v5 - 24) )
return -1;
while ( 1 )
{
v10 = *(_DWORD *)(v5 + v9);
v9 += 4;
if ( !wmemchr(s, v10, n) )
break;
v5 = *a1;
if ( ++v7 >= *(_QWORD *)(*a1 - 24) )
return -1;
}
return v7;
}