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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    $0x0,%edi
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  mov    $0x0,%eax
  call   <elegirCantDigitos@plt>
  mov    %eax,-0x18(%rbp)
  mov    -0x18(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0x18(%rbp),%eax
  mov    $0x4,%esi
  mov    %eax,%edi
  call   <calloc@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  je     L60
  cmpq   $0x0,-0x8(%rbp)
  jne    L100
L60:
  mov    $0x0,%eax
  jmp    L71
L100:
  mov    -0x18(%rbp),%edx
  mov    -0x10(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <generaAleatorio@plt>
  mov    $0xa,%edi
  call   <elegirNivel@plt>
  mov    %eax,-0x14(%rbp)
  movl   $0x1,-0x20(%rbp)
  jmp    L90
L117:
  mov    -0x18(%rbp),%edx
  mov    -0x8(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <leerNumero@plt>
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x1c(%rbp)
  jmp    L5
L34:
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%esi
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x1c(%rbp)
L5:
  mov    -0x1c(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jl     L34
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0x18(%rbp),%edx
  mov    -0x8(%rbp),%rcx
  mov    -0x10(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <coincideNumero@plt>
  test   %rax,%rax
  je     L16
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x1,%eax
  jmp    L71
L16:
  mov    -0x20(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jne    L28
  lea    D64(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L114
L28:
  lea    D24(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L114:
  addl   $0x1,-0x20(%rbp)
L90:
  mov    -0x20(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jle    L117
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x20(%rbp)
  jmp    L7
L78:
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%esi
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x20(%rbp)
L7:
  mov    -0x20(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jl     L78
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    $0x1,%eax
L71:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D7
type_infered: string
name: unpack_data
arguments: data_label: D0
type_infered: string
name: unpack_data
arguments: data_label: D26
type_infered: string
name: unpack_data
arguments: data_label: D64
type_infered: string
name: unpack_data
arguments: data_label: D24
type_infered: string
name: unpack_data
arguments: data_label: D49
type_infered: string

tool: D7: Numero ingresado = 

tool: D0: %d

tool: D26: 
~~~ GANASTE! ~~~


tool: D64: 
~~~ Perdiste ~~~


tool: D24: 
~~~ Intenta de nuevo ~~~


tool: D49: El numero era: 

assistant: ```c
int main(void) {
  srand(time(0));
  int *incognita;
  int *numero;
  int digits, nivel, i, j;
  digits = elegirCantDigitos();
  incognita = malloc(digits * sizeof(int));
  numero = calloc(digits, sizeof(int));
  if (incognita == NULL || numero == NULL) {
    return 0;
  }
  generaAleatorio(incognita, digits);
  nivel = elegirNivel(10);
  for (i = 1; i <= nivel; i++) {
    leerNumero(numero, digits);
    printf("Numero ingresado = ");
    for (j = 0; j < digits; j++) {
      printf("%d", numero[j]);
    }
    printf("\n");
    if (coincideNumero(incognita, numero, digits)) {
      printf("\n~~~ GANASTE! ~~~\n\n");
      return 1;
    } else if (i == nivel)
      printf("\n~~~ Perdiste ~~~\n\n");
    else
      printf("\n~~~ Intenta de nuevo ~~~\n\n");
  }
  printf("El numero era: ");
  for (i = 0; i < digits; i++) {
    printf("%d", incognita[i]);
  }
  printf("\n");
  return 1;
}
```