user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x3c(%rbp)
  jmp    L19
L37:
  lea    D37(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x30(%rbp),%rdx
  mov    -0x3c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D57(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  addl   $0x1,-0x3c(%rbp)
L19:
  cmpl   $0x9,-0x3c(%rbp)
  jle    L37
  lea    D41(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x3c(%rbp)
  jmp    L33
L7:
  mov    -0x3c(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x3c(%rbp)
L33:
  cmpl   $0x9,-0x3c(%rbp)
  jle    L7
  movl   $0x0,-0x38(%rbp)
  jmp    L31
L16:
  movl   $0x0,-0x3c(%rbp)
  jmp    L98
L44:
  mov    -0x3c(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%edx
  mov    -0x3c(%rbp),%eax
  add    $0x1,%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  cmp    %eax,%edx
  jle    L93
  mov    -0x3c(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x3c(%rbp),%eax
  add    $0x1,%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%edx
  mov    -0x3c(%rbp),%eax
  cltq
  mov    %edx,-0x30(%rbp,%rax,4)
  mov    -0x3c(%rbp),%eax
  add    $0x1,%eax
  cltq
  mov    -0x34(%rbp),%edx
  mov    %edx,-0x30(%rbp,%rax,4)
L93:
  addl   $0x1,-0x3c(%rbp)
L98:
  cmpl   $0x8,-0x3c(%rbp)
  jle    L44
  addl   $0x1,-0x38(%rbp)
L31:
  cmpl   $0x8,-0x38(%rbp)
  jle    L16
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x3c(%rbp)
  jmp    L22
L12:
  mov    -0x3c(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x3c(%rbp)
L22:
  cmpl   $0x9,-0x3c(%rbp)
  jle    L12
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L107
  call   <__stack_chk_fail@plt>
L107:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D37
type: string
name: parse_data
arguments: data_tag: D57
type: string
name: parse_data
arguments: data_tag: D41
type: string
name: parse_data
arguments: data_tag: D34
type: string
name: parse_data
arguments: data_tag: D11
type: string

tool: D37: Enter a number --> 

tool: D57: %d

tool: D41: Numbers unsorted :

tool: D34: %6d

tool: D11: Numbers sorted :

assistant: ```c
int main() {
  int nums[10], i, j, temp;
  for (i = 0; i < 10; i++) {
    printf("Enter a number --> \n");
    scanf("%d", &nums[i]);
  }
  printf("Numbers unsorted :\n");
  for (i = 0; i < 10; i++) {
    printf("%6d", nums[i]);
    printf("\n");
  }
  for (j = 0; j < 10 - 1; j++)
    for (i = 0; i < 10 - 1; i++) {
      if (nums[i] > nums[i + 1]) {
        temp = nums[i];
        nums[i] = nums[i + 1];
        nums[i + 1] = temp;
      }
    }
  printf("Numbers sorted :\n");
  for (i = 0; i < 10; i++) {
    printf("%6d", nums[i]);
    printf("\n");
  }
  return 0;
}
```