// // optionsStrCompare from 0x56cc20 to 0x56ccd0 (176 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:52:34 +0000 // int __fastcall optionsStrCompare(_DWORD *a1, int *a2) { int v2; // r4 int v3; // r3 unsigned int v4; // r5 unsigned int v5; // r4 char *v6; // r0 char *v7; // r1 size_t v8; // r2 int v9; // r0 int v10; // r6 int v12[3]; // [sp+4h] [bp-20h] BYREF int v13[3]; // [sp+10h] [bp-14h] BYREF v2 = *a2; sub_56CBE4(v12, *a1 + 60); sub_56CBE4(v13, v2 + 60); v3 = v12[0] & 1; if ( v3 ) v4 = v12[1]; else v4 = (int)LOBYTE(v12[0]) >> 1; if ( (v13[0] & 1) != 0 ) { v5 = v13[1]; if ( !v3 ) { v6 = (char *)v12 + 1; LABEL_9: v7 = (char *)v13[2]; goto LABEL_12; } } else { v5 = (int)LOBYTE(v13[0]) >> 1; if ( !v3 ) { v6 = (char *)v12 + 1; goto LABEL_11; } } v6 = (char *)v12[2]; if ( (v13[0] & 1) != 0 ) goto LABEL_9; LABEL_11: v7 = (char *)v13 + 1; LABEL_12: v8 = v5; if ( v5 >= v4 ) v8 = v4; v9 = std::char_traits::compare(v6, v7, v8); if ( v9 ) { v10 = v9; } else if ( v4 < v5 ) { v10 = -1; } else { v10 = v4 > v5; } std::string::~string((int)v13); std::string::~string((int)v12); return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source