user: What is the c source code of the assembly code below?

```asm
<coreGAMMA_FLEX>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0xb8,%rsp
  mov    %edi,-0x2084(%rbp)
  mov    %rsi,-0x2090(%rbp)
  mov    %rdx,-0x2098(%rbp)
  mov    %rcx,-0x20a0(%rbp)
  mov    %r8,-0x20a8(%rbp)
  mov    %r9,-0x20b0(%rbp)
  movsd  %xmm0,-0x20b8(%rbp)
  mov    0x10(%rbp),%rax
  mov    %rax,-0x20c0(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x2068(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x2060(%rbp)
  mov    0x18(%rbp),%eax
  shl    $0x2,%eax
  mov    %eax,-0x206c(%rbp)
  movl   $0x0,-0x2078(%rbp)
  jmp    L82
L77:
  mov    -0x2078(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20b0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x2030(%rbp)
  movsd  -0x2030(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  %xmm0,-0x2028(%rbp)
  movl   $0x1,-0x2070(%rbp)
  jmp    L102
L33:
  mov    -0x2070(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20a8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x2030(%rbp),%xmm0
  mulsd  -0x20b8(%rbp),%xmm0
  movq   %xmm0,%rax
  mov    -0x2078(%rbp),%edx
  mov    %edx,%ecx
  imul   -0x206c(%rbp),%ecx
  mov    -0x2070(%rbp),%edx
  shl    $0x2,%edx
  lea    (%rcx,%rdx,1),%ebx
  movq   %rax,%xmm0
  call   <exp@plt>
  movq   %xmm0,%rax
  movslq %ebx,%rdx
  mov    %rax,-0x2020(%rbp,%rdx,8)
  mov    -0x2070(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20a8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x2078(%rbp),%eax
  imul   -0x206c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2070(%rbp),%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    $0x1,%eax
  mulsd  -0x2030(%rbp),%xmm0
  cltq
  movsd  %xmm0,-0x2020(%rbp,%rax,8)
  mov    -0x2070(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20a8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x2070(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20a8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  mov    -0x2078(%rbp),%eax
  imul   -0x206c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2070(%rbp),%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    $0x2,%eax
  mulsd  -0x2028(%rbp),%xmm0
  cltq
  movsd  %xmm0,-0x2020(%rbp,%rax,8)
  addl   $0x1,-0x2070(%rbp)
L102:
  mov    -0x2070(%rbp),%eax
  cmp    0x18(%rbp),%eax
  jl     L33
  addl   $0x1,-0x2078(%rbp)
L82:
  cmpl   $0x3,-0x2078(%rbp)
  jle    L77
  movl   $0x0,-0x2078(%rbp)
  jmp    L64
L21:
  mov    -0x2078(%rbp),%eax
  imul   -0x206c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x2090(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x2040(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x2058(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x2050(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x2048(%rbp)
  movl   $0x0,-0x2074(%rbp)
  jmp    L35
L31:
  mov    -0x2074(%rbp),%eax
  imul   0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x2040(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0x2058(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x2058(%rbp)
  movl   $0x1,-0x2070(%rbp)
  jmp    L76
L6:
  mov    -0x2074(%rbp),%eax
  imul   -0x206c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2070(%rbp),%eax
  shl    $0x2,%eax
  add    %edx,%eax
  cltq
  movsd  -0x2020(%rbp,%rax,8),%xmm1
  mov    -0x2074(%rbp),%eax
  imul   0x18(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2070(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x2040(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x2038(%rbp)
  movsd  -0x2038(%rbp),%xmm0
  movsd  -0x2058(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x2058(%rbp)
  mov    -0x2074(%rbp),%eax
  imul   -0x206c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2070(%rbp),%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    $0x1,%eax
  cltq
  movsd  -0x2020(%rbp,%rax,8),%xmm0
  mulsd  -0x2038(%rbp),%xmm0
  movsd  -0x2050(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x2050(%rbp)
  mov    -0x2074(%rbp),%eax
  imul   -0x206c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2070(%rbp),%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    $0x2,%eax
  cltq
  movsd  -0x2020(%rbp,%rax,8),%xmm0
  mulsd  -0x2038(%rbp),%xmm0
  movsd  -0x2048(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x2048(%rbp)
  addl   $0x1,-0x2070(%rbp)
L76:
  mov    -0x2070(%rbp),%eax
  cmp    0x18(%rbp),%eax
  jl     L6
  addl   $0x1,-0x2074(%rbp)
L35:
  cmpl   $0x3,-0x2074(%rbp)
  jle    L31
  movsd  D9(%rip),%xmm0
  divsd  -0x2058(%rbp),%xmm0
  movsd  %xmm0,-0x2058(%rbp)
  movsd  -0x2050(%rbp),%xmm0
  mulsd  -0x2058(%rbp),%xmm0
  movsd  %xmm0,-0x2050(%rbp)
  movsd  -0x2048(%rbp),%xmm0
  mulsd  -0x2058(%rbp),%xmm0
  movsd  %xmm0,-0x2048(%rbp)
  mov    -0x2078(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20c0(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  -0x2050(%rbp),%xmm0
  movsd  -0x2068(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x2068(%rbp)
  mov    -0x2078(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20c0(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movsd  -0x2050(%rbp),%xmm0
  movapd %xmm0,%xmm2
  mulsd  %xmm0,%xmm2
  movsd  -0x2048(%rbp),%xmm0
  subsd  %xmm2,%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x2060(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x2060(%rbp)
  addl   $0x1,-0x2078(%rbp)
L64:
  mov    -0x2078(%rbp),%eax
  cmp    -0x2084(%rbp),%eax
  jl     L21
  mov    -0x2098(%rbp),%rax
  movsd  -0x2068(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x20a0(%rbp),%rax
  movsd  -0x2060(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L18
  call   <__stack_chk_fail@plt>
L18:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: read_data
arguments: label: D9
type_infered: f64

tool: D9: 1

assistant: ```c
void coreGAMMA_FLEX(int upper, double *sumtable, volatile double *ext_dlnLdlz, volatile double *ext_d2lnLdlz2, double *EIGN, double *gammaRates, double lz, int *wrptr, const int states) {
  double *sum, diagptable[1024], dlnLdlz = 0.0, d2lnLdlz2 = 0.0, ki, kisqr, tmp, inv_Li, dlnLidlz, d2lnLidlz2;
  int i, j, l;
  const int gammaStates = 4 * states;
  for (i = 0; i < 4; i++) {
    ki = gammaRates[i];
    kisqr = ki * ki;
    for (l = 1; l < states; l++) {
      diagptable[i * gammaStates + l * 4] = exp(EIGN[l] * ki * lz);
      diagptable[i * gammaStates + l * 4 + 1] = EIGN[l] * ki;
      diagptable[i * gammaStates + l * 4 + 2] = EIGN[l] * EIGN[l] * kisqr;
    }
  }
  for (i = 0; i < upper; i++) {
    sum = &sumtable[i * gammaStates];
    inv_Li = 0.0;
    dlnLidlz = 0.0;
    d2lnLidlz2 = 0.0;
    for (j = 0; j < 4; j++) {
      inv_Li += sum[j * states];
      for (l = 1; l < states; l++) {
        inv_Li += (tmp = diagptable[j * gammaStates + l * 4] * sum[j * states + l]);
        dlnLidlz += tmp * diagptable[j * gammaStates + l * 4 + 1];
        d2lnLidlz2 += tmp * diagptable[j * gammaStates + l * 4 + 2];
      }
    }
    inv_Li = 1.0 / inv_Li;
    dlnLidlz *= inv_Li;
    d2lnLidlz2 *= inv_Li;
    dlnLdlz += wrptr[i] * dlnLidlz;
    d2lnLdlz2 += wrptr[i] * (d2lnLidlz2 - dlnLidlz * dlnLidlz);
  }
  *ext_dlnLdlz = dlnLdlz;
  *ext_d2lnLdlz2 = d2lnLdlz2;
}
```