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

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

tool_calls: name: parse_data
arguments: data_label: D22
datatype: string
name: parse_data
arguments: data_label: D39
datatype: string
name: parse_data
arguments: data_label: D58
datatype: string
name: parse_data
arguments: data_label: D55
datatype: string
name: parse_data
arguments: data_label: D8
datatype: string
name: parse_data
arguments: data_label: D20
datatype: string
name: parse_data
arguments: data_label: D5
datatype: string
name: parse_data
arguments: data_label: D6
datatype: string

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

tool: D39: %d

tool: D58: How many quarters do you have? 

tool: D55: How many dimes do you have? 

tool: D8: How many nickels do you have? 

tool: D20: How many pennies do you have? 

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


tool: D6: 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;
}
```