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

```asm
<evaluateGTRGAMMAINVAR_VECTOR>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r12
  push   %rbx
  sub    $0xe0,%rsp
  mov    %rdi,-0x98(%rbp)
  mov    %rsi,-0xa0(%rbp)
  mov    %rdx,-0xa8(%rbp)
  mov    %rcx,-0xb0(%rbp)
  mov    %r8,-0xb8(%rbp)
  mov    %r9,-0xc0(%rbp)
  movsd  %xmm0,-0xd8(%rbp)
  movsd  %xmm1,-0xe0(%rbp)
  mov    0x10(%rbp),%rax
  mov    %rax,-0xc8(%rbp)
  mov    0x18(%rbp),%rax
  mov    %rax,-0xd0(%rbp)
  mov    0x20(%rbp),%rax
  mov    %rax,-0xe8(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  movsd  D22(%rip),%xmm0
  movapd %xmm0,%xmm1
  subsd  -0xd8(%rbp),%xmm1
  movsd  D61(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x70(%rbp)
  mov    -0xd0(%rbp),%rax
  movsd  (%rax),%xmm0
  mulsd  -0xd8(%rbp),%xmm0
  movsd  %xmm0,-0x40(%rbp)
  mov    -0xd0(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm0
  mulsd  -0xd8(%rbp),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0xd0(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm0
  mulsd  -0xd8(%rbp),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  mov    -0xd0(%rbp),%rax
  add    $0x18,%rax
  movsd  (%rax),%xmm0
  mulsd  -0xd8(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0xe0(%rbp),%xmm0
  movsd  %xmm0,-0x80(%rbp)
  movsd  D28(%rip),%xmm0
  comisd -0x80(%rbp),%xmm0
  jbe    L2
  movsd  D28(%rip),%xmm0
  movsd  %xmm0,-0x80(%rbp)
L2:
  mov    -0x80(%rbp),%rax
  movq   %rax,%xmm0
  call   <log@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x68(%rbp)
  mov    $0x80,%edi
  call   <malloc@plt>
  mov    %rax,-0x60(%rbp)
  movl   $0x0,-0x84(%rbp)
  jmp    L48
L66:
  mov    -0x84(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xc0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x48(%rbp)
  mov    -0x84(%rbp),%eax
  shl    $0x2,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  D22(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0xb8(%rbp),%rax
  movsd  (%rax),%xmm0
  mulsd  -0x48(%rbp),%xmm0
  mulsd  -0x68(%rbp),%xmm0
  movq   %xmm0,%rax
  mov    -0x84(%rbp),%edx
  shl    $0x2,%edx
  movslq %edx,%rdx
  add    $0x1,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x60(%rbp),%rdx
  lea    (%rcx,%rdx,1),%rbx
  movq   %rax,%xmm0
  call   <exp@plt>
  movq   %xmm0,%rax
  mov    %rax,(%rbx)
  mov    -0xb8(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x48(%rbp),%xmm0
  mulsd  -0x68(%rbp),%xmm0
  movq   %xmm0,%rax
  mov    -0x84(%rbp),%edx
  shl    $0x2,%edx
  movslq %edx,%rdx
  add    $0x2,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x60(%rbp),%rdx
  lea    (%rcx,%rdx,1),%rbx
  movq   %rax,%xmm0
  call   <exp@plt>
  movq   %xmm0,%rax
  mov    %rax,(%rbx)
  mov    -0xb8(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x48(%rbp),%xmm0
  mulsd  -0x68(%rbp),%xmm0
  movq   %xmm0,%rax
  mov    -0x84(%rbp),%edx
  shl    $0x2,%edx
  movslq %edx,%rdx
  add    $0x3,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x60(%rbp),%rdx
  lea    (%rcx,%rdx,1),%rbx
  movq   %rax,%xmm0
  call   <exp@plt>
  movq   %xmm0,%rax
  mov    %rax,(%rbx)
  addl   $0x1,-0x84(%rbp)
L48:
  cmpl   $0x3,-0x84(%rbp)
  jle    L66
  mov    0x28(%rbp),%eax
  mov    %eax,-0x84(%rbp)
  jmp    L78
L47:
  mov    -0x84(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xe8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  shl    $0x2,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xc8(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x58(%rbp)
  mov    -0x84(%rbp),%eax
  shl    $0x4,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x50(%rbp)
  mov    -0x58(%rbp),%rax
  movsd  (%rax),%xmm1
  mov    -0x50(%rbp),%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x60(%rbp),%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  mov    -0x58(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm1
  mov    -0x50(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x60(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x78(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  mov    -0x58(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm1
  mov    -0x50(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x60(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x78(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  mov    -0x58(%rbp),%rax
  add    $0x18,%rax
  movsd  (%rax),%xmm1
  mov    -0x50(%rbp),%rax
  add    $0x18,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x60(%rbp),%rax
  add    $0x18,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x78(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  mov    -0x58(%rbp),%rax
  movsd  (%rax),%xmm1
  mov    -0x50(%rbp),%rax
  add    $0x20,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x60(%rbp),%rax
  add    $0x20,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x78(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  mov    -0x58(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm1
  mov    -0x50(%rbp),%rax
  add    $0x28,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x60(%rbp),%rax
  add    $0x28,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x78(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  mov    -0x58(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm1
  mov    -0x50(%rbp),%rax
  add    $0x30,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x60(%rbp),%rax
  add    $0x30,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x78(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  mov    -0x58(%rbp),%rax
  add    $0x18,%rax
  movsd  (%rax),%xmm1
  mov    -0x50(%rbp),%rax
  add    $0x38,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x60(%rbp),%rax
  add    $0x38,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x78(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  mov    -0x58(%rbp),%rax
  movsd  (%rax),%xmm1
  mov    -0x50(%rbp),%rax
  add    $0x40,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x60(%rbp),%rax
  add    $0x40,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x78(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  mov    -0x58(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm1
  mov    -0x50(%rbp),%rax
  add    $0x48,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x60(%rbp),%rax
  add    $0x48,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x78(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  mov    -0x58(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm1
  mov    -0x50(%rbp),%rax
  add    $0x50,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x60(%rbp),%rax
  add    $0x50,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x78(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  mov    -0x58(%rbp),%rax
  add    $0x18,%rax
  movsd  (%rax),%xmm1
  mov    -0x50(%rbp),%rax
  add    $0x58,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x60(%rbp),%rax
  add    $0x58,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x78(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  mov    -0x58(%rbp),%rax
  movsd  (%rax),%xmm1
  mov    -0x50(%rbp),%rax
  add    $0x60,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x60(%rbp),%rax
  add    $0x60,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x78(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  mov    -0x58(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm1
  mov    -0x50(%rbp),%rax
  add    $0x68,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x60(%rbp),%rax
  add    $0x68,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x78(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  mov    -0x58(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm1
  mov    -0x50(%rbp),%rax
  add    $0x70,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x60(%rbp),%rax
  add    $0x70,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x78(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  mov    -0x58(%rbp),%rax
  add    $0x18,%rax
  movsd  (%rax),%xmm1
  mov    -0x50(%rbp),%rax
  add    $0x78,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x60(%rbp),%rax
  add    $0x78,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x78(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  mov    -0x84(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0x3,%eax
  jg     L65
  movsd  -0x70(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x78(%rbp),%xmm1
  mov    -0x84(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cltq
  movsd  -0x40(%rbp,%rax,8),%xmm0
  addsd  %xmm0,%xmm1
  movsd  %xmm1,-0xf0(%rbp)
  mov    -0x84(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    D56(%rip),%rax
  mov    %edx,%edi
  movq   %rax,%xmm0
  call   <pow@plt>
  mulsd  -0xf0(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <log@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  jmp    L35
L65:
  movsd  -0x70(%rbp),%xmm0
  mulsd  -0x78(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <log@plt>
  mov    %eax,%r12d
  mov    -0x84(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ebx
  mov    D56(%rip),%rax
  movq   %rax,%xmm0
  call   <log@plt>
  imul   %ebx,%eax
  add    %r12d,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x78(%rbp)
L35:
  mov    -0x84(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xb0(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x78(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x84(%rbp)
L78:
  mov    -0x84(%rbp),%eax
  cmp    0x30(%rbp),%eax
  jl     L47
  mov    -0x60(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L51
  call   <__stack_chk_fail@plt>
L51:
  add    $0xe0,%rsp
  pop    %rbx
  pop    %r12
  pop    %rbp
  ret
```

