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

```asm
<nc_schaffer>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  movsd  %xmm0,-0x68(%rbp)
  movsd  %xmm1,-0x70(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movsd  -0x68(%rbp),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  -0x70(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movl   $0x0,-0x58(%rbp)
  jmp    L27
L17:
  mov    -0x58(%rbp),%eax
  cltq
  movsd  -0x30(%rbp,%rax,8),%xmm0
  movq   D108(%rip),%xmm1
  andpd  %xmm1,%xmm0
  comisd D58(%rip),%xmm0
  jb     L71
  mov    -0x58(%rbp),%eax
  cltq
  movsd  -0x30(%rbp,%rax,8),%xmm0
  addsd  %xmm0,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  movsd  -0x40(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x54(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x54(%rbp),%xmm1
  movsd  -0x40(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movq   D108(%rip),%xmm1
  andpd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  D58(%rip),%xmm0
  comisd -0x38(%rbp),%xmm0
  jbe    L19
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x54(%rbp),%xmm0
  movsd  D178(%rip),%xmm1
  divsd  %xmm1,%xmm0
  mov    -0x58(%rbp),%eax
  cltq
  movsd  %xmm0,-0x20(%rbp,%rax,8)
  jmp    L65
L19:
  pxor   %xmm0,%xmm0
  comisd -0x40(%rbp),%xmm0
  jb     L31
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x54(%rbp),%xmm0
  movsd  D22(%rip),%xmm1
  subsd  %xmm1,%xmm0
  movsd  D178(%rip),%xmm1
  divsd  %xmm1,%xmm0
  mov    -0x58(%rbp),%eax
  cltq
  movsd  %xmm0,-0x20(%rbp,%rax,8)
  jmp    L65
L31:
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x54(%rbp),%xmm1
  movsd  D22(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  D178(%rip),%xmm1
  divsd  %xmm1,%xmm0
  mov    -0x58(%rbp),%eax
  cltq
  movsd  %xmm0,-0x20(%rbp,%rax,8)
  jmp    L65
L71:
  mov    -0x58(%rbp),%eax
  cltq
  movsd  -0x30(%rbp,%rax,8),%xmm0
  mov    -0x58(%rbp),%eax
  cltq
  movsd  %xmm0,-0x20(%rbp,%rax,8)
L65:
  addl   $0x1,-0x58(%rbp)
L27:
  cmpl   $0x1,-0x58(%rbp)
  jle    L17
  mov    -0x20(%rbp),%rax
  movsd  D178(%rip),%xmm0
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <pow@plt>
  movsd  %xmm0,-0x78(%rbp)
  mov    -0x18(%rbp),%rax
  movsd  D178(%rip),%xmm0
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <pow@plt>
  movapd %xmm0,%xmm2
  addsd  -0x78(%rbp),%xmm2
  movq   %xmm2,%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  mov    %eax,%edi
  call   <sin@plt>
  movq   %xmm0,%rax
  movsd  D178(%rip),%xmm0
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <pow@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x50(%rbp)
  mov    -0x20(%rbp),%rax
  movsd  D178(%rip),%xmm0
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <pow@plt>
  movsd  %xmm0,-0x78(%rbp)
  mov    -0x18(%rbp),%rax
  movsd  D178(%rip),%xmm0
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <pow@plt>
  movsd  -0x78(%rbp),%xmm1
  addsd  %xmm0,%xmm1
  movsd  D131(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D22(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  movsd  -0x50(%rbp),%xmm0
  movsd  D58(%rip),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  movsd  D178(%rip),%xmm0
  mov    -0x48(%rbp),%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <pow@plt>
  movsd  -0x78(%rbp),%xmm1
  divsd  %xmm0,%xmm1
  movsd  D58(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  movsd  -0x40(%rbp),%xmm0
  movq   %xmm0,%rax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L30
  call   <__stack_chk_fail@plt>
L30:
  movq   %rax,%xmm0
  leave
  ret
```

tool_calls: name: read_data
arguments: data_label: D108
type_infered: qword
name: read_data
arguments: data_label: D58
type_infered: f64[2]
name: read_data
arguments: data_label: D178
type_infered: f64
name: read_data
arguments: data_label: D22
type_infered: f64
name: read_data
arguments: data_label: D131
type_infered: f64

tool: D108: 9223372036854775807

tool: {"D58": [0.5,2.0]}

tool: D178: 2

tool: D22: 1

tool: D131: 0.001

assistant: ```c
double nc_schaffer(double x, double y) {
  int i;
  int a;
  double b;
  double res;
  double temp1, temp2;
  double t1[2], t2[2];
  t1[0] = x;
  t1[1] = y;
  for (i = 0; i < 2; i++) {
    if (fabs(t1[i]) >= 0.5) {
      res = 2.0 * t1[i];
      a = res;
      b = fabs(res - a);
      if (b < 0.5) {
        t2[i] = a / 2.0;
      } else {
        if (res <= 0.0) {
          t2[i] = (a - 1.0) / 2.0;
        } else {
          t2[i] = (a + 1.0) / 2.0;
        }
      }
    } else {
      t2[i] = t1[i];
    }
  }
  temp1 = pow((sin(sqrt(pow(t2[0], 2.0) + pow(t2[1], 2.0)))), 2.0);
  temp2 = 1.0 + 0.001 * (pow(t2[0], 2.0) + pow(t2[1], 2.0));
  res = 0.5 + (temp1 - 0.5) / (pow(temp2, 2.0));
  return (res);
}
```