user: Translate the below assembly code into C programming language:

```asm
<coreGTRGAMMAINVAR_BINARY>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xe8,%rsp
  mov    %rdx,%r13
  mov    %rcx,0x48(%rsp)
  mov    %r8,0x38(%rsp)
  mov    %r9,0x40(%rsp)
  mov    0x120(%rsp),%r14
  mov    0x128(%rsp),%r15
  movsd  %xmm1,0x20(%rsp)
  mov    %fs:0x28,%rdx
  mov    %rdx,0xd8(%rsp)
  xor    %edx,%edx
  movsd  D16(%rip),%xmm1
  subsd  %xmm0,%xmm1
  mulsd  D12(%rip),%xmm1
  movsd  %xmm1,0x28(%rsp)
  movapd %xmm0,%xmm1
  mulsd  (%rdi),%xmm1
  movsd  %xmm1,0x50(%rsp)
  mulsd  0x8(%rdi),%xmm0
  movsd  %xmm0,0x58(%rsp)
  mov    %rsi,%rbp
  lea    0x70(%rsp),%rax
  mov    %rax,0x30(%rsp)
  lea    0xd0(%rsp),%r12
  mov    %rax,%rbx
L41:
  movsd  0x0(%rbp),%xmm3
  movsd  0x0(%r13),%xmm6
  movsd  %xmm6,0x8(%rsp)
  movsd  %xmm3,0x18(%rsp)
  mulsd  %xmm3,%xmm6
  movsd  %xmm6,0x10(%rsp)
  movapd %xmm6,%xmm0
  mulsd  0x20(%rsp),%xmm0
  call   <exp@plt>
  movsd  %xmm0,(%rbx)
  movsd  0x10(%rsp),%xmm7
  movsd  %xmm7,0x8(%rbx)
  movsd  0x8(%rsp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  0x18(%rsp),%xmm1
  mulsd  %xmm1,%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,0x10(%rbx)
  add    $0x8,%rbp
  add    $0x18,%rbx
  cmp    %r12,%rbx
  jne    L41
  cmpl   $0x0,0x130(%rsp)
  jle    L20
  mov    0x48(%rsp),%r13
  mov    0x130(%rsp),%ebx
  mov    $0x0,%ebp
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x20(%rsp)
  movsd  %xmm7,0x18(%rsp)
  jmp    L77
L42:
  movsd  D16(%rip),%xmm1
  divsd  %xmm0,%xmm1
  movsd  0x8(%rsp),%xmm0
  mulsd  %xmm1,%xmm0
  mulsd  0x10(%rsp),%xmm1
  movsd  0x28(%rsp),%xmm7
  mulsd  %xmm7,%xmm0
  pxor   %xmm2,%xmm2
  cvtsi2sdl (%r15,%rbp,4),%xmm2
  movapd %xmm2,%xmm3
  mulsd  %xmm0,%xmm3
  addsd  0x18(%rsp),%xmm3
  movsd  %xmm3,0x18(%rsp)
  mulsd  %xmm7,%xmm1
  mulsd  %xmm0,%xmm0
  subsd  %xmm0,%xmm1
  mulsd  %xmm2,%xmm1
  addsd  0x20(%rsp),%xmm1
  movsd  %xmm1,0x20(%rsp)
  add    $0x1,%rbp
  add    $0x40,%r13
  cmp    %rbx,%rbp
  je     L56
L77:
  mov    0x30(%rsp),%rax
  mov    %r13,%rdx
  pxor   %xmm0,%xmm0
  movsd  %xmm0,0x10(%rsp)
  movsd  %xmm0,0x8(%rsp)
L35:
  addsd  (%rdx),%xmm0
  movsd  (%rax),%xmm1
  mulsd  0x8(%rdx),%xmm1
  addsd  %xmm1,%xmm0
  movapd %xmm1,%xmm2
  mulsd  0x8(%rax),%xmm2
  addsd  0x8(%rsp),%xmm2
  movsd  %xmm2,0x8(%rsp)
  mulsd  0x10(%rax),%xmm1
  addsd  0x10(%rsp),%xmm1
  movsd  %xmm1,0x10(%rsp)
  add    $0x10,%rdx
  add    $0x18,%rax
  cmp    %r12,%rax
  jne    L35
  call   <FABS@plt>
  mulsd  0x28(%rsp),%xmm0
  mov    (%r14,%rbp,4),%eax
  cmp    $0x1,%eax
  jg     L42
  cltq
  addsd  0x50(%rsp,%rax,8),%xmm0
  jmp    L42
L20:
  pxor   %xmm6,%xmm6
  movsd  %xmm6,0x20(%rsp)
  movsd  %xmm6,0x18(%rsp)
L56:
  mov    0x38(%rsp),%rax
  movsd  0x18(%rsp),%xmm5
  movsd  %xmm5,(%rax)
  mov    0x40(%rsp),%rax
  movsd  0x20(%rsp),%xmm5
  movsd  %xmm5,(%rax)
  mov    0xd8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L59
  add    $0xe8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L59:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D16
type: f64
name: extract_symbolic_data
arguments: data_label: D12
type: f64

tool: D16: 1

tool: D12: 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;
}
```