Shellsort with a C program, the sorting algorithm has been tested as a standalone program and works correctly, but we are encountering issues when linking it with the C code. Specifically, the output array contains the original numbers in the same order instead of being sorted.RCX register, which is the correct method for passing function parameters in Intel 64. Since the C source code was provided by our lead, we suspect there might be an issue in our assembly code.C code to call the assembly routine:NASM 2.15 assembler and GCC 11.2.0 compiler on the x86-64 architecture with Ubuntu 22.04 OS, the output array contains the numbers in the original order instead of being sorted.using RCX and RDX? Are there any issues with how we’re modifying the array in the Shellsort routine?
