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

```asm
<stdlib_strided_sapxsumpw>:
  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    L135
  mov    %edi,%ebp
  mov    %edx,%ebx
  cmp    $0x1,%edi
  je     L46
  test   %edx,%edx
  je     L46
  mov    $0x0,%eax
  js     L70
L100:
  cmp    $0x7,%ebp
  jle    L179
  cmp    $0x80,%ebp
  jle    L163
  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     L55
  mov    %ebx,%eax
  imul   %r12d,%eax
  cltq
  lea    (%rsi,%rax,4),%r13
L116:
  mov    %ebx,%edx
  movss  0x4(%rsp),%xmm0
  mov    %r12d,%edi
  call   <stdlib_strided_sapxsumpw>
  movss  %xmm0,0x8(%rsp)
  mov    %ebp,%edi
  sub    %r12d,%edi
  mov    %ebx,%edx
  mov    %r13,%rsi
  movss  0x4(%rsp),%xmm0
  call   <stdlib_strided_sapxsumpw>
  addss  0x8(%rsp),%xmm0
  jmp    L135
L46:
  movss  0x4(%rsp),%xmm0
  addss  (%rsi),%xmm0
L135:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L70:
  mov    $0x1,%eax
  sub    %edi,%eax
  imul   %edx,%eax
  jmp    L100
L179:
  movslq %ebx,%rbx
  shl    $0x2,%rbx
  cltq
  lea    (%rsi,%rax,4),%rdx
  pxor   %xmm0,%xmm0
  mov    $0x0,%eax
L151:
  movss  0x4(%rsp),%xmm1
  addss  (%rdx),%xmm1
  addss  %xmm1,%xmm0
  add    $0x1,%eax
  add    %rbx,%rdx
  cmp    %eax,%ebp
  jne    L151
  jmp    L135
L163:
  movslq %eax,%rdx
  movss  0x4(%rsp),%xmm4
  movaps %xmm4,%xmm0
  addss  (%rsi,%rdx,4),%xmm0
  lea    (%rax,%rbx,1),%edx
  movslq %edx,%rax
  movaps %xmm4,%xmm7
  addss  (%rsi,%rax,4),%xmm7
  lea    (%rbx,%rbx,1),%r10d
  add    %ebx,%edx
  movslq %edx,%rax
  movaps %xmm4,%xmm3
  addss  (%rsi,%rax,4),%xmm3
  lea    (%r10,%rbx,1),%r9d
  add    %ebx,%edx
  movslq %edx,%rax
  movaps %xmm4,%xmm6
  addss  (%rsi,%rax,4),%xmm6
  lea    0x0(,%rbx,4),%r8d
  add    %ebx,%edx
  movslq %edx,%rax
  movaps %xmm4,%xmm1
  addss  (%rsi,%rax,4),%xmm1
  lea    (%r8,%rbx,1),%r13d
  add    %ebx,%edx
  movslq %edx,%rax
  movaps %xmm4,%xmm5
  addss  (%rsi,%rax,4),%xmm5
  lea    (%r9,%r9,1),%r12d
  add    %ebx,%edx
  movslq %edx,%rax
  movaps %xmm4,%xmm2
  addss  (%rsi,%rax,4),%xmm2
  lea    0x0(,%rbx,8),%r15d
  mov    %r15d,%r11d
  sub    %ebx,%r11d
  add    %ebx,%edx
  movslq %edx,%rax
  addss  (%rsi,%rax,4),%xmm4
  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    L123
  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
L79:
  movss  0x4(%rsp),%xmm9
  movaps %xmm9,%xmm8
  addss  (%rax),%xmm8
  addss  %xmm8,%xmm0
  movaps %xmm9,%xmm8
  addss  (%rax,%r14,4),%xmm8
  addss  %xmm8,%xmm7
  movaps %xmm9,%xmm8
  addss  (%rax,%r10,4),%xmm8
  addss  %xmm8,%xmm3
  movaps %xmm9,%xmm8
  addss  (%rax,%r9,4),%xmm8
  addss  %xmm8,%xmm6
  movaps %xmm9,%xmm8
  addss  (%rax,%r8,4),%xmm8
  addss  %xmm8,%xmm1
  movaps %xmm9,%xmm8
  addss  (%rax,%r13,4),%xmm8
  addss  %xmm8,%xmm5
  movaps %xmm9,%xmm8
  addss  (%rax,%r12,4),%xmm8
  addss  %xmm8,%xmm2
  addss  (%rax,%r11,4),%xmm9
  addss  %xmm9,%xmm4
  add    $0x8,%ecx
  add    0x8(%rsp),%rax
  cmp    %edi,%ecx
  jl     L79
  add    %r15d,%edx
  sub    $0x9,%edi
  shr    $0x3,%edi
  imul   %edi,%r15d
  add    %r15d,%edx
  lea    0x10(,%rdi,8),%eax
L153:
  addss  %xmm7,%xmm0
  addss  %xmm6,%xmm3
  addss  %xmm3,%xmm0
  addss  %xmm5,%xmm1
  addss  %xmm4,%xmm2
  addss  %xmm2,%xmm1
  addss  %xmm1,%xmm0
  cmp    %eax,%ebp
  jle    L135
  movslq %ebx,%rbx
  shl    $0x2,%rbx
  movslq %edx,%rdx
  lea    (%rsi,%rdx,4),%rdx
L145:
  movss  0x4(%rsp),%xmm1
  addss  (%rdx),%xmm1
  addss  %xmm1,%xmm0
  add    $0x1,%eax
  add    %rbx,%rdx
  cmp    %eax,%ebp
  jne    L145
  jmp    L135
L123:
  mov    $0x8,%eax
  jmp    L153
L55:
  mov    %r12d,%eax
  sub    %ebp,%eax
  imul   %ebx,%eax
  cltq
  mov    %rsi,%r13
  lea    (%rsi,%rax,4),%rsi
  jmp    L116
```

assistant: ```c
float stdlib_strided_sapxsumpw(const int64_t N, const float alpha, const float *X, const int64_t stride) {
  float *xp1;
  float *xp2;
  int64_t ix;
  int64_t M;
  int64_t n;
  int64_t i;
  float sum;
  float s0;
  float s1;
  float s2;
  float s3;
  float s4;
  float s5;
  float s6;
  float s7;
  if (N <= 0) {
    return 0.0f;
  }
  if (N == 1 || stride == 0) {
    return alpha + X[0];
  }
  if (stride < 0) {
    ix = (1 - N) * stride;
  } else {
    ix = 0;
  }
  if (N < 8) {
    sum = 0.0f;
    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_sapxsumpw(n, alpha, xp1, stride) + stdlib_strided_sapxsumpw(N - n, alpha, xp2, stride);
}
```