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

```asm
<stdlib_strided_sdsapxsumpw>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  movss  %xmm0,0x4(%rsp)
  pxor   %xmm0,%xmm0
  test   %edi,%edi
  jle    L143
  mov    %edi,%ebp
  mov    %edx,%ebx
  cmp    $0x1,%edi
  je     L164
  test   %edx,%edx
  je     L164
  mov    $0x0,%eax
  js     L148
L75:
  cmp    $0x7,%ebp
  jle    L157
  cmp    $0x80,%ebp
  jle    L95
  mov    %ebp,%eax
  shr    $0x1f,%eax
  add    %ebp,%eax
  mov    %eax,%r12d
  sar    %r12d
  sar    $0x1f,%eax
  shr    $0x1d,%eax
  lea    (%r12,%rax,1),%edx
  and    $0x7,%edx
  sub    %eax,%edx
  sub    %edx,%r12d
  test   %ebx,%ebx
  js     L84
  mov    %ebx,%eax
  imul   %r12d,%eax
  cltq
  lea    (%rsi,%rax,4),%r13
L86:
  mov    %ebx,%edx
  movss  0x4(%rsp),%xmm0
  mov    %r12d,%edi
  call   <stdlib_strided_sdsapxsumpw>
  movss  %xmm0,0x8(%rsp)
  mov    %ebp,%edi
  sub    %r12d,%edi
  mov    %ebx,%edx
  mov    %r13,%rsi
  movss  0x4(%rsp),%xmm0
  call   <stdlib_strided_sdsapxsumpw>
  addss  0x8(%rsp),%xmm0
  jmp    L143
L164:
  movss  0x4(%rsp),%xmm0
  addss  (%rsi),%xmm0
L143:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L148:
  mov    $0x1,%eax
  sub    %edi,%eax
  imul   %edx,%eax
  jmp    L75
L157:
  movslq %ebx,%rbx
  shl    $0x2,%rbx
  cltq
  lea    (%rsi,%rax,4),%rdx
  mov    $0x0,%eax
  pxor   %xmm1,%xmm1
L175:
  movss  0x4(%rsp),%xmm0
  addss  (%rdx),%xmm0
  cvtss2sd %xmm0,%xmm0
  addsd  %xmm0,%xmm1
  add    $0x1,%eax
  add    %rbx,%rdx
  cmp    %eax,%ebp
  jne    L175
  pxor   %xmm0,%xmm0
  cvtsd2ss %xmm1,%xmm0
  jmp    L143
L95:
  movslq %eax,%rdx
  movss  0x4(%rsp),%xmm5
  movaps %xmm5,%xmm0
  addss  (%rsi,%rdx,4),%xmm0
  cvtss2sd %xmm0,%xmm0
  lea    (%rax,%rbx,1),%edx
  movslq %edx,%rax
  movaps %xmm5,%xmm8
  addss  (%rsi,%rax,4),%xmm8
  cvtss2sd %xmm8,%xmm8
  lea    (%rbx,%rbx,1),%r10d
  add    %ebx,%edx
  movslq %edx,%rax
  movaps %xmm5,%xmm4
  addss  (%rsi,%rax,4),%xmm4
  cvtss2sd %xmm4,%xmm4
  lea    (%r10,%rbx,1),%r9d
  add    %ebx,%edx
  movslq %edx,%rax
  movaps %xmm5,%xmm7
  addss  (%rsi,%rax,4),%xmm7
  cvtss2sd %xmm7,%xmm7
  lea    0x0(,%rbx,4),%r8d
  add    %ebx,%edx
  movslq %edx,%rax
  movaps %xmm5,%xmm2
  addss  (%rsi,%rax,4),%xmm2
  cvtss2sd %xmm2,%xmm2
  lea    (%r8,%rbx,1),%r13d
  add    %ebx,%edx
  movslq %edx,%rax
  movaps %xmm5,%xmm6
  addss  (%rsi,%rax,4),%xmm6
  cvtss2sd %xmm6,%xmm6
  lea    (%r9,%r9,1),%r12d
  add    %ebx,%edx
  movslq %edx,%rax
  movaps %xmm5,%xmm3
  addss  (%rsi,%rax,4),%xmm3
  cvtss2sd %xmm3,%xmm3
  lea    0x0(,%rbx,8),%r15d
  mov    %r15d,%r11d
  sub    %ebx,%r11d
  add    %ebx,%edx
  movslq %edx,%rax
  addss  (%rsi,%rax,4),%xmm5
  cvtss2sd %xmm5,%xmm5
  add    %ebx,%edx
  mov    %ebp,%ecx
  sar    $0x1f,%ecx
  shr    $0x1d,%ecx
  lea    0x0(%rbp,%rcx,1),%eax
  and    $0x7,%eax
  sub    %ecx,%eax
  mov    %ebp,%edi
  sub    %eax,%edi
  cmp    $0x8,%edi
  jle    L176
  movslq %r15d,%rax
  shl    $0x2,%rax
  mov    %rax,0x8(%rsp)
  movslq %edx,%rax
  lea    (%rsi,%rax,4),%rax
  mov    $0x8,%ecx
  movslq %ebx,%r14
  movslq %r10d,%r10
  movslq %r9d,%r9
  movslq %r8d,%r8
  movslq %r13d,%r13
  movslq %r12d,%r12
  movslq %r11d,%r11
L52:
  movss  0x4(%rsp),%xmm9
  movaps %xmm9,%xmm1
  addss  (%rax),%xmm1
  cvtss2sd %xmm1,%xmm1
  addsd  %xmm1,%xmm0
  movaps %xmm9,%xmm1
  addss  (%rax,%r14,4),%xmm1
  cvtss2sd %xmm1,%xmm1
  addsd  %xmm1,%xmm8
  movaps %xmm9,%xmm1
  addss  (%rax,%r10,4),%xmm1
  cvtss2sd %xmm1,%xmm1
  addsd  %xmm1,%xmm4
  movaps %xmm9,%xmm1
  addss  (%rax,%r9,4),%xmm1
  cvtss2sd %xmm1,%xmm1
  addsd  %xmm1,%xmm7
  movaps %xmm9,%xmm1
  addss  (%rax,%r8,4),%xmm1
  cvtss2sd %xmm1,%xmm1
  addsd  %xmm1,%xmm2
  movaps %xmm9,%xmm1
  addss  (%rax,%r13,4),%xmm1
  cvtss2sd %xmm1,%xmm1
  addsd  %xmm1,%xmm6
  movaps %xmm9,%xmm1
  addss  (%rax,%r12,4),%xmm1
  cvtss2sd %xmm1,%xmm1
  addsd  %xmm1,%xmm3
  movaps %xmm9,%xmm1
  addss  (%rax,%r11,4),%xmm1
  cvtss2sd %xmm1,%xmm1
  addsd  %xmm1,%xmm5
  add    $0x8,%ecx
  add    0x8(%rsp),%rax
  cmp    %edi,%ecx
  jl     L52
  add    %r15d,%edx
  sub    $0x9,%edi
  shr    $0x3,%edi
  imul   %edi,%r15d
  add    %r15d,%edx
  lea    0x10(,%rdi,8),%eax
L85:
  addsd  %xmm8,%xmm0
  addsd  %xmm7,%xmm4
  addsd  %xmm4,%xmm0
  addsd  %xmm6,%xmm2
  addsd  %xmm5,%xmm3
  addsd  %xmm3,%xmm2
  addsd  %xmm2,%xmm0
  cmp    %eax,%ebp
  jle    L83
  movslq %ebx,%rbx
  shl    $0x2,%rbx
  movslq %edx,%rdx
  lea    (%rsi,%rdx,4),%rdx
L87:
  movss  0x4(%rsp),%xmm1
  addss  (%rdx),%xmm1
  cvtss2sd %xmm1,%xmm1
  addsd  %xmm1,%xmm0
  add    $0x1,%eax
  add    %rbx,%rdx
  cmp    %eax,%ebp
  jne    L87
L83:
  cvtsd2ss %xmm0,%xmm0
  jmp    L143
L176:
  mov    $0x8,%eax
  jmp    L85
L84:
  mov    %r12d,%eax
  sub    %ebp,%eax
  imul   %ebx,%eax
  cltq
  mov    %rsi,%r13
  lea    (%rsi,%rax,4),%rsi
  jmp    L86
```

