// // sub_1000B4C5C from 0x1000b4c5c to 0x1000b4d20 (196 bytes) // // 2 xrefs: // > sub_1000B4A94 @ 0x1000b4af0 // > sub_1000B4A94 @ 0x1000b4b38 // // 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_1000B4C5C(__int64 result, __int64 a2, __int64 a3, int *a4) { __int64 v4; // x9 signed __int64 v5; // x8 __int64 v6; // x11 __int64 v7; // x10 int *v8; // x9 __int64 v9; // x11 int v10; // w12 int v11; // w14 int v12; // w11 __int64 v13; // x13 int v14; // w15 if ( a3 >= 2 ) { v4 = (__int64)a4 - result; v5 = (unsigned __int64)(a3 - 2) >> 1; if ( v5 >= ((__int64)a4 - result) >> 2 ) { v6 = v4 >> 1; v7 = (v4 >> 1) + 1; v8 = (int *)(result + 4 * v7); v9 = v6 + 2; if ( v9 >= a3 ) { v10 = *v8; } else { v10 = *v8; v11 = v8[1]; if ( *v8 >= v11 ) v10 = v8[1]; if ( *v8 > v11 ) { ++v8; v7 = v9; } } v12 = *a4; if ( v10 <= *a4 ) { do { *a4 = v10; a4 = v8; if ( v5 < v7 ) break; v13 = (2 * v7) | 1; v8 = (int *)(result + 4 * v13); v7 = 2 * v7 + 2; if ( v7 >= a3 ) { v10 = *v8; v7 = v13; } else { v10 = *v8; v14 = v8[1]; if ( *v8 >= v14 ) v10 = v8[1]; if ( *v8 <= v14 ) v7 = v13; else ++v8; } } while ( v10 <= v12 ); *a4 = v12; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source