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

```asm
<pochisq>:
  endbr64
  pxor   %xmm3,%xmm3
  comisd %xmm0,%xmm3
  jae    L122
  push   %r14
  push   %rbp
  push   %rbx
  mov    %edi,%ebx
  sub    $0x30,%rsp
  test   %edi,%edi
  jle    L211
  movsd  D60(%rip),%xmm7
  mov    %edi,%ebp
  movapd %xmm0,%xmm1
  and    $0xfffffffe,%ebp
  mulsd  %xmm0,%xmm7
  movsd  %xmm7,(%rsp)
  cmp    $0x1,%edi
  je     L38
  movsd  D29(%rip),%xmm3
  pxor   %xmm2,%xmm2
  comisd %xmm3,%xmm7
  jbe    L66
L33:
  cmp    %ebx,%ebp
  jne    L148
  cmp    $0x2,%ebp
  jne    L154
L247:
  add    $0x30,%rsp
  movapd %xmm2,%xmm0
  pop    %rbx
  pop    %rbp
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
L148:
  movsd  %xmm2,0x10(%rsp)
L38:
  pxor   %xmm2,%xmm2
  ucomisd %xmm1,%xmm2
  ja     L99
  sqrtsd %xmm1,%xmm1
  movapd %xmm1,%xmm0
L78:
  call   <ntail@plt>
  movapd %xmm0,%xmm2
  addsd  %xmm0,%xmm2
  cmp    $0x2,%ebx
  jle    L247
  pxor   %xmm0,%xmm0
  movsd  D143(%rip),%xmm4
  cvtsi2sd %ebx,%xmm0
  movsd  %xmm4,0x8(%rsp)
  subsd  %xmm4,%xmm0
  mulsd  D60(%rip),%xmm0
  movq   %xmm0,%r14
  cmp    %ebx,%ebp
  je     L117
  movsd  (%rsp),%xmm7
  comisd D29(%rip),%xmm7
  ja     L234
  pxor   %xmm3,%xmm3
  ucomisd (%rsp),%xmm3
  ja     L141
  movapd %xmm7,%xmm0
  sqrtsd %xmm0,%xmm0
L171:
  movsd  D5(%rip),%xmm1
  mov    D60(%rip),%rax
  divsd  %xmm0,%xmm1
  movq   %rax,%xmm0
L208:
  movq   %r14,%xmm7
  pxor   %xmm3,%xmm3
  comisd %xmm0,%xmm7
  jb     L144
  cs nopw 0x0(%rax,%rax,1)
L168:
  movsd  (%rsp),%xmm4
  movq   %r14,%xmm6
  divsd  %xmm0,%xmm4
  addsd  0x8(%rsp),%xmm0
  comisd %xmm0,%xmm6
  mulsd  %xmm4,%xmm1
  addsd  %xmm1,%xmm3
  jae    L168
L144:
  mulsd  0x10(%rsp),%xmm3
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r14
  addsd  %xmm3,%xmm2
  movapd %xmm2,%xmm0
  ret
  nopl   0x0(%rax)
L122:
  movsd  D143(%rip),%xmm2
  movapd %xmm2,%xmm0
  ret
  nopl   (%rax)
L154:
  pxor   %xmm0,%xmm0
  movsd  D143(%rip),%xmm6
  movsd  %xmm2,0x10(%rsp)
  cvtsi2sd %ebp,%xmm0
  movsd  %xmm6,0x8(%rsp)
  subsd  %xmm6,%xmm0
  mulsd  D60(%rip),%xmm0
  movq   %xmm0,%r14
L89:
  movsd  (%rsp),%xmm6
  movsd  0x8(%rsp),%xmm1
  comisd %xmm3,%xmm6
  movapd %xmm1,%xmm0
  jbe    L208
  movq   $0x0,0x10(%rsp)
  movapd %xmm6,%xmm0
L68:
  movsd  %xmm2,0x20(%rsp)
  movsd  %xmm1,0x18(%rsp)
  call   <log@plt>
  movsd  0x18(%rsp),%xmm1
  movq   %r14,%xmm2
  movsd  %xmm0,0x28(%rsp)
  comisd %xmm1,%xmm2
  movsd  0x20(%rsp),%xmm2
  jb     L247
  nopl   (%rax)
L236:
  movapd %xmm1,%xmm0
  movsd  %xmm2,0x20(%rsp)
  movsd  %xmm1,0x18(%rsp)
  call   <log@plt>
  movsd  0x10(%rsp),%xmm5
  movsd  0x18(%rsp),%xmm1
  movsd  D47(%rip),%xmm6
  movsd  0x20(%rsp),%xmm2
  addsd  %xmm0,%xmm5
  movsd  0x28(%rsp),%xmm0
  mulsd  %xmm1,%xmm0
  subsd  (%rsp),%xmm0
  movsd  %xmm5,0x10(%rsp)
  subsd  %xmm5,%xmm0
  comisd %xmm0,%xmm6
  jbe    L162
  addsd  0x8(%rsp),%xmm1
  movq   %r14,%xmm4
  pxor   %xmm3,%xmm3
  addsd  %xmm3,%xmm2
  comisd %xmm1,%xmm4
  jae    L236
  jmp    L247
  nopl   0x0(%rax,%rax,1)
L234:
  mov    D60(%rip),%rax
  movsd  D93(%rip),%xmm3
  movapd %xmm7,%xmm0
  movq   %rax,%xmm1
  movsd  %xmm3,0x10(%rsp)
  jmp    L68
  nopl   0x0(%rax,%rax,1)
L162:
  call   <exp@plt>
  movsd  0x18(%rsp),%xmm1
  movq   %r14,%xmm3
  addsd  0x8(%rsp),%xmm1
  movsd  0x20(%rsp),%xmm2
  comisd %xmm1,%xmm3
  addsd  %xmm0,%xmm2
  jae    L236
  jmp    L247
  nopw   0x0(%rax,%rax,1)
L211:
  movsd  D143(%rip),%xmm2
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  movapd %xmm2,%xmm0
  pop    %r14
  ret
  nopl   (%rax)
L66:
  movsd  %xmm0,0x8(%rsp)
  movapd %xmm7,%xmm0
  xorpd  D45(%rip),%xmm0
  movsd  %xmm3,0x10(%rsp)
  call   <exp@plt>
  movsd  0x10(%rsp),%xmm3
  movsd  0x8(%rsp),%xmm1
  movapd %xmm0,%xmm2
  jmp    L33
L99:
  movapd %xmm1,%xmm0
  call   <sqrt@plt>
  jmp    L78
L141:
  movsd  (%rsp),%xmm0
  movsd  %xmm2,0x18(%rsp)
  call   <sqrt@plt>
  movsd  0x18(%rsp),%xmm2
  jmp    L171
L117:
  movsd  D29(%rip),%xmm3
  jmp    L89
```

