user: 下面的汇编指令对应的C源代码是什么：

```asm
<dft_cmp_double>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %edi,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  test   %rsi,%rsi
  je     L34
  mov    %rdx,%r12
  test   %rdx,%rdx
  je     L34
  cmp    $0x2000,%ecx
  jne    L9
  mov    %rsi,%rbp
  lea    D59(%rip),%r14
  lea    D78(%rip),%r15
  mov    %r8d,%ebx
  mov    %r14,%rsi
  mov    %rbp,%rdi
  movsd  %xmm0,0x8(%rsp)
  call   <dft_magnitude@plt>
  mov    %r15,%rsi
  mov    %r12,%rdi
  call   <dft_magnitude@plt>
  mov    %r15,%rsi
  mov    %r14,%rdi
  call   <calc_max_spectral_difference@plt>
  movsd  0x8(%rsp),%xmm1
  comisd %xmm1,%xmm0
  ja     L41
L59:
  movsd  D5(%rip),%xmm1
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  maxsd  %xmm0,%xmm1
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  movapd %xmm1,%xmm0
  ret
  nopl   0x0(%rax)
L9:
  mov    %edi,%esi
  xor    %eax,%eax
  lea    D42(%rip),%rdi
  call   <printf@plt>
  movsd  D8(%rip),%xmm0
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L34:
  mov    %r13d,%esi
  lea    D56(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  movsd  D8(%rip),%xmm0
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L41:
  mov    %r13d,%esi
  lea    D13(%rip),%rdi
  mov    $0x2,%eax
  movsd  %xmm0,0x8(%rsp)
  call   <printf@plt>
  mov    $0x2000,%edx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <oct_save_double@plt>
  test   %ebx,%ebx
  movsd  0x8(%rsp),%xmm0
  je     L59
  mov    $0x1,%edi
  call   <exit@plt>
  movsd  0x8(%rsp),%xmm0
  jmp    L59
```

tool_calls: name: parse_data
arguments: tag: D5
type_guessed: byte[8]
name: parse_data
arguments: tag: D42
type_guessed: string
name: parse_data
arguments: tag: D8
type_guessed: byte[8]
name: parse_data
arguments: tag: D56
type_guessed: string
name: parse_data
arguments: tag: D13
type_guessed: string

tool: {"D5": [0x00,0x00,0x00,0x00,0x00,0x40,0x7f,0xc0]}

tool: D42: Error (line %d) : dft_cmp_double : Bad input array length.


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

tool: D56: Error (line %d) : dft_cmp_double : Bad input arrays.


tool: D13: 

Line %d: Actual SNR (% 4.1f) > target SNR (% 4.1f).



assistant: ```c
double dft_cmp_double(int linenum, const double *orig, const double *test, int len, double target_snr, int allow_exit) {
  static double orig_spec[((8192) / 2)];
  static double test_spec[((8192) / 2)];
  double snr;
  if (!orig || !test) {
    printf("Error (line %d) : dft_cmp_double : Bad input arrays.\n", linenum);
    return 1;
  };
  if (len != (8192)) {
    printf("Error (line %d) : dft_cmp_double : Bad input array length.\n", linenum);
    return 1;
  };
  dft_magnitude(orig, orig_spec);
  dft_magnitude(test, test_spec);
  snr = calc_max_spectral_difference(orig_spec, test_spec);
  if (snr > target_snr) {
    printf("\n\nLine %d: Actual SNR (% 4.1f) > target SNR (% 4.1f).\n\n", linenum, snr, target_snr);
    oct_save_double(orig, test, len);
    if (allow_exit)
      exit(1);
  };
  if (snr < -500.0)
    snr = -500.0;
  return snr;
}
```