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

```asm
<main>:
  endbr64
  push   %r13
  xor    %edi,%edi
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  lea    D37(%rip),%rdi
  call   <puts@plt>
  lea    D74(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <rand@plt>
  lea    D105(%rip),%rdi
  movslq %eax,%rdx
  mov    %rdx,%rbx
  imul   $0x2aaaaaab,%rdx,%rdx
  mov    %ebx,%eax
  sar    $0x1f,%eax
  shr    $0x20,%rdx
  sub    %eax,%edx
  lea    (%rdx,%rdx,2),%eax
  add    %eax,%eax
  sub    %eax,%ebx
  xor    %eax,%eax
  add    $0x1,%ebx
  mov    %ebx,%esi
  call   <printf@plt>
  xor    %eax,%eax
  call   <rand@plt>
  lea    D86(%rip),%rdi
  movslq %eax,%rdx
  mov    %rdx,%r12
  imul   $0x2aaaaaab,%rdx,%rdx
  mov    %r12d,%eax
  sar    $0x1f,%eax
  shr    $0x20,%rdx
  sub    %eax,%edx
  lea    (%rdx,%rdx,2),%eax
  add    %eax,%eax
  sub    %eax,%r12d
  xor    %eax,%eax
  add    $0x1,%r12d
  mov    %r12d,%esi
  call   <printf@plt>
  lea    D4(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <rand@plt>
  lea    D30(%rip),%rdi
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x2aaaaaab,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x1f,%ecx
  add    %r12d,%ebx
  sub    %ecx,%edx
  lea    (%rdx,%rdx,2),%edx
  add    %edx,%edx
  sub    %edx,%eax
  lea    0x1(%rax),%r13d
  xor    %eax,%eax
  mov    %r13d,%esi
  call   <printf@plt>
  xor    %eax,%eax
  call   <rand@plt>
  lea    D20(%rip),%rdi
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x2aaaaaab,%rdx,%rdx
  sar    $0x1f,%ecx
  shr    $0x20,%rdx
  sub    %ecx,%edx
  lea    (%rdx,%rdx,2),%edx
  add    %edx,%edx
  sub    %edx,%eax
  lea    0x1(%rax),%ebp
  xor    %eax,%eax
  mov    %ebp,%esi
  add    %ebp,%r13d
  call   <printf@plt>
  xor    %eax,%eax
  mov    %r13d,%edx
  mov    %ebx,%esi
  lea    D77(%rip),%rdi
  call   <printf@plt>
  cmp    %r13d,%ebx
  jg     L1
  jl     L32
  lea    D24(%rip),%rdi
  call   <puts@plt>
L9:
  add    $0x8,%rsp
  mov    $0xa,%edi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  jmp    10a0 <putchar@plt>
L32:
  lea    D12(%rip),%rdi
  call   <puts@plt>
  jmp    L9
L1:
  lea    D5(%rip),%rdi
  call   <puts@plt>
  jmp    L9
```

tool_calls: name: read_data
arguments: data_label: D37
type: string
name: read_data
arguments: data_label: D74
type: string
name: read_data
arguments: data_label: D105
type: string
name: read_data
arguments: data_label: D86
type: string
name: read_data
arguments: data_label: D4
type: string
name: read_data
arguments: data_label: D30
type: string
name: read_data
arguments: data_label: D20
type: string
name: read_data
arguments: data_label: D77
type: string
name: read_data
arguments: data_label: D24
type: string
name: read_data
arguments: data_label: D12
type: string
name: read_data
arguments: data_label: D5
type: string

tool: D37: Lets play a game.

tool: D74: The highest score of the two dice wins

tool: D105: My first throw is %i


tool: D86: My second throw is %i


tool: D4: Your turn now.

tool: D30: Your first throw is %i


tool: D20: Your second throw is %i


tool: D77: I scored %i , you scored %i


tool: D24: Its a tie.

tool: D12: You win , you were lucky that time.

tool: D5: I win , better luck next time.

assistant: ```c
void main() {
  int mydice1, mydice2, yourdice1, yourdice2, myresult, yourresult;
  srand((unsigned)time(NULL));
  printf("Lets play a game.\n");
  printf("The highest score of the two dice wins\n");
  mydice1 = rand() % 6 + 1;
  printf("My first throw is %i\n", mydice1);
  mydice2 = rand() % 6 + 1;
  printf("My second throw is %i\n", mydice2);
  printf("Your turn now.\n");
  yourdice1 = rand() % 6 + 1;
  printf("Your first throw is %i\n", yourdice1);
  yourdice2 = rand() % 6 + 1;
  printf("Your second throw is %i\n", yourdice2);
  myresult = mydice1 + mydice2;
  yourresult = yourdice1 + yourdice2;
  printf("I scored %i , you scored %i\n", myresult, yourresult);
  if (myresult > yourresult)
    printf("I win , better luck next time.\n");
  else if (myresult < yourresult)
    printf("You win , you were lucky that time.\n");
  else
    printf("Its a tie.\n");
  printf("\n");
}
```