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

```asm
<stdlib_strided_dnannsumkbn2>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,-0x68(%rbp)
  mov    %rsi,-0x70(%rbp)
  mov    %rdx,-0x78(%rbp)
  mov    %rcx,-0x80(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  mov    -0x80(%rbp),%rax
  movq   $0x0,(%rax)
  cmpq   $0x0,-0x68(%rbp)
  jg     L23
  movsd  -0x58(%rbp),%xmm0
  jmp    L157
L23:
  cmpq   $0x1,-0x68(%rbp)
  je     L7
  cmpq   $0x0,-0x78(%rbp)
  jne    L49
L7:
  mov    -0x70(%rbp),%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  call   <stdlib_base_is_nan@plt>
  test   %rax,%rax
  je     L40
  movsd  -0x58(%rbp),%xmm0
  jmp    L157
L40:
  mov    -0x80(%rbp),%rax
  mov    (%rax),%rax
  lea    0x1(%rax),%rdx
  mov    -0x80(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x70(%rbp),%rax
  movsd  (%rax),%xmm0
  jmp    L157
L49:
  cmpq   $0x0,-0x78(%rbp)
  jns    L111
  mov    $0x1,%eax
  sub    -0x68(%rbp),%rax
  mov    -0x78(%rbp),%rdx
  imul   %rdx,%rax
  mov    %rax,-0x48(%rbp)
  jmp    L159
L111:
  movq   $0x0,-0x48(%rbp)
L159:
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x50(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movq   $0x0,-0x40(%rbp)
  jmp    L68
L2:
  mov    -0x48(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <stdlib_base_is_nan@plt>
  test   %rax,%rax
  jne    L33
  movsd  -0x58(%rbp),%xmm0
  addsd  -0x20(%rbp),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  mov    -0x58(%rbp),%rax
  movq   %rax,%xmm0
  call   <fabs@plt>
  mov    %rax,%rbx
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <fabs@plt>
  cmp    %rax,%rbx
  jl     L154
  movsd  -0x58(%rbp),%xmm0
  subsd  -0x18(%rbp),%xmm0
  movsd  -0x20(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  jmp    L38
L154:
  movsd  -0x20(%rbp),%xmm0
  subsd  -0x18(%rbp),%xmm0
  movsd  -0x58(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
L38:
  movsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,-0x58(%rbp)
  movsd  -0x38(%rbp),%xmm0
  addsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  mov    -0x38(%rbp),%rax
  movq   %rax,%xmm0
  call   <fabs@plt>
  mov    %rax,%rbx
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <fabs@plt>
  cmp    %rax,%rbx
  jl     L72
  movsd  -0x38(%rbp),%xmm0
  subsd  -0x18(%rbp),%xmm0
  movsd  -0x28(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  jmp    L123
L72:
  movsd  -0x28(%rbp),%xmm0
  subsd  -0x18(%rbp),%xmm0
  movsd  -0x38(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
L123:
  movsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  -0x50(%rbp),%xmm0
  addsd  -0x30(%rbp),%xmm0
  movsd  %xmm0,-0x50(%rbp)
  mov    -0x80(%rbp),%rax
  mov    (%rax),%rax
  lea    0x1(%rax),%rdx
  mov    -0x80(%rbp),%rax
  mov    %rdx,(%rax)
L33:
  mov    -0x78(%rbp),%rax
  add    %rax,-0x48(%rbp)
  addq   $0x1,-0x40(%rbp)
L68:
  mov    -0x40(%rbp),%rax
  cmp    -0x68(%rbp),%rax
  jl     L2
  movsd  -0x58(%rbp),%xmm0
  addsd  -0x38(%rbp),%xmm0
  addsd  -0x50(%rbp),%xmm0
L157:
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
double stdlib_strided_dnannsumkbn2(const int64_t N, const double *X, const int64_t stride, int64_t *n) {
  double sum;
  double ccs;
  int64_t ix;
  int64_t i;
  double cs;
  double cc;
  double v;
  double t;
  double c;
  sum = 0.0;
  *n = 0;
  if (N <= 0) {
    return sum;
  }
  if (N == 1 || stride == 0) {
    if (stdlib_base_is_nan(X[0])) {
      return sum;
    }
    *n += 1;
    return X[0];
  }
  if (stride < 0) {
    ix = (1 - N) * stride;
  } else {
    ix = 0;
  }
  ccs = 0.0;
  cs = 0.0;
  for (i = 0; i < N; i++) {
    v = X[ix];
    if (!stdlib_base_is_nan(v)) {
      t = sum + v;
      if (fabs(sum) >= fabs(v)) {
        c = (sum - t) + v;
      } else {
        c = (v - t) + sum;
      }
      sum = t;
      t = cs + c;
      if (fabs(cs) >= fabs(c)) {
        cc = (cs - t) + c;
      } else {
        cc = (c - t) + cs;
      }
      cs = t;
      ccs += cc;
      *n += 1;
    }
    ix += stride;
  }
  return sum + cs + ccs;
}
```