user: What would the C source look like for the assembly code provided here:

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0xf6000(%rsp),%r11
L29:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L29
  sub    $0x1c8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xf61b8(%rsp)
  xor    %eax,%eax
  lea    D1(%rip),%rbx
  lea    0xfd0(%rsp),%r12
  lea    0xfd4(%rsp),%rbp
  jmp    L150
L162:
  cmpl   $0x0,0x4(%rsp)
  jne    L102
  mov    0xf61b8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L68
  mov    $0x0,%eax
  add    $0xf61c8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L138:
  add    $0x4,%rax
  cmp    %rsi,%rax
  je     L71
L3:
  mov    (%rax),%edx
  movslq %edx,%rcx
  cmpl   $0x0,0x7f0(%rsp,%rcx,4)
  jne    L138
  movl   $0x1,0x7f0(%rsp,%rcx,4)
  add    $0x1,%edi
  jmp    L138
L71:
  add    $0x4,%r8
  cmp    %r9,%r8
  je     L76
L73:
  mov    (%r8),%eax
  movslq %eax,%rdx
  mov    0x10(%rsp,%rdx,4),%ecx
  test   %ecx,%ecx
  jle    L71
  movslq %eax,%rdx
  imul   $0x7d4,%rdx,%rax
  add    %r12,%rax
  lea    -0x1(%rcx),%ecx
  imul   $0x1f5,%rdx,%rdx
  add    %rcx,%rdx
  lea    0x0(%rbp,%rdx,4),%rsi
  jmp    L3
L174:
  mov    $0x0,%edi
L76:
  mov    %edi,%esi
  lea    D7(%rip),%rdi
  call   <printf@plt>
L150:
  lea    0x4(%rsp),%rdx
  mov    %rsp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    (%rsp),%eax
  test   %eax,%eax
  je     L162
  jle    L102
  lea    0x1(%rax),%edx
  mov    $0x1,%eax
L169:
  movl   $0x0,0x10(%rsp,%rax,4)
  movl   $0x0,0x7f0(%rsp,%rax,4)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L169
L102:
  cmpl   $0x0,0x4(%rsp)
  jle    L161
  mov    $0x0,%r13d
L56:
  lea    0xc(%rsp),%rdx
  lea    0x8(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    0x8(%rsp),%edi
  movslq %edi,%rcx
  mov    0x10(%rsp,%rcx,4),%edx
  mov    0xc(%rsp),%eax
  movslq %edx,%r8
  imul   $0x1f5,%rcx,%rsi
  add    %r8,%rsi
  mov    %eax,0xfd0(%rsp,%rsi,4)
  cltq
  movslq 0x10(%rsp,%rax,4),%r8
  imul   $0x1f5,%rax,%rsi
  add    %r8,%rsi
  mov    %edi,0xfd0(%rsp,%rsi,4)
  add    $0x1,%edx
  mov    %edx,0x10(%rsp,%rcx,4)
  addl   $0x1,0x10(%rsp,%rax,4)
  add    $0x1,%r13d
  cmp    %r13d,0x4(%rsp)
  jg     L56
L161:
  movl   $0x1,0x7f4(%rsp)
  mov    0x14(%rsp),%edi
  test   %edi,%edi
  jle    L174
  lea    0x17a4(%rsp),%r8
  lea    -0x1(%rdi),%eax
  lea    0x17a8(%rsp,%rax,4),%r9
  mov    %r8,%rax
L104:
  movslq (%rax),%rdx
  movl   $0x1,0x7f0(%rsp,%rdx,4)
  add    $0x4,%rax
  cmp    %r9,%rax
  jne    L104
  jmp    L73
L68:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D1
datatype: string
name: unpack_data
arguments: label: D7
datatype: string

tool: D1: %d %d

tool: D7: %d


assistant: ```c
int main(void) {
  int n, m, student[501][501], i, j, t1, t2, lp[501], check[501], count;
  while (1) {
    scanf("%d %d", &n, &m);
    if (n == 0 && m == 0)
      break;
    count = 0;
    for (i = 1; i <= n; i++)
      lp[i] = 0, check[i] = 0;
    for (i = 0; i < m; i++) {
      scanf("%d %d", &t1, &t2);
      student[t1][lp[t1]] = t2;
      student[t2][lp[t2]] = t1;
      lp[t1]++;
      lp[t2]++;
    }
    check[1] = 1;
    for (i = 0; i < lp[1]; i++) {
      count++;
      check[student[1][i]] = 1;
    }
    for (i = 0; i < lp[1]; i++) {
      for (j = 0; j < lp[student[1][i]]; j++) {
        if (check[student[student[1][i]][j]] == 0) {
          check[student[student[1][i]][j]] = 1;
          count++;
        }
      }
    }
    printf("%d\n", count);
  }
  return 0;
}
```