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

```asm
<main>:
  endbr64
  push   %r12
  lea    D54(%rip),%rdi
  lea    D52(%rip),%r12
  push   %rbp
  lea    D157(%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    D161(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x18(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D57(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x1c(%rsp),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D89(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x20(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D102(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x24(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  pxor   %xmm1,%xmm1
  pxor   %xmm3,%xmm3
  pxor   %xmm2,%xmm2
  cvtsi2ssl 0x14(%rsp),%xmm1
  mulss  0x18(%rsp),%xmm1
  lea    D114(%rip),%rsi
  cvtsi2ssl 0x1c(%rsp),%xmm3
  mulss  0x20(%rsp),%xmm3
  lea    D158(%rip),%rdi
  movaps %xmm1,%xmm0
  movss  %xmm1,0xc(%rsp)
  addss  %xmm3,%xmm0
  movss  %xmm3,0x8(%rsp)
  cvttss2si %xmm0,%eax
  movss  0x24(%rsp),%xmm0
  divss  D6(%rip),%xmm0
  cvtsi2ss %eax,%xmm2
  xor    %eax,%eax
  mulss  %xmm2,%xmm0
  movss  %xmm2,0x4(%rsp)
  movss  %xmm0,(%rsp)
  call   <printf@plt>
  lea    D138(%rip),%rsi
  lea    D141(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  movss  0xc(%rsp),%xmm1
  mov    0x14(%rsp),%esi
  lea    D92(%rip),%rdi
  pxor   %xmm0,%xmm0
  mov    $0x2,%eax
  cvtss2sd 0x18(%rsp),%xmm0
  cvtss2sd %xmm1,%xmm1
  call   <printf@plt>
  movss  0x8(%rsp),%xmm3
  mov    0x1c(%rsp),%esi
  lea    D4(%rip),%rdi
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  mov    $0x2,%eax
  cvtss2sd %xmm3,%xmm1
  cvtss2sd 0x20(%rsp),%xmm0
  call   <printf@plt>
  lea    D65(%rip),%rdi
  pxor   %xmm0,%xmm0
  mov    $0x1,%eax
  cvtss2sd 0x24(%rsp),%xmm0
  call   <printf@plt>
  pxor   %xmm0,%xmm0
  lea    D28(%rip),%rdi
  mov    $0x1,%eax
  cvtss2sd (%rsp),%xmm0
  call   <printf@plt>
  movss  0x4(%rsp),%xmm2
  addss  (%rsp),%xmm2
  pxor   %xmm0,%xmm0
  lea    D60(%rip),%rdi
  mov    $0x1,%eax
  cvtss2sd %xmm2,%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: disassemble_data
arguments: data_label: D54
type_infered: string
name: disassemble_data
arguments: data_label: D52
type_infered: string
name: disassemble_data
arguments: data_label: D157
type_infered: string
name: disassemble_data
arguments: data_label: D161
type_infered: string
name: disassemble_data
arguments: data_label: D57
type_infered: string
name: disassemble_data
arguments: data_label: D89
type_infered: string
name: disassemble_data
arguments: data_label: D102
type_infered: string
name: disassemble_data
arguments: data_label: D114
type_infered: string
name: disassemble_data
arguments: data_label: D158
type_infered: string
name: disassemble_data
arguments: data_label: D6
type_infered: byte[4]
name: disassemble_data
arguments: data_label: D138
type_infered: string
name: disassemble_data
arguments: data_label: D141
type_infered: string
name: disassemble_data
arguments: data_label: D92
type_infered: string
name: disassemble_data
arguments: data_label: D4
type_infered: string
name: disassemble_data
arguments: data_label: D65
type_infered: string
name: disassemble_data
arguments: data_label: D28
type_infered: string
name: disassemble_data
arguments: data_label: D60
type_infered: string

tool: D54: Enter item 1 quantity: 	

tool: D52: %d

tool: D157: %f

tool: D161: Enter item 1 price:$	$

tool: D57: Enter item 2 quantity:	

tool: D89: Enter item 2 price:	$

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

tool: D114: Matthew. Inc.

tool: D158: 		  %s


tool: {"D6": [0x00,0x00,0xc8,0x42]}

tool: D138: 153

tool: D141: 		Invoice:%s


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


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


tool: D65: Tax rate:			 %.2f%%   


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


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


assistant: ```c
int main() {
  int quantity1;
  float price1;
  int quantity2;
  float price2;
  float taxrate;
  float item1;
  float item2;
  int pretotal;
  float total;
  float taxdollars;
  char company;
  printf("Enter item 1 quantity: \t");
  scanf("%d", &quantity1);
  printf("Enter item 1 price:$\t$");
  scanf("%f", &price1);
  printf("Enter item 2 quantity:\t");
  scanf("%d", &quantity2);
  printf("Enter item 2 price:\t$");
  scanf("%f", &price2);
  printf("Enter tax rate (in percent):\t");
  scanf("%f", &taxrate);
  item1 = quantity1 * price1;
  item2 = quantity2 * price2;
  pretotal = (price1 * quantity1) + (price2 * quantity2);
  taxdollars = (taxrate / 100) * pretotal;
  total = ((taxrate / 100) * pretotal) + pretotal;
  printf("\t\t  %s\n", "Matthew. Inc.");
  printf("\t\tInvoice:%s\n", "153");
  printf("Item 1:%d @ $%.2f per item\t $%.2f \n", quantity1, price1, item1);
  printf("Item 2:%d @ $%.2f per item\t $%.2f  \n", quantity2, price2, item2);
  printf("Tax rate:\t\t\t %.2f%%   \n", taxrate);
  printf("Tax amount:\t\t\t $%.2f  \n", taxdollars);
  printf("Total cost:\t\t\t $%.2f  \n", total);
  return 0;
}
```