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

```asm
<main>:
  endbr64
  push   %r14
  lea    D51(%rip),%rdi
  push   %r13
  push   %r12
  push   %rbp
  lea    D19(%rip),%rbp
  push   %rbx
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D8(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x8(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D21(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D79(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D47(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rdi
  lea    0x14(%rsp),%rsi
  call   <scanf@plt>
  mov    0x4(%rsp),%ebx
  mov    0x8(%rsp),%r14d
  xor    %eax,%eax
  mov    0xc(%rsp),%r13d
  mov    0x10(%rsp),%ebp
  lea    D15(%rip),%rdi
  mov    0x14(%rsp),%r12d
  mov    %r14d,%edx
  mov    %ebx,%esi
  mov    %ebp,%r8d
  mov    %r13d,%ecx
  mov    %r12d,%r9d
  call   <printf@plt>
  imul   $0x32,%ebx,%eax
  lea    (%r14,%r14,4),%edx
  lea    (%rdx,%rdx,4),%edx
  lea    (%rbx,%r14,1),%esi
  add    %r13d,%esi
  lea    D36(%rip),%rdi
  add    %edx,%eax
  lea    0x0(%r13,%r13,4),%edx
  add    %ebp,%esi
  lea    (%rax,%rdx,2),%edx
  lea    0x0(%rbp,%rbp,4),%eax
  add    %r12d,%esi
  add    %eax,%edx
  xor    %eax,%eax
  add    %r12d,%edx
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  add    $0x20,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L5:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D51
type: string
name: unpack_data
arguments: data_tag: D19
type: string
name: unpack_data
arguments: data_tag: D8
type: string
name: unpack_data
arguments: data_tag: D21
type: string
name: unpack_data
arguments: data_tag: D79
type: string
name: unpack_data
arguments: data_tag: D47
type: string
name: unpack_data
arguments: data_tag: D15
type: string
name: unpack_data
arguments: data_tag: D36
type: string

tool: D51: How many half dollars do you have? 

tool: D19: %d

tool: D8: How many quarters do you have? 

tool: D21: How many dimes do you have? 

tool: D79: How many nickels do you have? 

tool: D47: How many pennies do you have? 

tool: D15: 
You entered:	%d half dollars
		%d quarters
		%d quarters
		%d dimes
		%d pennies


tool: D36: The value of your %d coins is equivalent to %d pennies


assistant: ```c
int main(void) {
  int h;
  int q;
  int d;
  int n;
  int p;
  int total, value;
  printf("How many half dollars do you have? ");
  scanf("%d", &h);
  printf("How many quarters do you have? ");
  scanf("%d", &q);
  printf("How many dimes do you have? ");
  scanf("%d", &d);
  printf("How many nickels do you have? ");
  scanf("%d", &n);
  printf("How many pennies do you have? ");
  scanf("%d", &p);
  total = h + q + d + n + p;
  value = 50 * h + 25 * q + 10 * d + 5 * n + p;
  printf("\nYou entered:\t%d half dollars\n\t\t%d quarters\n\t\t%d quarters\n\t\t%d dimes\n\t\t%d pennies\n", h, q, d, n, p);
  printf("The value of your %d coins is equivalent to %d pennies\n", total, value);
  return 0;
}
```