user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rsi
  lea    D44(%rip),%rdi
  call   <scanf@plt>
  movsd  (%rsp),%xmm0
  cvttsd2si %xmm0,%ebx
  mulsd  D112(%rip),%xmm0
  call   <round@plt>
  mov    %eax,%r12d
  lea    D27(%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    D31(%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    D81(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  imul   $0x32,%ebp,%ebp
  sub    %ebp,%ebx
  movslq %ebx,%rbp
  imul   $0x66666667,%rbp,%rbp
  sar    $0x23,%rbp
  mov    %ebx,%eax
  sar    $0x1f,%eax
  sub    %eax,%ebp
  mov    %ebp,%esi
  lea    D37(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x0(%rbp,%rbp,4),%eax
  shl    $0x2,%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    D138(%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    D131(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x0(%rbp,%rbp,4),%eax
  sub    %eax,%ebx
  mov    %ebx,%esi
  shr    $0x1f,%esi
  add    %ebx,%esi
  sar    %esi
  lea    D134(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D40(%rip),%rdi
  call   <puts@plt>
  mov    %ebx,%eax
  shr    $0x1f,%eax
  lea    (%rbx,%rax,1),%esi
  and    $0x1,%esi
  sub    %eax,%esi
  lea    D124(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movslq %r12d,%rbp
  imul   $0x51eb851f,%rbp,%rbp
  sar    $0x25,%rbp
  mov    %r12d,%eax
  sar    $0x1f,%eax
  sub    %eax,%ebp
  imul   $0x64,%ebp,%eax
  mov    %r12d,%ebp
  sub    %eax,%ebp
  movslq %ebp,%rbx
  imul   $0x51eb851f,%rbx,%rbx
  sar    $0x24,%rbx
  mov    %ebp,%eax
  sar    $0x1f,%eax
  sub    %eax,%ebx
  mov    %ebx,%esi
  lea    D74(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  imul   $0x32,%ebx,%ebx
  sub    %ebx,%ebp
  movslq %ebp,%rbx
  imul   $0x51eb851f,%rbx,%rbx
  sar    $0x23,%rbx
  mov    %ebp,%eax
  sar    $0x1f,%eax
  sub    %eax,%ebx
  mov    %ebx,%esi
  lea    D117(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    (%rbx,%rbx,4),%eax
  lea    (%rax,%rax,4),%eax
  sub    %eax,%ebp
  movslq %ebp,%rbx
  imul   $0x66666667,%rbx,%rbx
  sar    $0x22,%rbx
  mov    %ebp,%eax
  sar    $0x1f,%eax
  sub    %eax,%ebx
  mov    %ebx,%esi
  lea    D7(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    (%rbx,%rbx,4),%eax
  add    %eax,%eax
  sub    %eax,%ebp
  movslq %ebp,%rbx
  imul   $0x66666667,%rbx,%rbx
  sar    $0x21,%rbx
  mov    %ebp,%eax
  sar    $0x1f,%eax
  sub    %eax,%ebx
  mov    %ebx,%esi
  lea    D64(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    (%rbx,%rbx,4),%eax
  mov    %ebp,%esi
  sub    %eax,%esi
  lea    D63(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  mov    $0x0,%eax
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D44
datatype: string
name: unpack_data
arguments: tag: D112
datatype: byte[8]
name: unpack_data
arguments: tag: D27
datatype: string
name: unpack_data
arguments: tag: D31
datatype: string
name: unpack_data
arguments: tag: D81
datatype: string
name: unpack_data
arguments: tag: D37
datatype: string
name: unpack_data
arguments: tag: D138
datatype: string
name: unpack_data
arguments: tag: D131
datatype: string
name: unpack_data
arguments: tag: D134
datatype: string
name: unpack_data
arguments: tag: D40
datatype: string
name: unpack_data
arguments: tag: D124
datatype: string
name: unpack_data
arguments: tag: D74
datatype: string
name: unpack_data
arguments: tag: D117
datatype: string
name: unpack_data
arguments: tag: D7
datatype: string
name: unpack_data
arguments: tag: D64
datatype: string
name: unpack_data
arguments: tag: D63
datatype: string

tool: D44: %lf

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

tool: D27: NOTAS:

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


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


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


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


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


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


tool: D40: MOEDAS:

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


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


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


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


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


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


assistant: ```c
int main(void) {
  double n;
  scanf("%lf", &n);
  int N = n;
  int f = round(n * 100);
  printf("NOTAS:\n");
  printf("%d nota(s) de R$ 100.00\n", N / 100);
  printf("%d nota(s) de R$ 50.00\n", N % 100 / 50);
  printf("%d nota(s) de R$ 20.00\n", N % 100 % 50 / 20);
  printf("%d nota(s) de R$ 10.00\n", N % 100 % 50 % 20 / 10);
  printf("%d nota(s) de R$ 5.00\n", N % 100 % 50 % 20 % 10 / 5);
  printf("%d nota(s) de R$ 2.00\n", N % 100 % 50 % 20 % 10 % 5 / 2);
  printf("MOEDAS:\n");
  printf("%d moeda(s) de R$ 1.00\n", N % 100 % 50 % 20 % 10 % 5 - N % 100 % 50 % 20 % 10 % 5 / 2 * 2);
  printf("%d moeda(s) de R$ 0.50\n", f % 100 / 50);
  printf("%d moeda(s) de R$ 0.25\n", f % 100 % 50 / 25);
  printf("%d moeda(s) de R$ 0.10\n", f % 100 % 50 % 25 / 10);
  printf("%d moeda(s) de R$ 0.05\n", f % 100 % 50 % 25 % 10 / 5);
  printf("%d moeda(s) de R$ 0.01\n", f % 100 % 50 % 25 % 10 - f % 100 % 50 % 25 % 10 / 5 * 5);
  return 0;
}
```