user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x218,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x208(%rsp)
  xor    %eax,%eax
  lea    D20(%rip),%rdi
  call   <printf@plt>
  lea    0x8(%rsp),%rsi
  lea    D24(%rip),%rdi
  call   <scanf@plt>
  lea    D89(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x0,0x8(%rsp)
  jle    L3
  lea    0x9c(%rsp),%r14
  mov    $0x1,%r13d
  lea    D24(%rip),%r12
  jmp    L37
L147:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  add    $0x1,%ebx
  add    $0x4,%rbp
  cmp    %ebx,0x8(%rsp)
  jge    L147
L8:
  add    $0x1,%r13d
  mov    0x8(%rsp),%edx
  add    $0x28,%r14
  cmp    %r13d,%edx
  jl     L61
L37:
  mov    %r14,%rbp
  mov    $0x1,%ebx
  cmpl   $0x0,0x8(%rsp)
  jg     L147
  jmp    L8
L61:
  test   %edx,%edx
  jle    L3
  lea    0x14(%rsp),%rax
  lea    -0x1(%rdx),%edx
  lea    0x18(%rsp,%rdx,4),%rdx
L38:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L38
L3:
  lea    D60(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  lea    D24(%rip),%rdi
  call   <scanf@plt>
  lea    D47(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0xc(%rsp),%esi
  movslq %esi,%rax
  movl   $0x1,0x10(%rsp,%rax,4)
  mov    %esi,0x40(%rsp)
  lea    D27(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%eax
  mov    $0x0,%r12d
  lea    D27(%rip),%r14
  jmp    L103
L93:
  add    %r12d,%ebp
  add    $0x1,%rbx
  cmp    %ebx,0x8(%rsp)
  jl     L123
L126:
  mov    %ebx,%ebp
  mov    %ebx,%esi
  cmpl   $0x0,0x0(%r13,%rbx,4)
  je     L93
  cmpl   $0x0,0x10(%rsp,%rbx,4)
  jne    L93
  movl   $0x1,0x10(%rsp,%rbx,4)
  lea    0x1(%rax),%r15d
  cltq
  mov    %ebx,0x40(%rsp,%rax,4)
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r15d,%eax
  jmp    L93
L123:
  mov    %ebp,%r12d
L148:
  cmp    %eax,%r12d
  je     L115
L103:
  movslq %r12d,%rdx
  mov    0x40(%rsp,%rdx,4),%edx
  cmpl   $0x0,0x8(%rsp)
  jle    L148
  movslq %edx,%rdx
  lea    (%rdx,%rdx,4),%rdx
  lea    0x70(%rsp,%rdx,8),%r13
  mov    $0x1,%ebx
  jmp    L126
L115:
  mov    0x208(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L78
  mov    $0x0,%eax
  add    $0x218,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L78:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D20
data_type: string
name: parse_data
arguments: data_label: D24
data_type: string
name: parse_data
arguments: data_label: D89
data_type: string
name: parse_data
arguments: data_label: D60
data_type: string
name: parse_data
arguments: data_label: D47
data_type: string
name: parse_data
arguments: data_label: D27
data_type: string

tool: D20: Enter the number of vertices in the graph: 

tool: D24: %d

tool: D89: Enter the adjacency matrix:

tool: D60: Enter the source of the graph: 

tool: D47: The BFS traversal of graph is: 

tool: D27: %d 

assistant: ```c
int main() {
  int n, adj[10][10], i, j, visited[10], source, queue[10], front, rear, root;
  printf("Enter the number of vertices in the graph: ");
  scanf("%d", &n);
  printf("Enter the adjacency matrix:\n");
  for (i = 1; i <= n; i++) {
    for (j = 1; j <= n; j++) {
      scanf("%d", &adj[i][j]);
    }
  }
  for (i = 1; i <= n; i++)
    visited[i] = 0;
  printf("Enter the source of the graph: ");
  scanf("%d", &source);
  printf("The BFS traversal of graph is: ");
  front = rear = 0;
  visited[source] = 1;
  queue[rear++] = source;
  printf("%d ", source);
  while (front != rear) {
    root = queue[front];
    for (i = 1; i <= n; i++) {
      if (adj[root][i] && !visited[i]) {
        visited[i] = 1;
        queue[rear++] = i;
        printf("%d ", i);
      }
      front++;
    }
  }
  return 0;
}
```