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

```asm
<cpoly_cauchy>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %edi,-0x44(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    -0x44(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movq   D42(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movq   D42(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <log@plt>
  movq   %xmm0,%rbx
  mov    -0x50(%rbp),%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  call   <log@plt>
  movapd %xmm0,%xmm1
  movq   %rbx,%xmm0
  subsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x3c(%rbp),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <exp@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x3c(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jp     L128
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  je     L108
L128:
  mov    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movq   D42(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  mov    -0x3c(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x30(%rbp),%xmm0
  comisd -0x18(%rbp),%xmm0
  jbe    L108
  movsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,-0x30(%rbp)
L108:
  movsd  -0x30(%rbp),%xmm1
  movsd  D2(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  mov    -0x50(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movl   $0x1,-0x40(%rbp)
  jmp    L111
L44:
  movsd  -0x38(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x18(%rbp),%xmm1
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  addl   $0x1,-0x40(%rbp)
L111:
  mov    -0x40(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L44
  pxor   %xmm0,%xmm0
  comisd -0x38(%rbp),%xmm0
  jae    L37
  movsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  jmp    L108
L37:
  nop
  movsd  -0x30(%rbp),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  jmp    L76
L75:
  mov    -0x50(%rbp),%rax
  movsd  (%rax),%xmm0
  mov    -0x58(%rbp),%rax
  movsd  %xmm0,(%rax)
  movl   $0x1,-0x40(%rbp)
  jmp    L18
L5:
  mov    -0x40(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x30(%rbp),%xmm1
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x40(%rbp)
L18:
  mov    -0x40(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L5
  mov    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x58(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movl   $0x1,-0x40(%rbp)
  jmp    L89
L14:
  movsd  -0x28(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x30(%rbp),%xmm1
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  addl   $0x1,-0x40(%rbp)
L89:
  mov    -0x40(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L14
  movsd  -0x38(%rbp),%xmm0
  divsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x30(%rbp),%xmm0
  subsd  -0x20(%rbp),%xmm0
  movsd  %xmm0,-0x30(%rbp)
L76:
  movsd  -0x20(%rbp),%xmm0
  divsd  -0x30(%rbp),%xmm0
  movq   D10(%rip),%xmm1
  andpd  %xmm1,%xmm0
  comisd D59(%rip),%xmm0
  ja     L75
  movsd  -0x30(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D42
data_type: f32[2]
name: extract_symbolic_data
arguments: data_tag: D2
data_type: f64
name: extract_symbolic_data
arguments: data_tag: D10
data_type: qword
name: extract_symbolic_data
arguments: data_tag: D59
data_type: f64

tool: {"D42": [0.0,-0.0]}

tool: D2: 0.1

tool: D10: 9223372036854775807

tool: D59: 0.005

assistant: ```c
double cpoly_cauchy(int n, double *pot, double *q) {
  double f, x, delf, dx, xm;
  int i, n1 = n - 1;
  pot[n1] = -pot[n1];
  x = exp((log(-pot[n1]) - log(pot[0])) / (double)n1);
  if (pot[n1 - 1] != 0.) {
    xm = -pot[n1] / pot[n1 - 1];
    if (xm < x)
      x = xm;
  }
  for (;;) {
    xm = x * 0.1;
    f = pot[0];
    for (i = 1; i < n; i++)
      f = f * xm + pot[i];
    if (f <= 0.0) {
      break;
    }
    x = xm;
  }
  dx = x;
  while (fabs(dx / x) > 0.005) {
    q[0] = pot[0];
    for (i = 1; i < n; i++)
      q[i] = q[i - 1] * x + pot[i];
    f = q[n1];
    delf = q[0];
    for (i = 1; i < n1; i++)
      delf = delf * x + q[i];
    dx = f / delf;
    x -= dx;
  }
  return x;
}
```