user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<coreGTRCATPROT>:
  endbr64
  push   %r15
  push   %r14
  lea    (%rsi,%rsi,4),%r14d
  push   %r13
  mov    %rdx,%r13
  push   %r12
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  mov    %rdi,%rbx
  mov    %r14d,%edi
  shl    $0x5,%edi
  sub    $0x238,%rsp
  mov    0x270(%rsp),%rax
  mov    %rcx,0x18(%rsp)
  mov    %r8d,0x10(%rsp)
  mov    %rax,0x178(%rsp)
  mov    0x278(%rsp),%rax
  mov    %r9,0x170(%rsp)
  mov    %rax,0x20(%rsp)
  mov    0x280(%rsp),%rax
  movsd  %xmm0,0x8(%rsp)
  mov    %rax,0x28(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x228(%rsp)
  xor    %eax,%eax
  call   <rax_malloc@plt>
  movupd (%rbx),%xmm6
  movsd  0x8(%rsp),%xmm0
  mov    %rax,%r12
  movapd %xmm0,%xmm1
  movapd %xmm6,%xmm7
  movaps %xmm6,0x60(%rsp)
  mulpd  %xmm6,%xmm6
  unpcklpd %xmm1,%xmm1
  mulpd  %xmm1,%xmm7
  movaps %xmm6,0x70(%rsp)
  movupd 0x10(%rbx),%xmm6
  movups %xmm7,0x188(%rsp)
  movaps %xmm6,0x80(%rsp)
  movapd %xmm6,%xmm7
  mulpd  %xmm6,%xmm6
  movapd %xmm7,%xmm2
  mulpd  %xmm1,%xmm2
  movaps %xmm6,0x90(%rsp)
  movupd 0x20(%rbx),%xmm6
  movups %xmm2,0x198(%rsp)
  movaps %xmm6,0xa0(%rsp)
  movapd %xmm6,%xmm2
  mulpd  %xmm6,%xmm6
  mulpd  %xmm1,%xmm2
  movaps %xmm6,0xb0(%rsp)
  movupd 0x30(%rbx),%xmm6
  movups %xmm2,0x1a8(%rsp)
  movapd %xmm6,%xmm7
  movaps %xmm6,0xc0(%rsp)
  mulpd  %xmm6,%xmm6
  mulpd  %xmm1,%xmm7
  movaps %xmm6,0xd0(%rsp)
  movupd 0x40(%rbx),%xmm6
  movups %xmm7,0x1b8(%rsp)
  movapd %xmm6,%xmm2
  movaps %xmm6,0xe0(%rsp)
  mulpd  %xmm6,%xmm6
  mulpd  %xmm1,%xmm2
  movaps %xmm6,0xf0(%rsp)
  movupd 0x50(%rbx),%xmm6
  movups %xmm2,0x1c8(%rsp)
  movapd %xmm6,%xmm7
  movaps %xmm6,0x100(%rsp)
  mulpd  %xmm6,%xmm6
  mulpd  %xmm1,%xmm7
  movaps %xmm6,0x110(%rsp)
  movupd 0x60(%rbx),%xmm6
  movups %xmm7,0x1d8(%rsp)
  movapd %xmm6,%xmm2
  movaps %xmm6,0x120(%rsp)
  mulpd  %xmm6,%xmm6
  mulpd  %xmm1,%xmm2
  movaps %xmm6,0x130(%rsp)
  movupd 0x70(%rbx),%xmm6
  movups %xmm2,0x1e8(%rsp)
  movapd %xmm6,%xmm7
  movaps %xmm6,0x140(%rsp)
  mulpd  %xmm1,%xmm7
  mulpd  %xmm6,%xmm6
  movaps %xmm6,0x150(%rsp)
  movups %xmm7,0x1f8(%rsp)
  movupd 0x80(%rbx),%xmm6
  movapd %xmm6,%xmm2
  movaps %xmm6,0x40(%rsp)
  mulpd  %xmm6,%xmm6
  mulpd  %xmm2,%xmm1
  movaps %xmm6,0x30(%rsp)
  movsd  0x90(%rbx),%xmm6
  movups %xmm1,0x208(%rsp)
  movsd  %xmm6,0x160(%rsp)
  movapd %xmm6,%xmm7
  mulsd  %xmm7,%xmm0
  mulsd  %xmm6,%xmm6
  movsd  %xmm0,0x218(%rsp)
  movsd  %xmm6,0x58(%rsp)
  test   %ebp,%ebp
  jle    L9
  lea    0x180(%rsp),%rax
  mov    %r12,%rbx
  mov    %r12,0x50(%rsp)
  mov    %r13,%rbp
  sub    %rax,%rbx
  mov    %r13,0x168(%rsp)
  lea    0x0(,%r14,4),%eax
  lea    0x188(%rsp),%r15
  mov    %eax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x220(%rsp),%r14
  mov    %eax,%r12d
L25:
  mov    %r15,%r13
  nopl   0x0(%rax,%rax,1)
L23:
  movsd  0x0(%r13),%xmm0
  mulsd  0x0(%rbp),%xmm0
  call   <exp@plt>
  movsd  %xmm0,(%rbx,%r13,1)
  add    $0x8,%r13
  cmp    %r13,%r14
  jne    L23
  add    $0x8,%rbp
  add    $0x14,%r12d
  add    $0xa0,%rbx
  cmp    0x8(%rsp),%r12d
  jne    L25
  mov    0x50(%rsp),%r12
  mov    0x168(%rsp),%r13
L9:
  mov    0x10(%rsp),%eax
  test   %eax,%eax
  jle    L64
  mov    0x18(%rsp),%r14
  sub    $0x1,%eax
  mov    0x28(%rsp),%rbp
  lea    0x8(%r12),%rbx
  movq   $0x0,0x10(%rsp)
  mov    0x20(%rsp),%r15
  movq   $0x0,0x8(%rsp)
  lea    0x4(%r14,%rax,4),%rax
  mov    %rax,0x168(%rsp)
  mov    %rbx,%rax
  mov    %r13,%rbx
  mov    %rbp,%r13
  mov    %rax,%rbp
  nopl   0x0(%rax,%rax,1)
L27:
  pxor   %xmm1,%xmm1
  movslq (%r14),%rax
  add    $0x4,%r13
  add    $0x4,%r14
  cvtsi2sdl -0x4(%r13),%xmm1
  movupd 0x8(%r15),%xmm6
  movapd 0x80(%rsp),%xmm5
  add    $0xa0,%r15
  movsd  (%rbx,%rax,8),%xmm0
  mov    %rax,%rcx
  lea    (%rax,%rax,4),%rax
  shl    $0x5,%rax
  add    %rbp,%rax
  movapd %xmm1,%xmm2
  movupd (%rax),%xmm7
  mulsd  %xmm0,%xmm2
  mulsd  %xmm0,%xmm0
  mulpd  %xmm6,%xmm7
  pxor   %xmm6,%xmm6
  movsd  %xmm2,0x50(%rsp)
  movupd 0x10(%rax),%xmm2
  mulsd  %xmm1,%xmm0
  movsd  -0xa0(%r15),%xmm1
  addsd  %xmm7,%xmm1
  movsd  %xmm0,0x18(%rsp)
  movapd %xmm7,%xmm0
  unpckhpd %xmm7,%xmm7
  movapd %xmm7,%xmm4
  movupd -0x88(%r15),%xmm7
  addsd  %xmm1,%xmm4
  movapd 0x60(%rsp),%xmm1
  mulpd  %xmm2,%xmm7
  mulpd  %xmm0,%xmm1
  mulpd  0x70(%rsp),%xmm0
  addsd  %xmm7,%xmm4
  movapd %xmm1,%xmm3
  unpckhpd %xmm1,%xmm1
  addsd  %xmm6,%xmm3
  addsd  %xmm1,%xmm3
  movapd %xmm0,%xmm1
  unpckhpd %xmm0,%xmm0
  addsd  %xmm6,%xmm1
  movupd -0x78(%r15),%xmm6
  addsd  %xmm0,%xmm1
  movapd %xmm7,%xmm0
  unpckhpd %xmm7,%xmm7
  mulpd  %xmm0,%xmm5
  addsd  %xmm7,%xmm4
  movupd 0x20(%rax),%xmm7
  mulpd  0x90(%rsp),%xmm0
  mulpd  %xmm7,%xmm6
  movupd 0x30(%rax),%xmm7
  addsd  %xmm5,%xmm3
  unpckhpd %xmm5,%xmm5
  addsd  %xmm0,%xmm1
  unpckhpd %xmm0,%xmm0
  movapd %xmm6,%xmm2
  addsd  %xmm5,%xmm3
  movapd %xmm6,%xmm5
  unpckhpd %xmm2,%xmm2
  addsd  %xmm4,%xmm5
  movapd %xmm2,%xmm4
  addsd  %xmm0,%xmm1
  movupd -0x68(%r15),%xmm2
  movapd %xmm6,%xmm0
  mulpd  0xb0(%rsp),%xmm0
  addsd  %xmm5,%xmm4
  mulpd  %xmm2,%xmm7
  movapd 0xa0(%rsp),%xmm5
  mulpd  %xmm6,%xmm5
  movupd 0x40(%rax),%xmm6
  addsd  %xmm0,%xmm1
  unpckhpd %xmm0,%xmm0
  addsd  %xmm7,%xmm4
  addsd  %xmm5,%xmm3
  addsd  %xmm0,%xmm1
  unpckhpd %xmm5,%xmm5
  movapd %xmm7,%xmm0
  unpckhpd %xmm7,%xmm7
  addsd  %xmm3,%xmm5
  movapd %xmm7,%xmm3
  movupd -0x58(%r15),%xmm7
  addsd  %xmm4,%xmm3
  movapd 0xc0(%rsp),%xmm4
  mulpd  %xmm7,%xmm6
  mulpd  %xmm0,%xmm4
  mulpd  0xd0(%rsp),%xmm0
  addsd  %xmm6,%xmm3
  movapd %xmm6,%xmm2
  addsd  %xmm4,%xmm5
  unpckhpd %xmm2,%xmm2
  unpckhpd %xmm4,%xmm4
  addsd  %xmm0,%xmm1
  unpckhpd %xmm0,%xmm0
  addsd  %xmm5,%xmm4
  movapd %xmm2,%xmm5
  movupd 0x50(%rax),%xmm2
  addsd  %xmm3,%xmm5
  addsd  %xmm0,%xmm1
  movapd %xmm6,%xmm0
  movapd 0xe0(%rsp),%xmm3
  mulpd  0xf0(%rsp),%xmm0
  mulpd  %xmm6,%xmm3
  movupd -0x48(%r15),%xmm6
  mulpd  %xmm6,%xmm2
  addsd  %xmm0,%xmm1
  unpckhpd %xmm0,%xmm0
  addsd  %xmm3,%xmm4
  unpckhpd %xmm3,%xmm3
  addsd  %xmm2,%xmm5
  movapd %xmm2,%xmm7
  addsd  %xmm0,%xmm1
  unpckhpd %xmm7,%xmm7
  addsd  %xmm4,%xmm3
  movapd %xmm2,%xmm0
  mulpd  0x110(%rsp),%xmm0
  movapd %xmm7,%xmm4
  movupd 0x60(%rax),%xmm7
  addsd  %xmm5,%xmm4
  movapd 0x100(%rsp),%xmm5
  mulpd  %xmm2,%xmm5
  movupd -0x38(%r15),%xmm2
  mulpd  %xmm2,%xmm7
  addsd  %xmm0,%xmm1
  unpckhpd %xmm0,%xmm0
  addsd  %xmm5,%xmm3
  unpckhpd %xmm5,%xmm5
  addsd  %xmm0,%xmm1
  addsd  %xmm7,%xmm4
  movapd %xmm7,%xmm2
  movapd %xmm7,%xmm0
  unpckhpd %xmm2,%xmm2
  addsd  %xmm3,%xmm5
  movapd %xmm2,%xmm3
  addsd  %xmm4,%xmm3
  movapd 0x120(%rsp),%xmm4
  mulpd  0x130(%rsp),%xmm0
  mulpd  %xmm7,%xmm4
  movupd -0x28(%r15),%xmm7
  addsd  %xmm0,%xmm1
  unpckhpd %xmm0,%xmm0
  addsd  %xmm4,%xmm5
  unpckhpd %xmm4,%xmm4
  addsd  %xmm1,%xmm0
  movupd 0x70(%rax),%xmm1
  mulpd  %xmm7,%xmm1
  addsd  %xmm5,%xmm4
  addsd  %xmm1,%xmm3
  movapd %xmm1,%xmm6
  unpckhpd %xmm6,%xmm6
  movapd %xmm6,%xmm5
  addsd  %xmm3,%xmm5
  movapd 0x140(%rsp),%xmm3
  mulpd  %xmm1,%xmm3
  mulpd  0x150(%rsp),%xmm1
  addsd  %xmm3,%xmm4
  unpckhpd %xmm3,%xmm3
  addsd  %xmm1,%xmm0
  unpckhpd %xmm1,%xmm1
  movapd %xmm3,%xmm7
  movapd %xmm1,%xmm3
  movupd -0x18(%r15),%xmm1
  addsd  %xmm4,%xmm7
  movapd 0x40(%rsp),%xmm4
  addsd  %xmm0,%xmm3
  movupd 0x80(%rax),%xmm0
  lea    (%rcx,%rcx,4),%eax
  shl    $0x2,%eax
  mulpd  %xmm0,%xmm1
  cltq
  mulpd  %xmm1,%xmm4
  movapd %xmm1,%xmm6
  movapd %xmm1,%xmm2
  mulpd  0x30(%rsp),%xmm1
  addsd  %xmm5,%xmm6
  unpckhpd %xmm2,%xmm2
  movapd %xmm2,%xmm0
  addsd  %xmm6,%xmm0
  movapd %xmm4,%xmm5
  unpckhpd %xmm4,%xmm4
  addsd  %xmm7,%xmm5
  addsd  %xmm1,%xmm3
  unpckhpd %xmm1,%xmm1
  addsd  %xmm5,%xmm4
  addsd  %xmm3,%xmm1
  movsd  0x98(%r12,%rax,8),%xmm5
  mulsd  -0x8(%r15),%xmm5
  movsd  0x160(%rsp),%xmm3
  mulsd  %xmm5,%xmm3
  addsd  %xmm5,%xmm0
  addsd  %xmm4,%xmm3
  movsd  0x58(%rsp),%xmm4
  mulsd  %xmm5,%xmm4
  movsd  %xmm3,0x28(%rsp)
  addsd  %xmm1,%xmm4
  movsd  %xmm4,0x20(%rsp)
  call   <FABS@plt>
  movsd  D0(%rip),%xmm1
  movsd  0x28(%rsp),%xmm3
  movsd  0x50(%rsp),%xmm2
  divsd  %xmm0,%xmm1
  mulsd  %xmm1,%xmm3
  mulsd  0x20(%rsp),%xmm1
  mulsd  %xmm3,%xmm2
  movapd %xmm3,%xmm0
  mulsd  %xmm3,%xmm0
  addsd  0x8(%rsp),%xmm2
  movsd  %xmm2,0x8(%rsp)
  subsd  %xmm0,%xmm1
  mulsd  0x18(%rsp),%xmm1
  addsd  0x10(%rsp),%xmm1
  movsd  %xmm1,0x10(%rsp)
  cmp    0x168(%rsp),%r14
  jne    L27
  movapd %xmm2,%xmm6
L8:
  mov    0x170(%rsp),%rax
  movsd  %xmm6,(%rax)
  mov    0x178(%rsp),%rax
  movsd  0x10(%rsp),%xmm6
  movsd  %xmm6,(%rax)
  mov    0x228(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L50
  add    $0x238,%rsp
  mov    %r12,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10b0 <rax_free@plt>
L64:
  pxor   %xmm6,%xmm6
  movsd  %xmm6,0x10(%rsp)
  movsd  %xmm6,0x8(%rsp)
  jmp    L8
L50:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D0
datatype: f64

tool: D0: 1

assistant: ```c
void coreGTRCATPROT(double *EIGN, double lz, int numberOfCategories, double *rptr, int *cptr, int upper, volatile double *ext_dlnLdlz, volatile double *ext_d2lnLdlz2, double *sumtable, int *wgt) {
  int i, l;
  double *d1, *d_start, *sum;
  double e[20], s[20], dd[20];
  double tmp;
  double inv_Li, dlnLidlz, d2lnLidlz2;
  double dlnLdlz = 0.0;
  double d2lnLdlz2 = 0.0;
  d1 = d_start = (double *)rax_malloc(numberOfCategories * 20 * sizeof(double));
  for (l = 1; l < 20; l++) {
    e[l] = EIGN[l - 1] * EIGN[l - 1];
    s[l] = EIGN[l - 1];
    dd[l] = s[l] * lz;
  }
  for (i = 0; i < numberOfCategories; i++) {
    for (l = 1; l < 20; l++)
      d1[20 * i + l] = exp(dd[l] * rptr[i]);
  }
  for (i = 0; i < upper; i++) {
    double r = rptr[cptr[i]], wr1 = r * wgt[i], wr2 = r * r * wgt[i];
    d1 = &d_start[20 * cptr[i]];
    sum = &sumtable[20 * i];
    inv_Li = sum[0];
    dlnLidlz = 0.0;
    d2lnLidlz2 = 0.0;
    for (l = 1; l < 20; l++) {
      inv_Li += (tmp = d1[l] * sum[l]);
      dlnLidlz += tmp * s[l];
      d2lnLidlz2 += tmp * e[l];
    }
    inv_Li = 1.0 / FABS(inv_Li);
    dlnLidlz *= inv_Li;
    d2lnLidlz2 *= inv_Li;
    dlnLdlz += wr1 * dlnLidlz;
    d2lnLdlz2 += wr2 * (d2lnLidlz2 - dlnLidlz * dlnLidlz);
  }
  *ext_dlnLdlz = dlnLdlz;
  *ext_d2lnLdlz2 = d2lnLdlz2;
  rax_free(d_start);
}
```