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

```asm
<main>:
  endbr64
  push   %rbx
  mov    $0x0,%edi
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  mov    $0x0,%eax
  call   <rand@plt>
  cltd
  shr    $0x1e,%edx
  lea    (%rax,%rdx,1),%ebx
  and    $0x3,%ebx
  sub    %edx,%ebx
  add    $0x1,%ebx
  lea    D18(%rip),%rdi
  call   <system@plt>
  lea    D73(%rip),%rdi
  call   <puts@plt>
  cmp    $0x3,%ebx
  je     L23
  jg     L57
  cmp    $0x1,%ebx
  je     L4
  cmp    $0x2,%ebx
  jne    L8
  lea    D49(%rip),%rdi
  call   <puts@plt>
  jmp    L8
L4:
  lea    D20(%rip),%rdi
  call   <puts@plt>
L8:
  lea    D14(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x5397829d,%rdx,%rdx
  sar    $0x24,%rdx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x31,%edx,%edx
  sub    %edx,%eax
  lea    0x1(%rax),%esi
  lea    D19(%rip),%rbx
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x5397829d,%rdx,%rdx
  sar    $0x24,%rdx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x31,%edx,%edx
  sub    %edx,%eax
  lea    0x1(%rax),%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x5397829d,%rdx,%rdx
  sar    $0x24,%rdx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x31,%edx,%edx
  sub    %edx,%eax
  lea    0x1(%rax),%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x5397829d,%rdx,%rdx
  sar    $0x24,%rdx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x31,%edx,%edx
  sub    %edx,%eax
  lea    0x1(%rax),%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x5397829d,%rdx,%rdx
  sar    $0x24,%rdx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x31,%edx,%edx
  sub    %edx,%eax
  lea    0x1(%rax),%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x5397829d,%rdx,%rdx
  sar    $0x24,%rdx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x31,%edx,%edx
  sub    %edx,%eax
  lea    0x1(%rax),%esi
  lea    D37(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  pop    %rbx
  ret
L23:
  lea    D42(%rip),%rdi
  call   <puts@plt>
  jmp    L8
L57:
  lea    D84(%rip),%rdi
  call   <puts@plt>
  jmp    L8
```

tool_calls: name: parse_data
arguments: tag: D18
data_type: string
name: parse_data
arguments: tag: D73
data_type: string
name: parse_data
arguments: tag: D49
data_type: string
name: parse_data
arguments: tag: D20
data_type: string
name: parse_data
arguments: tag: D14
data_type: string
name: parse_data
arguments: tag: D19
data_type: string
name: parse_data
arguments: tag: D37
data_type: string
name: parse_data
arguments: tag: D42
data_type: string
name: parse_data
arguments: tag: D84
data_type: string

tool: D18: clear

tool: D73: 
(Mis)Fortune Cookie

tool: D49: 
You will drown in a nearby lake.

tool: D20: 
You will be shot to death today.

tool: D14: 
Your Unlucky Lotto Numbers: 

tool: D19: %d 

tool: D37: %d


tool: D42: 
You will lose all of your money.

tool: D84: 
You have AIDS.

assistant: ```c
int main() {
  int iRandomNum = 0;
  srand(time(NULL));
  iRandomNum = (rand() % 4) + 1;
  system("clear");
  printf("\n(Mis)Fortune Cookie\n");
  switch (iRandomNum) {
  case 1:
    printf("\nYou will be shot to death today.\n");
    break;
  case 2:
    printf("\nYou will drown in a nearby lake.\n");
    break;
  case 3:
    printf("\nYou will lose all of your money.\n");
    break;
  case 4:
    printf("\nYou have AIDS.\n");
    break;
  }
  printf("\nYour Unlucky Lotto Numbers: ");
  printf("%d ", (rand() % 49) + 1);
  printf("%d ", (rand() % 49) + 1);
  printf("%d ", (rand() % 49) + 1);
  printf("%d ", (rand() % 49) + 1);
  printf("%d ", (rand() % 49) + 1);
  printf("%d\n", (rand() % 49) + 1);
  return 0;
}
```