user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %r12
  lea    D122(%rip),%rdi
  lea    D111(%rip),%r12
  push   %rbp
  lea    D138(%rip),%rbp
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D54(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x1c(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D103(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x18(%rsp),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D29(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x20(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D27(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x24(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  pxor   %xmm2,%xmm2
  pxor   %xmm1,%xmm1
  xor    %eax,%eax
  cvtsi2ssl 0x14(%rsp),%xmm2
  mulss  0x1c(%rsp),%xmm2
  pxor   %xmm3,%xmm3
  cvtsi2ssl 0x18(%rsp),%xmm1
  pxor   %xmm0,%xmm0
  lea    D48(%rip),%rsi
  mulss  0x20(%rsp),%xmm1
  cvtss2sd 0x24(%rsp),%xmm0
  divsd  D140(%rip),%xmm0
  pxor   %xmm4,%xmm4
  lea    D36(%rip),%rdi
  addss  %xmm1,%xmm2
  cvtss2sd %xmm2,%xmm3
  mulsd  %xmm3,%xmm0
  movss  %xmm2,0xc(%rsp)
  movsd  %xmm3,(%rsp)
  cvtsd2ss %xmm0,%xmm4
  movss  %xmm4,0x8(%rsp)
  call   <printf@plt>
  mov    $0xbef8,%esi
  lea    D81(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x14(%rsp),%esi
  pxor   %xmm1,%xmm1
  movss  0x1c(%rsp),%xmm0
  lea    D50(%rip),%rdi
  mov    $0x2,%eax
  cvtsi2ss %esi,%xmm1
  mulss  %xmm0,%xmm1
  cvtss2sd %xmm0,%xmm0
  cvtss2sd %xmm1,%xmm1
  call   <printf@plt>
  mov    0x18(%rsp),%esi
  pxor   %xmm1,%xmm1
  movss  0x20(%rsp),%xmm0
  lea    D93(%rip),%rdi
  mov    $0x2,%eax
  cvtsi2ss %esi,%xmm1
  mulss  %xmm0,%xmm1
  cvtss2sd %xmm0,%xmm0
  cvtss2sd %xmm1,%xmm1
  call   <printf@plt>
  lea    D151(%rip),%rdi
  pxor   %xmm0,%xmm0
  mov    $0x1,%eax
  cvtss2sd 0x24(%rsp),%xmm0
  call   <printf@plt>
  movsd  (%rsp),%xmm3
  mov    $0x1,%eax
  lea    D121(%rip),%rdi
  movapd %xmm3,%xmm0
  call   <printf@plt>
  lea    D41(%rip),%rdi
  pxor   %xmm0,%xmm0
  mov    $0x1,%eax
  cvtss2sd 0x8(%rsp),%xmm0
  call   <printf@plt>
  pxor   %xmm0,%xmm0
  movss  0xc(%rsp),%xmm2
  addss  0x8(%rsp),%xmm2
  lea    D76(%rip),%rdi
  mov    $0x1,%eax
  cvtss2sd %xmm2,%xmm0
  call   <printf@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L2
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  ret
L2:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D122
data_type: string
name: parse_data
arguments: data_tag: D111
data_type: string
name: parse_data
arguments: data_tag: D138
data_type: string
name: parse_data
arguments: data_tag: D54
data_type: string
name: parse_data
arguments: data_tag: D103
data_type: string
name: parse_data
arguments: data_tag: D29
data_type: string
name: parse_data
arguments: data_tag: D27
data_type: string
name: parse_data
arguments: data_tag: D48
data_type: string
name: parse_data
arguments: data_tag: D140
data_type: f64
name: parse_data
arguments: data_tag: D36
data_type: string
name: parse_data
arguments: data_tag: D81
data_type: string
name: parse_data
arguments: data_tag: D50
data_type: string
name: parse_data
arguments: data_tag: D93
data_type: string
name: parse_data
arguments: data_tag: D151
data_type: string
name: parse_data
arguments: data_tag: D121
data_type: string
name: parse_data
arguments: data_tag: D41
data_type: string
name: parse_data
arguments: data_tag: D76
data_type: string

tool: D122: Enter Item 1 quantity: 

tool: D111: %d

tool: D138: %f

tool: D54: Enter Item 1 price: $

tool: D103: Enter Item 2 quantity: 

tool: D29: Enter Item 2 price: $

tool: D27: Enter tax rate (in percent): 

tool: D48: Ziad Homood

tool: D140: 100

tool: D36: 		%s


tool: D81: %d


tool: D50: Item 1: %d @ $%.2f per item	 $%.2f


tool: D93: Item 2: %d @ $%.2f per item	 $%.2f


tool: D151: tax percent:			 %f%%


tool: D121: pretax cost:			 $%.2f


tool: D41: tax dollars:			 $%.2f


tool: D76: total cost:			 $%.2f


assistant: ```c
int main() {
  int q1, q2;
  float p1, p2;
  float tax_rate;
  float pretax_cost;
  float tax_dollars;
  float total_cost;
  printf("Enter Item 1 quantity: ");
  scanf("%d", &q1);
  printf("Enter Item 1 price: $");
  scanf("%f", &p1);
  printf("Enter Item 2 quantity: ");
  scanf("%d", &q2);
  printf("Enter Item 2 price: $");
  scanf("%f", &p2);
  printf("Enter tax rate (in percent): ");
  scanf("%f", &tax_rate);
  pretax_cost = q1 * p1 + q2 * p2;
  tax_dollars = tax_rate / 100.0 * pretax_cost;
  total_cost = pretax_cost + tax_dollars;
  printf("\t\t%s\n", "Ziad Homood");
  printf("%d\n", 48888);
  printf("Item 1: %d @ $%.2f per item\t $%.2f\n", q1, p1, (q1 * p1));
  printf("Item 2: %d @ $%.2f per item\t $%.2f\n", q2, p2, (q2 * p2));
  printf("tax percent:\t\t\t %f%%\n", tax_rate);
  printf("pretax cost:\t\t\t $%.2f\n", pretax_cost);
  printf("tax dollars:\t\t\t $%.2f\n", tax_dollars);
  printf("total cost:\t\t\t $%.2f\n", total_cost);
  return 0;
}
```