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

```asm
<AskForBonus>:
  endbr64
  push   %r15
  mov    %rdx,%r15
  push   %r14
  mov    %rcx,%r14
  push   %r13
  mov    %rdi,%r13
  lea    D85(%rip),%rdi
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %r8,%rbp
  push   %rbx
  lea    D26(%rip),%rbx
  sub    $0x8,%rsp
  call   <printf@plt>
  lea    D17(%rip),%rdi
  call   <printf@plt>
  lea    D6(%rip),%rdi
  call   <printf@plt>
  lea    D93(%rip),%rdi
  call   <printf@plt>
  lea    D73(%rip),%rdi
  call   <printf@plt>
  mov    %r13,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D14(%rip),%r13
  nopl   0x0(%rax,%rax,1)
L9:
  mov    %r13,%rdi
  call   <printf@plt>
  xor    %eax,%eax
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  cmpl   $0x1,(%r12)
  ja     L9
  lea    D51(%rip),%rdi
  lea    D41(%rip),%r12
  call   <printf@plt>
  mov    %r15,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D32(%rip),%rdi
  call   <printf@plt>
  mov    %r14,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  nopl   (%rax)
L6:
  mov    %r12,%rdi
  call   <printf@plt>
  xor    %eax,%eax
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  cmpl   $0x1,0x0(%rbp)
  ja     L6
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D85
datatype: string
name: disassemble_data
arguments: tag: D26
datatype: string
name: disassemble_data
arguments: tag: D17
datatype: string
name: disassemble_data
arguments: tag: D6
datatype: string
name: disassemble_data
arguments: tag: D93
datatype: string
name: disassemble_data
arguments: tag: D73
datatype: string
name: disassemble_data
arguments: tag: D14
datatype: string
name: disassemble_data
arguments: tag: D51
datatype: string
name: disassemble_data
arguments: tag: D41
datatype: string
name: disassemble_data
arguments: tag: D32
datatype: string

tool: D85: ToBeFree's Dice Fight Probability Calculator, version 1.42.2


tool: D26: %d

tool: D17: This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.


tool: D6: GPL 3.0, https://github.com/ToBeFree/DiceCalculator



tool: D93: When the simulation is running, press Ctrl+C to exit.


tool: D73: Enter integer bonus (e.g. 1 or -2): 

tool: D14: Add 0.5 to the bonus? (0 for no, 1 for yes): 

tool: D51: How many dice? 

tool: D41: Enable fast calculation mode (print each 100,000,000th line only)? (0 for no, 1 for yes): 

tool: D32: How many sides per die? 

assistant: ```c
void AskForBonus(int *bonus, int *floatbonus, unsigned int *numberofdice, unsigned int *numberofsides, int *fastmode) {
  printf("ToBeFree's Dice Fight Probability Calculator, version 1.42.2\n");
  printf("This program is distributed in the hope that it will be useful, "
         "but WITHOUT ANY WARRANTY; "
         "without even the implied warranty of MERCHANTABILITY "
         "or FITNESS FOR A PARTICULAR PURPOSE.  See the "
         "GNU General Public License for more details.\n");
  printf("GPL 3.0, https://github.com/ToBeFree/DiceCalculator\n\n");
  printf("When the simulation is running, press Ctrl+C to exit.\n");
  printf("Enter integer bonus (e.g. 1 or -2): ");
  scanf("%d", bonus);
  do {
    printf("Add 0.5 to the bonus? (0 for no, 1 for yes): ");
    scanf("%d", floatbonus);
  } while (((*floatbonus) != 0) && ((*floatbonus) != 1));
  printf("How many dice? ");
  scanf("%d", numberofdice);
  printf("How many sides per die? ");
  scanf("%d", numberofsides);
  do {
    printf("Enable fast calculation mode (print each 100,000,000th line only)? "
           "(0 for no, 1 for yes): ");
    scanf("%d", fastmode);
  } while (((*fastmode) != 0) && ((*fastmode) != 1));
}
```