//
// sub_777648 from 0x777648 to 0x777672 (42 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_777648(const wchar_t **a1, wchar_t *s)
{
size_t v4; // r7
size_t v5; // r6
size_t v6; // r2
int result; // r0
v4 = *(*a1 - 3);
v5 = wcslen(s);
v6 = v5;
if ( v5 >= v4 )
v6 = v4;
result = wmemcmp(*a1, s, v6);
if ( !result )
return v4 - v5;
return result;
}