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

```asm
<coreGTRGAMMA>:
  endbr64
  push   %r15
  mov    %r9,%r15
  push   %r14
  push   %r13
  push   %r12
  mov    %edi,%r12d
  mov    $0x120,%edi
  push   %rbp
  push   %rbx
  sub    $0xe8,%rsp
  mov    0x128(%rsp),%rax
  mov    %esi,0x48(%rsp)
  mov    %rdx,0xd0(%rsp)
  mov    0x120(%rsp),%r14
  mov    %rcx,0xc0(%rsp)
  mov    %r8,0xc8(%rsp)
  mov    %rax,0xd8(%rsp)
  movsd  %xmm0,(%rsp)
  call   <malloc@plt>
  movsd  (%r15),%xmm7
  mov    %rax,%rbp
  lea    0x120(%rax),%r13
  mov    %rax,%rbx
  movsd  %xmm7,0x38(%rsp)
  mulsd  %xmm7,%xmm7
  movsd  %xmm7,0x40(%rsp)
L39:
  movsd  (%r14),%xmm2
  movsd  0x38(%rsp),%xmm6
  add    $0x48,%rbx
  add    $0x8,%r14
  movsd  (%rsp),%xmm0
  mulsd  %xmm2,%xmm6
  movapd %xmm2,%xmm4
  movsd  %xmm2,0x8(%rsp)
  mulsd  %xmm2,%xmm4
  mulsd  %xmm6,%xmm0
  movsd  %xmm6,0x28(%rsp)
  movsd  %xmm4,0x30(%rsp)
  call   <exp@plt>
  movsd  0x8(%r15),%xmm1
  movsd  0x8(%rsp),%xmm2
  movsd  %xmm0,-0x48(%rbx)
  movsd  (%rsp),%xmm0
  movapd %xmm1,%xmm5
  movsd  %xmm1,0x20(%rsp)
  mulsd  %xmm2,%xmm5
  mulsd  %xmm5,%xmm0
  movsd  %xmm5,0x18(%rsp)
  call   <exp@plt>
  movsd  0x10(%r15),%xmm3
  movsd  0x8(%rsp),%xmm2
  movsd  %xmm0,-0x40(%rbx)
  movsd  (%rsp),%xmm0
  mulsd  %xmm3,%xmm2
  movsd  %xmm3,0x10(%rsp)
  mulsd  %xmm2,%xmm0
  movsd  %xmm2,0x8(%rsp)
  call   <exp@plt>
  movsd  0x20(%rsp),%xmm1
  movsd  0x28(%rsp),%xmm6
  movsd  0x10(%rsp),%xmm3
  movsd  0x30(%rsp),%xmm4
  mulsd  %xmm1,%xmm1
  unpcklpd %xmm6,%xmm0
  movsd  0x18(%rsp),%xmm5
  movsd  0x8(%rsp),%xmm2
  mulsd  %xmm3,%xmm3
  movups %xmm0,-0x38(%rbx)
  movsd  0x40(%rsp),%xmm0
  mulsd  %xmm4,%xmm0
  mulsd  %xmm4,%xmm1
  mulsd  %xmm4,%xmm3
  unpcklpd %xmm5,%xmm0
  movups %xmm0,-0x28(%rbx)
  unpcklpd %xmm2,%xmm1
  movups %xmm1,-0x18(%rbx)
  movsd  %xmm3,-0x8(%rbx)
  cmp    %r13,%rbx
  jne    L39
  mov    0x48(%rsp),%esi
  cmp    %esi,%r12d
  jge    L2
  movsd  0x0(%rbp),%xmm7
  mov    0x10(%rbp),%r11
  sub    $0x1,%esi
  movslq %r12d,%r13
  movsd  0x58(%rbp),%xmm15
  mov    0x48(%rbp),%r10
  mov    %esi,%ebx
  mov    %r13,%rax
  movq   %xmm7,%r8
  mov    0x50(%rbp),%r9
  sub    %r12d,%ebx
  shl    $0x7,%rax
  movsd  0x8(%rbp),%xmm7
  add    %r13,%rbx
  movsd  0x90(%rbp),%xmm14
  movsd  0x98(%rbp),%xmm13
  shl    $0x7,%rbx
  movq   %xmm7,%r15
  movsd  0x18(%rbp),%xmm7
  movapd %xmm14,%xmm6
  movapd %xmm15,%xmm14
  movapd %xmm6,%xmm15
  movsd  %xmm7,(%rsp)
  movsd  0x20(%rbp),%xmm7
  movsd  %xmm7,0x8(%rsp)
  movsd  0x28(%rbp),%xmm7
  movsd  %xmm7,0x10(%rsp)
  movsd  0x30(%rbp),%xmm7
  movsd  %xmm7,0x18(%rsp)
  movsd  0x38(%rbp),%xmm7
  movsd  %xmm7,0x20(%rsp)
  movsd  0x40(%rbp),%xmm7
  movsd  %xmm7,0x28(%rsp)
  movsd  0x60(%rbp),%xmm7
  movsd  %xmm7,0x30(%rsp)
  movsd  0x68(%rbp),%xmm7
  movsd  %xmm7,0x38(%rsp)
  movsd  0x70(%rbp),%xmm7
  movsd  %xmm7,0x40(%rsp)
  movsd  0x78(%rbp),%xmm7
  movsd  %xmm7,0x48(%rsp)
  movsd  0x80(%rbp),%xmm7
  movsd  %xmm7,0x50(%rsp)
  movsd  0x88(%rbp),%xmm7
  movsd  %xmm7,0x58(%rsp)
  movsd  0xa0(%rbp),%xmm12
  movsd  0xa8(%rbp),%xmm7
  mov    0xd0(%rsp),%rdi
  mov    0xd8(%rsp),%rdx
  movsd  %xmm7,0x60(%rsp)
  movsd  0xb0(%rbp),%xmm7
  movsd  0xd8(%rbp),%xmm11
  movsd  0xe0(%rbp),%xmm10
  add    %rdi,%rax
  lea    (%rdx,%r13,4),%rdx
  mov    0xe8(%rbp),%rcx
  movsd  %xmm7,0x68(%rsp)
  movsd  0xb8(%rbp),%xmm7
  movq   %xmm11,%rsi
  lea    0x80(%rdi,%rbx,1),%rbx
  movq   %r11,%xmm11
  movq   %xmm13,%rdi
  movq   %xmm10,%r11
  movsd  %xmm7,0x70(%rsp)
  movapd %xmm12,%xmm10
  movq   %r9,%xmm13
  movsd  0xc0(%rbp),%xmm7
  movq   %r10,%xmm12
  movsd  %xmm7,0x78(%rsp)
  movsd  0xc8(%rbp),%xmm7
  movsd  %xmm7,0x80(%rsp)
  movsd  0xd0(%rbp),%xmm7
  movsd  %xmm7,0x88(%rsp)
  movsd  0xf0(%rbp),%xmm7
  movsd  %xmm7,0x90(%rsp)
  movsd  0xf8(%rbp),%xmm7
  movsd  %xmm7,0x98(%rsp)
  movsd  0x100(%rbp),%xmm7
  movsd  %xmm7,0xa0(%rsp)
  movsd  0x108(%rbp),%xmm7
  movsd  %xmm7,0xa8(%rsp)
  movsd  0x110(%rbp),%xmm7
  movsd  %xmm7,0xb0(%rsp)
  movsd  0x118(%rbp),%xmm7
  movsd  %xmm7,0xb8(%rsp)
  pxor   %xmm7,%xmm7
  movapd %xmm7,%xmm8
  nopl   0x0(%rax,%rax,1)
L9:
  movq   %r8,%xmm1
  movq   %r15,%xmm0
  movsd  0x18(%rax),%xmm3
  movsd  (%rsp),%xmm4
  mulsd  0x8(%rax),%xmm1
  movsd  0x10(%rsp),%xmm2
  sub    $0xffffffffffffff80,%rax
  add    $0x4,%rdx
  mulsd  -0x70(%rax),%xmm0
  movsd  0x20(%rsp),%xmm5
  mulsd  %xmm11,%xmm3
  movsd  -0x80(%rax),%xmm9
  movsd  0x80(%rsp),%xmm6
  mulsd  %xmm1,%xmm4
  addsd  %xmm1,%xmm9
  mulsd  %xmm0,%xmm2
  mulsd  %xmm3,%xmm5
  mulsd  0x8(%rsp),%xmm1
  addsd  %xmm0,%xmm9
  mulsd  0x18(%rsp),%xmm0
  addsd  %xmm4,%xmm2
  addsd  %xmm3,%xmm9
  mulsd  0x28(%rsp),%xmm3
  movsd  0x30(%rsp),%xmm4
  addsd  -0x60(%rax),%xmm9
  addsd  %xmm2,%xmm5
  movsd  -0x58(%rax),%xmm2
  addsd  %xmm1,%xmm0
  movsd  -0x50(%rax),%xmm1
  mulsd  %xmm12,%xmm2
  mulsd  %xmm13,%xmm1
  addsd  %xmm0,%xmm3
  movsd  -0x48(%rax),%xmm0
  mulsd  %xmm14,%xmm0
  mulsd  %xmm2,%xmm4
  addsd  %xmm2,%xmm9
  mulsd  0x38(%rsp),%xmm2
  addsd  %xmm1,%xmm9
  addsd  %xmm5,%xmm4
  movsd  0x60(%rsp),%xmm5
  addsd  %xmm3,%xmm2
  movsd  0x40(%rsp),%xmm3
  addsd  %xmm0,%xmm9
  addsd  -0x40(%rax),%xmm9
  mulsd  %xmm1,%xmm3
  mulsd  0x48(%rsp),%xmm1
  addsd  %xmm4,%xmm3
  movsd  -0x28(%rax),%xmm4
  addsd  %xmm2,%xmm1
  movsd  0x50(%rsp),%xmm2
  mulsd  %xmm10,%xmm4
  mulsd  %xmm0,%xmm2
  mulsd  0x58(%rsp),%xmm0
  mulsd  %xmm4,%xmm6
  addsd  %xmm2,%xmm3
  movsd  -0x38(%rax),%xmm2
  addsd  %xmm1,%xmm0
  movq   %rdi,%xmm1
  mulsd  %xmm15,%xmm2
  mulsd  -0x30(%rax),%xmm1
  mulsd  %xmm2,%xmm5
  addsd  %xmm2,%xmm9
  mulsd  0x68(%rsp),%xmm2
  addsd  %xmm1,%xmm9
  addsd  %xmm3,%xmm5
  movsd  0x70(%rsp),%xmm3
  addsd  %xmm4,%xmm9
  addsd  %xmm0,%xmm2
  movsd  -0x20(%rax),%xmm0
  mulsd  0x88(%rsp),%xmm4
  mulsd  %xmm1,%xmm3
  mulsd  0x78(%rsp),%xmm1
  addsd  %xmm9,%xmm0
  addsd  %xmm5,%xmm3
  addsd  %xmm2,%xmm1
  movq   %r11,%xmm2
  addsd  %xmm3,%xmm6
  movq   %rsi,%xmm3
  mulsd  -0x18(%rax),%xmm3
  addsd  %xmm1,%xmm4
  movq   %rcx,%xmm1
  mulsd  -0x10(%rax),%xmm2
  movsd  0x90(%rsp),%xmm5
  mulsd  -0x8(%rax),%xmm1
  mulsd  %xmm3,%xmm5
  addsd  %xmm3,%xmm0
  mulsd  0x98(%rsp),%xmm3
  addsd  %xmm2,%xmm0
  addsd  %xmm6,%xmm5
  addsd  %xmm4,%xmm3
  addsd  %xmm1,%xmm0
  movsd  0xa0(%rsp),%xmm4
  mulsd  %xmm2,%xmm4
  mulsd  0xa8(%rsp),%xmm2
  addsd  %xmm5,%xmm4
  addsd  %xmm3,%xmm2
  movsd  0xb0(%rsp),%xmm3
  mulsd  %xmm1,%xmm3
  mulsd  0xb8(%rsp),%xmm1
  addsd  %xmm3,%xmm4
  addsd  %xmm2,%xmm1
  movsd  D6(%rip),%xmm2
  divsd  %xmm0,%xmm2
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x4(%rdx),%xmm0
  movapd %xmm0,%xmm3
  mulsd  %xmm2,%xmm4
  mulsd  %xmm2,%xmm1
  mulsd  %xmm4,%xmm3
  mulsd  %xmm4,%xmm4
  addsd  %xmm3,%xmm8
  subsd  %xmm4,%xmm1
  mulsd  %xmm0,%xmm1
  addsd  %xmm1,%xmm7
  cmp    %rax,%rbx
  jne    L9
L8:
  mov    0xc0(%rsp),%rax
  mov    %rbp,%rdi
  movsd  %xmm8,(%rax)
  mov    0xc8(%rsp),%rax
  movsd  %xmm7,(%rax)
  add    $0xe8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1070 <free@plt>
  nopl   0x0(%rax)
L2:
  pxor   %xmm7,%xmm7
  movapd %xmm7,%xmm8
  jmp    L8
```

