user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<main>:
  endbr64
  push   %r15
  lea    D72(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x168,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x158(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x2c(%rsp),%rsi
  lea    D27(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D24(%rip),%rdi
  call   <puts@plt>
  mov    0x2c(%rsp),%esi
  test   %esi,%esi
  jle    L66
  lea    0x64(%rsp),%rbx
  xor    %r14d,%r14d
  lea    D11(%rip),%r13
  lea    D51(%rip),%r12
  lea    0x30(%rsp),%rbp
  nopw   0x0(%rax,%rax,1)
L71:
  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    $0x18,%rbx
  call   <scanf@plt>
  mov    -0xc(%rbx),%ecx
  mov    -0x18(%rbx),%edx
  mov    %ecx,%esi
  sub    %edx,%esi
  mov    %esi,%eax
  shr    $0x1f,%eax
  add    %esi,%eax
  sar    %eax
  add    %edx,%eax
  mov    %eax,0x0(%rbp,%r14,4)
  lea    -0x1(%rdx),%eax
  add    $0x1,%edx
  add    $0x1,%r14
  mov    %eax,-0x1c(%rbx)
  lea    -0x1(%rcx),%eax
  add    $0x1,%ecx
  mov    %edx,-0x14(%rbx)
  mov    %eax,-0x10(%rbx)
  mov    %ecx,-0x8(%rbx)
  cmp    %r14d,0x2c(%rsp)
  jg     L71
L66:
  lea    D79(%rip),%rdi
  xor    %eax,%eax
  xor    %ebx,%ebx
  call   <printf@plt>
  mov    0x2c(%rsp),%ecx
  lea    D12(%rip),%rbp
  test   %ecx,%ecx
  jle    L108
  nop
L138:
  mov    %ebx,%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x1,%ebx
  call   <printf@plt>
  cmp    %ebx,0x2c(%rsp)
  jg     L138
L108:
  mov    $0xa,%edi
  lea    D56(%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    L80
  nopl   (%rax)
L7:
  mov    0x0(%rbp,%r12,4),%esi
  mov    %rbx,%rdi
  xor    %eax,%eax
  add    $0x1,%r12
  call   <printf@plt>
  cmp    %r12d,0x2c(%rsp)
  jg     L7
L80:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x2c(%rsp),%eax
  test   %eax,%eax
  jle    L63
  lea    0x78(%rsp),%rax
  mov    $0x1,%r14d
  lea    0x30(%rsp),%rbp
  mov    %rax,0x8(%rsp)
  lea    0x34(%rsp),%rax
  mov    %rax,0x18(%rsp)
  nopw   0x0(%rax,%rax,1)
L109:
  lea    (%r14,%r14,2),%eax
  mov    0x18(%rsp),%rcx
  mov    %r14d,0x14(%rsp)
  lea    -0x4(%rax,%rax,1),%eax
  mov    %eax,0x10(%rsp)
  mov    0x8(%rsp),%rax
  lea    -0x18(%rax),%r13
  lea    -0x2(%r14),%eax
  lea    (%rcx,%rax,4),%r12
  nopw   0x0(%rax,%rax,1)
L28:
  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     L91
  nopl   0x0(%rax)
L11:
  mov    (%r15),%esi
  mov    %rbx,%rdi
  xor    %eax,%eax
  add    $0x4,%r15
  call   <printf@plt>
  cmp    %r15,%r12
  jne    L11
L91:
  mov    0x0(%r13),%esi
  mov    %rbx,%rdi
  xor    %eax,%eax
  mov    %r14,%r15
  call   <printf@plt>
  cmp    %r14d,0x2c(%rsp)
  jle    L2
  cs nopw 0x0(%rax,%rax,1)
L99:
  mov    0x0(%rbp,%r15,4),%esi
  mov    %rbx,%rdi
  xor    %eax,%eax
  add    $0x1,%r15
  call   <printf@plt>
  cmp    %r15d,0x2c(%rsp)
  jg     L99
L2:
  mov    $0xa,%edi
  add    $0x4,%r13
  call   <putchar@plt>
  cmp    0x8(%rsp),%r13
  jne    L28
  add    $0x1,%r14
  addq   $0x18,0x8(%rsp)
  lea    -0x1(%r14),%eax
  cmp    %eax,0x2c(%rsp)
  jg     L109
L63:
  mov    0x158(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L95
  add    $0x168,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L95:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D72
data_type: string
name: extract_symbolic_data
arguments: label: D27
data_type: string
name: extract_symbolic_data
arguments: label: D24
data_type: string
name: extract_symbolic_data
arguments: label: D11
data_type: string
name: extract_symbolic_data
arguments: label: D51
data_type: string
name: extract_symbolic_data
arguments: label: D79
data_type: string
name: extract_symbolic_data
arguments: label: D12
data_type: string
name: extract_symbolic_data
arguments: label: D56
data_type: string

tool: D72: Enter number of variables: 

tool: D27: %d

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

tool: D11: Var %d:	

tool: D51: %d %d

tool: D79: 
Id	

tool: D12: Var %d	

tool: D56: %d	

assistant: ```c
int main() {
  int n, i, j, k, c = 1, range[10][6], 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][1], &range[i][4]);
    nominal[i] = (range[i][4] - range[i][1]) / 2 + range[i][1];
    range[i][0] = range[i][1] - 1;
    range[i][2] = range[i][1] + 1;
    range[i][3] = range[i][4] - 1;
    range[i][5] = range[i][4] + 1;
  }
  printf("\nId\t");
  for (i = 0; i < n; i++)
    printf("Var %d\t", i);
  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 < 6; 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");
    }
  }
}
```