assistant: ```c
float stdlib_strided_sdsapxsumpw(const int64_t N, const float alpha, const float *X, const int64_t stride) {
  float *xp1;
  float *xp2;
  double sum;
  int64_t ix;
  int64_t M;
  int64_t n;
  int64_t i;
  double s0;
  double s1;
  double s2;
  double s3;
  double s4;
  double s5;
  double s6;
  double s7;
  if (N <= 0) {
    return 0.0;
  }
  if (N == 1 || stride == 0) {
    return alpha + X[0];
  }
  if (stride < 0) {
    ix = (1 - N) * stride;
  } else {
    ix = 0;
  }
  if (N < 8) {
    sum = 0.0;
    for (i = 0; i < N; i++) {
      sum += alpha + X[ix];
      ix += stride;
    }
    return sum;
  }
  if (N <= 128) {
    s0 = alpha + X[ix];
    s1 = alpha + X[ix + stride];
    s2 = alpha + X[ix + (2 * stride)];
    s3 = alpha + X[ix + (3 * stride)];
    s4 = alpha + X[ix + (4 * stride)];
    s5 = alpha + X[ix + (5 * stride)];
    s6 = alpha + X[ix + (6 * stride)];
    s7 = alpha + X[ix + (7 * stride)];
    ix += 8 * stride;
    M = N % 8;
    for (i = 8; i < N - M; i += 8) {
      s0 += alpha + X[ix];
      s1 += alpha + X[ix + stride];
      s2 += alpha + X[ix + (2 * stride)];
      s3 += alpha + X[ix + (3 * stride)];
      s4 += alpha + X[ix + (4 * stride)];
      s5 += alpha + X[ix + (5 * stride)];
      s6 += alpha + X[ix + (6 * stride)];
      s7 += alpha + X[ix + (7 * stride)];
      ix += 8 * stride;
    }
    sum = ((s0 + s1) + (s2 + s3)) + ((s4 + s5) + (s6 + s7));
    for (; i < N; i++) {
      sum += alpha + X[ix];
      ix += stride;
    }
    return sum;
  }
  n = N / 2;
  n -= n % 8;
  if (stride < 0) {
    xp1 = (float *)X + ((n - N) * stride);
    xp2 = (float *)X;
  } else {
    xp1 = (float *)X;
    xp2 = (float *)X + (n * stride);
  }
  return stdlib_strided_sdsapxsumpw(n, alpha, xp1, stride) + stdlib_strided_sdsapxsumpw(N - n, alpha, xp2, stride);
}
```