user: What would the C source look like for the assembly code provided here:

```asm
<blur>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xb8,%rsp
  mov    %rdi,0x68(%rsp)
  mov    %esi,%r15d
  mov    %esi,0x3c(%rsp)
  mov    %edx,%r14d
  mov    %edx,0x94(%rsp)
  mov    %ecx,%r12d
  mov    %ecx,0x18(%rsp)
  lea    -0x1(%rsi),%eax
  mov    %eax,0x88(%rsp)
  lea    -0x1(%rdx),%eax
  mov    %eax,0x80(%rsp)
  lea    (%rcx,%rcx,1),%ebx
  lea    0x1(%rbx),%eax
  mov    %eax,0x10(%rsp)
  mov    %esi,%ebp
  imul   %edx,%ebp
  movslq %ebp,%rbp
  shl    $0x2,%rbp
  mov    %rbp,%rdi
  call   <malloc@plt>
  mov    %rax,0x50(%rsp)
  mov    %rbp,%rdi
  call   <malloc@plt>
  mov    %rax,0x58(%rsp)
  mov    %rbp,%rdi
  call   <malloc@plt>
  mov    %rax,0x60(%rsp)
  mov    %r14d,%edi
  cmp    %r14d,%r15d
  cmovge %r15d,%edi
  movslq %edi,%rdi
  shl    $0x2,%rdi
  call   <malloc@plt>
  mov    %rax,0x48(%rsp)
  lea    0x1(%r12),%eax
  mov    %eax,0x38(%rsp)
  add    $0x2,%ebx
  sar    %ebx
  imul   %ebx,%ebx
  mov    %ebx,%ebp
  shl    $0x8,%ebp
  movslq %ebp,%rdi
  shl    $0x2,%rdi
  call   <malloc@plt>
  mov    %rax,0x98(%rsp)
  test   %ebp,%ebp
  jle    L55
  mov    %ebp,%ebp
  mov    $0x0,%ecx
  mov    %rax,%rsi
L189:
  mov    %ecx,%eax
  cltd
  idiv   %ebx
  mov    %eax,(%rsi,%rcx,4)
  add    $0x1,%rcx
  cmp    %rbp,%rcx
  jne    L189
L55:
  mov    0x10(%rsp),%eax
  lea    (%rax,%rax,2),%edi
  movslq %edi,%rdi
  shl    $0x2,%rdi
  call   <malloc@plt>
  mov    %rax,%rcx
  mov    %rax,0x8(%rsp)
  cmpl   $0x0,0x94(%rsp)
  jle    L112
  mov    0x18(%rsp),%ebx
  mov    %ebx,%edi
  neg    %edi
  mov    %edi,0xa0(%rsp)
  movslq %ebx,%rax
  movslq %edi,%rdx
  add    %rdx,%rax
  lea    (%rax,%rax,2),%rax
  lea    (%rcx,%rax,4),%rax
  mov    %rax,0xa8(%rsp)
  movl   $0x0,0x24(%rsp)
  movl   $0x0,0x20(%rsp)
  movl   $0x0,0x1c(%rsp)
  lea    0x1(%rbx),%eax
  mov    %eax,0x70(%rsp)
  mov    0x3c(%rsp),%eax
  lea    0x1(%rax),%eax
  mov    %rax,0x78(%rsp)
  jmp    L235
L75:
  add    %esi,%r15d
  add    %ebx,%r12d
  add    %edx,%ebp
L71:
  add    $0x1,%eax
  add    $0xc,%rdi
  cmp    0x70(%rsp),%eax
  je     L85
L187:
  test   %eax,%eax
  mov    $0x0,%edx
  cmovns %eax,%edx
  cmp    %r14d,%edx
  cmovg  %r14d,%edx
  add    0x20(%rsp),%edx
  movslq %edx,%rdx
  mov    0x0(%r13,%rdx,4),%edx
  mov    %edx,%esi
  sar    $0x10,%esi
  movzbl %sil,%esi
  mov    %esi,(%rdi)
  movzbl %dh,%ebx
  mov    %ebx,0x4(%rdi)
  movzbl %dl,%edx
  mov    %edx,0x8(%rdi)
  mov    %eax,%r11d
  neg    %r11d
  cmovs  %eax,%r11d
  mov    0x38(%rsp),%ecx
  sub    %r11d,%ecx
  mov    %esi,%r11d
  imul   %ecx,%r11d
  add    %r11d,%r8d
  mov    %ebx,%r11d
  imul   %ecx,%r11d
  add    %r11d,%r9d
  imul   %edx,%ecx
  add    %ecx,%r10d
  test   %eax,%eax
  jle    L75
  add    %esi,0x14(%rsp)
  add    %ebx,0x84(%rsp)
  add    %edx,0x90(%rsp)
  jmp    L71
L135:
  movl   $0x0,0x90(%rsp)
  movl   $0x0,0x84(%rsp)
  movl   $0x0,0x14(%rsp)
  mov    $0x0,%ebp
  mov    $0x0,%r12d
  mov    $0x0,%r15d
  mov    $0x0,%r10d
  mov    $0x0,%r9d
  mov    $0x0,%r8d
L85:
  cmpl   $0x0,0x3c(%rsp)
  jle    L11
  movslq 0x20(%rsp),%rax
  shl    $0x2,%rax
  mov    0x50(%rsp),%rbx
  add    %rax,%rbx
  mov    %rbx,0x40(%rsp)
  mov    0x58(%rsp),%rbx
  add    %rax,%rbx
  mov    %rbx,0x30(%rsp)
  add    0x60(%rsp),%rax
  mov    %rax,0x28(%rsp)
  mov    0x18(%rsp),%r11d
  mov    $0x1,%edi
  mov    0x90(%rsp),%r13d
  mov    0x98(%rsp),%rbx
  mov    %r11d,%r14d
  mov    0x84(%rsp),%r11d
  jmp    L5
L172:
  mov    0x48(%rsp),%rsi
  mov    0x24(%rsp),%edx
  add    -0x4(%rsi,%rdi,4),%edx
  movslq %edx,%rdx
  mov    0x68(%rsp),%rcx
  mov    (%rcx,%rdx,4),%ecx
  mov    %ecx,%esi
  sar    $0x10,%esi
  movzbl %sil,%esi
  mov    %esi,(%rax)
  movzbl %ch,%edx
  mov    %edx,0x4(%rax)
  movzbl %cl,%ecx
  mov    %ecx,0x8(%rax)
  add    0x14(%rsp),%esi
  add    %edx,%r11d
  add    %r13d,%ecx
  add    %esi,%r8d
  add    %r11d,%r9d
  add    %ecx,%r10d
  lea    0x1(%r14),%eax
  cltd
  idivl  0x10(%rsp)
  mov    %edx,%r14d
  movslq %edx,%rdx
  lea    (%rdx,%rdx,2),%rax
  mov    0x8(%rsp),%rdx
  lea    (%rdx,%rax,4),%rax
  mov    (%rax),%edx
  add    %edx,%r15d
  mov    0x4(%rax),%r13d
  add    %r13d,%r12d
  mov    0x8(%rax),%eax
  add    %eax,%ebp
  sub    %edx,%esi
  mov    %esi,0x14(%rsp)
  sub    %r13d,%r11d
  sub    %eax,%ecx
  mov    %ecx,%r13d
  add    $0x1,%rdi
  cmp    0x78(%rsp),%rdi
  je     L40
L5:
  movslq %r8d,%rax
  mov    (%rbx,%rax,4),%eax
  mov    0x40(%rsp),%rcx
  mov    %eax,-0x4(%rcx,%rdi,4)
  movslq %r9d,%rax
  mov    (%rbx,%rax,4),%eax
  mov    0x30(%rsp),%rcx
  mov    %eax,-0x4(%rcx,%rdi,4)
  movslq %r10d,%rax
  mov    (%rbx,%rax,4),%eax
  mov    0x28(%rsp),%rcx
  mov    %eax,-0x4(%rcx,%rdi,4)
  sub    %r15d,%r8d
  sub    %r12d,%r9d
  sub    %ebp,%r10d
  mov    %r14d,%eax
  sub    0x18(%rsp),%eax
  mov    0x10(%rsp),%esi
  add    %esi,%eax
  cltd
  idiv   %esi
  movslq %edx,%rdx
  lea    (%rdx,%rdx,2),%rax
  mov    0x8(%rsp),%rsi
  lea    (%rsi,%rax,4),%rax
  sub    (%rax),%r15d
  sub    0x4(%rax),%r12d
  sub    0x8(%rax),%ebp
  cmpl   $0x0,0x1c(%rsp)
  jne    L172
  mov    0x18(%rsp),%ecx
  lea    (%rcx,%rdi,1),%edx
  mov    0x88(%rsp),%esi
  cmp    %esi,%edx
  cmovg  %esi,%edx
  mov    0x48(%rsp),%rcx
  mov    %edx,-0x4(%rcx,%rdi,4)
  jmp    L172
L40:
  mov    0x3c(%rsp),%ebx
  add    %ebx,0x20(%rsp)
L11:
  mov    0x3c(%rsp),%ebx
  add    %ebx,0x24(%rsp)
  addl   $0x1,0x1c(%rsp)
  mov    0x1c(%rsp),%eax
  cmp    %eax,0x94(%rsp)
  je     L112
L235:
  mov    0xa0(%rsp),%eax
  cmp    %eax,0x18(%rsp)
  jl     L135
  mov    0xa8(%rsp),%rdi
  movl   $0x0,0x90(%rsp)
  movl   $0x0,0x84(%rsp)
  movl   $0x0,0x14(%rsp)
  mov    $0x0,%ebp
  mov    $0x0,%r12d
  mov    $0x0,%r15d
  mov    $0x0,%r10d
  mov    $0x0,%r9d
  mov    $0x0,%r8d
  mov    0x88(%rsp),%r14d
  mov    0x68(%rsp),%r13
  jmp    L187
L112:
  mov    0x3c(%rsp),%ecx
  test   %ecx,%ecx
  jle    L213
  mov    0x18(%rsp),%ebx
  mov    %ebx,%edi
  neg    %edi
  mov    %edi,0x90(%rsp)
  mov    %edi,%eax
  imul   %ecx,%eax
  mov    %eax,0xa8(%rsp)
  mov    %ecx,%eax
  mov    %rax,0x88(%rsp)
  movslq %ebx,%rax
  movslq %edi,%rdx
  add    %rdx,%rax
  lea    (%rax,%rax,2),%rax
  mov    0x8(%rsp),%rdi
  lea    (%rdi,%rax,4),%rax
  mov    %rax,0xa0(%rsp)
  movslq %ecx,%rax
  shl    $0x2,%rax
  mov    %rax,0x70(%rsp)
  movq   $0x0,0x40(%rsp)
  lea    0x1(%rbx),%eax
  mov    %eax,0x78(%rsp)
  add    0x94(%rsp),%eax
  mov    %eax,0x84(%rsp)
  jmp    L214
L153:
  add    %ebx,%r13d
  add    %r11d,0x14(%rsp)
  add    %r10d,0x28(%rsp)
L118:
  mov    0x3c(%rsp),%ebx
  lea    (%rdi,%rbx,1),%edx
  cmp    %eax,0x80(%rsp)
  cmovg  %edx,%edi
  add    $0x1,%eax
  add    $0xc,%r8
  cmp    %eax,0x78(%rsp)
  je     L74
L149:
  test   %edi,%edi
  mov    $0x0,%edx
  cmovns %edi,%edx
  add    0x30(%rsp),%edx
  movslq %edx,%rdx
  mov    0x0(%rbp,%rdx,4),%ebx
  mov    %ebx,(%r8)
  mov    (%r12,%rdx,4),%r11d
  mov    %r11d,0x4(%r8)
  mov    (%r15,%rdx,4),%r10d
  mov    %r10d,0x8(%r8)
  mov    %eax,%r9d
  neg    %r9d
  cmovs  %eax,%r9d
  mov    0x38(%rsp),%edx
  sub    %r9d,%edx
  mov    %ebx,%r9d
  imul   %edx,%r9d
  add    %r9d,%ecx
  mov    %r11d,%r9d
  imul   %edx,%r9d
  add    %r9d,%r14d
  imul   %r10d,%edx
  add    %edx,%esi
  test   %eax,%eax
  jle    L153
  add    %ebx,0x1c(%rsp)
  add    %r11d,0x20(%rsp)
  add    %r10d,0x24(%rsp)
  jmp    L118
L74:
  mov    0x14(%rsp),%r12d
  mov    0x28(%rsp),%ebp
L265:
  cmpl   $0x0,0x94(%rsp)
  jle    L61
  mov    0x68(%rsp),%rax
  mov    0x40(%rsp),%rbx
  lea    (%rax,%rbx,4),%r10
  mov    0x48(%rsp),%rbx
  mov    0x38(%rsp),%r11d
  mov    0x18(%rsp),%eax
  mov    %eax,0x14(%rsp)
  mov    %rbx,%rax
  mov    %r13d,%ebx
  mov    0x98(%rsp),%r15
  mov    %rax,0x28(%rsp)
  jmp    L150
L38:
  movl   $0x0,0x24(%rsp)
  movl   $0x0,0x20(%rsp)
  movl   $0x0,0x1c(%rsp)
  mov    $0x0,%ebp
  mov    $0x0,%r12d
  mov    $0x0,%r13d
  mov    $0x0,%esi
  mov    $0x0,%r14d
  mov    $0x0,%ecx
  jmp    L265
L203:
  mov    0x30(%rsp),%edx
  mov    0x28(%rsp),%rdi
  add    (%rdi),%edx
  movslq %edx,%rdx
  mov    0x50(%rsp),%rdi
  mov    (%rdi,%rdx,4),%r9d
  mov    %r9d,(%rax)
  mov    0x58(%rsp),%rdi
  mov    (%rdi,%rdx,4),%r8d
  mov    %r8d,0x4(%rax)
  mov    0x60(%rsp),%rdi
  mov    (%rdi,%rdx,4),%edi
  mov    %edi,0x8(%rax)
  add    0x1c(%rsp),%r9d
  add    0x20(%rsp),%r8d
  add    0x24(%rsp),%edi
  add    %r9d,%ecx
  add    %r8d,%r14d
  add    %edi,%esi
  mov    0x14(%rsp),%eax
  add    $0x1,%eax
  cltd
  idivl  0x10(%rsp)
  mov    %edx,0x14(%rsp)
  movslq %edx,%rdx
  lea    (%rdx,%rdx,2),%rax
  mov    0x8(%rsp),%rdx
  lea    (%rdx,%rax,4),%rax
  mov    (%rax),%edx
  add    %edx,%ebx
  mov    0x4(%rax),%r13d
  add    %r13d,%r12d
  mov    0x8(%rax),%eax
  add    %eax,%ebp
  sub    %edx,%r9d
  mov    %r9d,0x1c(%rsp)
  sub    %r13d,%r8d
  mov    %r8d,0x20(%rsp)
  sub    %eax,%edi
  mov    %edi,0x24(%rsp)
  add    0x70(%rsp),%r10
  addq   $0x4,0x28(%rsp)
  add    $0x1,%r11d
  cmp    0x84(%rsp),%r11d
  je     L61
L150:
  movslq %ecx,%rax
  mov    (%r15,%rax,4),%eax
  shl    $0x10,%eax
  movslq %r14d,%rdx
  mov    (%r15,%rdx,4),%edx
  shl    $0x8,%edx
  or     %edx,%eax
  movslq %esi,%rdx
  or     (%r15,%rdx,4),%eax
  mov    (%r10),%edx
  and    $0xff000000,%edx
  or     %edx,%eax
  mov    %eax,(%r10)
  sub    %ebx,%ecx
  sub    %r12d,%r14d
  sub    %ebp,%esi
  mov    0x14(%rsp),%eax
  sub    0x18(%rsp),%eax
  mov    0x10(%rsp),%edi
  add    %edi,%eax
  cltd
  idiv   %edi
  movslq %edx,%rdx
  lea    (%rdx,%rdx,2),%rax
  mov    0x8(%rsp),%rdi
  lea    (%rdi,%rax,4),%rax
  sub    (%rax),%ebx
  sub    0x4(%rax),%r12d
  sub    0x8(%rax),%ebp
  cmpl   $0x0,0x40(%rsp)
  jne    L203
  mov    0x80(%rsp),%edi
  cmp    %edi,%r11d
  mov    %edi,%edx
  cmovle %r11d,%edx
  imul   0x3c(%rsp),%edx
  mov    0x28(%rsp),%rdi
  mov    %edx,(%rdi)
  jmp    L203
L61:
  addq   $0x1,0x40(%rsp)
  mov    0x40(%rsp),%rax
  cmp    %rax,0x88(%rsp)
  je     L213
L214:
  mov    0x40(%rsp),%eax
  mov    %eax,0x30(%rsp)
  mov    0x90(%rsp),%eax
  mov    0x18(%rsp),%ebx
  cmp    %ebx,%eax
  jg     L38
  mov    0xa0(%rsp),%r8
  mov    0xa8(%rsp),%edi
  movl   $0x0,0x24(%rsp)
  movl   $0x0,0x20(%rsp)
  movl   $0x0,0x1c(%rsp)
  mov    $0x0,%ebp
  mov    $0x0,%r12d
  mov    $0x0,%r13d
  mov    $0x0,%esi
  mov    $0x0,%r14d
  mov    $0x0,%ecx
  mov    %r12d,0x14(%rsp)
  mov    %ebp,0x28(%rsp)
  mov    0x50(%rsp),%rbp
  mov    0x58(%rsp),%r12
  mov    0x60(%rsp),%r15
  jmp    L149
L213:
  mov    0x50(%rsp),%rdi
  call   <free@plt>
  mov    0x58(%rsp),%rdi
  call   <free@plt>
  mov    0x60(%rsp),%rdi
  call   <free@plt>
  mov    0x48(%rsp),%rdi
  call   <free@plt>
  mov    0x98(%rsp),%rdi
  call   <free@plt>
  mov    0x8(%rsp),%rdi
  call   <free@plt>
  mov    0x68(%rsp),%rax
  add    $0xb8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int *blur(int *pix, int w, int h, int radius) {
  int wm = w - 1;
  int hm = h - 1;
  int wh = w * h;
  int div = radius + radius + 1;
  int *r = (int *)malloc(wh * sizeof(int));
  int *g = (int *)malloc(wh * sizeof(int));
  int *b = (int *)malloc(wh * sizeof(int));
  int rsum, gsum, bsum, x, y, i, p, yp, yi, yw;
  int *vmin = (int *)malloc(((w) > (h) ? (w) : (h)) * sizeof(int));
  int divsum = (div + 1) >> 1;
  divsum *= divsum;
  int *dv = (int *)malloc(256 * divsum * sizeof(int));
  for (i = 0; i < 256 * divsum; i++) {
    dv[i] = (i / divsum);
  }
  yw = yi = 0;
  int(*stack)[3] = (int(*)[3])malloc(div * 3 * sizeof(int));
  int stackpointer;
  int stackstart;
  int *sir;
  int rbs;
  int r1 = radius + 1;
  int routsum, goutsum, boutsum;
  int rinsum, ginsum, binsum;
  for (y = 0; y < h; y++) {
    rinsum = ginsum = binsum = routsum = goutsum = boutsum = rsum = gsum = bsum = 0;
    for (i = -radius; i <= radius; i++) {
      p = pix[yi + (((wm) < (((i) > (0) ? (i) : (0))) ? (wm) : (((i) > (0) ? (i) : (0)))))];
      sir = stack[i + radius];
      sir[0] = (p & 0xff0000) >> 16;
      sir[1] = (p & 0x00ff00) >> 8;
      sir[2] = (p & 0x0000ff);
      rbs = r1 - ((i) < (0) ? (-i) : (i));
      rsum += sir[0] * rbs;
      gsum += sir[1] * rbs;
      bsum += sir[2] * rbs;
      if (i > 0) {
        rinsum += sir[0];
        ginsum += sir[1];
        binsum += sir[2];
      } else {
        routsum += sir[0];
        goutsum += sir[1];
        boutsum += sir[2];
      }
    }
    stackpointer = radius;
    for (x = 0; x < w; x++) {
      r[yi] = dv[rsum];
      g[yi] = dv[gsum];
      b[yi] = dv[bsum];
      rsum -= routsum;
      gsum -= goutsum;
      bsum -= boutsum;
      stackstart = stackpointer - radius + div;
      sir = stack[stackstart % div];
      routsum -= sir[0];
      goutsum -= sir[1];
      boutsum -= sir[2];
      if (y == 0) {
        vmin[x] = ((x + radius + 1) < (wm) ? (x + radius + 1) : (wm));
      }
      p = pix[yw + vmin[x]];
      sir[0] = (p & 0xff0000) >> 16;
      sir[1] = (p & 0x00ff00) >> 8;
      sir[2] = (p & 0x0000ff);
      rinsum += sir[0];
      ginsum += sir[1];
      binsum += sir[2];
      rsum += rinsum;
      gsum += ginsum;
      bsum += binsum;
      stackpointer = (stackpointer + 1) % div;
      sir = stack[(stackpointer) % div];
      routsum += sir[0];
      goutsum += sir[1];
      boutsum += sir[2];
      rinsum -= sir[0];
      ginsum -= sir[1];
      binsum -= sir[2];
      yi++;
    }
    yw += w;
  }
  for (x = 0; x < w; x++) {
    rinsum = ginsum = binsum = routsum = goutsum = boutsum = rsum = gsum = bsum = 0;
    yp = -radius * w;
    for (i = -radius; i <= radius; i++) {
      yi = ((0) > (yp) ? (0) : (yp)) + x;
      sir = stack[i + radius];
      sir[0] = r[yi];
      sir[1] = g[yi];
      sir[2] = b[yi];
      rbs = r1 - ((i) < (0) ? (-i) : (i));
      rsum += r[yi] * rbs;
      gsum += g[yi] * rbs;
      bsum += b[yi] * rbs;
      if (i > 0) {
        rinsum += sir[0];
        ginsum += sir[1];
        binsum += sir[2];
      } else {
        routsum += sir[0];
        goutsum += sir[1];
        boutsum += sir[2];
      }
      if (i < hm) {
        yp += w;
      }
    }
    yi = x;
    stackpointer = radius;
    for (y = 0; y < h; y++) {
      pix[yi] = (0xff000000 & pix[yi]) | (dv[rsum] << 16) | (dv[gsum] << 8) | dv[bsum];
      rsum -= routsum;
      gsum -= goutsum;
      bsum -= boutsum;
      stackstart = stackpointer - radius + div;
      sir = stack[stackstart % div];
      routsum -= sir[0];
      goutsum -= sir[1];
      boutsum -= sir[2];
      if (x == 0) {
        vmin[y] = ((y + r1) < (hm) ? (y + r1) : (hm)) * w;
      }
      p = x + vmin[y];
      sir[0] = r[p];
      sir[1] = g[p];
      sir[2] = b[p];
      rinsum += sir[0];
      ginsum += sir[1];
      binsum += sir[2];
      rsum += rinsum;
      gsum += ginsum;
      bsum += binsum;
      stackpointer = (stackpointer + 1) % div;
      sir = stack[stackpointer];
      routsum += sir[0];
      goutsum += sir[1];
      boutsum += sir[2];
      rinsum -= sir[0];
      ginsum -= sir[1];
      binsum -= sir[2];
      yi += w;
    }
  }
  free(r);
  free(g);
  free(b);
  free(vmin);
  free(dv);
  free(stack);
  return (pix);
}
```