user: 这段汇编代码用C语言表示是什么样的?

```asm
<AskForBonus>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    %rsi,-0x10(%rbp)
  mov    %rdx,-0x18(%rbp)
  mov    %rcx,-0x20(%rbp)
  mov    %r8,-0x28(%rbp)
  lea    D117(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D126(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D136(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D130(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D90(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x8(%rbp),%rax
  mov    %rax,%rsi
  lea    D118(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
L9:
  lea    D114(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D118(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x10(%rbp),%rax
  mov    (%rax),%eax
  test   %eax,%eax
  je     L37
  mov    -0x10(%rbp),%rax
  mov    (%rax),%eax
  cmp    $0x1,%eax
  jne    L9
L37:
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x18(%rbp),%rax
  mov    %rax,%rsi
  lea    D118(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D118(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
L36:
  lea    D83(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  lea    D118(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  test   %eax,%eax
  je     L31
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  cmp    $0x1,%eax
  jne    L36
L31:
  nop
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D117
data_type: string
name: read_data
arguments: tag: D126
data_type: string
name: read_data
arguments: tag: D136
data_type: string
name: read_data
arguments: tag: D130
data_type: string
name: read_data
arguments: tag: D90
data_type: string
name: read_data
arguments: tag: D118
data_type: string
name: read_data
arguments: tag: D114
data_type: string
name: read_data
arguments: tag: D49
data_type: string
name: read_data
arguments: tag: D27
data_type: string
name: read_data
arguments: tag: D83
data_type: string

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


tool: D126: 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: D136: GPL 3.0, https://github.com/ToBeFree/DiceCalculator



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


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

tool: D118: %d

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

tool: D49: How many dice? 

tool: D27: How many sides per die? 

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

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));
}
```