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

```asm
<main>:
  endbr64
  push   %r15
  lea    D43(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x118,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x108(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x2c(%rsp),%rsi
  lea    D17(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D45(%rip),%rdi
  call   <puts@plt>
  mov    0x2c(%rsp),%esi
  test   %esi,%esi
  jle    L113
  lea    0x60(%rsp),%rbx
  xor    %r14d,%r14d
  lea    D1(%rip),%r13
  lea    D7(%rip),%r12
  lea    0x30(%rsp),%rbp
  cs nopw 0x0(%rax,%rax,1)
L29:
  lea    0x1(%r14),%esi
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0xc(%rbx),%rdx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x10,%rbx
  call   <scanf@plt>
  mov    -0x4(%rbx),%ecx
  mov    -0x10(%rbx),%edx
  mov    %ecx,%esi
  sub    $0x1,%ecx
  sub    %edx,%esi
  mov    %ecx,-0x8(%rbx)
  mov    %esi,%eax
  shr    $0x1f,%eax
  add    %esi,%eax
  sar    %eax
  add    %edx,%eax
  add    $0x1,%edx
  mov    %eax,0x0(%rbp,%r14,4)
  add    $0x1,%r14
  mov    %edx,-0xc(%rbx)
  cmp    %r14d,0x2c(%rsp)
  jg     L29
L113:
  lea    D64(%rip),%rdi
  xor    %eax,%eax
  xor    %ebx,%ebx
  call   <printf@plt>
  mov    0x2c(%rsp),%ecx
  lea    D8(%rip),%rbp
  test   %ecx,%ecx
  jle    L101
  nopl   0x0(%rax,%rax,1)
L95:
  add    $0x1,%ebx
  xor    %eax,%eax
  mov    %rbp,%rdi
  mov    %ebx,%esi
  call   <printf@plt>
  cmp    0x2c(%rsp),%ebx
  jl     L95
L101:
  mov    $0xa,%edi
  lea    D15(%rip),%rbx
  xor    %r12d,%r12d
  call   <putchar@plt>
  mov    $0x1,%esi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x2c(%rsp),%edx
  lea    0x30(%rsp),%rbp
  test   %edx,%edx
  jle    L137
  nopl   (%rax)
L134:
  mov    0x0(%rbp,%r12,4),%esi
  mov    %rbx,%rdi
  xor    %eax,%eax
  add    $0x1,%r12
  call   <printf@plt>
  cmp    %r12d,0x2c(%rsp)
  jg     L134
L137:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x2c(%rsp),%eax
  test   %eax,%eax
  jle    L7
  lea    0x70(%rsp),%rax
  mov    $0x1,%r14d
  lea    0x30(%rsp),%rbp
  mov    %rax,0x8(%rsp)
  lea    0x34(%rsp),%rax
  mov    %rax,0x18(%rsp)
  nop
L21:
  lea    -0x2(,%r14,4),%eax
  mov    0x18(%rsp),%rcx
  mov    %r14d,0x14(%rsp)
  mov    %eax,0x10(%rsp)
  mov    0x8(%rsp),%rax
  lea    -0x10(%rax),%r13
  lea    -0x2(%r14),%eax
  lea    (%rcx,%rax,4),%r12
L65:
  mov    0x10(%rsp),%eax
  mov    %rbx,%rdi
  mov    %rbp,%r15
  mov    %eax,%esi
  add    $0x1,%eax
  mov    %eax,0x10(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  cmpl   $0x1,0x14(%rsp)
  je     L2
  nopl   0x0(%rax,%rax,1)
L121:
  mov    (%r15),%esi
  mov    %rbx,%rdi
  xor    %eax,%eax
  add    $0x4,%r15
  call   <printf@plt>
  cmp    %r12,%r15
  jne    L121
L2:
  mov    0x0(%r13),%esi
  mov    %rbx,%rdi
  xor    %eax,%eax
  mov    %r14,%r15
  call   <printf@plt>
  cmp    %r14d,0x2c(%rsp)
  jle    L24
  xchg   %ax,%ax
L53:
  mov    0x0(%rbp,%r15,4),%esi
  mov    %rbx,%rdi
  xor    %eax,%eax
  add    $0x1,%r15
  call   <printf@plt>
  cmp    %r15d,0x2c(%rsp)
  jg     L53
L24:
  mov    $0xa,%edi
  add    $0x4,%r13
  call   <putchar@plt>
  cmp    0x8(%rsp),%r13
  jne    L65
  add    $0x1,%r14
  addq   $0x10,0x8(%rsp)
  lea    -0x1(%r14),%eax
  cmp    %eax,0x2c(%rsp)
  jg     L21
L7:
  mov    0x108(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L43
  add    $0x118,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L43:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D43
type_infered: string
name: retrieve_data
arguments: data_tag: D17
type_infered: string
name: retrieve_data
arguments: data_tag: D45
type_infered: string
name: retrieve_data
arguments: data_tag: D1
type_infered: string
name: retrieve_data
arguments: data_tag: D7
type_infered: string
name: retrieve_data
arguments: data_tag: D64
type_infered: string
name: retrieve_data
arguments: data_tag: D8
type_infered: string
name: retrieve_data
arguments: data_tag: D15
type_infered: string

tool: D43: Enter number of variables: 

tool: D17: %d

tool: D45: Enter range of each variable: (min max)

tool: D1: Var %d:	

tool: D7: %d %d

tool: D64: 
Id	

tool: D8: Var %d	

tool: D15: %d	

assistant: ```c
int main() {
  int n, i, j, k, c = 1, range[10][4], nominal[10];
  printf("Enter number of variables: ");
  scanf("%d", &n);
  printf("Enter range of each variable: (min max)\n");
  for (i = 0; i < n; i++) {
    printf("Var %d:\t", i + 1);
    scanf("%d %d", &range[i][0], &range[i][3]);
    nominal[i] = (range[i][3] - range[i][0]) / 2 + range[i][0];
    range[i][1] = range[i][0] + 1;
    range[i][2] = range[i][3] - 1;
  }
  printf("\nId\t");
  for (i = 0; i < n; i++)
    printf("Var %d\t", i + 1);
  printf("\n");
  printf("%d\t", c++);
  for (i = 0; i < n; i++)
    printf("%d\t", nominal[i]);
  printf("\n");
  for (i = 0; i < n; i++) {
    for (k = 0; k < 4; k++) {
      printf("%d\t", c++);
      for (j = 0; j < i; j++) {
        printf("%d\t", nominal[j]);
      }
      printf("%d\t", range[i][k]);
      for (j = i + 1; j < n; j++) {
        printf("%d\t", nominal[j]);
      }
      printf("\n");
    }
  }
}
```