tool_calls: name: parse_data
arguments: label: D60
datatype: f64
name: parse_data
arguments: label: D29
datatype: f64[2]
name: parse_data
arguments: label: D143
datatype: f64
name: parse_data
arguments: label: D5
datatype: f64
name: parse_data
arguments: label: D47
datatype: f32[2]
name: parse_data
arguments: label: D93
datatype: f64
name: parse_data
arguments: label: D45
datatype: f32[4]

tool: D60: 0.5

tool: {"D29": [20.0,-20.0]}

tool: D143: 1

tool: D5: 0.5641895835477563

tool: {"D47": [0.0,-2.8125]}

tool: D93: 0.5723649429247001

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

assistant: ```c
double pochisq(double x, int df) {
  double a, y, s;
  double e, c, z;
  double poz();
  int even;
  if (x <= 0.0 || df < 1)
    return (1.0);
  a = 0.5 * x;
  even = (2 * (df / 2)) == df;
  if (df > 1)
    y = (((-a) < -20.0) ? 0.0 : exp(-a));
  s = (even ? y : (2.0 * ntail(sqrt(x))));
  if (df > 2) {
    x = 0.5 * (df - 1.0);
    z = (even ? 1.0 : 0.5);
    if (a > 20.0) {
      e = (even ? 0.0 : 0.5723649429247000870717135);
      c = log(a);
      while (z <= x) {
        e = log(z) + e;
        s += (((c * z - a - e) < -20.0) ? 0.0 : exp(c * z - a - e));
        z += 1.0;
      }
      return (s);
    } else {
      e = (even ? 1.0 : (0.5641895835477562869480795 / sqrt(a)));
      c = 0.0;
      while (z <= x) {
        e = e * (a / z);
        c = c + e;
        z += 1.0;
      }
      return (c * y + s);
    }
  } else
    return (s);
}
```