// // sub_7775D4 from 0x7775d4 to 0x777638 (100 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_7775D4(int *a1, unsigned int a2, size_t a3, int *a4, unsigned int a5, size_t a6) { int v6; // r0 unsigned int v7; // r4 int v8; // r7 unsigned int v9; // r3 size_t v10; // r4 size_t v11; // r3 const wchar_t *v12; // r0 size_t v13; // r2 size_t v14; // r5 bool v15; // cf size_t v16; // r2 int result; // r0 v6 = *a1; v7 = *(_DWORD *)(v6 - 12); if ( a2 > v7 ) sub_7732C4( "%s: __pos (which is %zu) > this->size() (which is %zu)", "basic_string::compare", a2, *(_DWORD *)(v6 - 12)); v8 = *a4; v9 = *(_DWORD *)(*a4 - 12); if ( a5 > v9 ) sub_7732C4("%s: __pos (which is %zu) > this->size() (which is %zu)", "basic_string::compare", a5, v9); v10 = v7 - a2; v11 = v9 - a5; v12 = (const wchar_t *)(v6 + 4 * a2); if ( v10 >= a3 ) v10 = a3; v13 = a6; if ( a6 >= v11 ) v13 = v11; v14 = v13; v15 = v10 >= v13; v16 = v10; if ( v15 ) v16 = v14; result = wmemcmp(v12, (const wchar_t *)(v8 + 4 * a5), v16); if ( !result ) return v10 - v14; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source