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

```asm
<blur>:
  endbr64
  push   %r15
  movslq %esi,%r15
  push   %r14
  lea    -0x1(%r15),%eax
  mov    %edx,%r14d
  push   %r13
  push   %r12
  mov    %ecx,%r12d
  push   %rbp
  mov    %r15d,%ebp
  imul   %edx,%ebp
  push   %rbx
  lea    (%rcx,%rcx,1),%ebx
  sub    $0xa8,%rsp
  movslq %ebp,%rbp
  shl    $0x2,%rbp
  mov    %eax,0x88(%rsp)
  lea    -0x1(%rdx),%eax
  mov    %rdi,0x30(%rsp)
  mov    %rbp,%rdi
  mov    %eax,0x54(%rsp)
  lea    0x1(%rbx),%eax
  mov    %ecx,0x8(%rsp)
  mov    %edx,0x8c(%rsp)
  mov    %r15d,0x50(%rsp)
  mov    %eax,0xc(%rsp)
  call   <malloc@plt>
  mov    %rbp,%rdi
  mov    %rax,0x18(%rsp)
  call   <malloc@plt>
  mov    %rbp,%rdi
  mov    %rax,0x20(%rsp)
  call   <malloc@plt>
  movslq %r14d,%rdi
  cmp    %edi,%r15d
  mov    %rax,0x28(%rsp)
  cmovge %r15,%rdi
  add    $0x2,%ebx
  sar    %ebx
  imul   %ebx,%ebx
  shl    $0x2,%rdi
  call   <malloc@plt>
  mov    %rax,0x60(%rsp)
  lea    0x1(%r12),%eax
  mov    %ebx,%ebp
  mov    %eax,0x38(%rsp)
  shl    $0x8,%ebp
  movslq %ebp,%rbp
  lea    0x0(,%rbp,4),%rdi
  call   <malloc@plt>
  xor    %ecx,%ecx
  mov    %rax,0x58(%rsp)
  mov    0x58(%rsp),%rsi
  test   %ebx,%ebx
  je     L1
  nopl   0x0(%rax)
L89:
  mov    %ecx,%eax
  cltd
  idiv   %ebx
  mov    %eax,(%rsi,%rcx,4)
  add    $0x1,%rcx
  cmp    %rcx,%rbp
  jne    L89
L1:
  mov    0xc(%rsp),%eax
  lea    (%rax,%rax,2),%edi
  movslq %edi,%rdi
  shl    $0x2,%rdi
  call   <malloc@plt>
  mov    0x8c(%rsp),%r8d
  mov    %rax,(%rsp)
  test   %r8d,%r8d
  jle    L268
  movslq 0x8(%rsp),%rdx
  mov    (%rsp),%rdi
  movl   $0x0,0x40(%rsp)
  movl   $0x0,0x3c(%rsp)
  mov    %edx,%eax
  movl   $0x0,0x14(%rsp)
  neg    %eax
  mov    %eax,0x90(%rsp)
  cltq
  add    %rdx,%rax
  lea    (%rax,%rax,2),%rax
  lea    (%rdi,%rax,4),%rax
  mov    %rax,0x98(%rsp)
  mov    0x50(%rsp),%eax
  add    $0x1,%eax
  mov    %rax,0x78(%rsp)
  xchg   %ax,%ax
L254:
  mov    0x90(%rsp),%eax
  cmp    %eax,0x8(%rsp)
  jl     L180
  movl   $0x0,0x10(%rsp)
  xor    %ecx,%ecx
  xor    %ebp,%ebp
  xor    %r12d,%r12d
  xor    %r15d,%r15d
  xor    %r11d,%r11d
  xor    %r10d,%r10d
  xor    %r9d,%r9d
  mov    0x98(%rsp),%r8
  mov    0x88(%rsp),%r14d
  movl   $0x0,0x80(%rsp)
  jmp    L129
  nopl   0x0(%rax)
L63:
  add    %edx,%ecx
  add    %edi,0x10(%rsp)
  lea    0x1(%rax),%edx
  add    $0xc,%r8
  add    %r13d,0x80(%rsp)
  cmp    %eax,0x8(%rsp)
  je     L71
L205:
  mov    %edx,%eax
L129:
  xor    %edx,%edx
  test   %eax,%eax
  mov    0x30(%rsp),%rdi
  mov    %eax,%ebx
  cmovns %eax,%edx
  cmp    %r14d,%edx
  cmovg  %r14d,%edx
  add    0x3c(%rsp),%edx
  movslq %edx,%rdx
  mov    (%rdi,%rdx,4),%edx
  mov    %edx,%edi
  movzbl %dh,%esi
  movzbl %dl,%edx
  sar    $0x10,%edi
  neg    %ebx
  mov    %esi,%r13d
  mov    %esi,0x4(%r8)
  cmovs  %eax,%ebx
  mov    0x38(%rsp),%esi
  movzbl %dil,%edi
  mov    %edx,0x8(%r8)
  mov    %edi,(%r8)
  sub    %ebx,%esi
  mov    %edi,%ebx
  imul   %esi,%ebx
  add    %ebx,%r9d
  mov    %r13d,%ebx
  imul   %esi,%ebx
  imul   %edx,%esi
  add    %ebx,%r10d
  add    %esi,%r11d
  test   %eax,%eax
  jg     L63
  add    %edx,%ebp
  add    %edi,%r15d
  add    %r13d,%r12d
  add    $0xc,%r8
  lea    0x1(%rax),%edx
  cmp    %eax,0x8(%rsp)
  jne    L205
L71:
  mov    0x50(%rsp),%esi
  test   %esi,%esi
  jle    L249
  movslq 0x3c(%rsp),%rax
  mov    0x18(%rsp),%rdi
  mov    %ecx,%ebx
  mov    $0x1,%r8d
  mov    0x8(%rsp),%esi
  mov    0x58(%rsp),%r14
  shl    $0x2,%rax
  add    %rax,%rdi
  mov    %esi,%r13d
  mov    %rdi,0x70(%rsp)
  mov    0x20(%rsp),%rdi
  add    %rax,%rdi
  add    0x28(%rsp),%rax
  mov    %rdi,0x68(%rsp)
  mov    0x80(%rsp),%edi
  mov    %rax,0x48(%rsp)
  jmp    L49
  nopl   (%rax)
L255:
  mov    0x60(%rsp),%rcx
  mov    -0x4(%rcx,%r8,4),%edx
L34:
  mov    0x30(%rsp),%rsi
  add    0x40(%rsp),%edx
  add    $0x1,%r8
  movslq %edx,%rdx
  mov    (%rsi,%rdx,4),%ecx
  mov    %ecx,%esi
  movzbl %ch,%edx
  movzbl %cl,%ecx
  sar    $0x10,%esi
  mov    %edx,0x4(%rax)
  add    %edx,%edi
  movzbl %sil,%esi
  mov    %ecx,0x8(%rax)
  add    %ebx,%ecx
  mov    (%rsp),%rbx
  mov    %esi,(%rax)
  lea    0x1(%r13),%eax
  add    0x10(%rsp),%esi
  add    %ecx,%r11d
  cltd
  add    %esi,%r9d
  add    %edi,%r10d
  idivl  0xc(%rsp)
  movslq %edx,%rax
  mov    %rax,%r13
  lea    (%rax,%rax,2),%rax
  lea    (%rbx,%rax,4),%rax
  mov    0x4(%rax),%ebx
  mov    (%rax),%edx
  mov    0x8(%rax),%eax
  sub    %edx,%esi
  add    %ebx,%r12d
  sub    %ebx,%edi
  add    %edx,%r15d
  sub    %eax,%ecx
  mov    %esi,0x10(%rsp)
  add    %eax,%ebp
  mov    %ecx,%ebx
  cmp    %r8,0x78(%rsp)
  je     L264
L49:
  movslq %r9d,%rax
  mov    0x70(%rsp),%rcx
  mov    (%rsp),%rsi
  sub    %r15d,%r9d
  mov    (%r14,%rax,4),%eax
  mov    %eax,-0x4(%rcx,%r8,4)
  movslq %r10d,%rax
  mov    0x68(%rsp),%rcx
  sub    %r12d,%r10d
  mov    (%r14,%rax,4),%eax
  mov    %eax,-0x4(%rcx,%r8,4)
  movslq %r11d,%rax
  mov    0x48(%rsp),%rcx
  sub    %ebp,%r11d
  mov    (%r14,%rax,4),%eax
  mov    %eax,-0x4(%rcx,%r8,4)
  mov    0xc(%rsp),%ecx
  mov    %r13d,%eax
  sub    0x8(%rsp),%eax
  add    %ecx,%eax
  cltd
  idiv   %ecx
  movslq %edx,%rdx
  lea    (%rdx,%rdx,2),%rax
  mov    0x14(%rsp),%edx
  lea    (%rsi,%rax,4),%rax
  sub    (%rax),%r15d
  sub    0x4(%rax),%r12d
  sub    0x8(%rax),%ebp
  test   %edx,%edx
  jne    L255
  mov    0x8(%rsp),%esi
  mov    0x88(%rsp),%ecx
  lea    (%rsi,%r8,1),%edx
  cmp    %ecx,%edx
  cmovg  %ecx,%edx
  mov    0x60(%rsp),%rcx
  mov    %edx,-0x4(%rcx,%r8,4)
  jmp    L34
  nopl   0x0(%rax,%rax,1)
L264:
  mov    0x50(%rsp),%edi
  add    %edi,0x3c(%rsp)
L249:
  addl   $0x1,0x14(%rsp)
  mov    0x50(%rsp),%edi
  mov    0x14(%rsp),%eax
  add    %edi,0x40(%rsp)
  cmp    %eax,0x8c(%rsp)
  jne    L254
L268:
  mov    0x50(%rsp),%edi
  test   %edi,%edi
  jle    L239
  movslq 0x8(%rsp),%rax
  mov    0x50(%rsp),%ecx
  movq   $0x0,0x48(%rsp)
  mov    %eax,%edi
  neg    %edi
  mov    %edi,%esi
  movslq %edi,%rdx
  mov    %edi,0x78(%rsp)
  mov    (%rsp),%rdi
  imul   %ecx,%esi
  add    %rdx,%rax
  lea    (%rax,%rax,2),%rax
  lea    (%rdi,%rax,4),%rax
  mov    %esi,0x88(%rsp)
  movslq %ecx,%rsi
  mov    %rax,0x90(%rsp)
  lea    0x0(,%rsi,4),%rax
  mov    %rax,0x68(%rsp)
  mov    0x8c(%rsp),%eax
  add    0x38(%rsp),%eax
  mov    %rsi,0x80(%rsp)
  mov    %eax,0x70(%rsp)
  nopl   0x0(%rax)
L98:
  mov    0x48(%rsp),%eax
  mov    0x8(%rsp),%edi
  mov    %eax,0x3c(%rsp)
  mov    0x78(%rsp),%eax
  cmp    %edi,%eax
  jg     L265
  movl   $0x0,0x14(%rsp)
  xor    %r8d,%r8d
  xor    %ebp,%ebp
  xor    %r12d,%r12d
  movl   $0x0,0x10(%rsp)
  xor    %r15d,%r15d
  xor    %edi,%edi
  xor    %esi,%esi
  mov    0x90(%rsp),%r10
  mov    0x88(%rsp),%r9d
  xor    %ecx,%ecx
  jmp    L96
  nopl   0x0(%rax,%rax,1)
L37:
  add    %r14d,0x10(%rsp)
  add    %ebx,%r8d
  add    %r13d,0x14(%rsp)
L233:
  mov    0x50(%rsp),%ebx
  cmp    %eax,0x54(%rsp)
  lea    (%r9,%rbx,1),%edx
  cmovg  %edx,%r9d
  lea    0x1(%rax),%edx
  add    $0xc,%r10
  cmp    %eax,0x8(%rsp)
  je     L60
  mov    %edx,%eax
L96:
  xor    %edx,%edx
  test   %r9d,%r9d
  mov    0x18(%rsp),%rbx
  mov    %eax,%r11d
  cmovns %r9d,%edx
  add    0x3c(%rsp),%edx
  neg    %r11d
  movslq %edx,%rdx
  cmovs  %eax,%r11d
  mov    (%rbx,%rdx,4),%r14d
  mov    0x20(%rsp),%rbx
  mov    (%rbx,%rdx,4),%r13d
  mov    0x28(%rsp),%rbx
  mov    %r14d,(%r10)
  mov    (%rbx,%rdx,4),%ebx
  mov    0x38(%rsp),%edx
  mov    %r13d,0x4(%r10)
  sub    %r11d,%edx
  mov    %r14d,%r11d
  mov    %ebx,0x8(%r10)
  imul   %edx,%r11d
  add    %r11d,%ecx
  mov    %r13d,%r11d
  imul   %edx,%r11d
  imul   %ebx,%edx
  add    %r11d,%esi
  add    %edx,%edi
  test   %eax,%eax
  jg     L37
  add    %r14d,%r15d
  add    %r13d,%r12d
  add    %ebx,%ebp
  jmp    L233
  nopl   0x0(%rax)
L265:
  movl   $0x0,0x14(%rsp)
  xor    %r8d,%r8d
  xor    %ebp,%ebp
  xor    %r12d,%r12d
  movl   $0x0,0x10(%rsp)
  xor    %r15d,%r15d
  xor    %edi,%edi
  xor    %esi,%esi
  xor    %ecx,%ecx
  nopl   0x0(%rax)
L60:
  mov    0x8c(%rsp),%eax
  test   %eax,%eax
  jle    L131
  mov    0x30(%rsp),%rax
  mov    0x48(%rsp),%rbx
  mov    0x8(%rsp),%r14d
  lea    (%rax,%rbx,4),%r11
  mov    0x38(%rsp),%ebx
  mov    0x60(%rsp),%rax
  mov    %ebx,%r13d
  mov    %rax,0x40(%rsp)
  mov    %r8d,%ebx
  jmp    L3
  nopl   0x0(%rax,%rax,1)
L181:
  mov    0x40(%rsp),%rdx
  mov    (%rdx),%edx
L138:
  mov    0x18(%rsp),%r8
  add    0x3c(%rsp),%edx
  add    $0x1,%r13d
  movslq %edx,%rdx
  addq   $0x4,0x40(%rsp)
  add    0x68(%rsp),%r11
  mov    (%r8,%rdx,4),%r10d
  mov    0x20(%rsp),%r8
  mov    (%r8,%rdx,4),%r9d
  mov    0x28(%rsp),%r8
  mov    %r10d,(%rax)
  add    0x10(%rsp),%r10d
  mov    (%r8,%rdx,4),%r8d
  mov    %r9d,0x4(%rax)
  add    %r10d,%ecx
  add    0x14(%rsp),%r9d
  mov    %r8d,0x8(%rax)
  lea    0x1(%r14),%eax
  add    %ebx,%r8d
  mov    (%rsp),%rbx
  cltd
  add    %r9d,%esi
  add    %r8d,%edi
  idivl  0xc(%rsp)
  movslq %edx,%rax
  mov    %rax,%r14
  lea    (%rax,%rax,2),%rax
  lea    (%rbx,%rax,4),%rax
  mov    0x4(%rax),%ebx
  mov    (%rax),%edx
  mov    0x8(%rax),%eax
  sub    %ebx,%r9d
  add    %ebx,%r12d
  sub    %edx,%r10d
  mov    %r8d,%ebx
  mov    %r10d,0x10(%rsp)
  add    %edx,%r15d
  add    %eax,%ebp
  sub    %eax,%ebx
  mov    %r9d,0x14(%rsp)
  cmp    %r13d,0x70(%rsp)
  je     L131
L3:
  mov    0x58(%rsp),%r9
  movslq %ecx,%rax
  movslq %esi,%rdx
  sub    %r15d,%ecx
  sub    %r12d,%esi
  mov    (%r9,%rax,4),%eax
  mov    (%r9,%rdx,4),%edx
  shl    $0x10,%eax
  shl    $0x8,%edx
  or     %edx,%eax
  movslq %edi,%rdx
  sub    %ebp,%edi
  or     (%r9,%rdx,4),%eax
  mov    (%r11),%edx
  and    $0xff000000,%edx
  or     %edx,%eax
  mov    0xc(%rsp),%edx
  mov    %eax,(%r11)
  mov    %r14d,%eax
  sub    0x8(%rsp),%eax
  add    %edx,%eax
  mov    %edx,%r10d
  cltd
  idiv   %r10d
  movslq %edx,%rdx
  lea    (%rdx,%rdx,2),%rax
  mov    (%rsp),%rdx
  lea    (%rdx,%rax,4),%rax
  sub    (%rax),%r15d
  sub    0x4(%rax),%r12d
  sub    0x8(%rax),%ebp
  cmpq   $0x0,0x48(%rsp)
  jne    L181
  mov    0x54(%rsp),%edx
  mov    0x40(%rsp),%r10
  cmp    %edx,%r13d
  cmovle %r13d,%edx
  imul   0x50(%rsp),%edx
  mov    %edx,(%r10)
  jmp    L138
  nopw   0x0(%rax,%rax,1)
L131:
  addq   $0x1,0x48(%rsp)
  mov    0x48(%rsp),%rax
  cmp    %rax,0x80(%rsp)
  jne    L98
L239:
  mov    0x18(%rsp),%rdi
  call   <free@plt>
  mov    0x20(%rsp),%rdi
  call   <free@plt>
  mov    0x28(%rsp),%rdi
  call   <free@plt>
  mov    0x60(%rsp),%rdi
  call   <free@plt>
  mov    0x58(%rsp),%rdi
  call   <free@plt>
  mov    (%rsp),%rdi
  call   <free@plt>
  mov    0x30(%rsp),%rax
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L180:
  movl   $0x0,0x10(%rsp)
  xor    %ecx,%ecx
  xor    %ebp,%ebp
  xor    %r12d,%r12d
  xor    %r15d,%r15d
  xor    %r11d,%r11d
  xor    %r10d,%r10d
  xor    %r9d,%r9d
  movl   $0x0,0x80(%rsp)
  jmp    L71
```

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