user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0xa000(%rsp),%r11
L209:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L209
  sub    $0x118,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xa108(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r14
  lea    D20(%rip),%rbp
  lea    D8(%rip),%r15
  jmp    L99
L24:
  mov    $0x0,%edx
L185:
  cmp    %edx,%esi
  je     L138
L4:
  cmp    $0x1,%r9d
  jg     L184
  add    $0x1,%r8d
  cmp    %r10d,%r8d
  jg     L12
L172:
  lea    0x10(%rsp),%rcx
  mov    $0x0,%edx
  test   %esi,%esi
  jle    L24
  movslq %r8d,%rax
  lea    (%rax,%rax,4),%rdi
  lea    (%rdi,%rdi,4),%rdi
  lea    (%rax,%rdi,4),%rdi
L54:
  movslq (%rcx),%rax
  add    %rdi,%rax
  cmpl   $0x1,0x1a0(%rsp,%rax,4)
  jne    L185
  add    $0x1,%edx
  add    $0x4,%rcx
  cmp    %esi,%edx
  jne    L54
L138:
  add    $0x1,%r9d
  mov    %r8d,%r11d
  jmp    L4
L12:
  cmp    $0x1,%r9d
  jne    L184
  mov    %r11d,%esi
  lea    D9(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L99
L184:
  mov    %r15,%rdi
  call   <puts@plt>
L99:
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  mov    (%rsp),%eax
  test   %eax,%eax
  je     L29
  jle    L102
  lea    -0x1(%rax),%ecx
  lea    0x33c(%rsp,%rcx,4),%rdx
  imul   $0x198,%rcx,%rcx
  lea    0x4d0(%rsp,%rcx,1),%rsi
  mov    %eax,%eax
  neg    %rax
  lea    0x0(,%rax,4),%rcx
L149:
  lea    (%rcx,%rdx,1),%rax
L171:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %rax,%rdx
  jne    L171
  add    $0x194,%rdx
  cmp    %rsi,%rdx
  jne    L149
  mov    $0x1,%r13d
L5:
  lea    0x4(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  cmpl   $0x0,0x4(%rsp)
  jle    L178
  mov    $0x0,%ebx
  movslq %r13d,%rax
  lea    (%rax,%rax,4),%rdx
  lea    (%rdx,%rdx,4),%rdx
  lea    (%rax,%rdx,4),%r12
L157:
  lea    0xc(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  movslq 0xc(%rsp),%rax
  add    %r12,%rax
  movl   $0x1,0x1a0(%rsp,%rax,4)
  add    $0x1,%ebx
  cmp    %ebx,0x4(%rsp)
  jg     L157
L178:
  add    $0x1,%r13d
  cmp    %r13d,(%rsp)
  jge    L5
L102:
  lea    0x8(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  mov    0x8(%rsp),%esi
  test   %esi,%esi
  jle    L13
  lea    0x10(%rsp),%r12
  mov    $0x0,%ebx
L77:
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  add    $0x1,%ebx
  mov    0x8(%rsp),%esi
  add    $0x4,%r12
  cmp    %ebx,%esi
  jg     L77
L13:
  mov    (%rsp),%r10d
  mov    $0x0,%r9d
  mov    $0x0,%r11d
  mov    $0x1,%r8d
  test   %r10d,%r10d
  jg     L172
  jmp    L184
L29:
  mov    0xa108(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L219
  mov    $0x0,%eax
  add    $0xa118,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L219:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D20
type_infered: string
name: read_data
arguments: tag: D8
type_infered: string
name: read_data
arguments: tag: D9
type_infered: string

tool: D20: %d

tool: D8: -1

tool: D9: %d


assistant: ```c
int main(void) {
  int n, info[101][101], i, j, m, k, temp, list[100], flag, count;
  while (1) {
    scanf("%d", &n);
    if (n == 0)
      break;
    for (i = 1; i <= n; i++) {
      for (j = 1; j <= n; j++)
        info[i][j] = 0;
    }
    for (i = 1; i <= n; i++) {
      scanf("%d", &m);
      for (j = 0; j < m; j++) {
        scanf("%d", &temp);
        info[i][temp] = 1;
      }
    }
    scanf("%d", &k);
    for (i = 0; i < k; i++)
      scanf("%d", &list[i]);
    flag = 0, count = 0;
    for (i = 1; i <= n; i++) {
      for (j = 0; j < k; j++) {
        if (info[i][list[j]] != 1)
          break;
      }
      if (j == k) {
        flag = i;
        count++;
      }
      if (count > 1)
        break;
    }
    if (count == 1) {
      printf("%d\n", flag);
    } else {
      printf("-1\n");
    }
  }
  return 0;
}
```