user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D172(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x2c(%rbp),%rax
  mov    %rax,%rsi
  lea    D124(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D89(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x24(%rbp),%rax
  mov    %rax,%rsi
  lea    D100(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D173(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x28(%rbp),%rax
  mov    %rax,%rsi
  lea    D124(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D133(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D100(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D113(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x1c(%rbp),%rax
  mov    %rax,%rsi
  lea    D100(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x2c(%rbp),%eax
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
  movss  -0x24(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x18(%rbp)
  mov    -0x28(%rbp),%eax
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
  movss  -0x20(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x14(%rbp)
  movss  -0x18(%rbp),%xmm0
  movaps %xmm0,%xmm1
  addss  -0x14(%rbp),%xmm1
  movss  -0x1c(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  D106(%rip),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x10(%rbp)
  movss  -0x10(%rbp),%xmm0
  addss  -0x18(%rbp),%xmm0
  movss  -0x14(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  lea    D135(%rip),%rax
  mov    %rax,%rsi
  lea    D69(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x234c36,%esi
  lea    D85(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd -0x18(%rbp),%xmm0
  movss  -0x24(%rbp),%xmm1
  pxor   %xmm2,%xmm2
  cvtss2sd %xmm1,%xmm2
  movq   %xmm2,%rdx
  mov    -0x2c(%rbp),%eax
  movapd %xmm0,%xmm1
  movq   %rdx,%xmm0
  mov    %eax,%esi
  lea    D78(%rip),%rax
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd -0x14(%rbp),%xmm0
  movss  -0x20(%rbp),%xmm1
  pxor   %xmm3,%xmm3
  cvtss2sd %xmm1,%xmm3
  movq   %xmm3,%rdx
  mov    -0x28(%rbp),%eax
  movapd %xmm0,%xmm1
  movq   %rdx,%xmm0
  mov    %eax,%esi
  lea    D180(%rip),%rax
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  movss  -0x1c(%rbp),%xmm0
  pxor   %xmm4,%xmm4
  cvtss2sd %xmm0,%xmm4
  movq   %xmm4,%rax
  movq   %rax,%xmm0
  lea    D125(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  pxor   %xmm5,%xmm5
  cvtss2sd -0x10(%rbp),%xmm5
  movq   %xmm5,%rax
  movq   %rax,%xmm0
  lea    D67(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  pxor   %xmm6,%xmm6
  cvtss2sd -0xc(%rbp),%xmm6
  movq   %xmm6,%rax
  movq   %rax,%xmm0
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L3
  call   <__stack_chk_fail@plt>
L3:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D172
type_infered: string
name: retrieve_data
arguments: tag: D124
type_infered: string
name: retrieve_data
arguments: tag: D89
type_infered: string
name: retrieve_data
arguments: tag: D100
type_infered: string
name: retrieve_data
arguments: tag: D173
type_infered: string
name: retrieve_data
arguments: tag: D133
type_infered: string
name: retrieve_data
arguments: tag: D113
type_infered: string
name: retrieve_data
arguments: tag: D106
type_infered: f32
name: retrieve_data
arguments: tag: D135
type_infered: string
name: retrieve_data
arguments: tag: D69
type_infered: string
name: retrieve_data
arguments: tag: D85
type_infered: string
name: retrieve_data
arguments: tag: D78
type_infered: string
name: retrieve_data
arguments: tag: D180
type_infered: string
name: retrieve_data
arguments: tag: D125
type_infered: string
name: retrieve_data
arguments: tag: D67
type_infered: string
name: retrieve_data
arguments: tag: D3
type_infered: string

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

tool: D124:  %d

tool: D89: What is the price of item 1?
$

tool: D100:  %f

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

tool: D133: What is the price of item 2?
$

tool: D113: What is the tax rate for item1?(as percentage)

tool: D106: 100

tool: D135: Tru Inc.

tool: D69: 
	%s


tool: D85: Invoice #%d



tool: D78: Item1: %d @ $%.2f per item	$%.2f


tool: D180: Item2: %d @ $%.2f per item	$%.2f


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


tool: D67: Tax amount:	%.2f


tool: D3: Total cost:	%.2f


assistant: ```c
int main() {
  int item1_quantity, item2_quantity;
  float item1_price, item2_price;
  float tax_rate;
  printf("What is the quantity of item 1?\n");
  scanf(" %d", &item1_quantity);
  printf("What is the price of item 1?\n$");
  scanf(" %f", &item1_price);
  printf("What is the quantity of item 2?\n");
  scanf(" %d", &item2_quantity);
  printf("What is the price of item 2?\n$");
  scanf(" %f", &item2_price);
  printf("What is the tax rate for item1?(as percentage)\n");
  scanf(" %f", &tax_rate);
  float item1_total = item1_quantity * item1_price;
  float item2_total = item2_quantity * item2_price;
  float tax_total = (item1_total + item2_total) * tax_rate / 100;
  float total_cost = tax_total + item1_total + item2_total;
  printf("\n\t%s\n", "Tru Inc.");
  printf("Invoice #%d\n\n", 2313270);
  printf("Item1: %d @ $%.2f per item\t$%.2f\n", item1_quantity, item1_price, item1_total);
  printf("Item2: %d @ $%.2f per item\t$%.2f\n", item2_quantity, item2_price, item2_total);
  printf("Tax rate:\t%.2f%%\n", tax_rate);
  printf("Tax amount:\t%.2f\n", tax_total);
  printf("Total cost:\t%.2f\n", total_cost);
  return 0;
}
```