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

```asm
<main>:
  endbr64
  push   %r12
  lea    D22(%rip),%rdi
  lea    D73(%rip),%r12
  push   %rbp
  lea    D63(%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    D70(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x18(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D21(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x1c(%rsp),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D14(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x20(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D53(%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
  pxor   %xmm0,%xmm0
  lea    D91(%rip),%rsi
  mulss  0x18(%rsp),%xmm2
  cvtsi2ssl 0x1c(%rsp),%xmm1
  pxor   %xmm3,%xmm3
  cvtss2sd 0x24(%rsp),%xmm0
  mulss  0x20(%rsp),%xmm1
  divsd  D86(%rip),%xmm0
  lea    D66(%rip),%rdi
  addss  %xmm1,%xmm2
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm2,%xmm1
  mulsd  %xmm1,%xmm0
  movss  %xmm2,0xc(%rsp)
  cvtsd2ss %xmm0,%xmm3
  movss  %xmm3,0x8(%rsp)
  call   <printf@plt>
  mov    $0xd,%esi
  lea    D156(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x14(%rsp),%esi
  pxor   %xmm1,%xmm1
  movss  0x18(%rsp),%xmm0
  lea    D123(%rip),%rdi
  mov    $0x2,%eax
  cvtsi2ss %esi,%xmm1
  mulss  %xmm0,%xmm1
  cvtss2sd %xmm0,%xmm0
  cvtss2sd %xmm1,%xmm1
  call   <printf@plt>
  mov    0x1c(%rsp),%esi
  pxor   %xmm1,%xmm1
  movss  0x20(%rsp),%xmm0
  lea    D87(%rip),%rdi
  mov    $0x2,%eax
  cvtsi2ss %esi,%xmm1
  mulss  %xmm0,%xmm1
  cvtss2sd %xmm0,%xmm0
  cvtss2sd %xmm1,%xmm1
  call   <printf@plt>
  lea    D17(%rip),%rdi
  pxor   %xmm0,%xmm0
  mov    $0x1,%eax
  cvtss2sd 0x24(%rsp),%xmm0
  call   <printf@plt>
  lea    D95(%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    D109(%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: label: D22
type_infered: string
name: parse_data
arguments: label: D73
type_infered: string
name: parse_data
arguments: label: D63
type_infered: string
name: parse_data
arguments: label: D70
type_infered: string
name: parse_data
arguments: label: D21
type_infered: string
name: parse_data
arguments: label: D14
type_infered: string
name: parse_data
arguments: label: D53
type_infered: string
name: parse_data
arguments: label: D91
type_infered: string
name: parse_data
arguments: label: D86
type_infered: f64
name: parse_data
arguments: label: D66
type_infered: string
name: parse_data
arguments: label: D156
type_infered: string
name: parse_data
arguments: label: D123
type_infered: string
name: parse_data
arguments: label: D87
type_infered: string
name: parse_data
arguments: label: D17
type_infered: string
name: parse_data
arguments: label: D95
type_infered: string
name: parse_data
arguments: label: D109
type_infered: string

tool: D22: What is the quantity of item 1 ?

tool: D73: %d

tool: D63: %f

tool: D70: What is the price of item 1 ?

tool: D21: What is the quantity of item 2 ?

tool: D14: What is the price of item 2 ?

tool: D53: What is the tax percent of item 1 ?

tool: D91: Wesam

tool: D86: 100

tool: D66: 		 %s


tool: D156: invoice %d


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


tool: D87:  item 2: %d @ $%.2f per item $%.2f


tool: D17: Tax rate:%.2f


tool: D95: Tax amount:$%.2f


tool: D109: Total cost:$%.2f


assistant: ```c
int main() {
  int item_1;
  float price_1;
  int item_2;
  float price_2;
  float tax_percent;
  float pretax_cost;
  float tax_dollars;
  float total_cost;
  printf("What is the quantity of item 1 ?");
  scanf("%d", &item_1);
  printf("What is the price of item 1 ?");
  scanf("%f", &price_1);
  printf("What is the quantity of item 2 ?");
  scanf("%d", &item_2);
  printf("What is the price of item 2 ?");
  scanf("%f", &price_2);
  printf("What is the tax percent of item 1 ?");
  scanf("%f", &tax_percent);
  pretax_cost = (item_1 * price_1) + (item_2 * price_2);
  tax_dollars = (tax_percent / 100.0) * pretax_cost;
  total_cost = pretax_cost + tax_dollars;
  printf("\t\t %s\n", "Wesam");
  printf("invoice %d\n", 13);
  printf("Item 1: %d @ $%.2f per item $%.2f\n", item_1, price_1, item_1 * price_1);
  printf(" item 2: %d @ $%.2f per item $%.2f\n", item_2, price_2, item_2 * price_2);
  printf("Tax rate:%.2f\n", tax_percent);
  printf("Tax amount:$%.2f\n", tax_dollars);
  printf("Total cost:$%.2f\n", total_cost);
  return 0;
}
```