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

```asm
<main>:
  endbr64
  push   %r14
  mov    $0xd,%esi
  push   %r13
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  push   %rbx
  sub    $0x40,%rsp
  movdqa D7(%rip),%xmm0
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r14
  lea    0x4(%rsp),%rbx
  movl   $0x5,0x30(%rsp)
  movaps %xmm0,(%rsp)
  movdqa D24(%rip),%xmm0
  mov    %r14,%rdi
  movaps %xmm0,0x10(%rsp)
  movdqa D9(%rip),%xmm0
  movaps %xmm0,0x20(%rsp)
  call   <ergodic@plt>
  jmp    L379
  nopl   0x0(%rax,%rax,1)
L125:
  mov    %r12d,%ebp
  test   %r12,%r12
  je     L217
  mov    0x4(%rsp),%eax
  cmp    %eax,(%rbx)
  jl     L155
L283:
  cmp    $0x1,%ebp
  je     L217
  mov    0x8(%rsp),%eax
  cmp    %eax,(%rbx)
  jl     L40
L370:
  cmp    $0x2,%ebp
  je     L217
  mov    0xc(%rsp),%eax
  cmp    %eax,(%rbx)
  jl     L161
L107:
  cmp    $0x3,%ebp
  je     L217
  mov    0x10(%rsp),%eax
  cmp    %eax,(%rbx)
  jl     L352
L85:
  cmp    $0x4,%ebp
  je     L217
  mov    0x14(%rsp),%eax
  cmp    %eax,(%rbx)
  jl     L239
L124:
  cmp    $0x5,%ebp
  je     L217
  mov    0x18(%rsp),%eax
  cmp    %eax,(%rbx)
  jl     L209
L198:
  cmp    $0x6,%ebp
  je     L217
  mov    0x1c(%rsp),%eax
  cmp    %eax,(%rbx)
  jl     L143
L25:
  cmp    $0x7,%ebp
  je     L217
  mov    0x20(%rsp),%eax
  cmp    %eax,(%rbx)
  jl     L91
L186:
  cmp    $0x8,%ebp
  je     L217
  mov    0x24(%rsp),%eax
  cmp    %eax,(%rbx)
  jl     L51
L341:
  cmp    $0x9,%ebp
  je     L217
  mov    0x28(%rsp),%eax
  cmp    %eax,(%rbx)
  jl     L235
L108:
  cmp    $0xb,%ebp
  jne    L217
  mov    0x2c(%rsp),%eax
  cmp    %eax,(%rbx)
  jl     L16
L217:
  add    $0x1,%r12
  add    $0x4,%rbx
  cmp    $0xc,%r12
  je     L327
L379:
  mov    (%rsp),%eax
  lea    0x1(%r12),%r13d
  cmp    %eax,(%rbx)
  jge    L125
  xor    %edx,%edx
  mov    %r13d,%esi
  mov    %r14,%rdi
  call   <exchange@plt>
  jmp    L125
  nopw   0x0(%rax,%rax,1)
L155:
  mov    $0x1,%edx
  mov    %r13d,%esi
  mov    %r14,%rdi
  call   <exchange@plt>
  jmp    L283
  nopl   (%rax)
L40:
  mov    $0x2,%edx
  mov    %r13d,%esi
  mov    %r14,%rdi
  call   <exchange@plt>
  jmp    L370
  nopl   (%rax)
L161:
  mov    $0x3,%edx
  mov    %r13d,%esi
  mov    %r14,%rdi
  call   <exchange@plt>
  jmp    L107
  nopl   (%rax)
L352:
  mov    $0x4,%edx
  mov    %r13d,%esi
  mov    %r14,%rdi
  call   <exchange@plt>
  jmp    L85
  nopl   (%rax)
L239:
  mov    $0x5,%edx
  mov    %r13d,%esi
  mov    %r14,%rdi
  call   <exchange@plt>
  jmp    L124
  nopl   (%rax)
L209:
  mov    $0x6,%edx
  mov    %r13d,%esi
  mov    %r14,%rdi
  call   <exchange@plt>
  jmp    L198
  nopl   (%rax)
L143:
  mov    $0x7,%edx
  mov    %r13d,%esi
  mov    %r14,%rdi
  call   <exchange@plt>
  jmp    L25
  nopl   (%rax)
L91:
  mov    $0x8,%edx
  mov    %r13d,%esi
  mov    %r14,%rdi
  call   <exchange@plt>
  jmp    L186
  nopl   (%rax)
L51:
  mov    $0x9,%edx
  mov    %r13d,%esi
  mov    %r14,%rdi
  call   <exchange@plt>
  jmp    L341
  nopl   (%rax)
L235:
  mov    $0xa,%edx
  mov    %r13d,%esi
  mov    %r14,%rdi
  call   <exchange@plt>
  jmp    L108
L16:
  mov    $0xb,%edx
  mov    %r13d,%esi
  mov    %r14,%rdi
  add    $0x1,%r12
  call   <exchange@plt>
  add    $0x4,%rbx
  cmp    $0xc,%r12
  jne    L379
L327:
  mov    $0xd,%esi
  mov    %r14,%rdi
  call   <ergodic@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L14
  add    $0x40,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L14:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D7
type_infered: byte[16]
name: parse_data
arguments: tag: D24
type_infered: byte[16]
name: parse_data
arguments: tag: D9
type_infered: byte[16]

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

tool: {"D24": [0x05,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x04,0x00,0x00,0x00]}

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

assistant: ```c
int main(int argc, char **argv) {
  int arr[] = {3, 2, 1, 2, 5, 5, 6, 4, 3, 2, 3, 4, 5};
  int n = sizeof(arr) / sizeof(int);
  ergodic(arr, n);
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < i; j++) {
      if (arr[i] < arr[j]) {
        exchange(arr, i, j);
      }
    }
  }
  ergodic(arr, n);
  return 0;
}
```