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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D121(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x28(%rbp),%rax
  mov    %rax,%rsi
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D161(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D98(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D52(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x24(%rbp),%rax
  mov    %rax,%rsi
  lea    D98(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x28(%rbp),%eax
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
  movss  -0x20(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x1c(%rbp)
  movss  -0x24(%rbp),%xmm0
  mulss  -0x1c(%rbp),%xmm0
  movss  D76(%rip),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x18(%rbp)
  movss  -0x1c(%rbp),%xmm0
  subss  -0x18(%rbp),%xmm0
  movss  %xmm0,-0x14(%rbp)
  pxor   %xmm1,%xmm1
  cvtss2sd -0x14(%rbp),%xmm1
  movsd  D11(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D109(%rip),%xmm1
  divsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x10(%rbp)
  movss  -0x14(%rbp),%xmm0
  addss  -0x10(%rbp),%xmm0
  movss  %xmm0,-0xc(%rbp)
  mov    -0x28(%rbp),%eax
  mov    %eax,%esi
  lea    D133(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movss  -0x20(%rbp),%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd %xmm0,%xmm2
  movq   %xmm2,%rax
  movq   %rax,%xmm0
  lea    D39(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  lea    D116(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  pxor   %xmm3,%xmm3
  cvtss2sd -0x1c(%rbp),%xmm3
  movq   %xmm3,%rax
  movq   %rax,%xmm0
  lea    D72(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  pxor   %xmm4,%xmm4
  cvtss2sd -0x18(%rbp),%xmm4
  movq   %xmm4,%rax
  movq   %rax,%xmm0
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  pxor   %xmm5,%xmm5
  cvtss2sd -0x14(%rbp),%xmm5
  movq   %xmm5,%rax
  movq   %rax,%xmm0
  lea    D123(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  pxor   %xmm6,%xmm6
  cvtss2sd -0x10(%rbp),%xmm6
  movq   %xmm6,%rax
  movq   %rax,%xmm0
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  pxor   %xmm7,%xmm7
  cvtss2sd -0xc(%rbp),%xmm7
  movq   %xmm7,%rax
  movq   %rax,%xmm0
  lea    D94(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L2
  call   <__stack_chk_fail@plt>
L2:
  leave
  ret
```

tool_calls: name: read_data
arguments: label: D121
type_guessed: string
name: read_data
arguments: label: D17
type_guessed: string
name: read_data
arguments: label: D161
type_guessed: string
name: read_data
arguments: label: D98
type_guessed: string
name: read_data
arguments: label: D52
type_guessed: string
name: read_data
arguments: label: D76
type_guessed: f32
name: read_data
arguments: label: D11
type_guessed: f64
name: read_data
arguments: label: D109
type_guessed: byte[8]
name: read_data
arguments: label: D133
type_guessed: string
name: read_data
arguments: label: D39
type_guessed: string
name: read_data
arguments: label: D116
type_guessed: string
name: read_data
arguments: label: D72
type_guessed: string
name: read_data
arguments: label: D7
type_guessed: string
name: read_data
arguments: label: D123
type_guessed: string
name: read_data
arguments: label: D3
type_guessed: string
name: read_data
arguments: label: D94
type_guessed: string

tool: D121: 
Enter the number of items sold...	:

tool: D17: %d

tool: D161: 
Enter the unit price... 		:

tool: D98: %f

tool: D52: 
Enter the discount rate (%%)... 		:

tool: D76: 100

tool: D11: 8.5

tool: {"D109": [0x00,0x00,0x00,0x00,0x00,0x00,0x59,0x40]}

tool: D133: 
Quantity sold:    	%3d


tool: D39: Unit Price of items: %9.2f


tool: D116:                     ----------------

tool: D72: SubTotal :           %9.2f


tool: D7: Discount :           -%8.2f


tool: D123: Discounted total :   %9.2f


tool: D3: Sales Tax :          +%8.2f


tool: D94: Total sales :        %9.2f


assistant: ```c
int main() {
  int iQuantity;
  float fDiscRate, fDiscAmount, fUnitPrice, fSubTotal;
  float fSubTaxable, fTaxAm, fTotal;
  printf("\nEnter the number of items sold...\t:");
  scanf("%d", &iQuantity);
  printf("\nEnter the unit price... \t\t:");
  scanf("%f", &fUnitPrice);
  printf("\nEnter the discount rate (%%)... \t\t:");
  scanf("%f", &fDiscRate);
  fSubTotal = iQuantity * fUnitPrice;
  fDiscAmount = fSubTotal * fDiscRate / 100.0;
  fSubTaxable = fSubTotal - fDiscAmount;
  fTaxAm = fSubTaxable * 8.5 / 100.0;
  fTotal = fSubTaxable + fTaxAm;
  printf("\nQuantity sold:    \t%3d\n", iQuantity);
  printf("Unit Price of items: %9.2f\n", fUnitPrice);
  printf("                    ----------------\n");
  printf("SubTotal :           %9.2f\n", fSubTotal);
  printf("Discount :           -%8.2f\n", fDiscAmount);
  printf("Discounted total :   %9.2f\n", fSubTaxable);
  printf("Sales Tax :          +%8.2f\n", fTaxAm);
  printf("Total sales :        %9.2f\n", fTotal);
  return 0;
}
```