user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  xor    %edi,%edi
  push   %rbx
  sub    $0x8,%rsp
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  xor    %eax,%eax
  call   <rand@plt>
  lea    D8(%rip),%rdi
  cltd
  shr    $0x1e,%edx
  lea    (%rax,%rdx,1),%ebx
  and    $0x3,%ebx
  sub    %edx,%ebx
  call   <system@plt>
  add    $0x1,%ebx
  lea    D7(%rip),%rdi
  call   <puts@plt>
  cmp    $0x3,%ebx
  je     L27
  cmp    $0x4,%ebx
  je     L48
  cmp    $0x1,%ebx
  je     L4
  cmp    $0x2,%ebx
  jne    L20
  lea    D12(%rip),%rdi
  call   <puts@plt>
L20:
  lea    D89(%rip),%rdi
  xor    %eax,%eax
  lea    D32(%rip),%rbp
  call   <printf@plt>
  xor    %eax,%eax
  call   <rand@plt>
  mov    %rbp,%rdi
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x5397829d,%rdx,%rdx
  sar    $0x1f,%ecx
  sar    $0x24,%rdx
  sub    %ecx,%edx
  imul   $0x31,%edx,%edx
  sub    %edx,%eax
  lea    0x1(%rax),%esi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <rand@plt>
  mov    %rbp,%rdi
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x5397829d,%rdx,%rdx
  sar    $0x1f,%ecx
  sar    $0x24,%rdx
  sub    %ecx,%edx
  imul   $0x31,%edx,%edx
  sub    %edx,%eax
  lea    0x1(%rax),%esi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <rand@plt>
  mov    %rbp,%rdi
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x5397829d,%rdx,%rdx
  sar    $0x1f,%ecx
  sar    $0x24,%rdx
  sub    %ecx,%edx
  imul   $0x31,%edx,%edx
  sub    %edx,%eax
  lea    0x1(%rax),%esi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <rand@plt>
  mov    %rbp,%rdi
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x5397829d,%rdx,%rdx
  sar    $0x1f,%ecx
  sar    $0x24,%rdx
  sub    %ecx,%edx
  imul   $0x31,%edx,%edx
  sub    %edx,%eax
  lea    0x1(%rax),%esi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <rand@plt>
  mov    %rbp,%rdi
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x5397829d,%rdx,%rdx
  sar    $0x1f,%ecx
  sar    $0x24,%rdx
  sub    %ecx,%edx
  imul   $0x31,%edx,%edx
  sub    %edx,%eax
  lea    0x1(%rax),%esi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <rand@plt>
  lea    D64(%rip),%rdi
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x5397829d,%rdx,%rdx
  sar    $0x1f,%ecx
  sar    $0x24,%rdx
  sub    %ecx,%edx
  imul   $0x31,%edx,%edx
  sub    %edx,%eax
  lea    0x1(%rax),%esi
  xor    %eax,%eax
  call   <printf@plt>
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  ret
L27:
  lea    D29(%rip),%rdi
  call   <puts@plt>
  jmp    L20
L4:
  lea    D69(%rip),%rdi
  call   <puts@plt>
  jmp    L20
L48:
  lea    D51(%rip),%rdi
  call   <puts@plt>
  jmp    L20
```

tool_calls: name: disassemble_data
arguments: tag: D8
type_infered: string
name: disassemble_data
arguments: tag: D7
type_infered: string
name: disassemble_data
arguments: tag: D12
type_infered: string
name: disassemble_data
arguments: tag: D89
type_infered: string
name: disassemble_data
arguments: tag: D32
type_infered: string
name: disassemble_data
arguments: tag: D64
type_infered: string
name: disassemble_data
arguments: tag: D29
type_infered: string
name: disassemble_data
arguments: tag: D69
type_infered: string
name: disassemble_data
arguments: tag: D51
type_infered: string

tool: D8: clear

tool: D7: 
(Mis)Fortune Cookie

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

tool: D89: 
Your Unlucky Lotto Numbers: 

tool: D32: %d 

tool: D64: %d


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

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

tool: D51: 
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;
}
```