//
// sub_D169B4 from 0xd169b4 to 0xd16a08 (84 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_D169B4(__int64 *a1, unsigned __int8 a2, unsigned __int64 a3)
{
__int64 v3; // x19
__int64 result; // x0
unsigned __int64 v5; // x3
void *v6; // x0
v3 = *a1;
result = -1;
v5 = *(_QWORD *)(v3 - 24);
if ( a3 < v5 )
{
v6 = memchr((const void *)(v3 + a3), a2, v5 - a3);
if ( v6 )
return (__int64)v6 - v3;
else
return -1;
}
return result;
}