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    -0x61000(%rsp),%r11
L34:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L34
  sub    $0xc38,%rsp
  lea    D0(%rip),%rbp
  mov    %rbp,%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x61c28(%rsp)
  xor    %eax,%eax
  lea    0xc(%rsp),%rsi
  call   <scanf@plt>
  mov    0xc(%rsp),%edx
  test   %edx,%edx
  jle    L98
  lea    0x1a8(%rsp),%r14
  xor    %r13d,%r13d
  lea    0x10(%rsp),%r12
  nopl   0x0(%rax)
L29:
  lea    (%r12,%r13,4),%rsi
  mov    %rbp,%rdi
  mov    %r13d,%ebx
  call   <scanf@plt>
  mov    (%r12,%r13,4),%ecx
  movdqa D23(%rip),%xmm0
  cmp    $0x2,%ecx
  jle    L17
  lea    -0x3(%rcx),%eax
  lea    -0x2(%rcx),%esi
  cmp    $0x2,%eax
  jbe    L92
  mov    %esi,%eax
  shr    $0x2,%eax
  sub    $0x1,%eax
  shl    $0x4,%rax
  lea    0x10(%r14,%rax,1),%rdx
  mov    %r14,%rax
  nop
L119:
  movups %xmm0,(%rax)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L119
  mov    %esi,%eax
  and    $0xfffffffc,%eax
  lea    0x2(%rax),%edx
  cmp    %esi,%eax
  je     L17
L154:
  movslq %ebx,%rax
  movslq %edx,%rsi
  imul   $0x3e8,%rax,%rax
  add    %rax,%rsi
  movl   $0x1,0x1a0(%rsp,%rsi,4)
  lea    0x1(%rdx),%esi
  cmp    %esi,%ecx
  jle    L17
  movslq %esi,%rsi
  add    $0x2,%edx
  add    %rax,%rsi
  movl   $0x1,0x1a0(%rsp,%rsi,4)
  cmp    %edx,%ecx
  jle    L17
  movslq %edx,%rdx
  add    %rdx,%rax
  movl   $0x1,0x1a0(%rsp,%rax,4)
L17:
  mov    0xc(%rsp),%eax
  add    $0x1,%r13
  add    $0xfa0,%r14
  cmp    %r13d,%eax
  jg     L29
  test   %eax,%eax
  jle    L98
  lea    0x1a0(%rsp),%rbp
  xor    %r15d,%r15d
  lea    D26(%rip),%r13
  nopl   (%rax)
L87:
  mov    (%r12,%r15,4),%edx
  mov    $0x4,%r14d
  mov    $0x2,%ebx
  cmp    $0x2,%edx
  jg     L22
  jmp    L47
  xchg   %ax,%ax
L69:
  add    $0x1,%rbx
  add    $0x2,%r14
  cmp    %ebx,%edx
  jle    L47
L22:
  mov    0x0(%rbp,%rbx,4),%eax
  mov    %ebx,%esi
  test   %eax,%eax
  je     L69
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    (%r12,%r15,4),%edx
  cmp    %r14d,%edx
  jle    L69
  mov    %r14,%rax
  nopl   0x0(%rax)
L115:
  movl   $0x0,0x0(%rbp,%rax,4)
  add    %rbx,%rax
  cmp    %eax,%edx
  jg     L115
  add    $0x1,%rbx
  add    $0x2,%r14
  cmp    %ebx,%edx
  jg     L22
  nopl   0x0(%rax,%rax,1)
L47:
  mov    $0xa,%edi
  add    $0x1,%r15
  add    $0xfa0,%rbp
  call   <putchar@plt>
  cmp    %r15d,0xc(%rsp)
  jg     L87
L98:
  mov    0x61c28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L88
  add    $0x61c38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L92:
  mov    $0x2,%edx
  jmp    L154
L88:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D0
datatype: string
name: retrieve_data
arguments: data_label: D23
datatype: byte[16]
name: retrieve_data
arguments: data_label: D26
datatype: string

tool: D0: %d

tool: {"D23": [0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00]}

tool: D26: %d 

assistant: ```c
int main() {
  int t, i, n[100], j, k, a[100][1000], l;
  scanf("%d", &t);
  for (i = 0; i < t; i++) {
    scanf("%d", &n[i]);
    for (j = 2; j < n[i]; j++)
      a[i][j] = 1;
  }
  for (j = 0; j < t; j++) {
    for (i = 2; i < n[j]; i++) {
      if (a[j][i] != 0) {
        printf("%d ", i);
        l = 2;
        while (i * l < n[j]) {
          a[j][i * l] = 0;
          l++;
        }
      }
    }
    printf("\n");
  }
  return 0;
}
```