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
  lea    D162(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x20(%rbp),%rcx
  lea    -0x24(%rbp),%rdx
  lea    -0x28(%rbp),%rax
  mov    %rax,%rsi
  lea    D124(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  movss  -0x28(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  ucomiss %xmm1,%xmm0
  jp     L11
  pxor   %xmm1,%xmm1
  ucomiss %xmm1,%xmm0
  jne    L11
  lea    D139(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%edi
  call   <exit@plt>
L11:
  movss  -0x24(%rbp),%xmm1
  movss  -0x24(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  -0x28(%rbp),%xmm2
  movss  D84(%rip),%xmm1
  mulss  %xmm1,%xmm2
  movss  -0x20(%rbp),%xmm1
  mulss  %xmm2,%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x1c(%rbp)
  pxor   %xmm0,%xmm0
  ucomiss -0x1c(%rbp),%xmm0
  jp     L5
  pxor   %xmm0,%xmm0
  ucomiss -0x1c(%rbp),%xmm0
  jne    L5
  movss  -0x24(%rbp),%xmm0
  movss  D79(%rip),%xmm1
  xorps  %xmm0,%xmm1
  movss  -0x28(%rbp),%xmm0
  movaps %xmm0,%xmm2
  addss  %xmm0,%xmm2
  divss  %xmm2,%xmm1
  movaps %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  movss  -0xc(%rbp),%xmm0
  movss  %xmm0,-0x10(%rbp)
  lea    D82(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd -0xc(%rbp),%xmm0
  pxor   %xmm3,%xmm3
  cvtss2sd -0x10(%rbp),%xmm3
  movq   %xmm3,%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  jmp    L54
L5:
  movss  -0x1c(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  jbe    L0
  mov    -0x1c(%rbp),%eax
  movd   %eax,%xmm0
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  -0x24(%rbp),%xmm2
  movaps %xmm0,%xmm1
  subss  %xmm2,%xmm1
  movss  -0x28(%rbp),%xmm0
  movaps %xmm0,%xmm2
  addss  %xmm0,%xmm2
  divss  %xmm2,%xmm1
  movaps %xmm1,%xmm0
  movss  %xmm0,-0x10(%rbp)
  movss  -0x24(%rbp),%xmm0
  movss  D79(%rip),%xmm1
  xorps  %xmm1,%xmm0
  movss  %xmm0,-0x34(%rbp)
  mov    -0x1c(%rbp),%eax
  movd   %eax,%xmm0
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  -0x34(%rbp),%xmm1
  subss  %xmm0,%xmm1
  movss  -0x28(%rbp),%xmm0
  movaps %xmm0,%xmm2
  addss  %xmm0,%xmm2
  divss  %xmm2,%xmm1
  movaps %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  lea    D102(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd -0xc(%rbp),%xmm0
  pxor   %xmm4,%xmm4
  cvtss2sd -0x10(%rbp),%xmm4
  movq   %xmm4,%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  jmp    L54
L0:
  movss  -0x24(%rbp),%xmm0
  movss  D79(%rip),%xmm1
  xorps  %xmm0,%xmm1
  movss  -0x28(%rbp),%xmm0
  movaps %xmm0,%xmm2
  addss  %xmm0,%xmm2
  divss  %xmm2,%xmm1
  movaps %xmm1,%xmm0
  movss  %xmm0,-0x18(%rbp)
  mov    -0x1c(%rbp),%eax
  movd   %eax,%xmm0
  call   <fabs@plt>
  movd   %xmm0,%eax
  movd   %eax,%xmm0
  call   <sqrt@plt>
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
  movss  -0x28(%rbp),%xmm0
  movaps %xmm0,%xmm2
  addss  %xmm0,%xmm2
  divss  %xmm2,%xmm1
  movaps %xmm1,%xmm0
  movss  %xmm0,-0x14(%rbp)
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd -0x14(%rbp),%xmm0
  pxor   %xmm5,%xmm5
  cvtss2sd -0x18(%rbp),%xmm5
  movq   %xmm5,%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D92(%rip),%rax
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd -0x14(%rbp),%xmm0
  pxor   %xmm6,%xmm6
  cvtss2sd -0x18(%rbp),%xmm6
  movq   %xmm6,%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
L54:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L25
  call   <__stack_chk_fail@plt>
L25:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D162
data_type: string
name: retrieve_data
arguments: data_tag: D13
data_type: string
name: retrieve_data
arguments: data_tag: D7
data_type: string
name: retrieve_data
arguments: data_tag: D2
data_type: string
name: retrieve_data
arguments: data_tag: D124
data_type: string
name: retrieve_data
arguments: data_tag: D139
data_type: string
name: retrieve_data
arguments: data_tag: D84
data_type: byte[4]
name: retrieve_data
arguments: data_tag: D79
data_type: byte[4]
name: retrieve_data
arguments: data_tag: D82
data_type: string
name: retrieve_data
arguments: data_tag: D4
data_type: string
name: retrieve_data
arguments: data_tag: D102
data_type: string
name: retrieve_data
arguments: data_tag: D16
data_type: string
name: retrieve_data
arguments: data_tag: D92
data_type: string
name: retrieve_data
arguments: data_tag: D31
data_type: string

tool: D162: 
*************************************************************

tool: D13: 
*	PROGRAM TO FIND ROOTS OF A QUADRATIC EQUATION	    *

tool: D7: *************************************************************

tool: D2: 
Enter the coefficients of a,b,c 

tool: D124: %f%f%f

tool: D139: 
Invalid input, not a quadratic equation - try again

tool: {"D84": [0x00,0x00,0x80,0x40]}

tool: {"D79": [0x00,0x00,0x00,0x80]}

tool: D82: 
Roots are equal and the Roots are 

tool: D4: 
Root1 = %g and Root2 = %g


tool: D102: 
The Roots are Real and distinct, they are 

tool: D16: 
The Roots are imaginary and they are

tool: D92: 
Root1 = %g+i%g


tool: D31: 
Root2 = %g-i%g


assistant: ```c
int main(void) {
  float fA, fB, fC, fDesc, fX1, fX2, fRealp, fImagp;
  printf("\n*************************************************************");
  printf("\n*\tPROGRAM TO FIND ROOTS OF A QUADRATIC EQUATION\t    *\n");
  printf("*************************************************************");
  printf("\nEnter the coefficients of a,b,c \n");
  scanf("%f%f%f", &fA, &fB, &fC);
  if (0 == fA) {
    printf("\nInvalid input, not a quadratic equation - try again\n");
    exit(0);
  }
  fDesc = fB * fB - 4 * fA * fC;
  if (0 == fDesc) {
    fX1 = fX2 = -fB / (2 * fA);
    printf("\nRoots are equal and the Roots are \n");
    printf("\nRoot1 = %g and Root2 = %g\n", fX1, fX2);
  } else if (fDesc > 0) {
    fX1 = (-fB + sqrt(fDesc)) / (2 * fA);
    fX2 = (-fB - sqrt(fDesc)) / (2 * fA);
    printf("\nThe Roots are Real and distinct, they are \n");
    printf("\nRoot1 = %g and Root2 = %g\n", fX1, fX2);
  } else {
    fRealp = -fB / (2 * fA);
    fImagp = sqrt(fabs(fDesc)) / (2 * fA);
    printf("\nThe Roots are imaginary and they are\n");
    printf("\nRoot1 = %g+i%g\n", fRealp, fImagp);
    printf("\nRoot2 = %g-i%g\n", fRealp, fImagp);
  }
  return 0;
}
```