// // sub_1402F3AF0 from 0x1402f3af0 to 0x1402f3bb6 (198 bytes) // // 2 xrefs: // > sub_1402F1280 @ 0x1402f14cc // > @ 0x1406d3efc // // 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_1402F3AF0(__int64 a1, __int64 a2, __int64 a3, _DWORD *a4) { __int64 v5; // rbx __int64 v6; // rdi __int64 i; // r11 __int64 v8; // rax int v9; // ecx __int64 result; // rax v5 = (a3 - 1) >> 1; v6 = a2; for ( i = a2; i < v5; a2 = i ) { i = 2 * i + (*(_DWORD *)(a1 + 16 * i + 16) >= *(_DWORD *)(a1 + 16 * i + 8)) + 1LL; *(_DWORD *)(a1 + 8 * a2) = *(_DWORD *)(a1 + 8 * i); *(_DWORD *)(a1 + 8 * a2 + 4) = *(_DWORD *)(a1 + 8 * i + 4); } if ( i == v5 && (a3 & 1) == 0 ) { *(_DWORD *)(a1 + 8 * a2) = *(_DWORD *)(a1 + 8 * a3 - 8); *(_DWORD *)(a1 + 8 * a2 + 4) = *(_DWORD *)(a1 + 8 * a3 - 4); a2 = a3 - 1; } if ( v6 < a2 ) { do { v8 = (a2 - 1) >> 1; v9 = *(_DWORD *)(a1 + 8 * v8); if ( v9 >= *a4 ) break; *(_DWORD *)(a1 + 8 * a2) = v9; *(_DWORD *)(a1 + 8 * a2 + 4) = *(_DWORD *)(a1 + 8 * v8 + 4); a2 = (a2 - 1) >> 1; } while ( v6 < v8 ); } *(_DWORD *)(a1 + 8 * a2) = *a4; result = (unsigned int)a4[1]; *(_DWORD *)(a1 + 8 * a2 + 4) = result; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source