user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0xc3000(%rsp),%r11
L97:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L97
  sub    $0x528,%rsp
  lea    D0(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0xc3518(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    D45(%rip),%rdi
  call   <puts@plt>
  lea    D31(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  lea    D24(%rip),%rdi
  call   <scanf@plt>
  mov    0xc(%rsp),%r13d
  cmp    $0x1,%r13d
  jle    L68
  lea    0x1(%r13),%r12d
  xor    %r11d,%r11d
  mov    $0x2,%edi
  xor    %ebp,%ebp
  lea    0x10(%rsp),%rbx
  xor    %r10d,%r10d
  nopl   0x0(%rax)
L7:
  add    $0x1,%edi
  mov    %rbx,%rcx
  lea    (%rbx,%rbp,4),%r9
  mov    $0x2,%esi
  mov    $0x1,%r8d
  jmp    L56
  nopw   0x0(%rax,%rax,1)
L4:
  mov    0x4(%rcx),%esi
  add    $0x4,%rcx
L56:
  mov    %edi,%eax
  cltd
  idiv   %esi
  test   %edx,%edx
  cmove  %r10d,%r8d
  cmp    %r9,%rcx
  jne    L4
  cmp    $0x1,%r8d
  jne    L30
  add    $0x1,%r11d
  movslq %r11d,%rbp
  mov    %edi,0x10(%rsp,%rbp,4)
L30:
  cmp    %r12d,%edi
  jne    L7
L44:
  mov    %r13d,%esi
  lea    D26(%rip),%rdi
  lea    (%rbx,%rbp,4),%r12
  xor    %eax,%eax
  call   <printf@plt>
  lea    D46(%rip),%rbp
  mov    $0x2,%esi
  jmp    L36
L52:
  mov    0x4(%rbx),%esi
  add    $0x4,%rbx
L36:
  xor    %eax,%eax
  mov    %rbp,%rdi
  call   <printf@plt>
  cmp    %r12,%rbx
  jne    L52
  xor    %eax,%eax
  call   <getchar@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  mov    0xc3518(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L13
  add    $0xc3528,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L68:
  lea    0x10(%rsp),%rbx
  xor    %ebp,%ebp
  jmp    L44
L13:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D0
type: string
name: parse_data
arguments: tag: D45
type: string
name: parse_data
arguments: tag: D31
type: string
name: parse_data
arguments: tag: D24
type: string
name: parse_data
arguments: tag: D26
type: string
name: parse_data
arguments: tag: D46
type: string

tool: D0: Este programa calcula todos los primos inferiores a un numero 

tool: D45: natural 
mayor que 1 dado por el usuario: 

tool: D31: Introduce un numero: 

tool: D24: %d

tool: D26: Los primos hasta %d son: 


tool: D46: %03d 

assistant: ```c
int main(void) {
  int numero;
  int listaprimos[200000];
  int primo = 2;
  int esprimo = 0;
  int i, j;
  printf("Este programa calcula todos los primos inferiores a un numero ");
  printf("natural \nmayor que 1 dado por el usuario: \n");
  printf("Introduce un numero: ");
  scanf("%d", &numero);
  for (i = 0; i < 200000; i++) {
    listaprimos[200000] = 0;
  }
  listaprimos[0] = 2;
  i = 0;
  while (primo <= numero) {
    primo++;
    esprimo = 1;
    for (j = 0; j <= i; j++) {
      if ((primo % listaprimos[j]) == 0)
        esprimo = 0;
    }
    if (esprimo == 1) {
      i++;
      listaprimos[i] = primo;
    }
  }
  printf("Los primos hasta %d son: \n", numero);
  for (j = 0; j <= i; j++)
    printf("%03d ", listaprimos[j]);
  getchar();
  getchar();
}
```