user: Converte this assembly snippet into its equivalent C code:

```asm
<StackBlur>:
  endbr64
  push   %r15
  movslq %esi,%r15
  push   %r14
  lea    -0x1(%r15),%eax
  mov    %edx,%r14d
  push   %r13
  mov    %ecx,%r13d
  push   %r12
  push   %rbp
  mov    %r15d,%ebp
  imul   %edx,%ebp
  push   %rbx
  lea    (%rcx,%rcx,1),%ebx
  sub    $0xc8,%rsp
  movslq %ebp,%rbp
  shl    $0x2,%rbp
  mov    %eax,0x98(%rsp)
  lea    -0x1(%rdx),%eax
  mov    %rdi,0x50(%rsp)
  mov    %rbp,%rdi
  mov    %eax,0x2c(%rsp)
  lea    0x1(%rbx),%eax
  mov    %ecx,0x8(%rsp)
  mov    %edx,0xb8(%rsp)
  mov    %r15d,0x94(%rsp)
  mov    %eax,0xc(%rsp)
  call   <malloc@plt>
  mov    %rbp,%rdi
  mov    %rax,0x30(%rsp)
  call   <malloc@plt>
  mov    %rbp,%rdi
  mov    %rax,0x18(%rsp)
  call   <malloc@plt>
  movslq %r14d,%rdi
  cmp    %edi,%r15d
  mov    %rax,0x20(%rsp)
  cmovge %r15,%rdi
  add    $0x2,%ebx
  sar    %ebx
  imul   %ebx,%ebx
  shl    $0x2,%rdi
  call   <malloc@plt>
  mov    %rax,0x40(%rsp)
  lea    0x1(%r13),%eax
  mov    %ebx,%ebp
  mov    %eax,0x28(%rsp)
  shl    $0x8,%ebp
  movslq %ebp,%rbp
  lea    0x0(,%rbp,4),%rdi
  call   <malloc@plt>
  xor    %ecx,%ecx
  mov    %rax,0x60(%rsp)
  mov    %rax,%rsi
  test   %ebx,%ebx
  je     L189
  nopl   0x0(%rax)
L77:
  mov    %ecx,%eax
  cltd
  idiv   %ebx
  mov    %eax,(%rsi,%rcx,4)
  add    $0x1,%rcx
  cmp    %rbp,%rcx
  jne    L77
L189:
  mov    0xc(%rsp),%eax
  lea    (%rax,%rax,2),%edi
  movslq %edi,%rdi
  shl    $0x2,%rdi
  call   <malloc@plt>
  mov    0xb8(%rsp),%edi
  mov    %rax,0x10(%rsp)
  test   %edi,%edi
  jle    L229
  movslq 0x8(%rsp),%rsi
  movl   $0x0,0x68(%rsp)
  movl   $0x0,0x5c(%rsp)
  mov    %esi,%eax
  mov    %rsi,%rdi
  mov    %rsi,0xa0(%rsp)
  neg    %eax
  movl   $0x0,0x48(%rsp)
  mov    %eax,0xa8(%rsp)
  cltq
  add    %rsi,%rax
  mov    0x10(%rsp),%rsi
  lea    (%rax,%rax,2),%rax
  lea    (%rsi,%rax,4),%rax
  mov    %rax,0xb0(%rsp)
  xor    %eax,%eax
  test   %edi,%edi
  cmovle %edi,%eax
  mov    0x98(%rsp),%edi
  mov    %eax,0x90(%rsp)
  xor    %eax,%eax
  test   %edi,%edi
  cmovle %edi,%eax
  mov    %eax,0xbc(%rsp)
  mov    0x94(%rsp),%eax
  add    $0x1,%eax
  mov    %rax,0x88(%rsp)
  nopw   0x0(%rax,%rax,1)
L101:
  mov    0x8(%rsp),%edi
  mov    0xa8(%rsp),%eax
  cmp    %eax,%edi
  jl     L91
  test   %edi,%edi
  js     L199
  mov    0xbc(%rsp),%r14d
  xor    %ebp,%ebp
  xor    %r12d,%r12d
  xor    %r13d,%r13d
  add    0x5c(%rsp),%r14d
  mov    0x50(%rsp),%r15
  xor    %r8d,%r8d
  xor    %edi,%edi
  mov    0xb0(%rsp),%r10
  xor    %esi,%esi
  movslq %r14d,%r14
  nop
L84:
  mov    (%r15,%r14,4),%edx
  add    $0xc,%r10
  movzbl %dh,%ebx
  mov    %edx,%ecx
  movzbl %dl,%edx
  mov    %ebx,%r11d
  mov    %ebx,-0x8(%r10)
  sar    $0x10,%ecx
  mov    0x28(%rsp),%ebx
  movzbl %cl,%ecx
  mov    %edx,-0x4(%r10)
  add    %r11d,%r12d
  add    %edx,%ebp
  lea    (%rbx,%rax,1),%r9d
  mov    %ecx,%ebx
  mov    %ecx,-0xc(%r10)
  add    %ecx,%r13d
  imul   %r9d,%ebx
  add    $0x1,%eax
  add    %ebx,%esi
  mov    %r11d,%ebx
  imul   %r9d,%ebx
  imul   %edx,%r9d
  add    %ebx,%edi
  add    %r9d,%r8d
  cmp    0x90(%rsp),%eax
  jle    L84
  cmp    %eax,0x8(%rsp)
  jl     L19
L125:
  mov    0x10(%rsp),%rcx
  movslq %eax,%rdx
  mov    %ebp,0x70(%rsp)
  xor    %r14d,%r14d
  add    0xa0(%rsp),%rdx
  mov    %r12d,0x38(%rsp)
  xor    %r10d,%r10d
  lea    (%rdx,%rdx,2),%rdx
  mov    0x50(%rsp),%r15
  mov    %r13d,0x58(%rsp)
  lea    (%rcx,%rdx,4),%r11
  mov    0x98(%rsp),%r12d
  xor    %ecx,%ecx
  mov    %ecx,%r13d
  nopl   0x0(%rax)
L304:
  xor    %edx,%edx
  test   %eax,%eax
  mov    %eax,%ebp
  mov    0x28(%rsp),%r9d
  cmovns %eax,%edx
  cmp    %r12d,%edx
  cmovg  %r12d,%edx
  add    0x5c(%rsp),%edx
  movslq %edx,%rdx
  mov    (%r15,%rdx,4),%edx
  mov    %edx,%ecx
  movzbl %dh,%ebx
  movzbl %dl,%edx
  sar    $0x10,%ecx
  neg    %ebp
  mov    %ebx,0x4(%r11)
  cmovs  %eax,%ebp
  movzbl %cl,%ecx
  mov    %edx,0x8(%r11)
  add    %ebx,%r14d
  mov    %ecx,(%r11)
  add    %ecx,%r10d
  add    %edx,%r13d
  add    $0x1,%eax
  sub    %ebp,%r9d
  add    $0xc,%r11
  mov    %r9d,%ebp
  imul   %ecx,%ebp
  add    %ebp,%esi
  mov    %r9d,%ebp
  imul   %ebx,%ebp
  imul   %edx,%r9d
  add    %ebp,%edi
  add    %r9d,%r8d
  cmp    %eax,0x8(%rsp)
  jge    L304
  mov    %r13d,%ebx
  mov    0x58(%rsp),%r13d
  mov    0x70(%rsp),%ebp
  mov    %r14d,0x58(%rsp)
  mov    0x38(%rsp),%r12d
L323:
  mov    0x94(%rsp),%ecx
  test   %ecx,%ecx
  jle    L339
  movslq 0x5c(%rsp),%rax
  mov    0x30(%rsp),%rcx
  mov    $0x1,%r11d
  mov    0x8(%rsp),%r9d
  mov    0x60(%rsp),%r15
  shl    $0x2,%rax
  add    %rax,%rcx
  mov    %r9d,%r14d
  mov    %r10d,%r9d
  mov    %rcx,0x70(%rsp)
  mov    0x18(%rsp),%rcx
  add    %rax,%rcx
  add    0x20(%rsp),%rax
  mov    %rcx,0x80(%rsp)
  mov    %rax,0x78(%rsp)
  jmp    L355
  cs nopw 0x0(%rax,%rax,1)
L262:
  mov    0x40(%rsp),%rsi
  mov    -0x4(%rsi,%r11,4),%edx
L397:
  mov    0x50(%rsp),%rsi
  add    0x68(%rsp),%edx
  add    $0x1,%r11
  movslq %edx,%rdx
  mov    (%rsi,%rdx,4),%ecx
  mov    %ecx,%edx
  movzbl %ch,%esi
  movzbl %cl,%ecx
  sar    $0x10,%edx
  mov    %esi,0x4(%rax)
  mov    %esi,%r10d
  mov    0x38(%rsp),%esi
  movzbl %dl,%edx
  mov    %ecx,0x8(%rax)
  add    %ebx,%ecx
  mov    0x10(%rsp),%rbx
  mov    %edx,(%rax)
  lea    0x1(%r14),%eax
  add    %edx,%r9d
  add    0x58(%rsp),%r10d
  cltd
  add    %r10d,%edi
  add    %ecx,%r8d
  add    %r9d,%esi
  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,%r10d
  add    %ebx,%r12d
  add    %edx,%r13d
  sub    %edx,%r9d
  sub    %eax,%ecx
  mov    %r10d,0x58(%rsp)
  add    %eax,%ebp
  mov    %ecx,%ebx
  cmp    %r11,0x88(%rsp)
  je     L370
L355:
  movslq %esi,%rax
  mov    0x70(%rsp),%rcx
  sub    %r13d,%esi
  mov    (%r15,%rax,4),%eax
  mov    %esi,0x38(%rsp)
  mov    0xc(%rsp),%esi
  mov    %eax,-0x4(%rcx,%r11,4)
  movslq %edi,%rax
  mov    0x80(%rsp),%rcx
  sub    %r12d,%edi
  mov    (%r15,%rax,4),%eax
  mov    %eax,-0x4(%rcx,%r11,4)
  movslq %r8d,%rax
  mov    0x78(%rsp),%rcx
  sub    %ebp,%r8d
  mov    (%r15,%rax,4),%eax
  mov    %eax,-0x4(%rcx,%r11,4)
  mov    %r14d,%eax
  sub    0x8(%rsp),%eax
  add    %esi,%eax
  cltd
  idiv   %esi
  mov    0x10(%rsp),%rsi
  movslq %edx,%rdx
  lea    (%rdx,%rdx,2),%rax
  mov    0x48(%rsp),%edx
  lea    (%rsi,%rax,4),%rax
  sub    (%rax),%r13d
  sub    0x4(%rax),%r12d
  sub    0x8(%rax),%ebp
  test   %edx,%edx
  jne    L262
  mov    0x8(%rsp),%esi
  mov    0x40(%rsp),%rcx
  lea    (%rsi,%r11,1),%edx
  mov    0x98(%rsp),%esi
  cmp    %esi,%edx
  cmovg  %esi,%edx
  mov    %edx,-0x4(%rcx,%r11,4)
  jmp    L397
  nopw   0x0(%rax,%rax,1)
L370:
  mov    0x94(%rsp),%edi
  add    %edi,0x5c(%rsp)
L339:
  addl   $0x1,0x48(%rsp)
  mov    0x94(%rsp),%edi
  mov    0x48(%rsp),%eax
  add    %edi,0x68(%rsp)
  cmp    %eax,0xb8(%rsp)
  jne    L101
L229:
  mov    0x94(%rsp),%esi
  test   %esi,%esi
  jle    L105
  mov    0x8(%rsp),%eax
  neg    %eax
  mov    %eax,%r14d
  mov    %eax,0x90(%rsp)
  mov    0x94(%rsp),%eax
  imul   %eax,%r14d
  cmp    $0x1,%eax
  jne    L131
  movslq 0x8(%rsp),%rax
  cmp    %r14d,%eax
  jl     L209
  test   %r14d,%r14d
  jg     L149
  xor    %ebp,%ebp
  test   %eax,%eax
  mov    %rax,%rdi
  mov    %rax,0xa0(%rsp)
  cmovle %eax,%ebp
  movslq %r14d,%rax
  xor    %r15d,%r15d
  xor    %r12d,%r12d
  add    %rdi,%rax
  mov    0x10(%rsp),%rdi
  xor    %r13d,%r13d
  xor    %ecx,%ecx
  lea    (%rax,%rax,2),%rax
  xor    %r8d,%r8d
  xor    %r9d,%r9d
  lea    (%rdi,%rax,4),%rsi
  mov    %r14d,%eax
  nopw   0x0(%rax,%rax,1)
L290:
  xor    %edx,%edx
  test   %eax,%eax
  mov    0x30(%rsp),%rdi
  mov    0x28(%rsp),%ebx
  cmovns %eax,%edx
  movslq %edx,%rdx
  mov    (%rdi,%rdx,4),%r11d
  mov    0x18(%rsp),%rdi
  mov    (%rdi,%rdx,4),%r10d
  mov    0x20(%rsp),%rdi
  movd   %r11d,%xmm0
  add    %r11d,%r13d
  mov    (%rdi,%rdx,4),%edi
  lea    (%rbx,%r14,1),%edx
  movd   %r10d,%xmm1
  add    %r10d,%r12d
  mov    %edx,%ebx
  punpckldq %xmm1,%xmm0
  imul   %r11d,%ebx
  add    %edi,%r15d
  mov    %edi,0x8(%rsi)
  movq   %xmm0,(%rsi)
  add    %ebx,%r9d
  mov    %edx,%ebx
  imul   %r10d,%ebx
  imul   %edi,%edx
  add    %ebx,%r8d
  add    %edx,%ecx
  cmp    %r14d,0x2c(%rsp)
  lea    0x1(%rax),%edx
  cmovg  %edx,%eax
  add    $0x1,%r14d
  add    $0xc,%rsi
  cmp    %ebp,%r14d
  jle    L290
  cmp    %r14d,0x8(%rsp)
  jl     L244
L155:
  mov    0x10(%rsp),%rdi
  movslq %r14d,%rdx
  mov    %r15d,0x58(%rsp)
  xor    %ebx,%ebx
  add    0xa0(%rsp),%rdx
  mov    0x30(%rsp),%r15
  mov    %r12d,0x38(%rsp)
  lea    (%rdx,%rdx,2),%rdx
  mov    %r13d,0x48(%rsp)
  lea    (%rdi,%rdx,4),%rsi
  xor    %edx,%edx
  xor    %edi,%edi
  mov    %edi,%r12d
  mov    %edx,%r13d
  nopl   0x0(%rax)
L428:
  xor    %edx,%edx
  test   %eax,%eax
  mov    0x18(%rsp),%rdi
  mov    %r14d,%ebp
  cmovns %eax,%edx
  neg    %ebp
  cmovs  %r14d,%ebp
  movslq %edx,%rdx
  mov    (%rdi,%rdx,4),%r10d
  mov    0x20(%rsp),%rdi
  mov    (%r15,%rdx,4),%r11d
  mov    (%rdi,%rdx,4),%edi
  mov    0x28(%rsp),%edx
  movd   %r10d,%xmm2
  add    %r10d,%r12d
  movd   %r11d,%xmm0
  add    %r11d,%ebx
  sub    %ebp,%edx
  mov    %r11d,%ebp
  punpckldq %xmm2,%xmm0
  add    %edi,%r13d
  imul   %edx,%ebp
  mov    %edi,0x8(%rsi)
  movq   %xmm0,(%rsi)
  add    %ebp,%r9d
  mov    %edx,%ebp
  imul   %r10d,%ebp
  imul   %edi,%edx
  add    %ebp,%r8d
  add    %edx,%ecx
  cmp    0x2c(%rsp),%r14d
  lea    0x1(%rax),%edx
  cmovl  %edx,%eax
  add    $0x1,%r14d
  add    $0xc,%rsi
  cmp    %r14d,0x8(%rsp)
  jge    L428
  mov    %r13d,0x28(%rsp)
  mov    %r12d,%edx
  mov    0x58(%rsp),%r15d
  mov    0x38(%rsp),%r12d
  mov    0x48(%rsp),%r13d
L160:
  mov    0xb8(%rsp),%eax
  test   %eax,%eax
  jle    L105
  add    $0x1,%eax
  mov    0x8(%rsp),%esi
  mov    0x50(%rsp),%r14
  mov    %edx,%r10d
  mov    %rax,0x38(%rsp)
  mov    $0x1,%edi
  mov    %ebx,%r11d
  mov    %esi,%ebp
  nopl   0x0(%rax)
L312:
  mov    0x60(%rsp),%rbx
  mov    -0x4(%r14,%rdi,4),%eax
  movslq %ecx,%rdx
  sub    %r15d,%ecx
  mov    0xc(%rsp),%esi
  mov    %ecx,0x58(%rsp)
  and    $0xff000000,%eax
  or     (%rbx,%rdx,4),%eax
  movslq %r9d,%rdx
  sub    %r13d,%r9d
  mov    (%rbx,%rdx,4),%edx
  mov    0x20(%rsp),%rcx
  shl    $0x10,%edx
  or     %edx,%eax
  movslq %r8d,%rdx
  sub    %r12d,%r8d
  mov    (%rbx,%rdx,4),%edx
  mov    0x8(%rsp),%ebx
  shl    $0x8,%edx
  or     %edx,%eax
  mov    %eax,-0x4(%r14,%rdi,4)
  mov    %ebp,%eax
  sub    %ebx,%eax
  add    %esi,%eax
  cltd
  idiv   %esi
  lea    (%rbx,%rdi,1),%esi
  mov    0x2c(%rsp),%ebx
  movslq %edx,%rdx
  lea    (%rdx,%rdx,2),%rax
  mov    0x10(%rsp),%rdx
  lea    (%rdx,%rax,4),%rax
  sub    (%rax),%r13d
  sub    0x4(%rax),%r12d
  sub    0x8(%rax),%r15d
  cmp    %ebx,%esi
  cmovg  %ebx,%esi
  mov    0x40(%rsp),%rbx
  mov    %esi,-0x4(%rbx,%rdi,4)
  mov    0x30(%rsp),%rbx
  movslq %esi,%rsi
  add    $0x1,%rdi
  mov    (%rbx,%rsi,4),%edx
  mov    0x18(%rsp),%rbx
  mov    (%rbx,%rsi,4),%ebx
  movd   %edx,%xmm0
  mov    (%rcx,%rsi,4),%esi
  add    %edx,%r11d
  mov    0x58(%rsp),%ecx
  add    %r11d,%r9d
  movd   %ebx,%xmm3
  mov    %esi,0x8(%rax)
  add    %ebx,%r10d
  add    0x28(%rsp),%esi
  punpckldq %xmm3,%xmm0
  add    %esi,%ecx
  add    %r10d,%r8d
  movq   %xmm0,(%rax)
  lea    0x1(%rbp),%eax
  cltd
  idivl  0xc(%rsp)
  movslq %edx,%rax
  mov    0x10(%rsp),%rdx
  mov    %rax,%rbp
  lea    (%rax,%rax,2),%rax
  lea    (%rdx,%rax,4),%rax
  mov    (%rax),%edx
  mov    0x4(%rax),%ebx
  mov    0x8(%rax),%eax
  add    %edx,%r13d
  add    %ebx,%r12d
  sub    %edx,%r11d
  sub    %ebx,%r10d
  sub    %eax,%esi
  add    %eax,%r15d
  mov    %esi,0x28(%rsp)
  cmp    %rdi,0x38(%rsp)
  jne    L312
L105:
  mov    0x30(%rsp),%rdi
  call   <free@plt>
  mov    0x18(%rsp),%rdi
  call   <free@plt>
  mov    0x20(%rsp),%rdi
  call   <free@plt>
  mov    0x40(%rsp),%rdi
  call   <free@plt>
  mov    0x60(%rsp),%rdi
  call   <free@plt>
  mov    0x10(%rsp),%rdi
  call   <free@plt>
  mov    0x50(%rsp),%rax
  add    $0xc8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L199:
  xor    %ebp,%ebp
  xor    %r12d,%r12d
  xor    %r13d,%r13d
  xor    %r8d,%r8d
  xor    %edi,%edi
  xor    %esi,%esi
  jmp    L125
  nopl   0x0(%rax)
L149:
  movslq 0x8(%rsp),%rdi
  mov    %r14d,%eax
  xor    %r15d,%r15d
  xor    %r12d,%r12d
  xor    %r13d,%r13d
  xor    %ecx,%ecx
  xor    %r8d,%r8d
  xor    %r9d,%r9d
  mov    %rdi,0xa0(%rsp)
  jmp    L155
  cs nopw 0x0(%rax,%rax,1)
L19:
  movl   $0x0,0x58(%rsp)
  xor    %ebx,%ebx
  xor    %r10d,%r10d
  jmp    L323
  nopw   0x0(%rax,%rax,1)
L244:
  movl   $0x0,0x28(%rsp)
  xor    %edx,%edx
  xor    %ebx,%ebx
  jmp    L160
  nopl   0x0(%rax)
L91:
  movl   $0x0,0x58(%rsp)
  xor    %ebx,%ebx
  xor    %r10d,%r10d
  xor    %ebp,%ebp
  xor    %r12d,%r12d
  xor    %r13d,%r13d
  xor    %r8d,%r8d
  xor    %edi,%edi
  xor    %esi,%esi
  jmp    L323
L209:
  movl   $0x0,0x28(%rsp)
  xor    %edx,%edx
  xor    %ebx,%ebx
  xor    %r15d,%r15d
  xor    %r12d,%r12d
  xor    %r13d,%r13d
  xor    %ecx,%ecx
  xor    %r8d,%r8d
  xor    %r9d,%r9d
  jmp    L160
L131:
  movslq 0x8(%rsp),%rcx
  movslq %eax,%rsi
  movslq 0x90(%rsp),%rax
  movq   $0x0,0x68(%rsp)
  mov    %rsi,0x98(%rsp)
  mov    %rcx,%rdi
  add    %rcx,%rax
  mov    %rcx,0xa8(%rsp)
  mov    0x10(%rsp),%rcx
  lea    (%rax,%rax,2),%rax
  mov    %r14d,0x88(%rsp)
  lea    (%rcx,%rax,4),%rax
  mov    %rax,0xa0(%rsp)
  lea    0x0(,%rsi,4),%rax
  mov    %rax,0x70(%rsp)
  xor    %eax,%eax
  test   %edi,%edi
  cmovle %edi,%eax
  mov    %eax,0x78(%rsp)
  mov    0x28(%rsp),%eax
  add    0xb8(%rsp),%eax
  mov    %eax,0x80(%rsp)
  nopl   0x0(%rax)
L205:
  mov    0x68(%rsp),%eax
  mov    0x8(%rsp),%edi
  mov    %eax,0x58(%rsp)
  mov    0x90(%rsp),%eax
  cmp    %edi,%eax
  jg     L64
  test   %edi,%edi
  js     L27
  mov    0xa0(%rsp),%r9
  xor    %ebp,%ebp
  xor    %r12d,%r12d
  xor    %r15d,%r15d
  mov    0x88(%rsp),%edx
  mov    0x28(%rsp),%r14d
  xor    %edi,%edi
  xor    %esi,%esi
  xor    %ecx,%ecx
  nopl   (%rax)
L415:
  xor    %r8d,%r8d
  test   %edx,%edx
  mov    0x18(%rsp),%r10
  mov    0x30(%rsp),%rbx
  cmovns %edx,%r8d
  add    0x58(%rsp),%r8d
  movslq %r8d,%r8
  mov    (%rbx,%r8,4),%ebx
  mov    (%r10,%r8,4),%r11d
  mov    0x20(%rsp),%r10
  mov    %ebx,%r13d
  movd   %ebx,%xmm0
  add    %ebx,%r15d
  add    %r11d,%r12d
  mov    (%r10,%r8,4),%r10d
  lea    (%r14,%rax,1),%r8d
  mov    0x94(%rsp),%ebx
  movd   %r11d,%xmm4
  imul   %r8d,%r13d
  punpckldq %xmm4,%xmm0
  add    %r10d,%ebp
  mov    %r10d,0x8(%r9)
  movq   %xmm0,(%r9)
  add    %r13d,%ecx
  mov    %r11d,%r13d
  imul   %r8d,%r13d
  imul   %r10d,%r8d
  add    %r13d,%esi
  add    %r8d,%edi
  cmp    %eax,0x2c(%rsp)
  lea    (%rbx,%rdx,1),%r8d
  cmovg  %r8d,%edx
  add    $0x1,%eax
  add    $0xc,%r9
  cmp    0x78(%rsp),%eax
  jle    L415
  cmp    %eax,0x8(%rsp)
  jl     L254
L148:
  mov    0x10(%rsp),%rbx
  movslq %eax,%r8
  mov    %r12d,0x48(%rsp)
  xor    %r13d,%r13d
  add    0xa8(%rsp),%r8
  mov    %ebp,0x5c(%rsp)
  xor    %r14d,%r14d
  xor    %r10d,%r10d
  mov    %r15d,0x38(%rsp)
  lea    (%r8,%r8,2),%r8
  mov    0x94(%rsp),%r15d
  lea    (%rbx,%r8,4),%r9
  nopw   0x0(%rax,%rax,1)
L410:
  xor    %r8d,%r8d
  test   %edx,%edx
  mov    0x30(%rsp),%rbx
  mov    %eax,%r12d
  cmovns %edx,%r8d
  add    0x58(%rsp),%r8d
  mov    0x20(%rsp),%r11
  neg    %r12d
  movslq %r8d,%r8
  cmovs  %eax,%r12d
  mov    (%rbx,%r8,4),%ebp
  mov    0x18(%rsp),%rbx
  mov    (%r11,%r8,4),%r11d
  mov    (%rbx,%r8,4),%ebx
  mov    0x28(%rsp),%r8d
  movd   %ebp,%xmm0
  add    %ebp,%r10d
  add    %r11d,%r13d
  mov    %r11d,0x8(%r9)
  sub    %r12d,%r8d
  movd   %ebx,%xmm5
  add    %ebx,%r14d
  mov    %r8d,%r12d
  punpckldq %xmm5,%xmm0
  imul   %ebp,%r12d
  movq   %xmm0,(%r9)
  add    %r12d,%ecx
  mov    %r8d,%r12d
  imul   %ebx,%r12d
  imul   %r11d,%r8d
  add    %r12d,%esi
  add    %r8d,%edi
  cmp    %eax,0x2c(%rsp)
  lea    (%r15,%rdx,1),%r8d
  cmovg  %r8d,%edx
  add    $0x1,%eax
  add    $0xc,%r9
  cmp    %eax,0x8(%rsp)
  jge    L410
  mov    0x38(%rsp),%r15d
  mov    0x48(%rsp),%r12d
  mov    %r13d,0x38(%rsp)
  mov    %r14d,%edx
  mov    0x5c(%rsp),%ebp
L39:
  mov    0xb8(%rsp),%eax
  test   %eax,%eax
  jle    L295
  mov    0x50(%rsp),%rax
  mov    0x68(%rsp),%rbx
  mov    %edx,%r9d
  mov    0x8(%rsp),%r14d
  lea    (%rax,%rbx,4),%r11
  mov    0x40(%rsp),%rax
  mov    0x28(%rsp),%ebx
  mov    %rax,0x48(%rsp)
  mov    %ebx,%r13d
  jmp    L252
  nopl   (%rax)
L387:
  mov    0x48(%rsp),%rbx
  mov    (%rbx),%edx
L29:
  mov    0x30(%rsp),%rbx
  add    0x58(%rsp),%edx
  add    $0x1,%r13d
  movslq %edx,%rdx
  addq   $0x4,0x48(%rsp)
  add    0x70(%rsp),%r11
  mov    (%rbx,%rdx,4),%r8d
  mov    0x18(%rsp),%rbx
  mov    %r8d,0x5c(%rsp)
  mov    (%rbx,%rdx,4),%ebx
  movd   %r8d,%xmm0
  mov    0x20(%rsp),%r8
  add    0x5c(%rsp),%r10d
  movd   %ebx,%xmm6
  add    %ebx,%r9d
  mov    0x10(%rsp),%rbx
  add    %r10d,%ecx
  mov    (%r8,%rdx,4),%r8d
  punpckldq %xmm6,%xmm0
  add    %r9d,%esi
  movq   %xmm0,(%rax)
  mov    %r8d,0x8(%rax)
  lea    0x1(%r14),%eax
  add    0x38(%rsp),%r8d
  cltd
  add    %r8d,%edi
  idivl  0xc(%rsp)
  movslq %edx,%rax
  mov    %rax,%r14
  lea    (%rax,%rax,2),%rax
  lea    (%rbx,%rax,4),%rax
  mov    (%rax),%edx
  mov    0x4(%rax),%ebx
  mov    0x8(%rax),%eax
  add    %edx,%r15d
  add    %ebx,%r12d
  sub    %edx,%r10d
  sub    %ebx,%r9d
  sub    %eax,%r8d
  add    %eax,%ebp
  mov    %r8d,0x38(%rsp)
  cmp    %r13d,0x80(%rsp)
  je     L295
L252:
  mov    0x60(%rsp),%rbx
  movslq %ecx,%rax
  movslq %esi,%rdx
  sub    %r15d,%ecx
  sub    %r12d,%esi
  mov    (%rbx,%rax,4),%eax
  mov    (%rbx,%rdx,4),%edx
  shl    $0x10,%eax
  shl    $0x8,%edx
  or     %edx,%eax
  movslq %edi,%rdx
  sub    %ebp,%edi
  or     (%rbx,%rdx,4),%eax
  mov    (%r11),%edx
  mov    0xc(%rsp),%ebx
  and    $0xff000000,%edx
  or     %edx,%eax
  mov    %eax,(%r11)
  mov    %r14d,%eax
  sub    0x8(%rsp),%eax
  add    %ebx,%eax
  cltd
  idiv   %ebx
  mov    0x10(%rsp),%rbx
  movslq %edx,%rdx
  lea    (%rdx,%rdx,2),%rax
  lea    (%rbx,%rax,4),%rax
  sub    (%rax),%r15d
  sub    0x4(%rax),%r12d
  sub    0x8(%rax),%ebp
  cmpq   $0x0,0x68(%rsp)
  jne    L387
  mov    0x2c(%rsp),%ebx
  cmp    %ebx,%r13d
  mov    %ebx,%edx
  mov    0x48(%rsp),%rbx
  cmovle %r13d,%edx
  imul   0x94(%rsp),%edx
  mov    %edx,(%rbx)
  jmp    L29
  nopl   0x0(%rax,%rax,1)
L295:
  addq   $0x1,0x68(%rsp)
  mov    0x68(%rsp),%rax
  cmp    %rax,0x98(%rsp)
  jne    L205
  jmp    L105
  cs nopw 0x0(%rax,%rax,1)
L27:
  mov    0x88(%rsp),%edx
  xor    %ebp,%ebp
  xor    %r12d,%r12d
  xor    %r15d,%r15d
  xor    %edi,%edi
  xor    %esi,%esi
  xor    %ecx,%ecx
  jmp    L148
L254:
  movl   $0x0,0x38(%rsp)
  xor    %edx,%edx
  xor    %r10d,%r10d
  jmp    L39
L64:
  movl   $0x0,0x38(%rsp)
  xor    %edx,%edx
  xor    %r10d,%r10d
  xor    %ebp,%ebp
  xor    %r12d,%r12d
  xor    %r15d,%r15d
  xor    %edi,%edi
  xor    %esi,%esi
  xor    %ecx,%ecx
  jmp    L39
```

assistant: ```c
int *StackBlur(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);
}
```