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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x34(%rbp)
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D35(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D74(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x3c(%rbp),%rdx
  lea    -0x40(%rbp),%rax
  mov    %rax,%rsi
  lea    D71(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D42(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x38(%rbp)
  jmp    L6
L44:
  lea    -0x30(%rbp),%rdx
  mov    -0x38(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  addl   $0x1,-0x38(%rbp)
L6:
  mov    -0x40(%rbp),%eax
  cmp    %eax,-0x38(%rbp)
  jle    L44
  movl   $0x0,-0x38(%rbp)
  jmp    L40
L7:
  mov    -0x38(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movaps %xmm0,%xmm1
  addss  -0x34(%rbp),%xmm1
  movss  -0x3c(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x34(%rbp)
  addl   $0x1,-0x38(%rbp)
L40:
  mov    -0x40(%rbp),%eax
  cmp    %eax,-0x38(%rbp)
  jl     L7
  mov    -0x40(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  -0x34(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x34(%rbp)
  pxor   %xmm2,%xmm2
  cvtss2sd -0x34(%rbp),%xmm2
  movq   %xmm2,%rax
  movq   %rax,%xmm0
  lea    D2(%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: extract_symbolic_data
arguments: data_label: D17
type: string
name: extract_symbolic_data
arguments: data_label: D35
type: string
name: extract_symbolic_data
arguments: data_label: D3
type: string
name: extract_symbolic_data
arguments: data_label: D74
type: string
name: extract_symbolic_data
arguments: data_label: D71
type: string
name: extract_symbolic_data
arguments: data_label: D42
type: string
name: extract_symbolic_data
arguments: data_label: D4
type: string
name: extract_symbolic_data
arguments: data_label: D2
type: string

tool: D17: 
*********************************************************************

tool: D35: 
*	PROGRAM TO EVALUATE A POLYNOMIAL USING HORNERS METHOD	    *

tool: D3: *********************************************************************

tool: D74: 
Enter the degree of the polynomial and value of x

tool: D71: %d%f

tool: D42: 
Enter the coefficients 

tool: D4: %d

tool: D2: 
Value of polynomial after evaluation=%f


assistant: ```c
int main(void) {
  int iDeg, i, iaCoeff[10];
  float fX, fSum = 0;
  printf("\n*********************************************************************");
  printf("\n*\tPROGRAM TO EVALUATE A POLYNOMIAL USING HORNERS METHOD\t    *\n");
  printf("*********************************************************************");
  printf("\nEnter the degree of the polynomial and value of x\n");
  scanf("%d%f", &iDeg, &fX);
  printf("\nEnter the coefficients \n");
  for (i = 0; i <= iDeg; i++) {
    scanf("%d", &iaCoeff[i]);
  }
  for (i = 0; i < iDeg; ++i) {
    fSum = (fSum + iaCoeff[i]) * fX;
  }
  fSum = fSum + iaCoeff[iDeg];
  printf("\nValue of polynomial after evaluation=%f\n", fSum);
  return 0;
}
```