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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x120,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x118(%rbp)
  jmp    L100
L22:
  movl   $0x0,-0x114(%rbp)
  jmp    L72
L6:
  mov    -0x118(%rbp),%eax
  mov    -0x114(%rbp),%edx
  movslq %edx,%rdx
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movl   $0x0,-0x110(%rbp,%rax,4)
  mov    -0x114(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x114(%rbp)
L72:
  mov    -0x114(%rbp),%eax
  cmp    $0x7,%eax
  jle    L6
  mov    -0x118(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x118(%rbp)
L100:
  mov    -0x118(%rbp),%eax
  cmp    $0x7,%eax
  jle    L22
  movl   $0x0,-0x118(%rbp)
  jmp    L60
L69:
  mov    -0x118(%rbp),%eax
  mov    -0x118(%rbp),%edx
  movslq %edx,%rdx
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movl   $0x1,-0x110(%rbp,%rax,4)
  mov    -0x118(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x118(%rbp)
L60:
  mov    -0x118(%rbp),%eax
  cmp    $0x7,%eax
  jle    L69
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L88
L56:
  mov    -0x118(%rbp),%eax
  mov    -0x114(%rbp),%edx
  movslq %edx,%rdx
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movl   $0x1,-0x110(%rbp,%rax,4)
  mov    -0x114(%rbp),%eax
  mov    -0x118(%rbp),%edx
  movslq %edx,%rdx
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movl   $0x1,-0x110(%rbp,%rax,4)
L88:
  lea    -0x114(%rbp),%rdx
  lea    -0x118(%rbp),%rax
  mov    %rax,%rsi
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  cmp    $0x2,%eax
  je     L56
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D66(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x118(%rbp)
  jmp    L117
L84:
  mov    -0x118(%rbp),%eax
  test   %eax,%eax
  jne    L97
  mov    -0x118(%rbp),%eax
  mov    %eax,%esi
  lea    D56(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L126
L97:
  mov    -0x118(%rbp),%eax
  mov    %eax,%esi
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L126:
  mov    -0x118(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x118(%rbp)
L117:
  mov    -0x118(%rbp),%eax
  cmp    $0x7,%eax
  jle    L84
  mov    $0xa,%edi
  call   <putchar@plt>
  movl   $0x0,-0x118(%rbp)
  jmp    L152
L21:
  mov    -0x118(%rbp),%eax
  mov    %eax,%esi
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x114(%rbp)
  jmp    L70
L90:
  mov    -0x118(%rbp),%eax
  mov    -0x114(%rbp),%edx
  movslq %edx,%rdx
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    -0x110(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x114(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x114(%rbp)
L70:
  mov    -0x114(%rbp),%eax
  cmp    $0x7,%eax
  jle    L90
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0x118(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x118(%rbp)
L152:
  mov    -0x118(%rbp),%eax
  cmp    $0x7,%eax
  jle    L21
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L83
  call   <__stack_chk_fail@plt>
L83:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D17
datatype: string
name: unpack_data
arguments: data_label: D16
datatype: string
name: unpack_data
arguments: data_label: D53
datatype: string
name: unpack_data
arguments: data_label: D66
datatype: string
name: unpack_data
arguments: data_label: D56
datatype: string
name: unpack_data
arguments: data_label: D20
datatype: string

tool: D17: 
Enter vertex pairs - Press <ctrl-z> to end

tool: D16: %d%d

tool: D53: 


tool: D66: The adjacency matrix is:

tool: D56: %6d

tool: D20: %3d

assistant: ```c
int main(void) {
  int i, j, a, adj[8][8];
  for (i = 0; i < 8; i++)
    for (j = 0; j < 8; j++)
      adj[i][j] = 0;
  for (i = 0; i < 8; i++)
    adj[i][i] = 1;
  printf("\nEnter vertex pairs - Press <ctrl-z> to end\n");
  while (scanf("%d%d", &i, &j) == 2) {
    adj[i][j] = 1;
    adj[j][i] = 1;
  }
  printf("\n\n");
  printf("The adjacency matrix is:\n");
  for (i = 0; i < 8; i++)
    if (i == 0)
      printf("%6d", i);
    else
      printf("%3d", i);
  printf("\n");
  for (i = 0; i < 8; i++) {
    printf("%3d", i);
    for (j = 0; j < 8; j++)
      printf("%3d", adj[i][j]);
    printf("\n");
  }
}
```