// // sub_14043F700 from 0x14043f700 to 0x14043f90b (523 bytes) // // 4 xrefs: // > sub_14043F420 @ 0x14043f462 // > @ 0x1406a1ef0 // > @ 0x1406a1f24 // > @ 0x1406da2a4 // // 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_14043F700( __int64 *a1, __int64 *a2, __int64 *a3, unsigned __int8 (__fastcall *a4)(__int64, __int64)) { __int64 v5; // rdx __int64 v6; // rax __int64 v10; // r12 __int64 v11; // r15 __int64 v12; // rcx __int64 v13; // rcx __int64 v14; // rcx __int64 *v15; // r14 __int64 v16; // rcx __int64 v17; // rcx __int64 v18; // rcx __int64 *v19; // r14 __int64 *v20; // r15 __int64 v21; // rcx __int64 v22; // rcx __int64 v23; // rcx __int64 v24; // rcx __int64 result; // rax __int64 v26; // rcx __int64 v27; // rcx __int64 v28; // rcx __int64 v29; // rcx __int64 v30; // rcx v5 = *a1; v6 = a3 - a1; if ( v6 <= 40 ) { if ( a4(*a2, v5) ) { v28 = *a2; *a2 = *a1; *a1 = v28; } result = ((__int64 (__fastcall *)(__int64, __int64))a4)(*a3, *a2); if ( (_BYTE)result ) { v29 = *a3; *a3 = *a2; *a2 = v29; result = ((__int64 (__fastcall *)(__int64, __int64))a4)(v29, *a1); if ( (_BYTE)result ) { v30 = *a2; result = *a1; *a2 = *a1; *a1 = v30; } } } else { v10 = (v6 + 1) >> 3; v11 = 8 * v10; if ( a4(a1[v10], v5) ) { v12 = a1[(unsigned __int64)v11 / 8]; a1[(unsigned __int64)v11 / 8] = *a1; *a1 = v12; } if ( a4(a1[2 * v10], a1[(unsigned __int64)v11 / 8]) ) { v13 = a1[2 * v10]; a1[2 * v10] = a1[(unsigned __int64)v11 / 8]; a1[(unsigned __int64)v11 / 8] = v13; if ( a4(v13, *a1) ) { v14 = a1[(unsigned __int64)v11 / 8]; a1[(unsigned __int64)v11 / 8] = *a1; *a1 = v14; } } v15 = &a2[v11 / 0xFFFFFFFFFFFFFFF8uLL]; if ( a4(*a2, a2[-v10]) ) { v16 = *a2; *a2 = *v15; *v15 = v16; } if ( a4(a2[(unsigned __int64)v11 / 8], *a2) ) { v17 = a2[(unsigned __int64)v11 / 8]; a2[(unsigned __int64)v11 / 8] = *a2; *a2 = v17; if ( a4(v17, *v15) ) { v18 = *a2; *a2 = *v15; *v15 = v18; } } v19 = &a3[-v10]; v20 = &a3[-2 * v10]; if ( a4(*v19, *v20) ) { v21 = *v19; *v19 = *v20; *v20 = v21; } if ( a4(*a3, *v19) ) { v22 = *a3; *a3 = *v19; *v19 = v22; if ( a4(v22, *v20) ) { v23 = *v19; *v19 = *v20; *v20 = v23; } } if ( a4(*a2, a1[v10]) ) { v24 = *a2; *a2 = a1[v10]; a1[v10] = v24; } result = ((__int64 (__fastcall *)(__int64, __int64))a4)(*v19, *a2); if ( (_BYTE)result ) { v26 = *v19; *v19 = *a2; *a2 = v26; result = ((__int64 (__fastcall *)(__int64, __int64))a4)(v26, a1[v10]); if ( (_BYTE)result ) { result = a1[v10]; v27 = *a2; *a2 = result; a1[v10] = v27; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source