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

```asm
<main>:
  endbr64
  push   %rbp
  lea    D35(%rip),%rdi
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  lea    -0x44(%rbp),%rsi
  lea    D32(%rip),%r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x68,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <scanf@plt>
  mov    -0x44(%rbp),%eax
  lea    -0x40(%rbp),%rcx
  mov    %rcx,-0x80(%rbp)
  lea    -0x3c(%rbp),%rcx
  lea    -0x1(%rax),%edx
  mov    %rcx,-0x88(%rbp)
  mov    %edx,-0x44(%rbp)
  test   %eax,%eax
  je     L193
L159:
  mov    %rsp,-0x60(%rbp)
  cmp    -0x60(%rbp),%rsp
  je     L197
L129:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    -0x60(%rbp),%rsp
  jne    L129
L197:
  sub    $0x330,%rsp
  orq    $0x0,0x328(%rsp)
  mov    %rsp,%rax
  mov    %rsp,%r12
  cmp    %rax,%rsp
  je     L249
L188:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rax,%rsp
  jne    L188
L249:
  sub    $0x1a0,%rsp
  orq    $0x0,0x198(%rsp)
  lea    0x3(%rsp),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffffffc,%rax
  mov    %rax,-0x68(%rbp)
  shr    $0x2,%rdx
  mov    %rsp,%rax
L181:
  cmp    %rax,%rsp
  je     L143
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L181
L143:
  sub    $0x1a0,%rsp
  orq    $0x0,0x198(%rsp)
  xor    %eax,%eax
  mov    $0x65,%ecx
  lea    0x3(%rsp),%r15
  mov    %r12,%rdi
  rep stos %rax,%es:(%rdi)
  mov    %r15,%rbx
  mov    %r15,%rsi
  lea    0x8(%r12),%r15
  and    $0xfffffffffffffffc,%rsi
  shr    $0x2,%rbx
  mov    %rbx,-0x70(%rbp)
  mov    %rsi,-0x78(%rbp)
  movq   $0x0,0x0(,%rdx,4)
  mov    -0x68(%rbp),%rcx
  movq   $0x0,0x18c(%rcx)
  lea    0x8(%rcx),%rdi
  and    $0xfffffffffffffff8,%rdi
  sub    %rdi,%rcx
  add    $0x194,%ecx
  shr    $0x3,%ecx
  rep stos %rax,%es:(%rdi)
  lea    0x8(%rsi),%rdi
  or     $0xffffffffffffffff,%rax
  movq   $0xffffffffffffffff,0x0(,%rbx,4)
  and    $0xfffffffffffffff8,%rdi
  mov    $0x8,%ebx
  movq   $0xffffffffffffffff,0x18c(%rsi)
  sub    %rdi,%rsi
  mov    %rsi,%rcx
  add    $0x194,%ecx
  shr    $0x3,%ecx
  rep stos %rax,%es:(%rdi)
  cs nopw 0x0(%rax,%rax,1)
L196:
  lea    -0x6(%rbx),%r13d
L192:
  cmp    $0x64,%r13d
  jg     L162
  mov    (%r15),%rdi
  mov    %r13d,%esi
  add    $0x1,%r13d
  call   <addEdge@plt>
  mov    %rax,(%r15)
  cmp    %ebx,%r13d
  jne    L192
L162:
  add    $0x1,%ebx
  add    $0x8,%r15
  cmp    $0x6c,%ebx
  jne    L196
  mov    -0x80(%rbp),%rsi
  lea    D35(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  movslq -0x40(%rbp),%rax
  mov    %rsp,%rsi
  lea    0xf(,%rax,8),%rdx
  mov    %rax,%rcx
  mov    %rdx,%rax
  and    $0xfffffffffffff000,%rdx
  sub    %rdx,%rsi
  and    $0xfffffffffffffff0,%rax
  cmp    %rsi,%rsp
  je     L37
L28:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L28
L37:
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L11
  orq    $0x0,-0x8(%rsp,%rax,1)
L11:
  mov    %rsp,%r15
  xor    %eax,%eax
  lea    -0x45(%rbp),%r13
  test   %ecx,%ecx
  jle    L246
  mov    %r13,-0x58(%rbp)
  mov    %eax,%r13d
  nopl   0x0(%rax,%rax,1)
L99:
  mov    -0x58(%rbp),%rdx
  mov    %r15,%rsi
  xor    %eax,%eax
  lea    0x4(%r15),%rcx
  mov    %r14,%rdi
  call   <scanf@plt>
  mov    (%r15),%esi
  mov    $0x1,%edx
  lea    -0x6(%rsi),%eax
  test   %eax,%eax
  cmovle %edx,%eax
  movslq %eax,%rbx
  cmp    %esi,%eax
  jge    L4
  nopl   0x0(%rax)
L164:
  mov    (%r12,%rbx,8),%rdi
  mov    0x4(%r15),%edx
  add    $0x1,%rbx
  call   <replace@plt>
  mov    (%r15),%esi
  cmp    %ebx,%esi
  jg     L164
L4:
  add    $0x1,%r13d
  add    $0x8,%r15
  cmp    %r13d,-0x40(%rbp)
  jg     L99
L246:
  mov    -0x88(%rbp),%rsi
  lea    D35(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  movslq -0x3c(%rbp),%rax
  mov    %rsp,%rsi
  lea    0xf(,%rax,8),%rdx
  mov    %rax,%rcx
  mov    %rdx,%rax
  and    $0xfffffffffffff000,%rdx
  sub    %rdx,%rsi
  and    $0xfffffffffffffff0,%rax
  cmp    %rsi,%rsp
  je     L237
L182:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L182
L237:
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L109
  orq    $0x0,-0x8(%rsp,%rax,1)
L109:
  mov    %rsp,%r15
  xor    %eax,%eax
  lea    -0x45(%rbp),%r13
  test   %ecx,%ecx
  jle    L161
  mov    %r13,-0x58(%rbp)
  mov    %eax,%r13d
  nopw   0x0(%rax,%rax,1)
L117:
  mov    -0x58(%rbp),%rdx
  mov    %r15,%rsi
  xor    %eax,%eax
  lea    0x4(%r15),%rcx
  mov    %r14,%rdi
  call   <scanf@plt>
  mov    (%r15),%esi
  xor    %edx,%edx
  lea    -0x6(%rsi),%eax
  test   %eax,%eax
  cmovs  %edx,%eax
  movslq %eax,%rbx
  cmp    %eax,%esi
  jle    L75
  nopl   0x0(%rax)
L218:
  mov    (%r12,%rbx,8),%rdi
  mov    0x4(%r15),%edx
  add    $0x1,%rbx
  call   <replace@plt>
  mov    (%r15),%esi
  cmp    %ebx,%esi
  jg     L218
L75:
  add    $0x1,%r13d
  add    $0x8,%r15
  cmp    %r13d,-0x3c(%rbp)
  jg     L117
L161:
  mov    -0x68(%rbp),%rdx
  mov    -0x78(%rbp),%rcx
  mov    $0x64,%esi
  mov    %r12,%rdi
  call   <breadthFirstSearch@plt>
  mov    -0x70(%rbp),%rax
  lea    D5(%rip),%rdi
  mov    0x190(,%rax,4),%esi
  call   <printf@plt>
  mov    -0x44(%rbp),%eax
  mov    -0x60(%rbp),%rsp
  lea    -0x1(%rax),%edx
  mov    %edx,-0x44(%rbp)
  test   %eax,%eax
  jne    L159
L193:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L116
  lea    -0x28(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L116:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D35
data_type: string
name: read_data
arguments: tag: D32
data_type: string
name: read_data
arguments: tag: D5
data_type: string

tool: D35: %d

tool: D32: %d%c%d

tool: D5: %d


assistant: ```c
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    int vertices, edges, i, j, v1, v2;
    vertices = 100;
    edges = 0;
    struct node *list[vertices + 1];
    int parent[vertices + 1];
    int level[vertices + 1];
    for (i = 0; i <= vertices; ++i) {
      list[i] = NULL;
      parent[i] = 0;
      level[i] = -1;
    }
    for (i = 1; i <= vertices; ++i) {
      for (j = 1; j <= 6 && j + i <= 100; ++j) {
        list[i] = addEdge(list[i], i + j);
        ++edges;
      }
    }
    int numLadders, numSnakes;
    char temp;
    scanf("%d", &numLadders);
    int ladders[numLadders][2];
    for (i = 0; i < numLadders; ++i) {
      scanf("%d%c%d", &ladders[i][0], &temp, &ladders[i][1]);
      j = ladders[i][0] - 6;
      if (j < 1) {
        j = 1;
      }
      for (; j < ladders[i][0]; ++j) {
        replace(list[j], ladders[i][0], ladders[i][1]);
      }
    }
    scanf("%d", &numSnakes);
    int snakes[numSnakes][2];
    for (i = 0; i < numSnakes; ++i) {
      scanf("%d%c%d", &snakes[i][0], &temp, &snakes[i][1]);
      j = snakes[i][0] - 6;
      if (j < 0) {
        j = 0;
      }
      for (; j < snakes[i][0]; ++j) {
        replace(list[j], snakes[i][0], snakes[i][1]);
      }
    }
    breadthFirstSearch(list, vertices, parent, level);
    printf("%d\n", level[vertices]);
  }
  return 0;
}
```