//
// sub_D1A984 from 0xd1a984 to 0xd1a9d4 (80 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_D1A984(__int64 *a1, wchar_t a2, unsigned __int64 a3)
{
__int64 v3; // x19
unsigned __int64 v4; // x3
wchar_t *v6; // x0
v3 = *a1;
v4 = *(_QWORD *)(*a1 - 24);
if ( a3 < v4 && (v6 = wmemchr((const wchar_t *)(v3 + 4 * a3), a2, v4 - a3)) != nullptr )
return ((__int64)v6 - v3) >> 2;
else
return -1;
}