// // sub_100030588 from 0x100030588 to 0x1000306a0 (280 bytes) // // 1 xrefs: // > sub_10002FB2C @ 0x10002ff4c // // 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 // __int64 *__fastcall sub_100030588(__int64 *a1, __int64 *a2, __int64 (__fastcall **a3)(__int64, __int64)) { __int64 v6; // x25 __int64 v7; // x20 char v8; // w0 __int64 *v9; // x24 __int64 *v10; // x23 __int64 v11; // t1 __int64 v12; // t1 __int64 *v13; // x23 __int64 *v14; // x25 __int64 v15; // x8 __int64 v16; // t1 __int64 v17; // t1 v6 = 0; v7 = *a1; do v8 = (*a3)(a1[++v6], v7); while ( (v8 & 1) != 0 ); v9 = &a1[v6]; v10 = &a1[v6 - 1]; if ( v6 == 1 ) { do { if ( v9 >= a2 ) break; v12 = *--a2; } while ( ((*a3)(v12, v7) & 1) == 0 ); } else { do v11 = *--a2; while ( !(unsigned int)(*a3)(v11, v7) ); } if ( v9 < a2 ) { v13 = &a1[v6]; v14 = a2; do { v15 = *v13; *v13 = *v14; *v14 = v15; do { v16 = v13[1]; ++v13; } while ( ((*a3)(v16, v7) & 1) != 0 ); do v17 = *--v14; while ( !(unsigned int)(*a3)(v17, v7) ); } while ( v13 < v14 ); v10 = v13 - 1; } if ( v10 != a1 ) *a1 = *v10; *v10 = v7; return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source