//
// sub_774934 from 0x774934 to 0x774972 (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_774934(int *a1, const void **a2, size_t a3)
{
const void *v3; // r6
int v4; // r7
size_t v5; // r5
size_t v6; // r3
size_t v8; // r3
size_t i; // r4
v3 = *a2;
v4 = *a1;
v5 = *((_DWORD *)*a2 - 3);
v6 = *(_DWORD *)(*a1 - 12);
if ( v5 > v6 )
return -1;
v8 = v6 - v5;
if ( a3 >= v8 )
a3 = v8;
for ( i = a3; memcmp((const void *)(v4 + i), v3, v5); --i )
{
if ( !i )
return -1;
}
return i;
}