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

```asm
<coreGTRGAMMAPROTINVAR>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x128,%rsp
  mov    0x1160(%rsp),%rax
  mov    0x1170(%rsp),%r14
  movsd  %xmm0,0x28(%rsp)
  movsd  D3(%rip),%xmm0
  mov    %r8,%r12
  mov    %rdx,0x50(%rsp)
  lea    0x70(%rsp),%rdx
  subsd  %xmm1,%xmm0
  mulsd  D0(%rip),%xmm0
  mov    %ecx,0x5c(%rsp)
  mov    %rdi,0x40(%rsp)
  mov    0x1168(%rsp),%rcx
  mov    %rsi,0x48(%rsp)
  mov    %r9,0x60(%rsp)
  mov    %rax,0x68(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x1118(%rsp)
  xor    %eax,%eax
  movsd  %xmm0,0x30(%rsp)
  nopl   0x0(%rax)
L67:
  movsd  (%rcx,%rax,1),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rdx,%rax,1)
  add    $0x8,%rax
  cmp    $0xa0,%rax
  jne    L67
  lea    0x390(%rsp),%rax
  xor    %ebp,%ebp
  mov    %rax,0x38(%rsp)
  mov    %rax,%rbx
L24:
  mov    0x40(%rsp),%rax
  mov    0x48(%rsp),%r13
  lea    -0x260(%rbx),%r15
  movsd  (%rax,%rbp,8),%xmm6
  movsd  %xmm6,0x18(%rsp)
  mulsd  %xmm6,%xmm6
  movsd  %xmm6,0x20(%rsp)
  nopw   0x0(%rax,%rax,1)
L77:
  movsd  0x0(%r13),%xmm1
  movsd  0x18(%rsp),%xmm2
  add    $0x20,%r15
  add    $0x8,%r13
  movsd  0x28(%rsp),%xmm0
  mulsd  %xmm1,%xmm2
  movsd  %xmm1,0x10(%rsp)
  mulsd  %xmm2,%xmm0
  movsd  %xmm2,0x8(%rsp)
  call   <exp@plt>
  movsd  0x10(%rsp),%xmm1
  movsd  0x8(%rsp),%xmm2
  movsd  %xmm0,-0x20(%r15)
  mulsd  %xmm1,%xmm1
  movsd  %xmm2,-0x18(%r15)
  mulsd  0x20(%rsp),%xmm1
  movsd  %xmm1,-0x10(%r15)
  cmp    %r15,%rbx
  jne    L77
  add    $0x1,%rbp
  add    $0x400,%rbx
  cmp    $0x4,%rbp
  jne    L24
  mov    0x5c(%rsp),%eax
  test   %eax,%eax
  jle    L95
  pxor   %xmm5,%xmm5
  mov    0x50(%rsp),%r15
  movslq %eax,%rbx
  xor    %ebp,%ebp
  movapd %xmm5,%xmm6
  movapd %xmm5,%xmm7
  nopw   0x0(%rax,%rax,1)
L51:
  mov    0x38(%rsp),%rcx
  lea    0x8(%r15),%rsi
  xor    %edi,%edi
  movapd %xmm5,%xmm3
  movapd %xmm5,%xmm2
  movapd %xmm5,%xmm1
L43:
  addsd  -0x8(%rsi),%xmm1
  lea    -0x260(%rcx),%rax
  mov    %rsi,%rdx
  cs nopw 0x0(%rax,%rax,1)
L6:
  movsd  (%rax),%xmm0
  mulsd  (%rdx),%xmm0
  add    $0x20,%rax
  add    $0x8,%rdx
  movsd  -0x18(%rax),%xmm4
  addsd  %xmm0,%xmm1
  mulsd  %xmm0,%xmm4
  mulsd  -0x10(%rax),%xmm0
  addsd  %xmm4,%xmm2
  addsd  %xmm0,%xmm3
  cmp    %rax,%rcx
  jne    L6
  add    $0x14,%edi
  add    $0xa0,%rsi
  add    $0x400,%rcx
  cmp    $0x50,%edi
  jne    L43
  movapd %xmm1,%xmm0
  movsd  %xmm3,0x20(%rsp)
  movsd  %xmm2,0x18(%rsp)
  movsd  %xmm7,0x10(%rsp)
  movsd  %xmm6,0x8(%rsp)
  call   <FABS@plt>
  movslq (%r14,%rbp,4),%rax
  pxor   %xmm5,%xmm5
  movsd  0x8(%rsp),%xmm6
  mulsd  0x30(%rsp),%xmm0
  movsd  0x10(%rsp),%xmm7
  cmp    $0x13,%eax
  movsd  0x18(%rsp),%xmm2
  movsd  0x20(%rsp),%xmm3
  jg     L87
  addsd  0x70(%rsp,%rax,8),%xmm0
L87:
  movsd  D3(%rip),%xmm1
  movsd  0x30(%rsp),%xmm4
  add    $0x280,%r15
  divsd  %xmm0,%xmm1
  mulsd  %xmm1,%xmm2
  mulsd  %xmm3,%xmm1
  mulsd  %xmm4,%xmm2
  movapd %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl (%r12,%rbp,4),%xmm1
  mulsd  %xmm4,%xmm0
  add    $0x1,%rbp
  movapd %xmm1,%xmm3
  mulsd  %xmm2,%xmm3
  mulsd  %xmm2,%xmm2
  addsd  %xmm3,%xmm7
  subsd  %xmm2,%xmm0
  mulsd  %xmm1,%xmm0
  addsd  %xmm0,%xmm6
  cmp    %rbp,%rbx
  jne    L51
L47:
  mov    0x60(%rsp),%rax
  movsd  %xmm7,(%rax)
  mov    0x68(%rsp),%rax
  movsd  %xmm6,(%rax)
  mov    0x1118(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L41
  add    $0x1128,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L95:
  pxor   %xmm6,%xmm6
  movapd %xmm6,%xmm7
  jmp    L47
L41:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D3
datatype: f64
name: parse_data
arguments: data_tag: D0
datatype: f64

tool: D3: 1

tool: D0: 0.25

assistant: ```c
void coreGTRGAMMAPROTINVAR(double *gammaRates, double *EIGN, double *sumtable, int upper, int *wrptr, volatile double *ext_dlnLdlz, volatile double *ext_d2lnLdlz2, double lz, double *frequencies, double propInvar, int *iptr) {
  double *sum, diagptable[512];
  int i, l, j;
  double dlnLdlz = 0;
  double d2lnLdlz2 = 0;
  double ki, kisqr;
  double freqs[20];
  double scaler = 0.25 * (1.0 - propInvar);
  double tmp;
  double inv_Li, dlnLidlz, d2lnLidlz2;
  for (i = 0; i < 20; i++)
    freqs[i] = frequencies[i] * propInvar;
  for (i = 0; i < 4; i++) {
    ki = gammaRates[i];
    kisqr = ki * ki;
    for (l = 1; l < 20; l++) {
      diagptable[i * 128 + l * 4] = exp(EIGN[l - 1] * ki * lz);
      diagptable[i * 128 + l * 4 + 1] = EIGN[l - 1] * ki;
      diagptable[i * 128 + l * 4 + 2] = EIGN[l - 1] * EIGN[l - 1] * kisqr;
    }
  }
  for (i = 0; i < upper; i++) {
    sum = &sumtable[i * 80];
    inv_Li = 0.0;
    dlnLidlz = 0.0;
    d2lnLidlz2 = 0.0;
    for (j = 0; j < 4; j++) {
      inv_Li += sum[j * 20];
      for (l = 1; l < 20; l++) {
        inv_Li += (tmp = diagptable[j * 128 + l * 4] * sum[j * 20 + l]);
        dlnLidlz += tmp * diagptable[j * 128 + l * 4 + 1];
        d2lnLidlz2 += tmp * diagptable[j * 128 + l * 4 + 2];
      }
    }
    inv_Li = FABS(inv_Li) * scaler;
    if (iptr[i] < 20)
      inv_Li += freqs[iptr[i]];
    inv_Li = 1.0 / inv_Li;
    dlnLidlz *= inv_Li;
    d2lnLidlz2 *= inv_Li;
    dlnLidlz *= scaler;
    d2lnLidlz2 *= scaler;
    dlnLdlz += wrptr[i] * dlnLidlz;
    d2lnLdlz2 += wrptr[i] * (d2lnLidlz2 - dlnLidlz * dlnLidlz);
  }
  *ext_dlnLdlz = dlnLdlz;
  *ext_d2lnLdlz2 = d2lnLdlz2;
}
```