user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<coreGTRGAMMAINVAR_BINARY>:
  endbr64
  push   %r15
  mov    %rsi,%r15
  push   %r14
  mov    %rcx,%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x138,%rsp
  movsd  (%rdx),%xmm3
  movsd  %xmm1,0x20(%rsp)
  movsd  D28(%rip),%xmm1
  mov    0x170(%rsp),%rbp
  lea    0xc0(%rsp),%rbx
  mov    %r8,0x88(%rsp)
  mov    0x178(%rsp),%r12
  lea    0x120(%rsp),%r13
  subsd  %xmm0,%xmm1
  mulsd  D27(%rip),%xmm1
  mov    %r9,0x90(%rsp)
  unpcklpd %xmm0,%xmm0
  mov    %fs:0x28,%rax
  mov    %rax,0x128(%rsp)
  xor    %eax,%eax
  movsd  %xmm3,0x18(%rsp)
  mulsd  %xmm3,%xmm3
  movsd  %xmm1,0x98(%rsp)
  movupd (%rdi),%xmm1
  mulpd  %xmm1,%xmm0
  movsd  %xmm3,0x28(%rsp)
  movaps %xmm0,0xa0(%rsp)
L1:
  movsd  (%r15),%xmm1
  movsd  0x18(%rsp),%xmm2
  add    $0x18,%rbx
  add    $0x8,%r15
  movsd  0x20(%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
  mulsd  %xmm1,%xmm1
  unpcklpd %xmm2,%xmm0
  mulsd  0x28(%rsp),%xmm1
  movups %xmm0,-0x18(%rbx)
  movsd  %xmm1,-0x8(%rbx)
  cmp    %rbx,%r13
  jne    L1
  mov    0x180(%rsp),%eax
  test   %eax,%eax
  jle    L36
  movsd  0xc8(%rsp),%xmm3
  pxor   %xmm2,%xmm2
  xor    %r13d,%r13d
  movsd  0xe0(%rsp),%xmm4
  mov    0xc0(%rsp),%r15
  movslq 0x180(%rsp),%rbx
  movsd  0x98(%rsp),%xmm8
  movsd  %xmm3,0x30(%rsp)
  movsd  0xd0(%rsp),%xmm3
  movsd  %xmm4,0x48(%rsp)
  movsd  0xf0(%rsp),%xmm4
  movsd  %xmm3,0x38(%rsp)
  movsd  0xd8(%rsp),%xmm3
  movsd  %xmm4,0x58(%rsp)
  movsd  0x100(%rsp),%xmm4
  movsd  %xmm3,0x40(%rsp)
  movsd  0xe8(%rsp),%xmm3
  movsd  %xmm4,0x68(%rsp)
  movsd  0x110(%rsp),%xmm4
  movsd  %xmm3,0x50(%rsp)
  movsd  0xf8(%rsp),%xmm3
  movsd  %xmm4,0x78(%rsp)
  movapd %xmm2,%xmm4
  movsd  %xmm3,0x60(%rsp)
  movsd  0x108(%rsp),%xmm3
  movsd  %xmm3,0x70(%rsp)
  movsd  0x118(%rsp),%xmm3
  movsd  %xmm3,0x80(%rsp)
  movapd %xmm2,%xmm3
  nopl   0x0(%rax,%rax,1)
L53:
  movq   %r15,%xmm1
  movsd  0x30(%rsp),%xmm7
  movsd  (%r14),%xmm0
  movsd  %xmm3,0x28(%rsp)
  mulsd  0x8(%r14),%xmm1
  movsd  0x40(%rsp),%xmm6
  movsd  %xmm4,0x20(%rsp)
  addsd  %xmm2,%xmm0
  mulsd  0x18(%r14),%xmm6
  movsd  0x70(%rsp),%xmm9
  movsd  %xmm8,0x18(%rsp)
  mulsd  0x38(%r14),%xmm9
  mulsd  %xmm1,%xmm7
  addsd  %xmm1,%xmm0
  addsd  0x10(%r14),%xmm0
  mulsd  0x38(%rsp),%xmm1
  addsd  %xmm6,%xmm0
  addsd  0x20(%r14),%xmm0
  addsd  %xmm2,%xmm7
  addsd  %xmm2,%xmm1
  movapd %xmm7,%xmm5
  movsd  0x48(%rsp),%xmm7
  mulsd  %xmm6,%xmm7
  mulsd  0x50(%rsp),%xmm6
  addsd  %xmm5,%xmm7
  movapd %xmm6,%xmm5
  movsd  0x58(%rsp),%xmm6
  mulsd  0x28(%r14),%xmm6
  addsd  %xmm1,%xmm5
  movsd  0x60(%rsp),%xmm1
  addsd  %xmm6,%xmm0
  mulsd  %xmm6,%xmm1
  addsd  0x30(%r14),%xmm0
  mulsd  0x68(%rsp),%xmm6
  addsd  %xmm9,%xmm0
  addsd  %xmm7,%xmm1
  addsd  %xmm5,%xmm6
  movsd  0x78(%rsp),%xmm5
  mulsd  %xmm9,%xmm5
  addsd  %xmm5,%xmm1
  movsd  0x80(%rsp),%xmm5
  mulsd  %xmm9,%xmm5
  movsd  %xmm1,0x10(%rsp)
  addsd  %xmm6,%xmm5
  movsd  %xmm5,0x8(%rsp)
  call   <FABS@plt>
  movslq 0x0(%rbp,%r13,4),%rcx
  pxor   %xmm2,%xmm2
  movsd  0x18(%rsp),%xmm8
  movsd  0x10(%rsp),%xmm1
  movsd  0x20(%rsp),%xmm4
  mulsd  %xmm8,%xmm0
  cmp    $0x1,%ecx
  movsd  0x28(%rsp),%xmm3
  jg     L57
  addsd  0xa0(%rsp,%rcx,8),%xmm0
L57:
  movsd  D28(%rip),%xmm5
  pxor   %xmm6,%xmm6
  add    $0x40,%r14
  cvtsi2sdl (%r12,%r13,4),%xmm6
  add    $0x1,%r13
  divsd  %xmm0,%xmm5
  mulsd  %xmm5,%xmm1
  mulsd  0x8(%rsp),%xmm5
  movapd %xmm1,%xmm0
  movapd %xmm6,%xmm1
  mulsd  %xmm8,%xmm0
  mulsd  %xmm8,%xmm5
  mulsd  %xmm0,%xmm1
  mulsd  %xmm0,%xmm0
  addsd  %xmm1,%xmm4
  movapd %xmm5,%xmm1
  subsd  %xmm0,%xmm1
  mulsd  %xmm6,%xmm1
  addsd  %xmm1,%xmm3
  cmp    %r13,%rbx
  jne    L53
L23:
  mov    0x88(%rsp),%rax
  movsd  %xmm4,(%rax)
  mov    0x90(%rsp),%rax
  movsd  %xmm3,(%rax)
  mov    0x128(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L17
  add    $0x138,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L36:
  pxor   %xmm3,%xmm3
  movapd %xmm3,%xmm4
  jmp    L23
L17:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D28
data_type: f64
name: unpack_data
arguments: data_tag: D27
data_type: f64

tool: D28: 1

tool: D27: 0.25

assistant: ```c
void coreGTRGAMMAINVAR_BINARY(double propInvar, double *frequencies, double *gammaRates, double *EIGN, double *sumtable, volatile double *ext_dlnLdlz, volatile double *ext_d2lnLdlz2, int *iptr, int *wrptr, int upper, double lz) {
  double *sum, diagptable[12];
  int i, j;
  double dlnLdlz = 0;
  double d2lnLdlz2 = 0;
  double ki, kisqr;
  double freqs[4];
  double scaler = 0.25 * (1.0 - propInvar);
  double tmp_1;
  double inv_Li, dlnLidlz, d2lnLidlz2;
  freqs[0] = frequencies[0] * propInvar;
  freqs[1] = frequencies[1] * propInvar;
  for (i = 0; i < 4; i++) {
    ki = gammaRates[i];
    kisqr = ki * ki;
    diagptable[i * 3] = exp(EIGN[0] * ki * lz);
    diagptable[i * 3 + 1] = EIGN[0] * ki;
    diagptable[i * 3 + 2] = EIGN[0] * EIGN[0] * kisqr;
  }
  for (i = 0; i < upper; i++) {
    sum = &(sumtable[i * 8]);
    inv_Li = 0.0;
    dlnLidlz = 0.0;
    d2lnLidlz2 = 0.0;
    for (j = 0; j < 4; j++) {
      inv_Li += sum[2 * j];
      tmp_1 = diagptable[3 * j] * sum[2 * j + 1];
      inv_Li += tmp_1;
      dlnLidlz += tmp_1 * diagptable[3 * j + 1];
      d2lnLidlz2 += tmp_1 * diagptable[3 * j + 2];
    }
    inv_Li = FABS(inv_Li) * scaler;
    if (iptr[i] < 2)
      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;
}
```