user: What is the c source code of the assembly code below:

```asm
<sort>:
  endbr64
  lea    -0x1(%rsi),%r11d
  test   %r11d,%r11d
  jle    L12
  push   %r15
  movdqa D11(%rip),%xmm5
  mov    %rdi,%r9
  mov    %esi,%r8d
  push   %r14
  add    $0x4,%rdi
  xor    %ecx,%ecx
  pxor   %xmm8,%xmm8
  push   %r13
  push   %r12
  push   %rbp
  mov    %r11d,%ebp
  push   %rbx
  nopw   0x0(%rax,%rax,1)
L152:
  mov    %ecx,%ebx
  add    $0x1,%ecx
  lea    -0x1(%rbp),%r10d
  cmp    %ecx,%r8d
  jle    L10
  lea    -0x1(%rbp),%r10d
  mov    -0x4(%rdi),%esi
  cmp    $0x6,%r10d
  jbe    L9
  movd   %ebx,%xmm7
  lea    0x2(%rbx),%eax
  lea    0x3(%rbx),%edx
  movd   %edx,%xmm0
  pshufd $0x0,%xmm7,%xmm4
  lea    0x4(%rbx),%edx
  movd   %eax,%xmm7
  movd   %edx,%xmm3
  movd   %ecx,%xmm2
  mov    %ebp,%eax
  punpckldq %xmm3,%xmm0
  shr    $0x2,%eax
  movd   %esi,%xmm3
  punpckldq %xmm7,%xmm2
  sub    $0x1,%eax
  pshufd $0x0,%xmm3,%xmm9
  movdqa D9(%rip),%xmm3
  punpcklqdq %xmm0,%xmm2
  shl    $0x4,%rax
  pxor   %xmm1,%xmm1
  lea    0x10(%rdi,%rax,1),%rdx
  mov    %rdi,%rax
  nopl   0x0(%rax,%rax,1)
L138:
  movdqu (%rax),%xmm6
  movdqa %xmm9,%xmm0
  movdqa %xmm2,%xmm7
  add    $0x10,%rax
  paddd  %xmm5,%xmm2
  pcmpgtd %xmm6,%xmm0
  pcmpeqd %xmm8,%xmm0
  movdqa %xmm0,%xmm6
  pand   %xmm0,%xmm4
  pand   %xmm0,%xmm1
  pandn  %xmm7,%xmm6
  pandn  %xmm3,%xmm0
  paddd  %xmm5,%xmm3
  por    %xmm6,%xmm4
  por    %xmm0,%xmm1
  cmp    %rax,%rdx
  jne    L138
  pshufd $0x55,%xmm1,%xmm0
  movd   %xmm1,%r13d
  movd   %xmm0,%edx
  movd   %xmm0,%r12d
  movdqa %xmm1,%xmm0
  cmp    %edx,%r13d
  punpckhdq %xmm1,%xmm0
  cmovae %r13d,%r12d
  movd   %xmm0,%r14d
  cmp    %r14d,%r12d
  jb     L83
  pshufd $0x55,%xmm4,%xmm0
  cmp    %edx,%r13d
  movd   %xmm4,%edx
  movd   %xmm0,%eax
  cmovb  %eax,%edx
  mov    %edx,%r13d
L102:
  cmp    %r14d,%r12d
  pshufd $0xff,%xmm1,%xmm1
  pshufd $0xff,%xmm4,%xmm0
  cmovb  %r14d,%r12d
  movd   %xmm1,%eax
  cmp    %eax,%r12d
  movd   %xmm0,%eax
  mov    %ebp,%r12d
  cmovae %r13d,%eax
  and    $0xfffffffc,%r12d
  lea    (%r12,%rcx,1),%edx
  cmp    %ebp,%r12d
  je     L47
L124:
  movslq %edx,%r12
  cmp    %esi,(%r9,%r12,4)
  lea    0x0(,%r12,4),%rbp
  lea    0x1(%rdx),%r12d
  cmovl  %edx,%eax
  cmp    %r8d,%r12d
  jge    L47
  cmp    0x4(%r9,%rbp,1),%esi
  cmovg  %r12d,%eax
  lea    0x2(%rdx),%r12d
  cmp    %r12d,%r8d
  jle    L47
  cmp    0x8(%r9,%rbp,1),%esi
  cmovg  %r12d,%eax
  lea    0x3(%rdx),%r12d
  cmp    %r12d,%r8d
  jle    L47
  cmp    0xc(%r9,%rbp,1),%esi
  cmovg  %r12d,%eax
  lea    0x4(%rdx),%r12d
  cmp    %r12d,%r8d
  jle    L47
  cmp    0x10(%r9,%rbp,1),%esi
  cmovg  %r12d,%eax
  lea    0x5(%rdx),%r12d
  cmp    %r12d,%r8d
  jle    L47
  cmp    0x14(%r9,%rbp,1),%esi
  cmovg  %r12d,%eax
  add    $0x6,%edx
  cmp    %edx,%r8d
  jle    L47
  cmp    0x18(%r9,%rbp,1),%esi
  cmovg  %edx,%eax
L47:
  cmp    %eax,%ebx
  jle    L10
  cltq
  lea    (%r9,%rax,4),%rax
  mov    (%rax),%edx
  mov    %edx,-0x4(%rdi)
  mov    %esi,(%rax)
L10:
  mov    %r10d,%ebp
  add    $0x4,%rdi
  cmp    %r11d,%ecx
  jne    L152
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L83:
  movdqa %xmm4,%xmm0
  punpckhdq %xmm4,%xmm0
  movd   %xmm0,%r13d
  jmp    L102
L9:
  mov    %ecx,%edx
  mov    %ebx,%eax
  jmp    L124
L12:
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D11
type_infered: byte[16]
name: unpack_data
arguments: data_tag: D9
type_infered: byte[16]

tool: {"D11": [0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00]}

tool: {"D9": [0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x04,0x00,0x00,0x00]}

assistant: ```c
void sort(int a[], int n) {
  for (int current = 0; current < n - 1; current++) {
    int lowestindex = current;
    for (int j = current + 1; j < n; j++) {
      if (a[j] < a[current]) {
        lowestindex = j;
      }
    }
    if (lowestindex < current) {
      int temp = a[current];
      a[current] = a[lowestindex];
      a[lowestindex] = temp;
    }
  }
}
```