//
// sub_774CC0 from 0x774cc0 to 0x774cfe (62 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_774CC0(int *a1, const void **a2, unsigned int a3)
{
int v3; // r5
const void *v4; // r6
int v5; // r0
size_t v6; // r7
unsigned int v8; // r0
unsigned __int8 *v9; // r5
unsigned int v10; // r4
int v12; // t1
v3 = *a1;
v4 = *a2;
v5 = *(_DWORD *)(*a1 - 12);
v6 = *((_DWORD *)*a2 - 3);
if ( !v5 )
return -1;
v8 = v5 - 1;
if ( a3 >= v8 )
a3 = v8;
v9 = (unsigned __int8 *)(v3 + a3);
v10 = a3;
do
{
v12 = *v9--;
if ( !memchr(v4, v12, v6) )
break;
}
while ( v10-- != 0 );
return v10;
}