user: 请从给定的汇编指令推导出C源代码：

```asm
<kff_synthese_einzelpunkt_s>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    0x80(%rsp),%rax
  mov    %ecx,0x3c(%rsp)
  movsd  %xmm0,0x30(%rsp)
  movq   $0x0,(%rax)
  xor    %eax,%eax
  test   %edx,%edx
  cmovns %edx,%eax
  mov    %eax,%ebx
  cmp    $0x41,%dil
  jne    L95
  movsd  D15(%rip),%xmm4
  mulsd  %xmm0,%xmm4
  movsd  %xmm4,0x30(%rsp)
L95:
  mov    %ebx,%eax
  and    $0x1,%eax
  cmp    $0x1,%eax
  sbb    %eax,%eax
  or     $0x1,%eax
  mov    %eax,0x38(%rsp)
  cmp    0x3c(%rsp),%ebx
  jg     L76
  movslq %ebx,%rax
  shl    $0x3,%rax
  lea    (%r12,%rax,1),%rdx
  lea    (%r9,%rax,1),%r13
  mov    %rdx,0x28(%rsp)
  lea    (%r8,%rax,1),%rdx
  mov    %rdx,0x20(%rsp)
  nopw   0x0(%rax,%rax,1)
L67:
  mov    0x28(%rsp),%rdx
  mov    0x38(%rsp),%ecx
  mov    (%rdx),%rdi
  mov    0x20(%rsp),%rdx
  mov    %ecx,%eax
  neg    %ecx
  mov    %ecx,0x38(%rsp)
  mov    (%rdx),%rsi
  movsd  (%rdi),%xmm0
  movsd  (%rsi),%xmm1
  cmp    $0x1,%eax
  je     L85
  mulsd  %xmm0,%xmm1
  mov    0x38(%rsp),%r15d
L78:
  mov    $0x8,%ebp
  mov    $0x1,%r14d
  test   %ebx,%ebx
  jg     L70
  jmp    L57
  nopw   0x0(%rax,%rax,1)
L71:
  call   <cos@plt>
  mov    0x0(%r13),%rsi
  mov    %r12d,%edi
  add    $0x1,%r14d
  mulsd  0x8(%rsp),%xmm0
  movsd  (%rsi,%rbp,1),%xmm7
  add    $0x8,%rbp
  movsd  %xmm7,0x10(%rsp)
  movsd  %xmm0,0x8(%rsp)
  call   <sin@plt>
  mulsd  0x10(%rsp),%xmm0
  movsd  0x18(%rsp),%xmm1
  addsd  0x8(%rsp),%xmm0
  mulsd  (%rsp),%xmm0
  addsd  %xmm0,%xmm1
  cmp    %ebx,%r14d
  jg     L57
L61:
  mov    0x28(%rsp),%rax
  mov    (%rax),%rdi
  mov    0x20(%rsp),%rax
  mov    (%rax),%rsi
L70:
  pxor   %xmm0,%xmm0
  movsd  (%rdi,%rbp,1),%xmm2
  movsd  (%rsi,%rbp,1),%xmm3
  mov    %r15d,%r8d
  cvtsi2sd %r14d,%xmm0
  mulsd  0x30(%rsp),%xmm0
  neg    %r15d
  movsd  %xmm1,0x18(%rsp)
  movsd  %xmm2,(%rsp)
  movsd  %xmm3,0x8(%rsp)
  cvttsd2si %xmm0,%r12d
  mov    %r12d,%edi
  cmp    $0x1,%r8d
  jne    L71
  call   <cos@plt>
  mov    0x0(%r13),%rsi
  mov    %r12d,%edi
  add    $0x1,%r14d
  mulsd  0x8(%rsp),%xmm0
  movsd  (%rsi,%rbp,1),%xmm2
  add    $0x8,%rbp
  movsd  %xmm2,0x10(%rsp)
  movsd  %xmm0,0x8(%rsp)
  call   <sin@plt>
  mulsd  0x10(%rsp),%xmm0
  movsd  0x18(%rsp),%xmm1
  addsd  0x8(%rsp),%xmm0
  mulsd  (%rsp),%xmm0
  subsd  %xmm0,%xmm1
  cmp    %ebx,%r14d
  jle    L61
L57:
  mov    0x80(%rsp),%rax
  addq   $0x8,0x28(%rsp)
  add    $0x1,%ebx
  add    $0x8,%r13
  addq   $0x8,0x20(%rsp)
  addsd  (%rax),%xmm1
  movsd  %xmm1,(%rax)
  cmp    %ebx,0x3c(%rsp)
  jge    L67
L76:
  add    $0x48,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L85:
  xorpd  D3(%rip),%xmm0
  mov    $0xffffffff,%r15d
  mulsd  %xmm0,%xmm1
  jmp    L78
```

tool_calls: name: disassemble_data
arguments: data_tag: D15
data_type: byte[8]
name: disassemble_data
arguments: data_tag: D3
data_type: f32[4]

tool: {"D15": [0x39,0x9d,0x52,0xa2,0x46,0xdf,0x91,0x3f]}

tool: {"D3": [0.0,-0.0,0.0,0.0]}

assistant: ```c
int kff_synthese_einzelpunkt_s(double lambda, char winkelmass, double **leg_func, int mindeg, int maxdeg, double **c_lm, double **s_lm, double *f) {
  double fzw;
  int l;
  int m;
  int sig_alt;
  int sig_alt_st;
  *f = 0.;
  mindeg = (mindeg < 0) ? 0 : mindeg;
  if (winkelmass == 'A')
    lambda *= (3.141592653589793 / 180.0);
  if (mindeg % 2 == 0)
    sig_alt_st = -1;
  else
    sig_alt_st = 1;
  for (l = mindeg; l <= maxdeg; l++) {
    sig_alt_st = -sig_alt_st;
    sig_alt = sig_alt_st;
    if (sig_alt == -1) {
      fzw = -leg_func[l][0] * c_lm[l][0];
    } else {
      fzw = leg_func[l][0] * c_lm[l][0];
    }
    for (m = 1; m <= l; m++) {
      sig_alt = -sig_alt;
      if (sig_alt == -1) {
        fzw -= (leg_func[l][m] * (c_lm[l][m] * cos(m * lambda) + s_lm[l][m] * sin(m * lambda)));
      } else {
        fzw += (leg_func[l][m] * (c_lm[l][m] * cos(m * lambda) + s_lm[l][m] * sin(m * lambda)));
      }
    }
    *f += fzw;
  }
  return 0;
}
```