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

```asm
<main>:
  endbr64
  push   %rbx
  lea    D35(%rip),%rdi
  sub    $0x50,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  lea    0x40(%rsp),%rcx
  lea    0x38(%rsp),%rdx
  lea    0x30(%rsp),%rsi
  call   <scanf@plt>
  movsd  0x38(%rsp),%xmm0
  mov    $0x2,%edi
  call   <pow@plt>
  movsd  0x30(%rsp),%xmm2
  pxor   %xmm1,%xmm1
  movsd  D12(%rip),%xmm0
  cvtsi2sd %eax,%xmm1
  pxor   %xmm3,%xmm3
  mulsd  %xmm2,%xmm0
  mulsd  0x40(%rsp),%xmm0
  subsd  %xmm0,%xmm1
  ucomisd %xmm1,%xmm3
  ja     L45
  sqrtsd %xmm1,%xmm1
  movsd  0x38(%rsp),%xmm4
  movapd %xmm2,%xmm6
  addsd  %xmm2,%xmm6
  movapd %xmm4,%xmm7
  xorpd  D42(%rip),%xmm7
  movapd %xmm1,%xmm5
  subsd  %xmm4,%xmm5
  movq   %xmm7,%rbx
  divsd  %xmm6,%xmm5
L43:
  ucomisd %xmm3,%xmm2
  jp     L50
  jne    L50
L39:
  lea    D51(%rip),%rdi
  call   <puts@plt>
L25:
  lea    D62(%rip),%rdi
  call   <system@plt>
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L1
  add    $0x50,%rsp
  xor    %eax,%eax
  pop    %rbx
  ret
L50:
  movapd %xmm4,%xmm0
  mov    $0x2,%edi
  movsd  %xmm5,0x18(%rsp)
  movsd  %xmm6,0x10(%rsp)
  movsd  %xmm1,0x8(%rsp)
  call   <pow@plt>
  pxor   %xmm2,%xmm2
  pxor   %xmm3,%xmm3
  movsd  D12(%rip),%xmm0
  mulsd  0x30(%rsp),%xmm0
  cvtsi2sd %eax,%xmm2
  mulsd  0x40(%rsp),%xmm0
  subsd  %xmm0,%xmm2
  comisd %xmm2,%xmm3
  ja     L39
  movsd  0x18(%rsp),%xmm5
  lea    D68(%rip),%rdi
  mov    $0x1,%eax
  movapd %xmm5,%xmm0
  call   <printf@plt>
  movsd  0x8(%rsp),%xmm1
  movq   %rbx,%xmm0
  movsd  0x10(%rsp),%xmm6
  lea    D57(%rip),%rdi
  mov    $0x1,%eax
  subsd  %xmm1,%xmm0
  divsd  %xmm6,%xmm0
  call   <printf@plt>
  jmp    L25
L45:
  movapd %xmm1,%xmm0
  movsd  %xmm2,0x8(%rsp)
  movsd  %xmm1,0x28(%rsp)
  call   <sqrt@plt>
  movsd  0x8(%rsp),%xmm2
  movsd  0x38(%rsp),%xmm4
  movsd  0x28(%rsp),%xmm1
  subsd  %xmm4,%xmm0
  movapd %xmm2,%xmm6
  movapd %xmm4,%xmm7
  movsd  %xmm2,0x20(%rsp)
  addsd  %xmm2,%xmm6
  xorpd  D42(%rip),%xmm7
  movsd  %xmm4,0x8(%rsp)
  movapd %xmm0,%xmm5
  movapd %xmm1,%xmm0
  movq   %xmm7,%rbx
  divsd  %xmm6,%xmm5
  movsd  %xmm6,0x18(%rsp)
  movsd  %xmm5,0x10(%rsp)
  call   <sqrt@plt>
  movsd  0x20(%rsp),%xmm2
  pxor   %xmm3,%xmm3
  movsd  0x18(%rsp),%xmm6
  movsd  0x10(%rsp),%xmm5
  movsd  0x8(%rsp),%xmm4
  movapd %xmm0,%xmm1
  jmp    L43
L1:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D35
type_infered: string
name: retrieve_data
arguments: tag: D12
type_infered: byte[8]
name: retrieve_data
arguments: tag: D42
type_infered: byte[16]
name: retrieve_data
arguments: tag: D51
type_infered: string
name: retrieve_data
arguments: tag: D62
type_infered: string
name: retrieve_data
arguments: tag: D68
type_infered: string
name: retrieve_data
arguments: tag: D57
type_infered: string

tool: D35: %lf %lf %lf

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

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

tool: D51: Impossivel calcular

tool: D62: pause

tool: D68: R1 = %.5lf


tool: D57: R2 = %.5lf


assistant: ```c
int main() {
  double A, B, C, R1, R2, delta;
  scanf("%lf %lf %lf", &A, &B, &C);
  delta = pow(B, 2) - 4 * A * C;
  R1 = (-B + sqrt(delta)) / (2 * A);
  R2 = (-B - sqrt(delta)) / (2 * A);
  if (A == 0 || (pow(B, 2) - 4 * A * C) < 0)
    printf("Impossivel calcular\n");
  else {
    printf("R1 = %.5lf\n", R1);
    printf("R2 = %.5lf\n", R2);
  }
  system("pause");
  return 0;
}
```