//
// sub_774ABC from 0x774abc to 0x774b00 (68 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
//
int __fastcall sub_774ABC(int *a1, const void **a2, unsigned int a3)
{
const void *v3; // r6
int v4; // r5
size_t v5; // r7
int v6; // r0
bool v7; // zf
unsigned int v9; // r0
unsigned __int8 *v10; // r5
unsigned int v11; // r4
int v13; // t1
v3 = *a2;
v4 = *a1;
v5 = *((_DWORD *)*a2 - 3);
v6 = *(_DWORD *)(*a1 - 12);
v7 = v5 == 0;
if ( v5 )
v7 = v6 == 0;
if ( v7 )
return -1;
v9 = v6 - 1;
if ( a3 >= v9 )
a3 = v9;
v10 = (unsigned __int8 *)(v4 + a3);
v11 = a3;
do
{
v13 = *v10--;
if ( memchr(v3, v13, v5) )
break;
}
while ( v11-- != 0 );
return v11;
}