user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0xc(%rbp)
  movl   $0x0,-0x30(%rbp)
  movl   $0x0,-0x28(%rbp)
  movl   $0x0,-0x24(%rbp)
  movl   $0x0,-0x20(%rbp)
  movl   $0x0,-0x1c(%rbp)
  movl   $0x0,-0x18(%rbp)
  movl   $0x0,-0x14(%rbp)
  movl   $0x1,-0x10(%rbp)
  movl   $0x1,-0x2c(%rbp)
  mov    $0x0,%edi
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  jmp    L33
L114:
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x30(%rbp),%rax
  mov    %rax,%rsi
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  jmp    L0
L18:
  mov    $0x0,%eax
  call   <rand@plt>
  mov    %eax,%edx
  movslq %edx,%rax
  imul   $0x2aaaaaab,%rax,%rax
  shr    $0x20,%rax
  mov    %edx,%esi
  sar    $0x1f,%esi
  mov    %eax,%ecx
  sub    %esi,%ecx
  mov    %ecx,%eax
  add    %eax,%eax
  add    %ecx,%eax
  add    %eax,%eax
  sub    %eax,%edx
  mov    %edx,%ecx
  lea    0x1(%rcx),%eax
  mov    %eax,-0xc(%rbp)
  addl   $0x1,-0x10(%rbp)
  mov    -0x30(%rbp),%eax
  test   %eax,%eax
  jns    L108
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L0
L108:
  cmpl   $0x1,-0xc(%rbp)
  jne    L59
  addl   $0x1,-0x28(%rbp)
  jmp    L0
L59:
  cmpl   $0x2,-0xc(%rbp)
  jne    L69
  addl   $0x1,-0x24(%rbp)
  jmp    L0
L69:
  cmpl   $0x3,-0xc(%rbp)
  jne    L141
  addl   $0x1,-0x20(%rbp)
  jmp    L0
L141:
  cmpl   $0x4,-0xc(%rbp)
  jne    L165
  addl   $0x1,-0x1c(%rbp)
  jmp    L0
L165:
  cmpl   $0x5,-0xc(%rbp)
  jne    L65
  addl   $0x1,-0x18(%rbp)
  jmp    L0
L65:
  cmpl   $0x6,-0xc(%rbp)
  jne    L0
  addl   $0x1,-0x14(%rbp)
L0:
  mov    -0x30(%rbp),%eax
  cmp    %eax,-0x10(%rbp)
  jle    L18
  mov    -0x28(%rbp),%eax
  mov    %eax,%esi
  lea    D50(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x24(%rbp),%eax
  mov    %eax,%esi
  lea    D62(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x20(%rbp),%eax
  mov    %eax,%esi
  lea    D107(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x1c(%rbp),%eax
  mov    %eax,%esi
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x18(%rbp),%eax
  mov    %eax,%esi
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x14(%rbp),%eax
  mov    %eax,%esi
  lea    D75(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D108(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x2c(%rbp),%rax
  mov    %rax,%rsi
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
L33:
  mov    -0x2c(%rbp),%eax
  cmp    $0x1,%eax
  je     L114
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L100
  call   <__stack_chk_fail@plt>
L100:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D14
datatype: string
name: retrieve_data
arguments: tag: D25
datatype: string
name: retrieve_data
arguments: tag: D30
datatype: string
name: retrieve_data
arguments: tag: D50
datatype: string
name: retrieve_data
arguments: tag: D62
datatype: string
name: retrieve_data
arguments: tag: D107
datatype: string
name: retrieve_data
arguments: tag: D6
datatype: string
name: retrieve_data
arguments: tag: D2
datatype: string
name: retrieve_data
arguments: tag: D75
datatype: string
name: retrieve_data
arguments: tag: D108
datatype: string

tool: D14: Roll the die how many times?

tool: D25: %d

tool: D30: Please enter a real number.

tool: D50: Ones: %d


tool: D62: Twos: %d


tool: D107: Threes: %d


tool: D6: Fours: %d


tool: D2: Fives: %d


tool: D75: Sixes: %d


tool: D108: 
Would you like to run the program again? 
Please push 1 for yes, or 2 for no.

assistant: ```c
int main() {
  int die = 0;
  int roll = 0;
  int num1 = 0;
  int num2 = 0;
  int num3 = 0;
  int num4 = 0;
  int num5 = 0;
  int num6 = 0;
  int i = 1;
  int j = 1;
  time_t;
  char Y, y, N, n;
  srand(time(NULL));
  while (j == 1) {
    printf("Roll the die how many times?\n");
    scanf("%d", &roll);
    while (i <= roll) {
      die = rand() % 6 + 1;
      i++;
      if (roll < 0) {
        printf("Please enter a real number.\n");
      } else if (die == 1) {
        num1++;
      } else if (die == 2) {
        num2++;
      } else if (die == 3) {
        num3++;
      } else if (die == 4) {
        num4++;
      } else if (die == 5) {
        num5++;
      } else if (die == 6) {
        num6++;
      }
    }
    printf("Ones: %d\n", num1);
    printf("Twos: %d\n", num2);
    printf("Threes: %d\n", num3);
    printf("Fours: %d\n", num4);
    printf("Fives: %d\n", num5);
    printf("Sixes: %d\n", num6);
    printf("\nWould you like to run the program again? \nPlease push 1 for yes, or 2 for no.\n");
    scanf("%d", &j);
  }
  return 0;
}
```