//
// sub_97900C from 0x97900c to 0x979062 (86 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:06:00 +0000
//
int __fastcall sub_97900C(unsigned __int8 *a1, char *a2, unsigned int a3)
{
unsigned int v4; // r1
unsigned int v5; // r4
unsigned __int8 *v6; // r9
size_t v7; // r5
unsigned __int8 *v8; // r6
v4 = *a1;
if ( (v4 & 1) != 0 )
{
v6 = *((unsigned __int8 **)a1 + 2);
v5 = *((_DWORD *)a1 + 1);
}
else
{
v5 = v4 >> 1;
v6 = a1 + 1;
}
if ( v5 > a3 )
v5 = a3 + 1;
v7 = strlen(a2);
while ( v5 )
{
v8 = &v6[v5];
if ( v7 )
{
--v5;
if ( memchr(a2, *(v8 - 1), v7) )
continue;
}
return v8 - 1 - v6;
}
return -1;
}