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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x28(%rbp),%rcx
  lea    -0x30(%rbp),%rdx
  lea    -0x38(%rbp),%rax
  mov    %rax,%rsi
  lea    D114(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  movsd  -0x38(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jp     L40
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jne    L40
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L80
L40:
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x30(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x38(%rbp),%xmm2
  movsd  D24(%rip),%xmm1
  mulsd  %xmm1,%xmm2
  movsd  -0x28(%rbp),%xmm1
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x20(%rbp),%xmm0
  comisd D35(%rip),%xmm0
  jbe    L1
  movsd  D43(%rip),%xmm0
  comisd -0x20(%rbp),%xmm0
  jbe    L1
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x20(%rbp)
L1:
  pxor   %xmm0,%xmm0
  comisd -0x20(%rbp),%xmm0
  jbe    L94
  lea    D99(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L80
L94:
  pxor   %xmm0,%xmm0
  ucomisd -0x20(%rbp),%xmm0
  jp     L65
  pxor   %xmm0,%xmm0
  ucomisd -0x20(%rbp),%xmm0
  jne    L65
  movsd  -0x30(%rbp),%xmm0
  movq   D118(%rip),%xmm1
  xorpd  %xmm0,%xmm1
  movsd  -0x38(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  divsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movsd  -0x30(%rbp),%xmm0
  movq   D118(%rip),%xmm1
  xorpd  %xmm0,%xmm1
  movsd  -0x38(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  divsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L80
L65:
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  movq   %xmm0,%rax
  movsd  -0x30(%rbp),%xmm0
  movq   %rax,%xmm1
  subsd  %xmm0,%xmm1
  movsd  -0x38(%rbp),%xmm0
  movapd %xmm0,%xmm2
  addsd  %xmm0,%xmm2
  divsd  %xmm2,%xmm1
  movapd %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x30(%rbp),%xmm0
  movq   D118(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  movsd  -0x48(%rbp),%xmm1
  subsd  %xmm0,%xmm1
  movsd  -0x38(%rbp),%xmm0
  movapd %xmm0,%xmm2
  addsd  %xmm0,%xmm2
  divsd  %xmm2,%xmm1
  movapd %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0x10(%rbp),%xmm0
  mov    -0x18(%rbp),%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
L80:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L9
  call   <__stack_chk_fail@plt>
L9:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D114
type: string
name: extract_symbolic_data
arguments: label: D9
type: string
name: extract_symbolic_data
arguments: label: D24
type: byte[8]
name: extract_symbolic_data
arguments: label: D35
type: byte[16]
name: extract_symbolic_data
arguments: label: D43
type: f64
name: extract_symbolic_data
arguments: label: D99
type: string
name: extract_symbolic_data
arguments: label: D118
type: byte[8]
name: extract_symbolic_data
arguments: label: D17
type: string
name: extract_symbolic_data
arguments: label: D38
type: string

tool: D114: %lf%lf%lf

tool: D9: NEESG

tool: {"D24": [0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x40]}

tool: {"D35": [0xbb,0xbd,0xd7,0xd9,0xdf,0x7c,0xdb,0xbd,0x95,0xd6,0x26,0xe8,0x0b,0x2e,0x11,0x3e]}

tool: D43: 1e-09

tool: D99: NRR

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

tool: D17: %.2f


tool: D38: %.2f
%.2f


assistant: ```c
int main() {
  double a, b, c, delta, x1, x2;
  scanf("%lf%lf%lf", &a, &b, &c);
  if (a == 0)
    printf("NEESG\n");
  else {
    delta = (b * b) - (4 * a * c);
    if (delta > -0.0000000001 && delta < 0.000000001)
      delta = 0;
    if (delta < 0)
      printf("NRR\n");
    else if (delta == 0) {
      printf("%.2f\n", (-b / (2 * a)));
      printf("%.2f\n", (-b / (2 * a)));
    } else {
      x1 = (-b + sqrt(delta)) / (2 * a);
      x2 = (-b - sqrt(delta)) / (2 * a);
      printf("%.2f\n%.2f\n", x1, x2);
    }
  }
  return 0;
}
```