user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rsi
  lea    D43(%rip),%rdi
  call   <scanf@plt>
  movsd  D109(%rip),%xmm0
  mulsd  (%rsp),%xmm0
  call   <rint@plt>
  mov    %eax,%ebx
  lea    D125(%rip),%rdi
  call   <puts@plt>
  movslq %ebx,%rbp
  imul   $0x68db8bad,%rbp,%rbp
  sar    $0x2c,%rbp
  mov    %ebx,%eax
  sar    $0x1f,%eax
  sub    %eax,%ebp
  mov    %ebp,%esi
  lea    D68(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  imul   $0x2710,%ebp,%ebp
  sub    %ebp,%ebx
  movslq %ebx,%rbp
  imul   $0x68db8bad,%rbp,%rbp
  sar    $0x2b,%rbp
  mov    %ebx,%eax
  sar    $0x1f,%eax
  sub    %eax,%ebp
  mov    %ebp,%esi
  lea    D128(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  imul   $0x1388,%ebp,%ebp
  sub    %ebp,%ebx
  movslq %ebx,%rbp
  imul   $0x10624dd3,%rbp,%rbp
  sar    $0x27,%rbp
  mov    %ebx,%eax
  sar    $0x1f,%eax
  sub    %eax,%ebp
  mov    %ebp,%esi
  lea    D98(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  imul   $0x7d0,%ebp,%ebp
  sub    %ebp,%ebx
  movslq %ebx,%rbp
  imul   $0x10624dd3,%rbp,%rbp
  sar    $0x26,%rbp
  mov    %ebx,%eax
  sar    $0x1f,%eax
  sub    %eax,%ebp
  mov    %ebp,%esi
  lea    D107(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  imul   $0x3e8,%ebp,%ebp
  sub    %ebp,%ebx
  movslq %ebx,%rbp
  imul   $0x10624dd3,%rbp,%rbp
  sar    $0x25,%rbp
  mov    %ebx,%eax
  sar    $0x1f,%eax
  sub    %eax,%ebp
  mov    %ebp,%esi
  lea    D150(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  imul   $0x1f4,%ebp,%ebp
  sub    %ebp,%ebx
  movslq %ebx,%rbp
  imul   $0x51eb851f,%rbp,%rbp
  sar    $0x26,%rbp
  mov    %ebx,%eax
  sar    $0x1f,%eax
  sub    %eax,%ebp
  mov    %ebp,%esi
  lea    D89(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  imul   $0xc8,%ebp,%ebp
  sub    %ebp,%ebx
  lea    D143(%rip),%rdi
  call   <puts@plt>
  movslq %ebx,%rbp
  imul   $0x51eb851f,%rbp,%rbp
  sar    $0x25,%rbp
  mov    %ebx,%eax
  sar    $0x1f,%eax
  sub    %eax,%ebp
  mov    %ebp,%esi
  lea    D116(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  imul   $0x64,%ebp,%ebp
  sub    %ebp,%ebx
  movslq %ebx,%rbp
  imul   $0x51eb851f,%rbp,%rbp
  sar    $0x24,%rbp
  mov    %ebx,%eax
  sar    $0x1f,%eax
  sub    %eax,%ebp
  mov    %ebp,%esi
  lea    D159(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  imul   $0x32,%ebp,%ebp
  sub    %ebp,%ebx
  movslq %ebx,%rbp
  imul   $0x51eb851f,%rbp,%rbp
  sar    $0x23,%rbp
  mov    %ebx,%eax
  sar    $0x1f,%eax
  sub    %eax,%ebp
  mov    %ebp,%esi
  lea    D155(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x0(%rbp,%rbp,4),%eax
  lea    (%rax,%rax,4),%eax
  sub    %eax,%ebx
  movslq %ebx,%rbp
  imul   $0x66666667,%rbp,%rbp
  sar    $0x22,%rbp
  mov    %ebx,%eax
  sar    $0x1f,%eax
  sub    %eax,%ebp
  mov    %ebp,%esi
  lea    D142(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x0(%rbp,%rbp,4),%eax
  add    %eax,%eax
  sub    %eax,%ebx
  movslq %ebx,%rbp
  imul   $0x66666667,%rbp,%rbp
  sar    $0x21,%rbp
  mov    %ebx,%eax
  sar    $0x1f,%eax
  sub    %eax,%ebp
  mov    %ebp,%esi
  lea    D138(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x0(%rbp,%rbp,4),%eax
  mov    %ebx,%esi
  sub    %eax,%esi
  lea    D49(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L0
  mov    $0x0,%eax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  ret
L0:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D43
type_infered: string
name: unpack_data
arguments: data_label: D109
type_infered: byte[8]
name: unpack_data
arguments: data_label: D125
type_infered: string
name: unpack_data
arguments: data_label: D68
type_infered: string
name: unpack_data
arguments: data_label: D128
type_infered: string
name: unpack_data
arguments: data_label: D98
type_infered: string
name: unpack_data
arguments: data_label: D107
type_infered: string
name: unpack_data
arguments: data_label: D150
type_infered: string
name: unpack_data
arguments: data_label: D89
type_infered: string
name: unpack_data
arguments: data_label: D143
type_infered: string
name: unpack_data
arguments: data_label: D116
type_infered: string
name: unpack_data
arguments: data_label: D159
type_infered: string
name: unpack_data
arguments: data_label: D155
type_infered: string
name: unpack_data
arguments: data_label: D142
type_infered: string
name: unpack_data
arguments: data_label: D138
type_infered: string
name: unpack_data
arguments: data_label: D49
type_infered: string

tool: D43: %lf

tool: {"D109": [0x00,0x00,0x00,0x00,0x00,0x00,0x59,0x40]}

tool: D125: NOTAS:

tool: D68: %d nota(s) de R$ 100.00


tool: D128: %d nota(s) de R$ 50.00


tool: D98: %d nota(s) de R$ 20.00


tool: D107: %d nota(s) de R$ 10.00


tool: D150: %d nota(s) de R$ 5.00


tool: D89: %d nota(s) de R$ 2.00


tool: D143: MOEDAS:

tool: D116: %d moeda(s) de R$ 1.00


tool: D159: %d moeda(s) de R$ 0.50


tool: D155: %d moeda(s) de R$ 0.25


tool: D142: %d moeda(s) de R$ 0.10


tool: D138: %d moeda(s) de R$ 0.05


tool: D49: %d moeda(s) de R$ 0.01


assistant: ```c
int main() {
  double x;
  int a;
  scanf("%lf", &x);
  a = rint(x * 100);
  printf("NOTAS:\n");
  printf("%d nota(s) de R$ 100.00\n", a / 10000);
  a %= 10000;
  printf("%d nota(s) de R$ 50.00\n", a / 5000);
  a %= 5000;
  printf("%d nota(s) de R$ 20.00\n", a / 2000);
  a %= 2000;
  printf("%d nota(s) de R$ 10.00\n", a / 1000);
  a %= 1000;
  printf("%d nota(s) de R$ 5.00\n", a / 500);
  a %= 500;
  printf("%d nota(s) de R$ 2.00\n", a / 200);
  a %= 200;
  printf("MOEDAS:\n");
  printf("%d moeda(s) de R$ 1.00\n", a / 100);
  a %= 100;
  printf("%d moeda(s) de R$ 0.50\n", a / 50);
  a %= 50;
  printf("%d moeda(s) de R$ 0.25\n", a / 25);
  a %= 25;
  printf("%d moeda(s) de R$ 0.10\n", a / 10);
  a %= 10;
  printf("%d moeda(s) de R$ 0.05\n", a / 5);
  a %= 5;
  printf("%d moeda(s) de R$ 0.01\n", a / 1);
  return 0;
}
```