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  D15(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x44(%rbp),%xmm1
  movsd  D52(%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  D11(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  pxor   %xmm0,%xmm0
  comisd -0x28(%rbp),%xmm0
  jbe    L25
  movsd  -0x28(%rbp),%xmm0
  movq   D56(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
L25:
  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    L30
L28:
  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  D11(%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  D11(%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    L7
  movsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  jmp    L58
L7:
  movsd  -0x28(%rbp),%xmm0
  movq   D56(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  comisd -0x20(%rbp),%xmm0
  jbe    L58
  movsd  -0x28(%rbp),%xmm0
  movq   D56(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
L58:
  subl   $0x1,-0x38(%rbp)
L30:
  cmpl   $0x1,-0x38(%rbp)
  jg     L28
  movsd  -0x20(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: tag: D15
datatype: byte[8]
name: parse_data
arguments: tag: D52
datatype: byte[8]
name: parse_data
arguments: tag: D11
datatype: f64
name: parse_data
arguments: tag: D56
datatype: byte[8]

tool: {"D15": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40]}

tool: {"D52": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

tool: D11: 0.5

tool: {"D56": [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 = ((double)2) / nfft;
  d1_radix = ((double)1) / radix;
  d1_radix2 = d1_radix * d1_radix;
  x = din[nfft + 1] * nfft * ((double)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 + ((double)0.5));
    carry = carry2;
    carry2 = ((int)x) - 1;
    x = radix * (x - carry2);
    carry1 = (int)x;
    x = radix * (x - carry1);
    carry += carry1;
    x = x - ((double)0.5) - ((int)x);
    if (x > err) {
      err = x;
    } else if (-x > err) {
      err = -x;
    }
  }
  return err;
}
```