// // sub_7776CC from 0x7776cc to 0x77770a (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_7776CC(int *a1, unsigned int a2, unsigned int a3, wchar_t *s2, size_t n) { int v5; // r0 unsigned int v6; // r4 unsigned int v7; // r4 const wchar_t *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 wchar_t *)(v5 + 4 * a2); if ( v7 >= a3 ) v7 = a3; v9 = v7; if ( v7 >= n ) v9 = n; result = wmemcmp(v8, s2, v9); if ( !result ) return v7 - n; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source