user: 请将以下的汇编代码转换成C语言代码：

```asm
<compute_evt_plane_avg>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %rdi,0x60(%rsp)
  mov    %rsi,0x68(%rsp)
  mov    %rcx,0x40(%rsp)
  mov    %r8,0x48(%rsp)
  mov    %r9,%r13
  mov    %rdx,0x58(%rsp)
  movq   $0x0,0x50(%rsp)
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x28(%rsp)
  movsd  %xmm7,0x20(%rsp)
  movsd  %xmm7,0x18(%rsp)
  movsd  %xmm7,0x10(%rsp)
  mov    $0x0,%ebp
  lea    0x78(%rsp),%rax
  mov    %rax,0x30(%rsp)
  jmp    L63
L29:
  add    $0x1,%r12d
  add    $0xc8,%rbx
  cmp    %r12d,(%r15)
  jle    L59
L17:
  movsd  0x0(%r13,%rbx,1),%xmm0
  call   <abs@plt>
  movsd  D18(%rip),%xmm4
  comisd %xmm0,%xmm4
  jb     L29
  add    $0x1,%ebp
  mov    0x40(%rsp),%rax
  movsd  (%rax,%rbx,1),%xmm2
  movsd  %xmm2,0x8(%rsp)
  mov    0x48(%rsp),%rax
  movsd  (%rax,%rbx,1),%xmm0
  movsd  %xmm0,0x38(%rsp)
  addsd  %xmm0,%xmm0
  mov    %r14,%rsi
  mov    0x30(%rsp),%rdi
  call   <sincos@plt>
  movsd  0x8(%rsp),%xmm2
  movapd %xmm2,%xmm0
  mulsd  0x78(%rsp),%xmm0
  addsd  0x10(%rsp),%xmm0
  movsd  %xmm0,0x10(%rsp)
  movapd %xmm2,%xmm0
  mulsd  0x70(%rsp),%xmm0
  movapd %xmm0,%xmm5
  addsd  0x18(%rsp),%xmm5
  movsd  %xmm5,0x18(%rsp)
  movsd  0x38(%rsp),%xmm3
  mulsd  D17(%rip),%xmm3
  movapd %xmm3,%xmm0
  mov    %r14,%rsi
  mov    0x30(%rsp),%rdi
  call   <sincos@plt>
  movsd  0x8(%rsp),%xmm2
  movapd %xmm2,%xmm0
  mulsd  0x78(%rsp),%xmm0
  addsd  0x20(%rsp),%xmm0
  movsd  %xmm0,0x20(%rsp)
  mulsd  0x70(%rsp),%xmm2
  movapd %xmm2,%xmm0
  addsd  0x28(%rsp),%xmm0
  movsd  %xmm0,0x28(%rsp)
  jmp    L29
L59:
  addq   $0x4,0x58(%rsp)
  addq   $0x8,0x50(%rsp)
  mov    0x50(%rsp),%rax
  cmp    $0xc8,%rax
  je     L21
L63:
  mov    0x58(%rsp),%rax
  mov    %rax,%r15
  mov    0x50(%rsp),%rbx
  mov    $0x0,%r12d
  lea    0x70(%rsp),%r14
  cmpl   $0x0,(%rax)
  jg     L17
  jmp    L59
L21:
  pxor   %xmm1,%xmm1
  cvtsi2sd %ebp,%xmm1
  movsd  0x18(%rsp),%xmm0
  divsd  %xmm1,%xmm0
  mov    0x60(%rsp),%rax
  movsd  %xmm0,(%rax)
  movsd  0x10(%rsp),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0x28(%rsp),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,0x10(%rax)
  movsd  0x20(%rsp),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,0x18(%rax)
  mov    0x68(%rsp),%rax
  mov    %ebp,(%rax)
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D18
data_type: f64
name: disassemble_data
arguments: data_tag: D17
data_type: f64

tool: D18: 2

tool: D17: 3

assistant: ```c
void compute_evt_plane_avg(double *evtPlaneMeans, int *nEvtPlane, int *ptCount, double ptArray[][25], double phiArray[][25], double rapArray[][25], int chArray[][25]) {
  int i, j;
  int nloop = 0;
  double meanSinV2 = 0.0;
  double meanCosV2 = 0.0;
  double meanSinV3 = 0.0;
  double meanCosV3 = 0.0;
  double rapCutEvtPlane = 2.0;
  for (i = 0; i < 25; i++) {
    for (j = 0; j < ptCount[i]; j++) {
      if (abs(rapArray[j][i]) <= rapCutEvtPlane) {
        nloop++;
        meanSinV2 += ptArray[j][i] * sin(2.0 * phiArray[j][i]);
        meanCosV2 += ptArray[j][i] * cos(2.0 * phiArray[j][i]);
        meanSinV3 += ptArray[j][i] * sin(3.0 * phiArray[j][i]);
        meanCosV3 += ptArray[j][i] * cos(3.0 * phiArray[j][i]);
      }
    }
  }
  meanCosV2 = meanCosV2 / (double)nloop;
  meanCosV3 = meanCosV3 / (double)nloop;
  meanSinV2 = meanSinV2 / (double)nloop;
  meanSinV3 = meanSinV3 / (double)nloop;
  evtPlaneMeans[0] = meanCosV2;
  evtPlaneMeans[1] = meanSinV2;
  evtPlaneMeans[2] = meanCosV3;
  evtPlaneMeans[3] = meanSinV3;
  *nEvtPlane = nloop;
}
```