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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  lea    D37(%rip),%r14
  push   %r13
  lea    D7(%rip),%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  lea    0x20(%rsp),%rbx
  lea    0x48(%rsp),%rbp
  mov    %rbx,%r12
  nopl   (%rax)
L231:
  mov    %r14,%rdi
  call   <puts@plt>
  mov    %r12,%rsi
  mov    %r13,%rdi
  add    $0x4,%r12
  call   <scanf@plt>
  cmp    %r12,%rbp
  jne    L231
  lea    D17(%rip),%rdi
  mov    %rbx,%r13
  lea    D5(%rip),%r12
  call   <puts@plt>
  nopw   0x0(%rax,%rax,1)
L137:
  mov    0x0(%r13),%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x4,%r13
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  cmp    %r13,%rbp
  jne    L137
  xor    %eax,%eax
  mov    %rbp,0x10(%rsp)
  mov    0x24(%rsp),%edi
  xor    %ebp,%ebp
  mov    %rbx,0x18(%rsp)
  mov    0x20(%rsp),%r15d
  mov    $0x9,%r13d
  mov    %eax,%ebx
  movb   $0x0,0xe(%rsp)
  mov    0x28(%rsp),%r8d
  movb   $0x0,0x8(%rsp)
  mov    0x2c(%rsp),%r9d
  movb   $0x0,0x9(%rsp)
  mov    0x30(%rsp),%r10d
  movb   $0x0,0xc(%rsp)
  mov    0x34(%rsp),%r11d
  movb   $0x0,0xa(%rsp)
  mov    0x38(%rsp),%esi
  mov    0x3c(%rsp),%ecx
  mov    0x40(%rsp),%edx
  movb   $0x0,0xd(%rsp)
  movb   $0x0,0xb(%rsp)
  mov    0x44(%rsp),%r14d
  movb   $0x0,0xf(%rsp)
  jmp    L161
  nopw   0x0(%rax,%rax,1)
L257:
  mov    %eax,%edi
  mov    %r8d,%eax
  cmp    %eax,%r9d
  jl     L47
L99:
  mov    %eax,%r8d
  mov    %r9d,%eax
  cmp    %eax,%r10d
  jl     L273
L226:
  mov    %eax,%r9d
  mov    %r10d,%eax
  cmp    %eax,%r11d
  jl     L221
L259:
  mov    %eax,%r10d
  mov    %r11d,%eax
  cmp    %eax,%esi
  jl     L72
L301:
  mov    %eax,%r11d
  mov    %esi,%eax
  cmp    %eax,%ecx
  jl     L225
L297:
  mov    %eax,%esi
  mov    %ecx,%eax
  cmp    %eax,%edx
  jl     L24
L279:
  mov    %eax,%ecx
  mov    %edx,%eax
L120:
  mov    %eax,%edx
  cmp    %eax,%r14d
  jge    L86
  movb   $0x1,0xe(%rsp)
  mov    %r14d,%edx
  mov    $0x1,%ebp
  mov    %eax,%r14d
L86:
  sub    $0x1,%r13d
  je     L100
L161:
  mov    %edi,%eax
  cmp    %r15d,%edi
  jge    L54
  movb   $0x1,0xb(%rsp)
  mov    %r15d,%eax
  mov    %edi,%r15d
  movb   $0x1,0xf(%rsp)
L54:
  cmp    %eax,%r8d
  jge    L257
  movb   $0x1,0xd(%rsp)
  mov    %r8d,%edi
  movb   $0x1,0xb(%rsp)
  cmp    %eax,%r9d
  jge    L99
L47:
  movb   $0x1,0xa(%rsp)
  mov    %r9d,%r8d
  movb   $0x1,0xd(%rsp)
  cmp    %eax,%r10d
  jge    L226
L273:
  movb   $0x1,0xc(%rsp)
  mov    %r10d,%r9d
  movb   $0x1,0xa(%rsp)
  cmp    %eax,%r11d
  jge    L259
L221:
  movb   $0x1,0x9(%rsp)
  mov    %r11d,%r10d
  movb   $0x1,0xc(%rsp)
  cmp    %eax,%esi
  jge    L301
L72:
  movb   $0x1,0x8(%rsp)
  mov    %esi,%r11d
  movb   $0x1,0x9(%rsp)
  cmp    %eax,%ecx
  jge    L297
L225:
  movb   $0x1,0x8(%rsp)
  mov    %ecx,%esi
  mov    $0x1,%ebx
  cmp    %eax,%edx
  jge    L279
L24:
  mov    %edx,%ecx
  mov    $0x1,%ebp
  mov    $0x1,%ebx
  jmp    L120
  nopl   0x0(%rax)
L100:
  cmpb   $0x0,0xe(%rsp)
  mov    %ebx,%r13d
  mov    0x18(%rsp),%rbx
  mov    %bpl,0x18(%rsp)
  mov    0x10(%rsp),%rbp
  je     L298
  mov    %r14d,0x44(%rsp)
L298:
  cmpb   $0x0,0x18(%rsp)
  je     L168
  mov    %edx,0x40(%rsp)
L168:
  test   %r13b,%r13b
  je     L111
  mov    %ecx,0x3c(%rsp)
L111:
  cmpb   $0x0,0x8(%rsp)
  je     L210
  mov    %esi,0x38(%rsp)
L210:
  cmpb   $0x0,0x9(%rsp)
  je     L288
  mov    %r11d,0x34(%rsp)
L288:
  cmpb   $0x0,0xc(%rsp)
  je     L255
  mov    %r10d,0x30(%rsp)
L255:
  cmpb   $0x0,0xa(%rsp)
  je     L243
  mov    %r9d,0x2c(%rsp)
L243:
  cmpb   $0x0,0xd(%rsp)
  je     L228
  mov    %r8d,0x28(%rsp)
L228:
  cmpb   $0x0,0xb(%rsp)
  je     L21
  mov    %edi,0x24(%rsp)
L21:
  cmpb   $0x0,0xf(%rsp)
  je     L11
  mov    %r15d,0x20(%rsp)
L11:
  lea    D35(%rip),%rdi
  call   <puts@plt>
L207:
  mov    (%rbx),%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  cmp    %rbx,%rbp
  jne    L207
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L192
  add    $0x58,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L192:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D37
datatype: string
name: unpack_data
arguments: data_label: D7
datatype: string
name: unpack_data
arguments: data_label: D17
datatype: string
name: unpack_data
arguments: data_label: D5
datatype: string
name: unpack_data
arguments: data_label: D35
datatype: string

tool: D37: Enter a number --> 

tool: D7: %d

tool: D17: Numbers unsorted :

tool: D5: %6d

tool: D35: 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;
}
```