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

```asm
<blocksum>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,0x8(%rsp)
  mov    %rsi,%r12
  mov    %edx,%r14d
  mov    %ecx,%r13d
  mov    %r8d,%ebp
  mov    %r9,0x10(%rsp)
  mov    %edx,%ebx
  imul   %ecx,%ebx
  lea    0x0(,%rbx,8),%edx
  mov    $0x0,%esi
  mov    %r12,%rdi
  call   <memset@plt>
  movslq %ebx,%rax
  lea    (%r12,%rax,4),%r8
  test   %r13d,%r13d
  jle    L86
  movslq %r14d,%rax
  lea    0x0(,%rax,4),%r10
  mov    %r10,(%rsp)
  mov    %ebp,%r15d
  lea    -0x1(%rbp),%esi
  mov    0x8(%rsp),%rax
  lea    0x4(%rax,%rsi,4),%rcx
  mov    %r12,%rdx
  mov    $0x0,%r11d
  not    %rsi
  shl    $0x2,%rsi
  mov    %r10,%rdi
  jmp    L265
L211:
  mov    %eax,%r11d
L265:
  test   %ebp,%ebp
  jle    L81
  lea    (%rsi,%rcx,1),%rax
L100:
  movss  (%rdx),%xmm0
  addss  (%rax),%xmm0
  movss  %xmm0,(%rdx)
  add    $0x4,%rax
  cmp    %rcx,%rax
  jne    L100
L81:
  lea    0x1(%r11),%eax
  add    %rdi,%rdx
  add    %rdi,%rcx
  cmp    %eax,%r13d
  jne    L211
  lea    (%r14,%rbp,1),%esi
  mov    $0x0,%r9d
  mov    $0x0,%r10d
  movslq %ebp,%rdi
  mov    %r8,0x18(%rsp)
  mov    0x8(%rsp),%r8
  jmp    L253
L167:
  movss  (%rax),%xmm0
  subss  (%rcx),%xmm0
  movss  %xmm0,0x4(%rax)
L61:
  add    $0x1,%edx
  add    $0x4,%rax
  add    $0x4,%rcx
  cmp    %esi,%edx
  je     L200
L72:
  cmp    %edx,%ebx
  jle    L167
  movss  (%rax),%xmm0
  addss  (%rcx,%rdi,4),%xmm0
  subss  (%rcx),%xmm0
  movss  %xmm0,0x4(%rax)
  jmp    L61
L200:
  lea    0x1(%r10),%eax
  add    %r14d,%esi
  add    %r14d,%r15d
  add    (%rsp),%r9
  cmp    %r10d,%r11d
  je     L268
  mov    %eax,%r10d
L253:
  cmp    $0x1,%r14d
  jle    L200
  lea    0x1(%r15),%edx
  lea    (%r12,%r9,1),%rax
  lea    (%r8,%r9,1),%rcx
  jmp    L72
L268:
  mov    0x18(%rsp),%r8
L86:
  test   %r14d,%r14d
  jle    L166
  mov    %r12,%r9
  mov    %r8,%rcx
  movslq %r14d,%rdi
  shl    $0x2,%rdi
  mov    $0x0,%r15d
  jmp    L204
L50:
  movss  (%rcx),%xmm0
  addss  (%rdx),%xmm0
  movss  %xmm0,(%rcx)
  add    $0x1,%eax
  add    %rdi,%rdx
  cmp    %eax,%ebp
  jne    L50
L141:
  lea    0x1(%r15),%esi
  add    $0x4,%r9
  add    $0x4,%rcx
  cmp    %esi,%r14d
  je     L165
  mov    %esi,%r15d
L204:
  mov    %r9,%rdx
  mov    $0x0,%eax
  test   %ebp,%ebp
  jg     L50
  jmp    L141
L165:
  mov    %ebp,%r10d
  imul   %esi,%r10d
  sub    $0x1,%ebp
  imul   %esi,%ebp
  mov    $0x0,%r14d
  jmp    L207
L269:
  movslq %ecx,%rdi
  movslq %eax,%r9
  movss  (%r8,%rdi,4),%xmm0
  subss  (%r12,%rdi,4),%xmm0
  movss  %xmm0,(%r8,%r9,4)
L8:
  add    $0x1,%edx
  add    %esi,%ecx
  add    %esi,%eax
  cmp    %edx,%r13d
  je     L251
L132:
  lea    (%r10,%rax,1),%edi
  cmp    %edi,%ebx
  jle    L269
  movslq %ecx,%r9
  movslq %eax,%rdi
  lea    0x0(%rbp,%rax,1),%r11d
  movslq %r11d,%r11
  movss  (%r12,%r11,4),%xmm0
  addss  (%r8,%r9,4),%xmm0
  subss  (%r12,%r9,4),%xmm0
  movss  %xmm0,(%r8,%rdi,4)
  jmp    L8
L251:
  lea    0x1(%r14),%eax
  cmp    %r14d,%r15d
  je     L166
  mov    %eax,%r14d
L207:
  mov    %r14d,%ecx
  lea    (%r14,%rsi,1),%eax
  mov    $0x1,%edx
  cmp    $0x1,%r13d
  jg     L132
  jmp    L251
L166:
  test   %ebx,%ebx
  jle    L152
  mov    %ebx,%ebx
  mov    $0x0,%eax
  mov    0x10(%rsp),%rdx
L138:
  movss  (%r8,%rax,4),%xmm0
  movss  %xmm0,(%rdx,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rbx
  jne    L138
L152:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void blocksum(float *A, float *workspace, int w, int h, int c, float *B) {
  int i, j;
  int y;
  int size;
  float *Q;
  float *N;
  size = w * h;
  memset(workspace, 0, 2 * size * sizeof(float));
  Q = workspace;
  N = workspace + size;
  for (j = 0; j < h; j++) {
    y = j * w;
    for (i = 0; i < c; i++) {
      Q[y] += A[y + i];
    }
  }
  for (j = 0; j < h; j++) {
    y = j * w;
    for (i = 1; i < w; i++) {
      if (y + i + c < size)
        Q[y + i] = Q[y + i - 1] + A[y + i + c - 1] - A[y + i - 1];
      else
        Q[y + i] = Q[y + i - 1] - A[y + i - 1];
    }
  }
  for (i = 0; i < w; i++) {
    for (j = 0; j < c; j++) {
      N[i] += Q[j * w + i];
    }
  }
  for (i = 0; i < w; i++) {
    for (j = 1; j < h; j++) {
      if ((j + c) * w + i < size)
        N[j * w + i] = N[(j - 1) * w + i] + Q[(j + c - 1) * w + i] - Q[(j - 1) * w + i];
      else
        N[j * w + i] = N[(j - 1) * w + i] - Q[(j - 1) * w + i];
    }
  }
  for (i = 0; i < size; i++) {
    B[i] = (float)N[i];
  }
  return;
}
```