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

```asm
<stdlib_strided_dsumkbn2>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,-0x68(%rbp)
  mov    %rsi,-0x70(%rbp)
  mov    %rdx,-0x78(%rbp)
  cmpq   $0x0,-0x68(%rbp)
  jg     L128
  pxor   %xmm0,%xmm0
  jmp    L99
L128:
  cmpq   $0x1,-0x68(%rbp)
  je     L93
  cmpq   $0x0,-0x78(%rbp)
  jne    L71
L93:
  mov    -0x70(%rbp),%rax
  movsd  (%rax),%xmm0
  jmp    L99
L71:
  cmpq   $0x0,-0x78(%rbp)
  jns    L26
  mov    $0x1,%eax
  sub    -0x68(%rbp),%rax
  mov    -0x78(%rbp),%rdx
  imul   %rdx,%rax
  mov    %rax,-0x48(%rbp)
  jmp    L72
L26:
  movq   $0x0,-0x48(%rbp)
L72:
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x50(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movq   $0x0,-0x40(%rbp)
  jmp    L29
L2:
  mov    -0x48(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  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     L47
  movsd  -0x58(%rbp),%xmm0
  subsd  -0x18(%rbp),%xmm0
  movsd  -0x20(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  jmp    L73
L47:
  movsd  -0x20(%rbp),%xmm0
  subsd  -0x18(%rbp),%xmm0
  movsd  -0x58(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
L73:
  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     L24
  movsd  -0x38(%rbp),%xmm0
  subsd  -0x18(%rbp),%xmm0
  movsd  -0x28(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  jmp    L126
L24:
  movsd  -0x28(%rbp),%xmm0
  subsd  -0x18(%rbp),%xmm0
  movsd  -0x38(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
L126:
  movsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  -0x50(%rbp),%xmm0
  addsd  -0x30(%rbp),%xmm0
  movsd  %xmm0,-0x50(%rbp)
  mov    -0x78(%rbp),%rax
  add    %rax,-0x48(%rbp)
  addq   $0x1,-0x40(%rbp)
L29:
  mov    -0x40(%rbp),%rax
  cmp    -0x68(%rbp),%rax
  jl     L2
  movsd  -0x58(%rbp),%xmm0
  addsd  -0x38(%rbp),%xmm0
  addsd  -0x50(%rbp),%xmm0
L99:
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

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