user: Demonstrate the C code that generates the assembly output below:

```asm
<double_chk>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  movss  %xmm0,-0x34(%rbp)
  movss  %xmm1,-0x38(%rbp)
  mov    %edx,-0x3c(%rbp)
  mov    %ecx,-0x40(%rbp)
  mov    %r8d,-0x44(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x44(%rbp),%r8d
  mov    -0x40(%rbp),%ecx
  mov    -0x3c(%rbp),%edx
  mov    -0x34(%rbp),%edi
  mov    -0x30(%rbp),%rsi
  mov    -0x28(%rbp),%rax
  mov    %r8d,%r9d
  mov    %ecx,%r8d
  mov    %edx,%ecx
  mov    $0x0,%edx
  movd   %edi,%xmm0
  mov    %rax,%rdi
  call   <frac_pch@plt>
  movd   %xmm0,%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x30(%rbp),%rax
  movss  (%rax),%xmm0
  movss  -0x38(%rbp),%xmm1
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x10(%rbp)
  movl   $0x8,-0x14(%rbp)
  jmp    L27
L21:
  pxor   %xmm1,%xmm1
  cvtsi2ssl -0x14(%rbp),%xmm1
  movss  -0x34(%rbp),%xmm0
  divss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2ssl -0x3c(%rbp),%xmm1
  movss  -0xc(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jb     L18
  mov    -0x44(%rbp),%r8d
  mov    -0x40(%rbp),%ecx
  mov    -0x3c(%rbp),%edx
  mov    -0xc(%rbp),%edi
  lea    -0x18(%rbp),%rsi
  mov    -0x28(%rbp),%rax
  mov    %r8d,%r9d
  mov    %ecx,%r8d
  mov    %edx,%ecx
  mov    $0x0,%edx
  movd   %edi,%xmm0
  mov    %rax,%rdi
  call   <frac_pch@plt>
  movd   %xmm0,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x44(%rbp),%r8d
  mov    -0x40(%rbp),%ecx
  mov    -0x3c(%rbp),%edx
  mov    -0xc(%rbp),%edi
  lea    -0x18(%rbp),%rsi
  mov    -0x28(%rbp),%rax
  movd   %edi,%xmm0
  mov    %rax,%rdi
  call   <double_ver@plt>
  movss  -0x18(%rbp),%xmm0
  comiss -0x10(%rbp),%xmm0
  jbe    L18
  mov    -0x44(%rbp),%r8d
  mov    -0x40(%rbp),%ecx
  mov    -0x3c(%rbp),%edx
  mov    -0xc(%rbp),%edi
  mov    -0x30(%rbp),%rsi
  mov    -0x28(%rbp),%rax
  mov    %r8d,%r9d
  mov    %ecx,%r8d
  mov    %edx,%ecx
  mov    $0x0,%edx
  movd   %edi,%xmm0
  mov    %rax,%rdi
  call   <frac_pch@plt>
  movd   %xmm0,%eax
  mov    %eax,-0x34(%rbp)
  jmp    L55
L18:
  subl   $0x1,-0x14(%rbp)
L27:
  cmpl   $0x1,-0x14(%rbp)
  jg     L21
L55:
  mov    -0x44(%rbp),%r8d
  mov    -0x40(%rbp),%ecx
  mov    -0x3c(%rbp),%edx
  mov    -0x34(%rbp),%edi
  mov    -0x30(%rbp),%rsi
  mov    -0x28(%rbp),%rax
  movd   %edi,%xmm0
  mov    %rax,%rdi
  call   <double_ver@plt>
  movss  -0x34(%rbp),%xmm0
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L3
  call   <__stack_chk_fail@plt>
L3:
  leave
  ret
```

assistant: ```c
float double_chk(float sig_in[], float *pcorr, float pitch, float pdouble, int pmin, int pmax, int lmin) {
  int mult;
  float corr, thresh;
  float temp_pit;
  pitch = frac_pch(sig_in, pcorr, pitch, 0, pmin, pmax, lmin);
  thresh = pdouble * (*pcorr);
  for (mult = 8; mult >= 2; mult--) {
    temp_pit = pitch / mult;
    if (temp_pit >= pmin) {
      temp_pit = frac_pch(sig_in, &corr, temp_pit, 0, pmin, pmax, lmin);
      double_ver(sig_in, &corr, temp_pit, pmin, pmax, lmin);
      if (corr > thresh) {
        pitch = frac_pch(sig_in, pcorr, temp_pit, 0, pmin, pmax, lmin);
        break;
      }
    }
  }
  double_ver(sig_in, pcorr, pitch, pmin, pmax, lmin);
  return (pitch);
}
```