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

```asm
<main>:
  endbr64
  push   %r12
  mov    $0x1f,%ecx
  push   %rbp
  push   %rbx
  lea    D31(%rip),%rbx
  sub    $0x120,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x118(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rdx
  movl   $0x8,0xc(%rsp)
  lea    0xc(%rsp),%r12
  mov    %rdx,%rdi
  movl   $0x8,0x8(%rsp)
  lea    0x8(%rsp),%rbp
  rep stos %rax,%es:(%rdi)
  movl   $0x1,0x10(%rsp)
  movl   $0x1,0x34(%rsp)
  movl   $0x1,0x58(%rsp)
  movl   $0x1,0x7c(%rsp)
  movl   $0x1,0xa0(%rsp)
  movl   $0x1,0xc4(%rsp)
  movl   $0x0,(%rdi)
  lea    D49(%rip),%rdi
  movl   $0x1,0xe8(%rsp)
  movl   $0x1,0x10c(%rsp)
  call   <puts@plt>
  jmp    L33
  nopl   0x0(%rax,%rax,1)
L12:
  movslq 0xc(%rsp),%rdx
  movslq 0x8(%rsp),%rax
  lea    (%rdx,%rax,8),%rcx
  lea    (%rax,%rdx,8),%rax
  movl   $0x1,0x10(%rsp,%rcx,4)
  movl   $0x1,0x10(%rsp,%rax,4)
L33:
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  cmp    $0x2,%eax
  je     L12
  lea    D15(%rip),%rdi
  lea    D38(%rip),%rbx
  call   <puts@plt>
  lea    D1(%rip),%rdi
  lea    D12(%rip),%rbp
  call   <puts@plt>
  movl   $0x0,0x8(%rsp)
  xor    %esi,%esi
  nopl   (%rax)
L62:
  mov    %rbp,%rdi
  test   %esi,%esi
  je     L4
  mov    %rbx,%rdi
L4:
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%eax
  lea    0x1(%rax),%esi
  mov    %esi,0x8(%rsp)
  cmp    $0x7,%esi
  jle    L62
  mov    $0xa,%edi
  call   <putchar@plt>
  movl   $0x0,0x8(%rsp)
  xor    %esi,%esi
  nopl   (%rax)
L50:
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  movl   $0x0,0xc(%rsp)
  xor    %eax,%eax
  nopl   0x0(%rax)
L67:
  movslq 0x8(%rsp),%rdx
  cltq
  mov    %rbx,%rdi
  lea    (%rax,%rdx,8),%rax
  mov    0x10(%rsp,%rax,4),%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0xc(%rsp),%eax
  add    $0x1,%eax
  mov    %eax,0xc(%rsp)
  cmp    $0x7,%eax
  jle    L67
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x8(%rsp),%eax
  lea    0x1(%rax),%esi
  mov    %esi,0x8(%rsp)
  cmp    $0x7,%esi
  jle    L50
  mov    0x118(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L60
  add    $0x120,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L60:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D31
type_infered: string
name: extract_symbolic_data
arguments: tag: D49
type_infered: string
name: extract_symbolic_data
arguments: tag: D15
type_infered: string
name: extract_symbolic_data
arguments: tag: D38
type_infered: string
name: extract_symbolic_data
arguments: tag: D1
type_infered: string
name: extract_symbolic_data
arguments: tag: D12
type_infered: string

tool: D31: %d%d

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

tool: D15: 


tool: D38: %3d

tool: D1: The adjacency matrix is:

tool: D12: %6d

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");
  }
}
```