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     L50
  mov    %rdx,%r12
  test   %rdx,%rdx
  je     L50
  cmp    $0x2000,%ecx
  jne    L48
  mov    %rsi,%rbp
  lea    D25(%rip),%r14
  lea    D46(%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     L29
L13:
  movsd  D11(%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)
L48:
  mov    %edi,%esi
  xor    %eax,%eax
  lea    D38(%rip),%rdi
  call   <printf@plt>
  movsd  D45(%rip),%xmm0
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L50:
  mov    %r13d,%esi
  lea    D55(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  movsd  D45(%rip),%xmm0
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L29:
  mov    %r13d,%esi
  lea    D79(%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     L13
  mov    $0x1,%edi
  call   <exit@plt>
  movsd  0x8(%rsp),%xmm0
  jmp    L13
```

tool_calls: name: disassemble_data
arguments: tag: D11
type_guessed: byte[8]
name: disassemble_data
arguments: tag: D38
type_guessed: string
name: disassemble_data
arguments: tag: D45
type_guessed: byte[8]
name: disassemble_data
arguments: tag: D55
type_guessed: string
name: disassemble_data
arguments: tag: D79
type_guessed: string

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

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


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

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


tool: D79: 

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;
}
```