user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x40(%rbp)
  movq   $0x0,-0x38(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movl   $0x0,-0x18(%rbp)
  movl   $0x1,-0x40(%rbp)
  movl   $0x4,-0x3c(%rbp)
  movl   $0x6,-0x38(%rbp)
  movl   $0x9,-0x34(%rbp)
  movl   $0xd,-0x30(%rbp)
  movl   $0x10,-0x2c(%rbp)
  movl   $0x13,-0x28(%rbp)
  movl   $0x1c,-0x24(%rbp)
  movl   $0x28,-0x20(%rbp)
  movl   $0x64,-0x1c(%rbp)
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x50(%rbp)
  jmp    L80
L47:
  mov    -0x50(%rbp),%eax
  cltq
  mov    -0x40(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x50(%rbp)
L80:
  cmpl   $0x9,-0x50(%rbp)
  jle    L47
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x58(%rbp),%rax
  mov    %rax,%rsi
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0x48(%rbp)
  mov    -0x58(%rbp),%eax
  cmp    %eax,-0x48(%rbp)
  jge    L10
  mov    -0x58(%rbp),%eax
  mov    %eax,-0x18(%rbp)
  jmp    L0
L10:
  movl   $0x0,-0x50(%rbp)
  jmp    L62
L100:
  mov    -0x50(%rbp),%eax
  cltq
  mov    -0x40(%rbp,%rax,4),%edx
  mov    -0x58(%rbp),%eax
  cmp    %eax,%edx
  jle    L109
  mov    -0x50(%rbp),%eax
  cltq
  mov    -0x40(%rbp,%rax,4),%eax
  mov    %eax,-0x54(%rbp)
  mov    -0x58(%rbp),%edx
  mov    -0x50(%rbp),%eax
  cltq
  mov    %edx,-0x40(%rbp,%rax,4)
  mov    -0x50(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x4c(%rbp)
  jmp    L39
L48:
  mov    -0x4c(%rbp),%eax
  cltq
  mov    -0x40(%rbp,%rax,4),%eax
  mov    %eax,-0x44(%rbp)
  mov    -0x4c(%rbp),%eax
  cltq
  mov    -0x54(%rbp),%edx
  mov    %edx,-0x40(%rbp,%rax,4)
  mov    -0x44(%rbp),%eax
  mov    %eax,-0x54(%rbp)
  addl   $0x1,-0x4c(%rbp)
L39:
  cmpl   $0xa,-0x4c(%rbp)
  jle    L48
  jmp    L0
L109:
  addl   $0x1,-0x50(%rbp)
L62:
  cmpl   $0x9,-0x50(%rbp)
  jle    L100
L0:
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x50(%rbp)
  jmp    L66
L16:
  mov    -0x50(%rbp),%eax
  cltq
  mov    -0x40(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x50(%rbp)
L66:
  cmpl   $0xa,-0x50(%rbp)
  jle    L16
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L96
  call   <__stack_chk_fail@plt>
L96:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D26
data_type: string
name: retrieve_data
arguments: data_label: D49
data_type: string
name: retrieve_data
arguments: data_label: D28
data_type: string
name: retrieve_data
arguments: data_label: D14
data_type: string
name: retrieve_data
arguments: data_label: D13
data_type: string

tool: D26: array a:

tool: D49: %5d

tool: D28: insert data:

tool: D14: %d

tool: D13: Now array a:

assistant: ```c
int main() {
  int a[11] = {1, 4, 6, 9, 13, 16, 19, 28, 40, 100};
  int temp1, temp2, number, end, i, j;
  printf("array a:\n");
  for (i = 0; i < 10; i++)
    printf("%5d", a[i]);
  printf("\n");
  printf("insert data:");
  scanf("%d", &number);
  end = a[9];
  if (number > end)
    a[10] = number;
  else {
    for (i = 0; i < 10; i++) {
      if (a[i] > number) {
        temp1 = a[i];
        a[i] = number;
        for (j = i + 1; j < 11; j++) {
          temp2 = a[j];
          a[j] = temp1;
          temp1 = temp2;
        }
        break;
      }
    }
  }
  printf("Now array a:\n");
  for (i = 0; i < 11; i++)
    printf("%5d", a[i]);
  printf("\n");
  return 0;
}
```