user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  sub    $0x18,%rsp
  lea    D18(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%rsi
  call   <scanf@plt>
  movslq 0x4(%rsp),%rsi
  lea    D65(%rip),%rdi
  mov    %rsi,%rax
  imul   $0x51eb851f,%rsi,%rsi
  sar    $0x1f,%eax
  sar    $0x25,%rsi
  sub    %eax,%esi
  call   <printf@plt>
  movslq 0x4(%rsp),%rax
  lea    D42(%rip),%rdi
  mov    %rax,%rdx
  imul   $0x51eb851f,%rax,%rax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sar    $0x25,%rax
  sub    %ecx,%eax
  imul   $0x64,%eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  movslq %eax,%rsi
  mov    %eax,0x4(%rsp)
  sar    $0x1f,%eax
  imul   $0x51eb851f,%rsi,%rsi
  sar    $0x24,%rsi
  sub    %eax,%esi
  call   <printf@plt>
  movslq 0x4(%rsp),%rax
  lea    D44(%rip),%rdi
  mov    %rax,%rdx
  imul   $0x51eb851f,%rax,%rax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sar    $0x24,%rax
  sub    %ecx,%eax
  imul   $0x32,%eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  movslq %eax,%rsi
  mov    %eax,0x4(%rsp)
  sar    $0x1f,%eax
  imul   $0x66666667,%rsi,%rsi
  sar    $0x22,%rsi
  sub    %eax,%esi
  call   <printf@plt>
  movslq 0x4(%rsp),%rax
  lea    D45(%rip),%rdi
  mov    %rax,%rcx
  imul   $0x66666667,%rax,%rax
  mov    %ecx,%edx
  sar    $0x22,%rax
  sar    $0x1f,%edx
  sub    %edx,%eax
  lea    (%rax,%rax,4),%edx
  mov    %ecx,%eax
  add    %edx,%edx
  sub    %edx,%eax
  movslq %eax,%rsi
  mov    %eax,0x4(%rsp)
  sar    $0x1f,%eax
  imul   $0x66666667,%rsi,%rsi
  sar    $0x21,%rsi
  sub    %eax,%esi
  call   <printf@plt>
  movslq 0x4(%rsp),%rax
  lea    D12(%rip),%rdi
  mov    %rax,%rdx
  imul   $0x66666667,%rax,%rax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sar    $0x21,%rax
  sub    %ecx,%eax
  lea    (%rax,%rax,4),%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,%esi
  mov    %eax,0x4(%rsp)
  shr    $0x1f,%esi
  add    %eax,%esi
  sar    %esi
  call   <printf@plt>
  mov    0x4(%rsp),%esi
  lea    D62(%rip),%rdi
  mov    %esi,%eax
  shr    $0x1f,%eax
  add    %eax,%esi
  and    $0x1,%esi
  sub    %eax,%esi
  mov    %esi,0x4(%rsp)
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L4
  xor    %eax,%eax
  add    $0x18,%rsp
  ret
L4:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D18
type_infered: string
name: parse_data
arguments: data_label: D65
type_infered: string
name: parse_data
arguments: data_label: D42
type_infered: string
name: parse_data
arguments: data_label: D44
type_infered: string
name: parse_data
arguments: data_label: D45
type_infered: string
name: parse_data
arguments: data_label: D12
type_infered: string
name: parse_data
arguments: data_label: D62
type_infered: string

tool: D18: %d

tool: D65: %d notas de 100.


tool: D42: %d notas de 50.


tool: D44: %d notas de 10.


tool: D45: %d notas de 5.


tool: D12: %d notas de 2.


tool: D62: %d moeda de 1.


assistant: ```c
int main() {
  int valor;
  scanf("%d", &valor);
  printf("%d notas de 100.\n", valor / 100);
  valor = valor % 100;
  printf("%d notas de 50.\n", valor / 50);
  valor = valor % 50;
  printf("%d notas de 10.\n", valor / 10);
  valor = valor % 10;
  printf("%d notas de 5.\n", valor / 5);
  valor = valor % 5;
  printf("%d notas de 2.\n", valor / 2);
  valor = valor % 2;
  printf("%d moeda de 1.\n", valor);
  return 0;
}
```