user: What is the c source code of the assembly code below?

```asm
<convolutionGold>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %esi,-0x3c(%rbp)
  mov    %edx,-0x40(%rbp)
  mov    %rcx,-0x48(%rbp)
  mov    %r8d,-0x4c(%rbp)
  mov    -0x3c(%rbp),%eax
  imul   -0x40(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  jne    L57
  mov    $0xffffffff,%edi
  call   <exit@plt>
L57:
  mov    -0x4c(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x14(%rbp)
  movl   $0x0,-0x28(%rbp)
  jmp    L15
L19:
  movl   $0x0,-0x24(%rbp)
  jmp    L75
L22:
  movl   $0x0,-0x18(%rbp)
  mov    -0x14(%rbp),%eax
  neg    %eax
  mov    %eax,-0x20(%rbp)
  jmp    L1
L42:
  mov    -0x14(%rbp),%eax
  neg    %eax
  mov    %eax,-0x1c(%rbp)
  jmp    L110
L52:
  mov    -0x28(%rbp),%edx
  mov    -0x20(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x24(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  mov    $0x0,%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0xc(%rbp),%eax
  mov    $0x0,%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L93
  mov    -0x3c(%rbp),%eax
  sub    $0x1,%eax
  jmp    L78
L93:
  mov    -0x10(%rbp),%eax
L78:
  mov    %eax,-0x10(%rbp)
  mov    -0xc(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jl     L41
  mov    -0x40(%rbp),%eax
  sub    $0x1,%eax
  jmp    L94
L41:
  mov    -0xc(%rbp),%eax
L94:
  mov    %eax,-0xc(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2ssl -0x18(%rbp),%xmm1
  mov    -0x10(%rbp),%eax
  imul   -0x40(%rbp),%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  pxor   %xmm2,%xmm2
  cvtsi2ss %eax,%xmm2
  mov    -0x20(%rbp),%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  imul   -0x4c(%rbp),%eax
  mov    -0x1c(%rbp),%ecx
  mov    -0x14(%rbp),%edx
  add    %ecx,%edx
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm1,%xmm0
  cvttss2si %xmm0,%eax
  mov    %eax,-0x18(%rbp)
  addl   $0x1,-0x1c(%rbp)
L110:
  mov    -0x1c(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jle    L52
  addl   $0x1,-0x20(%rbp)
L1:
  mov    -0x20(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jle    L42
  mov    -0x28(%rbp),%eax
  imul   -0x40(%rbp),%eax
  mov    %eax,%edx
  mov    -0x24(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rax,%rdx
  mov    -0x18(%rbp),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x24(%rbp)
L75:
  mov    -0x24(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jl     L22
  addl   $0x1,-0x28(%rbp)
L15:
  mov    -0x28(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L19
  mov    -0x8(%rbp),%rax
  leave
  ret
```

assistant: ```c
int *convolutionGold(int *image, int rows, int cols, float *filter, int filterWidth) {
  int *outputImage;
  outputImage = (int *)malloc(rows * cols * sizeof(int));
  if (!outputImage) {
    exit(-1);
  }
  int halfFilterWidth = (int)filterWidth / 2;
  int i;
  int j;
  int k;
  int l;
  for (i = 0; i < rows; i++) {
    for (j = 0; j < cols; j++) {
      int sum = 0;
      for (k = -halfFilterWidth; k <= halfFilterWidth; k++) {
        for (l = -halfFilterWidth; l <= halfFilterWidth; l++) {
          int r = i + k;
          int c = j + l;
          r = (r < 0) ? 0 : r;
          c = (c < 0) ? 0 : c;
          r = (r >= rows) ? rows - 1 : r;
          c = (c >= cols) ? cols - 1 : c;
          sum += image[r * cols + c] * filter[(k + halfFilterWidth) * filterWidth + (l + halfFilterWidth)];
        }
      }
      outputImage[i * cols + j] = sum;
    }
  }
  return outputImage;
}
```