//
// sub_F7D444 from 0xf7d444 to 0xf7d4d8 (148 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:13:48 +0000
//
__int64 __fastcall sub_F7D444(unsigned __int8 *a1, char *a2, unsigned __int64 a3)
{
unsigned __int64 v3; // x8
unsigned __int8 *v6; // x22
unsigned __int64 v7; // x23
size_t v8; // x21
unsigned __int8 *v9; // x24
v3 = *a1;
if ( (v3 & 1) != 0 )
{
v7 = *((_QWORD *)a1 + 1);
v6 = *((unsigned __int8 **)a1 + 2);
}
else
{
v6 = a1 + 1;
v7 = v3 >> 1;
}
v8 = strlen(a2);
if ( v7 <= a3 )
return -1;
v9 = &v6[a3];
while ( v8 )
{
if ( !memchr(a2, v6[a3], v8) )
{
v9 = &v6[a3];
return v9 - v6;
}
if ( v7 == ++a3 )
return -1;
}
return v9 - v6;
}