user: Translate the below assembly code into C programming language:

```asm
<boxfilter1CC>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdx,%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    0x40(%rsp),%r15d
  mov    %rsi,-0x28(%rsp)
  mov    %r8d,%esi
  mov    0x38(%rsp),%r8d
  mov    %rcx,-0x10(%rsp)
  mov    %r9d,%ecx
  mov    %rdi,-0x8(%rsp)
  test   %r15d,%r15d
  jle    L92
  mov    %r8d,%eax
  lea    0x1(%rsi),%ebx
  mov    %r8d,0x38(%rsp)
  movslq %r9d,%rdi
  imul   %r9d,%eax
  mov    %ebx,-0x48(%rsp)
  add    %esi,%ebx
  shl    $0x2,%rdi
  movl   $0x0,-0x34(%rsp)
  lea    -0x1(%rsi),%r13d
  movl   $0x0,-0x20(%rsp)
  mov    %eax,-0x1c(%rsp)
  movslq %esi,%rax
  mov    %rax,-0x30(%rsp)
  neg    %rax
  lea    0x0(,%rax,4),%rdx
  mov    %ebx,-0x40(%rsp)
  mov    %esi,%eax
  neg    %eax
  mov    %r14,-0x18(%rsp)
  mov    %r15d,0x40(%rsp)
  mov    %eax,%r14d
  mov    %rdx,%r15
  nopl   0x0(%rax,%rax,1)
L99:
  mov    0x38(%rsp),%eax
  test   %eax,%eax
  jle    L202
  movslq -0x34(%rsp),%rax
  mov    -0x28(%rsp),%rbx
  xor    %r12d,%r12d
  pxor   %xmm1,%xmm1
  lea    0x0(,%rax,4),%r9
  add    -0x30(%rsp),%rax
  lea    (%r9,%r15,1),%r10
  add    -0x10(%rsp),%r9
  add    %rbx,%r10
  lea    (%rbx,%rax,4),%rbx
  nopw   0x0(%rax,%rax,1)
L136:
  lea    (%r15,%rbx,1),%rbp
  cmp    %r14d,%esi
  jl     L117
  movslq %r14d,%rax
  movaps %xmm1,%xmm0
  nopl   0x0(%rax,%rax,1)
L52:
  addss  (%rbx,%rax,4),%xmm0
  test   %eax,%eax
  js     L2
  movss  %xmm0,(%r9,%rax,4)
L2:
  add    $0x1,%rax
  cmp    %eax,%esi
  jge    L52
  mov    -0x48(%rsp),%edx
  mov    -0x40(%rsp),%r8d
L304:
  cmp    %r8d,%ecx
  jle    L363
  lea    0x1(%rdx),%eax
  cltq
  nopw   0x0(%rax,%rax,1)
L171:
  movslq %r8d,%r8
  subss  -0x8(%r10,%rax,4),%xmm0
  mov    %eax,%edx
  addss  0x0(%rbp,%r8,4),%xmm0
  lea    (%rsi,%rax,1),%r8d
  movss  %xmm0,-0x4(%r9,%rax,4)
  add    $0x1,%rax
  lea    0x0(%r13,%rax,1),%r11d
  cmp    %r11d,%ecx
  jg     L171
L363:
  movslq %edx,%rax
  cmp    %edx,%ecx
  jle    L8
  nopl   0x0(%rax,%rax,1)
L194:
  subss  -0x4(%r10,%rax,4),%xmm0
  movss  %xmm0,(%r9,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%ecx
  jg     L194
L8:
  add    $0x1,%r12d
  add    %rdi,%r10
  add    %rdi,%r9
  add    %rdi,%rbx
  cmp    %r12d,0x38(%rsp)
  jne    L136
L202:
  mov    -0x20(%rsp),%eax
  mov    -0x1c(%rsp),%edx
  add    %edx,-0x34(%rsp)
  add    $0x1,%eax
  cmp    %eax,0x40(%rsp)
  je     L15
  mov    %eax,-0x20(%rsp)
  jmp    L99
  nopl   0x0(%rax,%rax,1)
L117:
  mov    %r14d,%edx
  xor    %r8d,%r8d
  movaps %xmm1,%xmm0
  jmp    L304
L15:
  mov    %esi,%eax
  mov    -0x18(%rsp),%r14
  mov    0x38(%rsp),%r8d
  xor    %ebx,%ebx
  imul   %ecx,%eax
  mov    -0x10(%rsp),%r10
  pxor   %xmm1,%xmm1
  lea    0x1(%rsi),%r11d
  movl   $0x0,-0x18(%rsp)
  neg    %eax
  mov    %eax,-0x30(%rsp)
  mov    %esi,%eax
  neg    %eax
  mov    %eax,-0x34(%rsp)
  lea    -0x1(%rcx),%eax
  mov    %rax,-0x28(%rsp)
  nopw   0x0(%rax,%rax,1)
L6:
  test   %ecx,%ecx
  jle    L209
  mov    -0x34(%rsp),%edx
  movslq %ebx,%rax
  xor    %r12d,%r12d
  mov    %rax,-0x40(%rsp)
  lea    (%r10,%rax,4),%r15
  mov    %r12d,%ebp
  cmp    %edx,%esi
  jl     L329
  cs nopw 0x0(%rax,%rax,1)
L260:
  mov    -0x30(%rsp),%eax
  movaps %xmm1,%xmm0
  lea    (%rax,%r12,1),%r9d
  mov    %r15,%rax
  xchg   %ax,%ax
L388:
  addss  (%rax),%xmm0
  test   %edx,%edx
  js     L366
  movslq %r9d,%r13
  movss  %xmm0,(%r14,%r13,4)
L366:
  add    $0x1,%edx
  add    %rdi,%rax
  add    %ecx,%r9d
  cmp    %edx,%r11d
  jne    L388
  lea    (%rsi,%r11,1),%eax
L379:
  cmp    %eax,%r8d
  jle    L393
  mov    -0x40(%rsp),%r9
  lea    (%r12,%r9,1),%r13
  mov    %edx,%r9d
  sub    %esi,%r9d
  mov    %r13,-0x48(%rsp)
  sub    $0x1,%r9d
  imul   %ecx,%r9d
  movslq %r9d,%r9
  add    %r13,%r9
  mov    %ecx,%r13d
  imul   %edx,%r13d
  lea    (%r10,%r9,4),%r9
  movslq %r13d,%r13
  add    -0x48(%rsp),%r13
  lea    (%r14,%r13,4),%r13
  nopl   0x0(%rax)
L217:
  imul   %ecx,%eax
  subss  (%r9),%xmm0
  add    $0x1,%edx
  add    %rdi,%r9
  add    %ebp,%eax
  add    %ebx,%eax
  cltq
  addss  (%r10,%rax,4),%xmm0
  lea    (%rdx,%rsi,1),%eax
  movss  %xmm0,0x0(%r13)
  add    %rdi,%r13
  cmp    %eax,%r8d
  jg     L217
L393:
  cmp    %edx,%r8d
  jle    L255
  mov    -0x40(%rsp),%rax
  lea    (%r12,%rax,1),%r9
  mov    %edx,%eax
  sub    %esi,%eax
  sub    $0x1,%eax
  imul   %ecx,%eax
  cltq
  add    %r9,%rax
  lea    (%r10,%rax,4),%rbp
  mov    %ecx,%eax
  imul   %edx,%eax
  cltq
  add    %r9,%rax
  lea    (%r14,%rax,4),%r9
  xor    %eax,%eax
  nopl   0x0(%rax)
L310:
  subss  0x0(%rbp,%rax,1),%xmm0
  add    $0x1,%edx
  movss  %xmm0,(%r9,%rax,1)
  add    %rdi,%rax
  cmp    %edx,%r8d
  jne    L310
L255:
  lea    0x1(%r12),%rax
  add    $0x4,%r15
  cmp    %r12,-0x28(%rsp)
  je     L209
  mov    -0x34(%rsp),%edx
  mov    %rax,%r12
  mov    %r12d,%ebp
  cmp    %edx,%esi
  jge    L260
L329:
  mov    -0x34(%rsp),%edx
  xor    %eax,%eax
  movaps %xmm1,%xmm0
  jmp    L379
  nop
L209:
  mov    -0x1c(%rsp),%r9d
  mov    -0x18(%rsp),%edx
  add    %r9d,-0x30(%rsp)
  lea    0x1(%rdx),%eax
  add    %r9d,%ebx
  cmp    %edx,-0x20(%rsp)
  je     L176
  mov    %eax,-0x18(%rsp)
  jmp    L6
L176:
  mov    0x40(%rsp),%r15d
  cmp    $0x1,%r15d
  jle    L92
L222:
  test   %r8d,%r8d
  jle    L377
  mov    %r8d,%r11d
  mov    %esi,%eax
  mov    %esi,%r13d
  mov    %ecx,-0x48(%rsp)
  imul   %ecx,%r11d
  neg    %r13d
  mov    -0x8(%rsp),%rbx
  pxor   %xmm1,%xmm1
  movl   $0x0,-0x30(%rsp)
  movl   $0x0,-0x34(%rsp)
  imul   %r11d,%eax
  mov    %r13d,-0x40(%rsp)
  movslq %r11d,%rdi
  shl    $0x2,%rdi
  neg    %eax
  sub    %ecx,%eax
  mov    %eax,-0x28(%rsp)
  nop
L373:
  mov    -0x28(%rsp),%ebp
  mov    -0x30(%rsp),%r10d
  add    -0x48(%rsp),%ebp
  test   %ecx,%ecx
  jle    L163
  nopl   (%rax)
L254:
  mov    -0x40(%rsp),%r13d
  cmp    %r13d,%esi
  jl     L14
  movslq %r10d,%rax
  lea    0x1(%rsi),%edx
  movaps %xmm1,%xmm0
  mov    %ebp,%r12d
  lea    (%r14,%rax,4),%r9
  mov    %r13d,%eax
  nopl   0x0(%rax)
L326:
  addss  (%r9),%xmm0
  test   %eax,%eax
  js     L41
  movslq %r12d,%r13
  movss  %xmm0,(%rbx,%r13,4)
L41:
  add    $0x1,%eax
  add    %rdi,%r9
  add    %r11d,%r12d
  cmp    %edx,%eax
  jne    L326
  lea    (%rsi,%rdx,1),%eax
L129:
  cmp    %eax,%r15d
  jle    L301
  mov    %edx,%r9d
  mov    %ecx,%r12d
  movslq %r10d,%r13
  sub    %esi,%r9d
  imul   %edx,%r12d
  sub    $0x1,%r9d
  imul   %ecx,%r9d
  imul   %r8d,%r12d
  imul   %r8d,%r9d
  movslq %r12d,%r12
  add    %r13,%r12
  movslq %r9d,%r9
  lea    (%rbx,%r12,4),%r12
  add    %r13,%r9
  lea    (%r14,%r9,4),%r9
  nopl   0x0(%rax,%rax,1)
L157:
  imul   %ecx,%eax
  subss  (%r9),%xmm0
  add    $0x1,%edx
  add    %rdi,%r9
  imul   %r8d,%eax
  add    %r10d,%eax
  cltq
  addss  (%r14,%rax,4),%xmm0
  lea    (%rdx,%rsi,1),%eax
  movss  %xmm0,(%r12)
  add    %rdi,%r12
  cmp    %eax,%r15d
  jg     L157
L301:
  cmp    %edx,%r15d
  jle    L341
  mov    %edx,%eax
  movslq %r10d,%r9
  sub    %esi,%eax
  sub    $0x1,%eax
  imul   %ecx,%eax
  imul   %r8d,%eax
  cltq
  add    %r9,%rax
  lea    (%r14,%rax,4),%r12
  mov    %ecx,%eax
  imul   %edx,%eax
  imul   %r8d,%eax
  cltq
  add    %r9,%rax
  lea    (%rbx,%rax,4),%r9
  xor    %eax,%eax
  nopl   0x0(%rax)
L287:
  subss  (%r12,%rax,1),%xmm0
  add    $0x1,%edx
  movss  %xmm0,(%r9,%rax,1)
  add    %rdi,%rax
  cmp    %edx,%r15d
  jne    L287
L341:
  add    $0x1,%r10d
  add    $0x1,%ebp
  cmp    %r10d,-0x48(%rsp)
  jne    L254
L163:
  addl   $0x1,-0x34(%rsp)
  mov    -0x34(%rsp),%eax
  add    %ecx,-0x48(%rsp)
  add    %ecx,-0x30(%rsp)
  cmp    %eax,%r8d
  jne    L373
L377:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L14:
  mov    -0x40(%rsp),%edx
  xor    %eax,%eax
  movaps %xmm1,%xmm0
  jmp    L129
L92:
  xor    %esi,%esi
  jmp    L222
```

