//
// sub_774F14 from 0x774f14 to 0x774f50 (60 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_774F14(int *a1, unsigned int a2, unsigned int a3, void *a4, size_t a5)
{
int v5; // r0
unsigned int v6; // r4
unsigned int v7; // r4
const void *v8; // r0
size_t v9; // r2
int result; // r0
v5 = *a1;
v6 = *(_DWORD *)(v5 - 12);
if ( a2 > v6 )
sub_7732C4(
"%s: __pos (which is %zu) > this->size() (which is %zu)",
"basic_string::compare",
a2,
*(_DWORD *)(v5 - 12));
v7 = v6 - a2;
v8 = (const void *)(v5 + a2);
if ( v7 >= a3 )
v7 = a3;
v9 = v7;
if ( v7 >= a5 )
v9 = a5;
result = memcmp(v8, a4, v9);
if ( !result )
return v7 - a5;
return result;
}