user: 请从给定的汇编指令推导出C源代码：

```asm
<blocksum>:
  endbr64
  push   %r15
  push   %r14
  mov    %ecx,%r14d
  push   %r13
  mov    %rsi,%r13
  xor    %esi,%esi
  push   %r12
  mov    %r8d,%r12d
  push   %rbp
  mov    %edx,%ebp
  push   %rbx
  imul   %ecx,%ebp
  mov    %edx,%ebx
  sub    $0x38,%rsp
  lea    0x0(,%rbp,8),%edx
  mov    %rdi,0x8(%rsp)
  mov    %r13,%rdi
  mov    %r9,0x10(%rsp)
  call   <memset@plt>
  movslq %ebp,%rax
  mov    %rax,0x18(%rsp)
  lea    0x0(%r13,%rax,4),%rdi
  test   %r14d,%r14d
  jle    L2
  mov    0x8(%rsp),%rsi
  lea    -0x1(%r12),%eax
  movslq %ebx,%r10
  mov    %r13,%rdx
  shl    $0x2,%rax
  mov    %r12d,0x24(%rsp)
  shl    $0x2,%r10
  xor    %r15d,%r15d
  lea    0x4(%rsi,%rax,1),%rcx
  mov    $0xfffffffffffffffc,%rsi
  sub    %rax,%rsi
  xchg   %ax,%ax
L105:
  test   %r12d,%r12d
  jle    L79
  movss  (%rdx),%xmm0
  lea    (%rsi,%rcx,1),%rax
  nopl   (%rax)
L74:
  addss  (%rax),%xmm0
  add    $0x4,%rax
  movss  %xmm0,(%rdx)
  cmp    %rcx,%rax
  jne    L74
L79:
  lea    0x1(%r15),%eax
  add    %r10,%rdx
  add    %r10,%rcx
  cmp    %eax,%r14d
  je     L7
  mov    %eax,%r15d
  jmp    L105
  nopl   0x0(%rax)
L146:
  mov    0x28(%rsp),%rdi
  mov    0x24(%rsp),%r14d
L2:
  test   %ebx,%ebx
  jle    L205
  movslq %ebx,%r11
  mov    %r13,%r9
  mov    %rdi,%rcx
  xor    %r8d,%r8d
  lea    0x0(,%r11,4),%rsi
  cs nopw 0x0(%rax,%rax,1)
L149:
  test   %r12d,%r12d
  jle    L218
  movss  (%rcx),%xmm0
  mov    %r9,%rdx
  xor    %eax,%eax
  xchg   %ax,%ax
L66:
  addss  (%rdx),%xmm0
  add    $0x1,%eax
  add    %rsi,%rdx
  movss  %xmm0,(%rcx)
  cmp    %eax,%r12d
  jne    L66
L218:
  add    $0x1,%r8d
  add    $0x4,%r9
  add    $0x4,%rcx
  cmp    %r8d,%ebx
  jne    L149
  add    $0x1,%r12d
  lea    (%rdi,%rsi,1),%r9
  xor    %r10d,%r10d
  imul   %ebx,%r12d
  nopl   0x0(%rax,%rax,1)
L121:
  lea    0x0(,%r10,4),%rax
  mov    %r12d,%edx
  mov    $0x1,%ecx
  cmp    $0x1,%r14d
  jg     L75
  jmp    L213
L142:
  mov    %edx,%r8d
  sub    %ebx,%r8d
  movslq %r8d,%r8
  addss  0x0(%r13,%r8,4),%xmm0
  subss  %xmm1,%xmm0
L23:
  add    $0x1,%ecx
  movss  %xmm0,(%r9,%rax,1)
  add    %ebx,%edx
  add    %rsi,%rax
  cmp    %ecx,%r14d
  je     L213
L75:
  movss  (%rdi,%rax,1),%xmm0
  movss  0x0(%r13,%rax,1),%xmm1
  cmp    %edx,%ebp
  jg     L142
  subss  %xmm1,%xmm0
  jmp    L23
  nopl   (%rax)
L213:
  add    $0x1,%r10
  add    $0x1,%r12d
  cmp    %r10,%r11
  jne    L121
L205:
  xor    %eax,%eax
  test   %ebp,%ebp
  jle    L141
  mov    0x10(%rsp),%rdx
  mov    0x18(%rsp),%rcx
  nopl   (%rax)
L210:
  movss  (%rdi,%rax,4),%xmm0
  movss  %xmm0,(%rdx,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rcx
  jne    L210
L141:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L7:
  mov    %rdi,0x28(%rsp)
  mov    0x24(%rsp),%edi
  lea    (%rbx,%r12,1),%esi
  xor    %r9d,%r9d
  mov    %r14d,0x24(%rsp)
  mov    0x8(%rsp),%r14
  xor    %r11d,%r11d
  movslq %r12d,%r8
  nopl   0x0(%rax,%rax,1)
L200:
  lea    0x0(%r13,%r9,1),%rdx
  lea    (%r14,%r9,1),%rcx
  lea    0x1(%rdi),%eax
  cmp    $0x1,%ebx
  jg     L60
  jmp    L13
  nopl   0x0(%rax,%rax,1)
L12:
  addss  (%rcx,%r8,4),%xmm0
  subss  %xmm1,%xmm0
L21:
  add    $0x1,%eax
  movss  %xmm0,0x4(%rdx)
  add    $0x4,%rcx
  add    $0x4,%rdx
  cmp    %esi,%eax
  je     L13
L60:
  movss  (%rdx),%xmm0
  movss  (%rcx),%xmm1
  cmp    %ebp,%eax
  jl     L12
  subss  %xmm1,%xmm0
  jmp    L21
  nopl   0x0(%rax,%rax,1)
L13:
  lea    0x1(%r11),%eax
  add    %ebx,%esi
  add    %ebx,%edi
  add    %r10,%r9
  cmp    %r11d,%r15d
  je     L146
  mov    %eax,%r11d
  jmp    L200
```

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;
}
```