assistant: ```c
void boxfilter1CC(float *output, float *input, float *temp1, float *temp2, int hw, int m, int n, int o) {
  const int RANGE = hw;
  const int sz = m * n * o;
  for (int k = 0; k < o; k++) {
    for (int j = 0; j < n; j++) {
      float sumA = 0;
      const float *inRow = input + j * m + k * m * n;
      float *outRow = temp2 + j * m + k * m * n;
      int x = -RANGE;
      for (; x <= RANGE; x++) {
        sumA += inRow[x + RANGE];
        ;
        if (x >= 0)
          outRow[x] = sumA;
      }
      for (; x + RANGE < m; x++) {
        sumA -= inRow[x - RANGE - 1];
        sumA += inRow[x + RANGE];
        outRow[x] = sumA;
      }
      for (; x < m; x++) {
        sumA -= inRow[x - RANGE - 1];
        outRow[x] = sumA;
      }
    }
  }
  for (int k = 0; k < o; k++) {
    for (int i = 0; i < m; i++) {
      float sumA = 0;
      int x = -RANGE;
      for (; x <= RANGE; x++) {
        sumA += temp2[i + (x + RANGE) * m + k * m * n];
        if (x >= 0)
          temp1[i + x * m + k * m * n] = sumA;
      }
      for (; x + RANGE < n; x++) {
        sumA -= temp2[i + (x - RANGE - 1) * m + k * m * n];
        sumA += temp2[i + (x + RANGE) * m + k * m * n];
        temp1[i + x * m + k * m * n] = sumA;
      }
      for (; x < n; x++) {
        sumA -= temp2[i + (x - RANGE - 1) * m + k * m * n];
        temp1[i + x * m + k * m * n] = sumA;
      }
    }
  }
  const int ORANGE = o > 1 ? RANGE : 0;
  for (int j = 0; j < n; j++) {
    for (int i = 0; i < m; i++) {
      float sumA = 0;
      int x = -ORANGE;
      for (; x <= ORANGE; x++) {
        sumA += temp1[i + j * m + (x + ORANGE) * m * n];
        if (x >= 0)
          output[i + j * m + x * m * n] = sumA;
      }
      for (; x + ORANGE < o; x++) {
        sumA -= temp1[i + j * m + (x - ORANGE - 1) * m * n];
        sumA += temp1[i + j * m + (x + ORANGE) * m * n];
        output[i + j * m + x * m * n] = sumA;
      }
      for (; x < o; x++) {
        sumA -= temp1[i + j * m + (x - ORANGE - 1) * m * n];
        output[i + j * m + x * m * n] = sumA;
      }
    }
  }
}
```