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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x8,-0x30(%rbp)
  movl   $0x1b,-0x2c(%rbp)
  movl   $0x1e,-0x28(%rbp)
  movl   $0x4,-0x24(%rbp)
  movl   $0x5,-0x20(%rbp)
  movl   $0x2,-0x1c(%rbp)
  movl   $0x11,-0x18(%rbp)
  movl   $0x13,-0x14(%rbp)
  movl   $0x18,-0x10(%rbp)
  movl   $0x23,-0xc(%rbp)
  movl   $0xa,-0x38(%rbp)
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x48(%rbp)
  jmp    L87
L25:
  mov    -0x48(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D33(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x48(%rbp)
L87:
  mov    -0x48(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jl     L25
  movl   $0x0,-0x48(%rbp)
  jmp    L49
L89:
  mov    -0x48(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  mov    %eax,-0x40(%rbp)
  mov    -0x48(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x44(%rbp)
  jmp    L50
L2:
  mov    -0x44(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  cmp    %eax,-0x40(%rbp)
  jle    L20
  mov    -0x44(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  mov    %eax,-0x40(%rbp)
  mov    -0x44(%rbp),%eax
  mov    %eax,-0x3c(%rbp)
L20:
  addl   $0x1,-0x44(%rbp)
L50:
  mov    -0x44(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jl     L2
  mov    -0x3c(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x48(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%edx
  mov    -0x3c(%rbp),%eax
  cltq
  mov    %edx,-0x30(%rbp,%rax,4)
  mov    -0x48(%rbp),%eax
  cltq
  mov    -0x34(%rbp),%edx
  mov    %edx,-0x30(%rbp,%rax,4)
  addl   $0x1,-0x48(%rbp)
L49:
  mov    -0x38(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x48(%rbp)
  jl     L89
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x48(%rbp)
  jmp    L94
L77:
  mov    -0x48(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D33(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x48(%rbp)
L94:
  mov    -0x48(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jl     L77
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L0
  call   <__stack_chk_fail@plt>
L0:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D21
datatype: string
name: parse_data
arguments: data_tag: D33
datatype: string
name: parse_data
arguments: data_tag: D5
datatype: string

tool: D21: Order before:

tool: D33: %5d

tool: D5: 
Order after:

assistant: ```c
void main() {
  int orders[10] = {8, 27, 30, 4, 5, 2, 17, 19, 24, 35};
  int i, j, amount = 10, min, ex, position;
  printf("Order before:");
  for (i = 0; i < amount; i++) {
    printf("%5d", orders[i]);
  }
  for (i = 0; i < amount - 1; i++) {
    min = orders[i];
    for (j = i + 1; j < amount; j++) {
      if (orders[j] < min) {
        min = orders[j];
        position = j;
      }
    }
    ex = orders[position];
    orders[position] = orders[i];
    orders[i] = ex;
  }
  printf("\nOrder after:");
  for (i = 0; i < amount; i++) {
    printf("%5d", orders[i]);
  }
}
```