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
  sub    $0x338,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x328(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r14
  lea    0x320(%rsp),%rdx
  mov    %r14,%rax
L86:
  movl   $0xffffffff,(%rax)
  add    $0x4,%rax
  cmp    %rax,%rdx
  jne    L86
  mov    $0x0,%r13d
  mov    $0xf4240,%r12d
  mov    $0xffffffff,%ebp
  mov    $0x0,%ebx
  lea    0x4(%r14),%r15
  jmp    L30
L48:
  movslq %ebx,%rdx
  mov    %eax,(%rsp,%rdx,4)
  mov    %r13d,%edx
  mov    %ebx,%esi
  lea    D42(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%ebx
L67:
  add    $0x1,%r13d
  cmp    $0x63,%ebx
  je     L66
L30:
  mov    $0x0,%eax
  call   <random_number@plt>
  imul   $0x63,%eax,%eax
  cmp    %eax,%ebp
  cmovl  %eax,%ebp
  cmp    %eax,%r12d
  cmovg  %eax,%r12d
  test   %ebx,%ebx
  jle    L48
  lea    -0x1(%rbx),%edx
  lea    (%r15,%rdx,4),%rdi
  mov    %r14,%rdx
  mov    $0x0,%ecx
L10:
  cmp    %eax,(%rdx)
  sete   %sil
  movzbl %sil,%esi
  add    %esi,%ecx
  add    $0x4,%rdx
  cmp    %rdi,%rdx
  jne    L10
  test   %ecx,%ecx
  je     L48
  cmp    $0x1,%ecx
  jle    L67
  lea    D36(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%edi
  call   <exit@plt>
  jmp    L67
L66:
  mov    %r12d,%edx
  mov    %ebp,%esi
  lea    D9(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r13d,%esi
  lea    D44(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%ebx
  lea    D23(%rip),%rbp
L23:
  mov    (%rsp,%rbx,4),%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  cmp    $0x63,%rbx
  jne    L23
  mov    0x328(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L54
  add    $0x338,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L54:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D42
data_type: string
name: disassemble_data
arguments: data_tag: D36
data_type: string
name: disassemble_data
arguments: data_tag: D9
data_type: string
name: disassemble_data
arguments: data_tag: D44
data_type: string
name: disassemble_data
arguments: data_tag: D23
data_type: string

tool: D42: k =%3d c =%3d


tool: D36: 

on a enregistre plusieurs fois le meme

tool: D9: max %d 	 min %d 


tool: D44: nbre de tirage : %d


tool: D23: %3d %3d


assistant: ```c
void main(void) {
  int k, nvois, ivois, max, min, c, i, dejavu;
  int liste[200];
  for (k = 0; k < 200; k++)
    liste[k] = -1;
  max = -1;
  min = 1000000;
  nvois = 99;
  k = 0;
  c = 0;
  while (k != nvois) {
    ivois = (int)(nvois * random_number());
    if (ivois > max)
      max = ivois;
    if (ivois < min)
      min = ivois;
    dejavu = 0;
    for (i = 0; i < k; i++) {
      if (liste[i] == ivois)
        dejavu++;
    }
    if (dejavu == 0) {
      liste[k] = ivois;
      printf("k =%3d c =%3d\n", k, c);
      k++;
    } else if (dejavu > 1) {
      printf("\n\non a enregistre plusieurs fois le meme\n");
      exit(0);
    }
    c++;
  }
  printf("max %d \t min %d \n", max, min);
  printf("nbre de tirage : %d\n", c);
  for (k = 0; k < nvois; k++)
    printf("%3d %3d\n", k, liste[k]);
}
```