//
// sub_D16CEC from 0xd16cec to 0xd16d7c (144 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_D16CEC(__int64 *a1, char *a2, unsigned __int64 a3)
{
size_t v6; // x0
__int64 v7; // x20
size_t v8; // x23
unsigned __int64 v9; // x22
v6 = strlen(a2);
v7 = *a1;
v8 = v6;
v9 = *(_QWORD *)(v7 - 24);
if ( a3 >= v9 )
return -1;
while ( memchr(a2, *(unsigned __int8 *)(v7 + a3), v8) )
{
if ( ++a3 >= v9 )
return -1;
}
return a3;
}