user: 请从给定的汇编指令推导出C源代码:

```asm
<mp_mul_d2i_test>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x44(%rbp)
  mov    %esi,-0x48(%rbp)
  mov    %rdx,-0x50(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x48(%rbp),%xmm1
  movsd  D60(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x44(%rbp),%xmm1
  movsd  D17(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0x10(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  mov    -0x48(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x48(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D57(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  pxor   %xmm0,%xmm0
  comisd -0x28(%rbp),%xmm0
  jbe    L30
  movsd  -0x28(%rbp),%xmm0
  movq   D59(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
L30:
  mov    -0x50(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm0
  mov    -0x48(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  subsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movl   $0x0,-0x34(%rbp)
  movl   $0x0,-0x30(%rbp)
  mov    -0x48(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x38(%rbp)
  jmp    L48
L25:
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x18(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x34(%rbp),%xmm0
  addsd  %xmm0,%xmm1
  movsd  D57(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x8(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  mov    -0x30(%rbp),%eax
  mov    %eax,-0x34(%rbp)
  movsd  -0x28(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  sub    $0x1,%eax
  mov    %eax,-0x30(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x44(%rbp),%xmm1
  pxor   %xmm2,%xmm2
  cvtsi2sdl -0x30(%rbp),%xmm2
  movsd  -0x28(%rbp),%xmm0
  subsd  %xmm2,%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x28(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x2c(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x44(%rbp),%xmm1
  pxor   %xmm2,%xmm2
  cvtsi2sdl -0x2c(%rbp),%xmm2
  movsd  -0x28(%rbp),%xmm0
  subsd  %xmm2,%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  mov    -0x2c(%rbp),%eax
  add    %eax,-0x34(%rbp)
  movsd  -0x28(%rbp),%xmm0
  movsd  D57(%rip),%xmm1
  subsd  %xmm1,%xmm0
  movsd  -0x28(%rbp),%xmm1
  cvttsd2si %xmm1,%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x28(%rbp),%xmm0
  comisd -0x20(%rbp),%xmm0
  jbe    L15
  movsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  jmp    L7
L15:
  movsd  -0x28(%rbp),%xmm0
  movq   D59(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  comisd -0x20(%rbp),%xmm0
  jbe    L7
  movsd  -0x28(%rbp),%xmm0
  movq   D59(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
L7:
  subl   $0x1,-0x38(%rbp)
L48:
  cmpl   $0x1,-0x38(%rbp)
  jg     L25
  movsd  -0x20(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D60
type_guessed: f64
name: extract_symbolic_data
arguments: label: D17
type_guessed: f64
name: extract_symbolic_data
arguments: label: D57
type_guessed: f64
name: extract_symbolic_data
arguments: label: D59
type_guessed: byte[8]

tool: D60: 2

tool: D17: 1

tool: D57: 0.5

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

assistant: ```c
double mp_mul_d2i_test(int radix, int nfft, double din[]) {
  int j, carry, carry1, carry2;
  double x, scale, d1_radix, d1_radix2, err;
  scale = 2.0 / nfft;
  d1_radix = 1.0 / radix;
  d1_radix2 = d1_radix * d1_radix;
  x = din[nfft + 1] * nfft * 0.5;
  if (x < 0) {
    x = -x;
  }
  din[nfft + 1] = din[1] - x;
  err = 0;
  carry = 0;
  carry2 = 0;
  for (j = nfft + 1; j > 1; j--) {
    x = d1_radix2 * (scale * din[j] + carry + 0.5);
    carry = carry2;
    carry2 = ((int)x) - 1;
    x = radix * (x - carry2);
    carry1 = (int)x;
    x = radix * (x - carry1);
    carry += carry1;
    x = x - 0.5 - ((int)x);
    if (x > err) {
      err = x;
    } else if (-x > err) {
      err = -x;
    }
  }
  return err;
}
```