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

```asm
<main>:
  endbr64
  push   %r12
  lea    D83(%rip),%rdi
  lea    D76(%rip),%r12
  push   %rbp
  lea    D78(%rip),%rbp
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  call   <puts@plt>
  lea    0x14(%rsp),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D22(%rip),%rdi
  call   <puts@plt>
  lea    0x18(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D64(%rip),%rdi
  call   <puts@plt>
  lea    0x1c(%rsp),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D17(%rip),%rdi
  call   <puts@plt>
  lea    0x20(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D90(%rip),%rdi
  call   <puts@plt>
  lea    0x24(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  pxor   %xmm1,%xmm1
  pxor   %xmm0,%xmm0
  xor    %eax,%eax
  cvtsi2ssl 0x14(%rsp),%xmm1
  pxor   %xmm2,%xmm2
  lea    D7(%rip),%rsi
  mulss  0x18(%rsp),%xmm1
  cvtsi2ssl 0x1c(%rsp),%xmm0
  lea    D28(%rip),%rdi
  mulss  0x20(%rsp),%xmm0
  pxor   %xmm3,%xmm3
  addss  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd 0x24(%rsp),%xmm0
  divsd  D104(%rip),%xmm0
  cvtss2sd %xmm1,%xmm2
  mulsd  %xmm2,%xmm0
  movss  %xmm1,0xc(%rsp)
  movsd  %xmm2,(%rsp)
  cvtsd2ss %xmm0,%xmm3
  movss  %xmm3,0x8(%rsp)
  call   <printf@plt>
  mov    $0x5b9f,%esi
  lea    D13(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x14(%rsp),%esi
  pxor   %xmm0,%xmm0
  lea    D59(%rip),%rdi
  mov    $0x1,%eax
  cvtss2sd 0x18(%rsp),%xmm0
  call   <printf@plt>
  mov    0x1c(%rsp),%esi
  pxor   %xmm0,%xmm0
  lea    D98(%rip),%rdi
  mov    $0x1,%eax
  cvtss2sd 0x20(%rsp),%xmm0
  call   <printf@plt>
  movsd  (%rsp),%xmm2
  mov    $0x1,%eax
  lea    D62(%rip),%rdi
  movapd %xmm2,%xmm0
  call   <printf@plt>
  lea    D87(%rip),%rdi
  pxor   %xmm0,%xmm0
  mov    $0x1,%eax
  cvtss2sd 0x8(%rsp),%xmm0
  call   <printf@plt>
  pxor   %xmm0,%xmm0
  movss  0xc(%rsp),%xmm1
  addss  0x8(%rsp),%xmm1
  lea    D89(%rip),%rdi
  mov    $0x1,%eax
  cvtss2sd %xmm1,%xmm0
  call   <printf@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  ret
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D83
datatype: string
name: read_data
arguments: label: D76
datatype: string
name: read_data
arguments: label: D78
datatype: string
name: read_data
arguments: label: D22
datatype: string
name: read_data
arguments: label: D64
datatype: string
name: read_data
arguments: label: D17
datatype: string
name: read_data
arguments: label: D90
datatype: string
name: read_data
arguments: label: D7
datatype: string
name: read_data
arguments: label: D28
datatype: string
name: read_data
arguments: label: D104
datatype: f64
name: read_data
arguments: label: D13
datatype: string
name: read_data
arguments: label: D59
datatype: string
name: read_data
arguments: label: D98
datatype: string
name: read_data
arguments: label: D62
datatype: string
name: read_data
arguments: label: D87
datatype: string
name: read_data
arguments: label: D89
datatype: string

tool: D83: how many quantities for item1 ?

tool: D76: %d

tool: D78: %f

tool: D22: what is the price for item1 ?

tool: D64: how many quantities for item2 ?

tool: D17: what is the price for item2 ?

tool: D90: how many percent is the tax ?

tool: D7: Alharbi

tool: D28:  the company is %s


tool: D104: 100

tool: D13:  the invoice number is %d


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


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


tool: D62:  the total is $%.2f 


tool: D87:  the tax is $%.2f


tool: D89:  the total cost is $%.2f


assistant: ```c
int main() {
  int item1_quantity;
  float item1_price;
  int item2_quantity;
  float item2_price;
  float tax;
  printf("how many quantities for item1 ?\n");
  scanf("%d", &item1_quantity);
  printf("what is the price for item1 ?\n");
  scanf("%f", &item1_price);
  printf("how many quantities for item2 ?\n");
  scanf("%d", &item2_quantity);
  printf("what is the price for item2 ?\n");
  scanf("%f", &item2_price);
  printf("how many percent is the tax ?\n");
  scanf("%f", &tax);
  float pretax_cost = (item1_quantity * item1_price) + (item2_quantity * item2_price);
  float tax_dollars = (tax / 100.0) * pretax_cost;
  float total_cost = pretax_cost + tax_dollars;
  printf(" the company is %s\n", "Alharbi");
  printf(" the invoice number is %d\n", 23455);
  printf(" item 1 : %d @ $%.2f per item \n", item1_quantity, item1_price);
  printf(" item 2 : %d @ $%.2f per item \n", item2_quantity, item2_price);
  printf(" the total is $%.2f \n", pretax_cost);
  printf(" the tax is $%.2f\n", tax_dollars);
  printf(" the total cost is $%.2f\n", total_cost);
  return 0;
}
```