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

```asm
<sinc_approx>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %edi,-0x44(%rbp)
  movsd  %xmm0,-0x50(%rbp)
  movsd  %xmm1,-0x58(%rbp)
  movsd  %xmm2,-0x60(%rbp)
  movsd  %xmm3,-0x68(%rbp)
  movsd  -0x60(%rbp),%xmm0
  mov    -0x58(%rbp),%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <fmin@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x18(%rbp)
  mov    D9(%rip),%rax
  movsd  (%rax),%xmm0
  mulsd  -0x50(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x44(%rbp),%xmm1
  mulsd  -0x18(%rbp),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x10(%rbp)
  movsd  -0x60(%rbp),%xmm0
  comisd -0x58(%rbp),%xmm0
  jb     L20
  mov    -0x44(%rbp),%eax
  mov    %eax,-0x30(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x44(%rbp),%xmm0
  mulsd  -0x58(%rbp),%xmm0
  divsd  -0x60(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <ceil@plt>
  mov    %eax,-0x2c(%rbp)
  jmp    L34
L20:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x44(%rbp),%xmm0
  mulsd  -0x60(%rbp),%xmm0
  divsd  -0x58(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <ceil@plt>
  mov    %eax,-0x30(%rbp)
  mov    -0x44(%rbp),%eax
  mov    %eax,-0x2c(%rbp)
L34:
  mov    -0x68(%rbp),%rax
  movq   %rax,%xmm0
  call   <sinh@plt>
  mov    %eax,%edi
  call   <log@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x8(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  mov    -0x30(%rbp),%eax
  neg    %eax
  mov    %eax,-0x34(%rbp)
  jmp    L8
L55:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x34(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <ftrans@plt>
  movsd  %xmm0,-0x70(%rbp)
  movsd  -0x8(%rbp),%xmm0
  mov    -0x10(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movapd %xmm0,%xmm1
  movq   %rdx,%xmm0
  mov    %eax,%edi
  call   <S@plt>
  mulsd  -0x70(%rbp),%xmm0
  movsd  -0x28(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  addl   $0x1,-0x34(%rbp)
L8:
  cmpl   $0x0,-0x34(%rbp)
  js     L55
  mov    -0x2c(%rbp),%eax
  mov    %eax,-0x34(%rbp)
  jmp    L35
L25:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x34(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <ftrans@plt>
  movsd  %xmm0,-0x70(%rbp)
  movsd  -0x8(%rbp),%xmm0
  mov    -0x10(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movapd %xmm0,%xmm1
  movq   %rdx,%xmm0
  mov    %eax,%edi
  call   <S@plt>
  mulsd  -0x70(%rbp),%xmm0
  movsd  -0x20(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  subl   $0x1,-0x34(%rbp)
L35:
  cmpl   $0x0,-0x34(%rbp)
  jns    L25
  movsd  -0x28(%rbp),%xmm0
  addsd  -0x20(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  leave
  ret
```

assistant: ```c
double sinc_approx(int n, double d, double alpha, double beta, double t) {
  int k, M, N;
  double mu = fmin(alpha, beta);
  double h = sqrt(M_PI * d / (mu * n));
  if (alpha <= beta) {
    M = n;
    N = (int)ceil(alpha * n / beta);
  } else {
    M = (int)ceil(beta * n / alpha);
    N = n;
  }
  double x = log(sinh(t));
  double val1 = 0;
  double val2 = 0;
  for (k = -M; k < 0; k++) {
    val1 += ftrans(k * h) * S(k, h, x);
  }
  for (k = N; k >= 0; k--) {
    val2 += ftrans(k * h) * S(k, h, x);
  }
  return val1 + val2;
}
```