tool_calls: name: read_data
arguments: data_tag: D22
type_guessed: f64
name: read_data
arguments: data_tag: D61
type_guessed: f64
name: read_data
arguments: data_tag: D28
type_guessed: byte[8]
name: read_data
arguments: data_tag: D56
type_guessed: byte[8]

tool: D22: 1

tool: D61: 0.25

tool: {"D28": [0x16,0x56,0xe7,0x9e,0xaf,0x03,0xd2,0x3c]}

tool: {"D56": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x2f]}

assistant: ```c
void evaluateGTRGAMMAINVAR_VECTOR(int *ex2, int *iptr, double *x2_start, double *v, double *EIGN, double *gammaRates, double *tipVector, double *tFreqs, double invariants, double pz, char *tipX1, int lower, int n) {
  double z, lz, term, ki;
  int i;
  double *diagptable;
  double freqs[4];
  double *x1, *x2;
  double scaler = 0.25 * (1.0 - invariants);
  freqs[0] = tFreqs[0] * invariants;
  freqs[1] = tFreqs[1] * invariants;
  freqs[2] = tFreqs[2] * invariants;
  freqs[3] = tFreqs[3] * invariants;
  z = pz;
  if (z < 1.0E-15)
    z = 1.0E-15;
  lz = log(z);
  diagptable = (double *)malloc(sizeof(double) * 16);
  for (i = 0; i < 4; i++) {
    ki = gammaRates[i];
    diagptable[i * 4] = 1.0;
    diagptable[i * 4 + 1] = exp(EIGN[0] * ki * lz);
    diagptable[i * 4 + 2] = exp(EIGN[1] * ki * lz);
    diagptable[i * 4 + 3] = exp(EIGN[2] * ki * lz);
  }
  for (i = lower; i < n; i++) {
    x1 = &(tipVector[4 * tipX1[i]]);
    x2 = &x2_start[16 * i];
    term = x1[0] * x2[0] * diagptable[0];
    term += x1[1] * x2[1] * diagptable[1];
    term += x1[2] * x2[2] * diagptable[2];
    term += x1[3] * x2[3] * diagptable[3];
    term += x1[0] * x2[4] * diagptable[4];
    term += x1[1] * x2[5] * diagptable[5];
    term += x1[2] * x2[6] * diagptable[6];
    term += x1[3] * x2[7] * diagptable[7];
    term += x1[0] * x2[8] * diagptable[8];
    term += x1[1] * x2[9] * diagptable[9];
    term += x1[2] * x2[10] * diagptable[10];
    term += x1[3] * x2[11] * diagptable[11];
    term += x1[0] * x2[12] * diagptable[12];
    term += x1[1] * x2[13] * diagptable[13];
    term += x1[2] * x2[14] * diagptable[14];
    term += x1[3] * x2[15] * diagptable[15];
    if (iptr[i] < 4)
      term = log((scaler * term + freqs[iptr[i]]) * pow((1.0 / 115792089237316195423570985008687907853269984665640564039457584007913129639936.0), ex2[i]));
    else
      term = log(scaler * term) + ex2[i] * log((1.0 / 115792089237316195423570985008687907853269984665640564039457584007913129639936.0));
    v[i] = term;
  }
  free(diagptable);
}
```