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

```asm
<coreGTRCATSECONDARY>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  mov    %rdi,%rbx
  mov    %esi,%edi
  shl    $0x7,%edi
  sub    $0x268,%rsp
  mov    0x2a0(%rsp),%rax
  mov    %rdx,0x18(%rsp)
  mov    %rcx,0x1b8(%rsp)
  mov    %rax,0x1b0(%rsp)
  mov    0x2a8(%rsp),%rax
  mov    %r8d,0x10(%rsp)
  mov    %rax,0x1c0(%rsp)
  mov    0x2b0(%rsp),%rax
  mov    %r9,0x188(%rsp)
  mov    %rax,0x1c8(%rsp)
  movsd  %xmm0,0x20(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x258(%rsp)
  mov    %esi,%eax
  shl    $0x4,%eax
  mov    %eax,0x8(%rsp)
  call   <rax_malloc@plt>
  movsd  0x20(%rsp),%xmm0
  movupd (%rbx),%xmm3
  mov    %rax,%r12
  movapd %xmm0,%xmm1
  movapd %xmm3,%xmm2
  movaps %xmm3,0x20(%rsp)
  mulpd  %xmm3,%xmm3
  unpcklpd %xmm1,%xmm1
  mulpd  %xmm1,%xmm2
  movaps %xmm3,0x30(%rsp)
  movupd 0x10(%rbx),%xmm3
  movups %xmm2,0x1d8(%rsp)
  movaps %xmm3,0xe0(%rsp)
  movapd %xmm3,%xmm2
  mulpd  %xmm3,%xmm3
  mulpd  %xmm1,%xmm2
  movaps %xmm3,0xd0(%rsp)
  movupd 0x20(%rbx),%xmm3
  movups %xmm2,0x1e8(%rsp)
  movaps %xmm3,0xc0(%rsp)
  movapd %xmm3,%xmm2
  mulpd  %xmm3,%xmm3
  mulpd  %xmm1,%xmm2
  movaps %xmm3,0xb0(%rsp)
  movupd 0x30(%rbx),%xmm3
  movups %xmm2,0x1f8(%rsp)
  movaps %xmm3,0xa0(%rsp)
  movapd %xmm3,%xmm2
  mulpd  %xmm3,%xmm3
  mulpd  %xmm1,%xmm2
  movaps %xmm3,0x90(%rsp)
  movupd 0x40(%rbx),%xmm3
  movups %xmm2,0x208(%rsp)
  movaps %xmm3,0x80(%rsp)
  movapd %xmm3,%xmm2
  mulpd  %xmm3,%xmm3
  mulpd  %xmm1,%xmm2
  movaps %xmm3,0x70(%rsp)
  movupd 0x50(%rbx),%xmm3
  movups %xmm2,0x218(%rsp)
  movaps %xmm3,0x60(%rsp)
  movapd %xmm3,%xmm2
  mulpd  %xmm3,%xmm3
  mulpd  %xmm1,%xmm2
  movaps %xmm3,0x40(%rsp)
  movupd 0x60(%rbx),%xmm3
  movups %xmm2,0x228(%rsp)
  movapd %xmm3,%xmm2
  movaps %xmm3,0x1a0(%rsp)
  mulpd  %xmm2,%xmm1
  mulpd  %xmm3,%xmm3
  movups %xmm1,0x238(%rsp)
  movsd  0x70(%rbx),%xmm1
  movaps %xmm3,0x190(%rsp)
  movapd %xmm1,%xmm3
  movsd  %xmm1,0x58(%rsp)
  mulsd  %xmm3,%xmm0
  mulsd  %xmm1,%xmm1
  movsd  %xmm1,0x50(%rsp)
  movsd  %xmm0,0x248(%rsp)
  test   %ebp,%ebp
  jle    L54
  mov    %r12,0xf0(%rsp)
  mov    %r12,%rbx
  mov    0x18(%rsp),%rbp
  xor    %r14d,%r14d
  lea    0x1d0(%rsp),%rax
  lea    0x1d8(%rsp),%r15
  sub    %rax,%rbx
  lea    0x250(%rsp),%r13
  cs nopw 0x0(%rax,%rax,1)
L9:
  mov    %r15,%r12
  nopl   0x0(%rax,%rax,1)
L41:
  movsd  (%r12),%xmm0
  mulsd  0x0(%rbp),%xmm0
  add    $0x8,%r12
  call   <exp@plt>
  movsd  %xmm0,-0x8(%r12,%rbx,1)
  cmp    %r12,%r13
  jne    L41
  add    $0x8,%rbp
  add    $0x10,%r14d
  sub    $0xffffffffffffff80,%rbx
  cmp    0x8(%rsp),%r14d
  jne    L9
  mov    0xf0(%rsp),%r12
L54:
  mov    0x10(%rsp),%eax
  pxor   %xmm2,%xmm2
  movapd %xmm2,%xmm3
  test   %eax,%eax
  jle    L59
  movapd 0x20(%rsp),%xmm1
  movapd 0x30(%rsp),%xmm3
  movapd 0x90(%rsp),%xmm2
  movlpd %xmm1,0x180(%rsp)
  movhpd %xmm1,0x170(%rsp)
  movapd 0xe0(%rsp),%xmm1
  movlpd %xmm3,0x168(%rsp)
  movlpd %xmm1,0xf0(%rsp)
  movhpd %xmm1,0x100(%rsp)
  movapd 0xc0(%rsp),%xmm1
  movhpd %xmm3,0x178(%rsp)
  movapd 0xd0(%rsp),%xmm3
  movlpd %xmm1,0x110(%rsp)
  movhpd %xmm1,0x120(%rsp)
  movapd 0xa0(%rsp),%xmm1
  movlpd %xmm3,0xf8(%rsp)
  movhpd %xmm3,0x108(%rsp)
  movapd 0xb0(%rsp),%xmm3
  movlpd %xmm1,0x130(%rsp)
  movhpd %xmm1,0x140(%rsp)
  movapd 0x80(%rsp),%xmm1
  movlpd %xmm3,0x118(%rsp)
  movhpd %xmm3,0x128(%rsp)
  movapd 0x70(%rsp),%xmm3
  movlpd %xmm1,0x150(%rsp)
  movhpd %xmm1,0x160(%rsp)
  movapd 0x60(%rsp),%xmm1
  movlpd %xmm3,0x158(%rsp)
  movhpd %xmm3,0x70(%rsp)
  movlpd %xmm1,0x60(%rsp)
  movlpd %xmm2,0x138(%rsp)
  movhpd %xmm2,0x148(%rsp)
  movapd 0x40(%rsp),%xmm2
  mov    0x10(%rsp),%eax
  movapd 0x190(%rsp),%xmm3
  mov    0x1b8(%rsp),%r13
  movhpd %xmm1,0xe0(%rsp)
  sub    $0x1,%eax
  mov    0x1c8(%rsp),%r14
  mov    0x1c0(%rsp),%rbp
  movlpd %xmm2,0x80(%rsp)
  movapd 0x1a0(%rsp),%xmm1
  mov    0x18(%rsp),%r15
  movhpd %xmm2,0xd0(%rsp)
  pxor   %xmm2,%xmm2
  movlpd %xmm3,0xb0(%rsp)
  lea    0x4(%r13,%rax,4),%rbx
  movhpd %xmm3,0x90(%rsp)
  movapd %xmm2,%xmm3
  movlpd %xmm1,0xc0(%rsp)
  movhpd %xmm1,0xa0(%rsp)
  nopl   (%rax)
L56:
  pxor   %xmm4,%xmm4
  movslq 0x0(%r13),%rax
  add    $0x4,%r13
  add    $0x4,%r14
  cvtsi2sdl -0x4(%r14),%xmm4
  movsd  %xmm3,0x30(%rsp)
  movsd  0x0(%rbp),%xmm3
  movsd  0x180(%rsp),%xmm6
  movsd  (%r15,%rax,8),%xmm0
  mov    %rax,%rdx
  movsd  %xmm2,0x40(%rsp)
  pxor   %xmm2,%xmm2
  shl    $0x4,%edx
  movapd %xmm2,%xmm5
  sub    $0xffffffffffffff80,%rbp
  movsd  0x170(%rsp),%xmm7
  movslq %edx,%rdx
  movapd %xmm4,%xmm1
  add    $0x1,%rdx
  mulsd  %xmm0,%xmm1
  lea    0x0(,%rdx,8),%rax
  mulsd  %xmm0,%xmm0
  movsd  %xmm1,0x20(%rsp)
  mulsd  %xmm4,%xmm0
  movsd  (%r12,%rdx,8),%xmm4
  mulsd  -0x78(%rbp),%xmm4
  movsd  %xmm0,0x8(%rsp)
  addsd  %xmm4,%xmm3
  mulsd  %xmm4,%xmm6
  mulsd  0x168(%rsp),%xmm4
  movapd %xmm3,%xmm0
  addsd  %xmm2,%xmm6
  addsd  %xmm4,%xmm5
  movsd  0x8(%r12,%rax,1),%xmm4
  mulsd  -0x70(%rbp),%xmm4
  mulsd  %xmm4,%xmm7
  addsd  %xmm4,%xmm0
  mulsd  0x178(%rsp),%xmm4
  addsd  %xmm6,%xmm7
  movsd  0xf0(%rsp),%xmm6
  addsd  %xmm4,%xmm5
  movsd  0x10(%r12,%rax,1),%xmm4
  mulsd  -0x68(%rbp),%xmm4
  mulsd  %xmm4,%xmm6
  addsd  %xmm4,%xmm0
  mulsd  0xf8(%rsp),%xmm4
  addsd  %xmm7,%xmm6
  movsd  0x100(%rsp),%xmm7
  addsd  %xmm4,%xmm5
  movsd  0x18(%r12,%rax,1),%xmm4
  mulsd  -0x60(%rbp),%xmm4
  mulsd  %xmm4,%xmm7
  addsd  %xmm4,%xmm0
  mulsd  0x108(%rsp),%xmm4
  addsd  %xmm6,%xmm7
  movsd  0x110(%rsp),%xmm6
  addsd  %xmm4,%xmm5
  movsd  0x20(%r12,%rax,1),%xmm4
  mulsd  -0x58(%rbp),%xmm4
  mulsd  %xmm4,%xmm6
  addsd  %xmm4,%xmm0
  mulsd  0x118(%rsp),%xmm4
  addsd  %xmm7,%xmm6
  movsd  0x120(%rsp),%xmm7
  addsd  %xmm4,%xmm5
  movsd  0x28(%r12,%rax,1),%xmm4
  mulsd  -0x50(%rbp),%xmm4
  mulsd  %xmm4,%xmm7
  addsd  %xmm4,%xmm0
  mulsd  0x128(%rsp),%xmm4
  addsd  %xmm6,%xmm7
  addsd  %xmm4,%xmm5
  movsd  0x30(%r12,%rax,1),%xmm4
  mulsd  -0x48(%rbp),%xmm4
  movsd  0x130(%rsp),%xmm6
  addsd  %xmm4,%xmm0
  mulsd  %xmm4,%xmm6
  mulsd  0x138(%rsp),%xmm4
  addsd  %xmm7,%xmm6
  movsd  0x140(%rsp),%xmm7
  addsd  %xmm4,%xmm5
  movsd  0x38(%r12,%rax,1),%xmm4
  mulsd  -0x40(%rbp),%xmm4
  mulsd  %xmm4,%xmm7
  addsd  %xmm4,%xmm0
  mulsd  0x148(%rsp),%xmm4
  addsd  %xmm6,%xmm7
  movsd  0x150(%rsp),%xmm6
  addsd  %xmm4,%xmm5
  movsd  0x40(%r12,%rax,1),%xmm4
  mulsd  -0x38(%rbp),%xmm4
  mulsd  %xmm4,%xmm6
  addsd  %xmm4,%xmm0
  mulsd  0x158(%rsp),%xmm4
  addsd  %xmm7,%xmm6
  movsd  0x160(%rsp),%xmm7
  addsd  %xmm4,%xmm5
  movsd  0x48(%r12,%rax,1),%xmm4
  mulsd  -0x30(%rbp),%xmm4
  mulsd  %xmm4,%xmm7
  addsd  %xmm4,%xmm0
  mulsd  0x70(%rsp),%xmm4
  addsd  %xmm6,%xmm7
  movsd  0x60(%rsp),%xmm6
  addsd  %xmm4,%xmm5
  movsd  0x50(%r12,%rax,1),%xmm4
  mulsd  -0x28(%rbp),%xmm4
  mulsd  %xmm4,%xmm6
  addsd  %xmm4,%xmm0
  mulsd  0x80(%rsp),%xmm4
  addsd  %xmm7,%xmm6
  movsd  0xe0(%rsp),%xmm7
  addsd  %xmm4,%xmm5
  movsd  0x58(%r12,%rax,1),%xmm4
  mulsd  -0x20(%rbp),%xmm4
  mulsd  %xmm4,%xmm7
  addsd  %xmm4,%xmm0
  mulsd  0xd0(%rsp),%xmm4
  addsd  %xmm6,%xmm7
  movsd  0xc0(%rsp),%xmm6
  addsd  %xmm4,%xmm5
  movsd  0x60(%r12,%rax,1),%xmm4
  mulsd  -0x18(%rbp),%xmm4
  mulsd  %xmm4,%xmm6
  addsd  %xmm4,%xmm0
  mulsd  0xb0(%rsp),%xmm4
  addsd  %xmm7,%xmm6
  movsd  0xa0(%rsp),%xmm7
  addsd  %xmm4,%xmm5
  movsd  0x68(%r12,%rax,1),%xmm4
  mulsd  -0x10(%rbp),%xmm4
  mulsd  %xmm4,%xmm7
  addsd  %xmm4,%xmm0
  mulsd  0x90(%rsp),%xmm4
  addsd  %xmm6,%xmm7
  movsd  0x70(%r12,%rax,1),%xmm6
  mulsd  -0x8(%rbp),%xmm6
  addsd  %xmm4,%xmm5
  movsd  0x58(%rsp),%xmm4
  mulsd  %xmm6,%xmm4
  addsd  %xmm6,%xmm0
  addsd  %xmm7,%xmm4
  movsd  0x50(%rsp),%xmm7
  mulsd  %xmm6,%xmm7
  movsd  %xmm4,0x18(%rsp)
  addsd  %xmm5,%xmm7
  movsd  %xmm7,0x10(%rsp)
  call   <FABS@plt>
  movsd  D7(%rip),%xmm5
  movsd  0x18(%rsp),%xmm4
  movsd  0x20(%rsp),%xmm1
  movsd  0x30(%rsp),%xmm3
  divsd  %xmm0,%xmm5
  movsd  0x40(%rsp),%xmm2
  mulsd  %xmm5,%xmm4
  mulsd  0x10(%rsp),%xmm5
  mulsd  %xmm4,%xmm1
  movapd %xmm4,%xmm0
  mulsd  %xmm4,%xmm0
  addsd  %xmm1,%xmm3
  subsd  %xmm0,%xmm5
  mulsd  0x8(%rsp),%xmm5
  addsd  %xmm5,%xmm2
  cmp    %r13,%rbx
  jne    L56
L59:
  mov    0x188(%rsp),%rax
  movsd  %xmm3,(%rax)
  mov    0x1b0(%rsp),%rax
  movsd  %xmm2,(%rax)
  mov    0x258(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L30
  add    $0x268,%rsp
  mov    %r12,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10b0 <rax_free@plt>
L30:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D7
type_infered: f64

tool: D7: 1

assistant: ```c
void coreGTRCATSECONDARY(double *EIGN, double lz, int numberOfCategories, double *rptr, int *cptr, int upper, volatile double *ext_dlnLdlz, volatile double *ext_d2lnLdlz2, double *sumtable, int *wgt) {
  int i, l;
  double *d1, *d_start, *sum;
  double e[16], s[16], dd[16];
  double tmp;
  double inv_Li, dlnLidlz, d2lnLidlz2;
  double dlnLdlz = 0.0;
  double d2lnLdlz2 = 0.0;
  d1 = d_start = (double *)rax_malloc(numberOfCategories * 16 * sizeof(double));
  for (l = 1; l < 16; l++) {
    e[l] = EIGN[l - 1] * EIGN[l - 1];
    s[l] = EIGN[l - 1];
    dd[l] = s[l] * lz;
  }
  for (i = 0; i < numberOfCategories; i++) {
    for (l = 1; l < 16; l++)
      d1[16 * i + l] = exp(dd[l] * rptr[i]);
  }
  for (i = 0; i < upper; i++) {
    double r = rptr[cptr[i]], wr1 = r * wgt[i], wr2 = r * r * wgt[i];
    d1 = &d_start[16 * cptr[i]];
    sum = &sumtable[16 * i];
    inv_Li = sum[0];
    dlnLidlz = 0.0;
    d2lnLidlz2 = 0.0;
    for (l = 1; l < 16; l++) {
      inv_Li += (tmp = d1[l] * sum[l]);
      dlnLidlz += tmp * s[l];
      d2lnLidlz2 += tmp * e[l];
    }
    inv_Li = 1.0 / FABS(inv_Li);
    dlnLidlz *= inv_Li;
    d2lnLidlz2 *= inv_Li;
    dlnLdlz += wr1 * dlnLidlz;
    d2lnLdlz2 += wr2 * (d2lnLidlz2 - dlnLidlz * dlnLidlz);
  }
  *ext_dlnLdlz = dlnLdlz;
  *ext_d2lnLdlz2 = d2lnLdlz2;
  rax_free(d_start);
}
```