tool_calls: name: read_data
arguments: data_label: D6
type_guessed: f64

tool: D6: 1

assistant: ```c
void coreGTRGAMMA(int lower, const int upper, double *sumtable, double *d1, double *d2, double *EIGN, double *gammaRates, double lz, int *wrptr) {
  int i;
  double *diagptable, *diagptable_start, *sum, tmp_1, tmp_2, tmp_3, inv_Li, dlnLidlz, d2lnLidlz2, ki, kisqr, dlnLdlz = 0.0, d2lnLdlz2 = 0.0;
  diagptable = diagptable_start = (double *)malloc(sizeof(double) * 36);
  for (i = 0; i < 4; i++) {
    ki = gammaRates[i];
    kisqr = ki * ki;
    *diagptable++ = exp(EIGN[0] * ki * lz);
    *diagptable++ = exp(EIGN[1] * ki * lz);
    *diagptable++ = exp(EIGN[2] * ki * lz);
    *diagptable++ = EIGN[0] * ki;
    *diagptable++ = EIGN[0] * EIGN[0] * kisqr;
    *diagptable++ = EIGN[1] * ki;
    *diagptable++ = EIGN[1] * EIGN[1] * kisqr;
    *diagptable++ = EIGN[2] * ki;
    *diagptable++ = EIGN[2] * EIGN[2] * kisqr;
  }
  for (i = lower; i < upper; i++) {
    diagptable = diagptable_start;
    sum = &(sumtable[i * 16]);
    inv_Li = *sum++;
    inv_Li += (tmp_1 = *diagptable++ * *sum++);
    inv_Li += (tmp_2 = *diagptable++ * *sum++);
    inv_Li += (tmp_3 = *diagptable++ * *sum++);
    dlnLidlz = tmp_1 * *diagptable++;
    d2lnLidlz2 = tmp_1 * *diagptable++;
    dlnLidlz += tmp_2 * *diagptable++;
    d2lnLidlz2 += tmp_2 * *diagptable++;
    dlnLidlz += tmp_3 * *diagptable++;
    d2lnLidlz2 += tmp_3 * *diagptable++;
    inv_Li += *sum++;
    inv_Li += (tmp_1 = *sum++ * *diagptable++);
    inv_Li += (tmp_2 = *sum++ * *diagptable++);
    inv_Li += (tmp_3 = *sum++ * *diagptable++);
    dlnLidlz += tmp_1 * *diagptable++;
    d2lnLidlz2 += tmp_1 * *diagptable++;
    dlnLidlz += tmp_2 * *diagptable++;
    d2lnLidlz2 += tmp_2 * *diagptable++;
    dlnLidlz += tmp_3 * *diagptable++;
    d2lnLidlz2 += tmp_3 * *diagptable++;
    inv_Li += *sum++;
    inv_Li += (tmp_1 = *sum++ * *diagptable++);
    inv_Li += (tmp_2 = *sum++ * *diagptable++);
    inv_Li += (tmp_3 = *sum++ * *diagptable++);
    dlnLidlz += tmp_1 * *diagptable++;
    d2lnLidlz2 += tmp_1 * *diagptable++;
    dlnLidlz += tmp_2 * *diagptable++;
    d2lnLidlz2 += tmp_2 * *diagptable++;
    dlnLidlz += tmp_3 * *diagptable++;
    d2lnLidlz2 += tmp_3 * *diagptable++;
    inv_Li += *sum++;
    inv_Li += (tmp_1 = *sum++ * *diagptable++);
    inv_Li += (tmp_2 = *sum++ * *diagptable++);
    inv_Li += (tmp_3 = *sum++ * *diagptable++);
    dlnLidlz += tmp_1 * *diagptable++;
    d2lnLidlz2 += tmp_1 * *diagptable++;
    dlnLidlz += tmp_2 * *diagptable++;
    d2lnLidlz2 += tmp_2 * *diagptable++;
    dlnLidlz += tmp_3 * *diagptable++;
    d2lnLidlz2 += tmp_3 * *diagptable++;
    inv_Li = 1.0 / inv_Li;
    dlnLidlz *= inv_Li;
    d2lnLidlz2 *= inv_Li;
    dlnLdlz += wrptr[i] * dlnLidlz;
    d2lnLdlz2 += wrptr[i] * (d2lnLidlz2 - dlnLidlz * dlnLidlz);
  }
  *d1 = dlnLdlz;
  *d2 = d2lnLdlz2;
  free(diagptable_start);
}
```