user: Demonstrate the C code that generates the assembly output below:

```asm
<blur_RGB_565>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xc0,%rsp
  mov    %rdi,-0xa8(%rbp)
  mov    %esi,-0xac(%rbp)
  mov    %edx,-0xb0(%rbp)
  mov    %ecx,-0xb4(%rbp)
  mov    -0xac(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x5c(%rbp)
  mov    -0xb0(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x58(%rbp)
  mov    -0xac(%rbp),%eax
  imul   -0xb0(%rbp),%eax
  mov    %eax,-0x54(%rbp)
  mov    -0xb4(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  mov    %eax,-0x50(%rbp)
  mov    -0x54(%rbp),%eax
  cltq
  add    %rax,%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x38(%rbp)
  mov    -0x54(%rbp),%eax
  cltq
  add    %rax,%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x30(%rbp)
  mov    -0x54(%rbp),%eax
  cltq
  add    %rax,%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0xb0(%rbp),%edx
  mov    -0xac(%rbp),%eax
  cmp    %eax,%edx
  cmovge %edx,%eax
  cltq
  shl    $0x2,%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x20(%rbp)
  mov    -0x50(%rbp),%eax
  add    $0x1,%eax
  sar    %eax
  mov    %eax,-0x4c(%rbp)
  mov    -0x4c(%rbp),%eax
  imul   %eax,%eax
  mov    %eax,-0x4c(%rbp)
  mov    -0x4c(%rbp),%eax
  shl    $0x8,%eax
  cltq
  add    %rax,%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
  movl   $0x0,-0x88(%rbp)
  jmp    L136
L76:
  mov    -0x88(%rbp),%eax
  cltd
  idivl  -0x4c(%rbp)
  mov    %eax,%edx
  mov    -0x88(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    %dx,(%rax)
  addl   $0x1,-0x88(%rbp)
L136:
  mov    -0x4c(%rbp),%eax
  shl    $0x8,%eax
  cmp    %eax,-0x88(%rbp)
  jl     L76
  movl   $0x0,-0x80(%rbp)
  mov    -0x80(%rbp),%eax
  mov    %eax,-0x7c(%rbp)
  mov    -0x50(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  shl    $0x2,%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0xb4(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x48(%rbp)
  movl   $0x0,-0x8c(%rbp)
  jmp    L121
L208:
  movl   $0x0,-0x94(%rbp)
  mov    -0x94(%rbp),%eax
  mov    %eax,-0x98(%rbp)
  mov    -0x98(%rbp),%eax
  mov    %eax,-0x9c(%rbp)
  mov    -0x9c(%rbp),%eax
  mov    %eax,-0x6c(%rbp)
  mov    -0x6c(%rbp),%eax
  mov    %eax,-0x70(%rbp)
  mov    -0x70(%rbp),%eax
  mov    %eax,-0x74(%rbp)
  mov    -0x74(%rbp),%eax
  mov    %eax,-0x60(%rbp)
  mov    -0x60(%rbp),%eax
  mov    %eax,-0x64(%rbp)
  mov    -0x64(%rbp),%eax
  mov    %eax,-0x68(%rbp)
  mov    -0xb4(%rbp),%eax
  neg    %eax
  mov    %eax,-0x88(%rbp)
  jmp    L167
L8:
  mov    -0x88(%rbp),%eax
  mov    $0x0,%edx
  test   %eax,%eax
  cmovns %eax,%edx
  mov    -0x5c(%rbp),%eax
  cmp    %eax,%edx
  cmovg  %eax,%edx
  mov    -0x80(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  cwtl
  mov    %eax,-0x40(%rbp)
  mov    -0x88(%rbp),%edx
  mov    -0xb4(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  mov    %rax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x40(%rbp),%eax
  sar    $0xb,%eax
  shl    $0x3,%eax
  movzbl %al,%edx
  mov    -0x8(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x40(%rbp),%eax
  sar    $0x5,%eax
  lea    0x0(,%rax,4),%ecx
  mov    -0x8(%rbp),%rax
  lea    0x4(%rax),%rdx
  movzbl %cl,%eax
  mov    %eax,(%rdx)
  mov    -0x40(%rbp),%eax
  lea    0x0(,%rax,8),%ecx
  mov    -0x8(%rbp),%rax
  lea    0x8(%rax),%rdx
  movzbl %cl,%eax
  mov    %eax,(%rdx)
  mov    -0x88(%rbp),%eax
  mov    %eax,%edx
  neg    %edx
  cmovs  %eax,%edx
  mov    -0x48(%rbp),%eax
  sub    %edx,%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x8(%rbp),%rax
  mov    (%rax),%eax
  imul   -0x3c(%rbp),%eax
  add    %eax,-0x9c(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  imul   -0x3c(%rbp),%eax
  add    %eax,-0x98(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  imul   -0x3c(%rbp),%eax
  add    %eax,-0x94(%rbp)
  cmpl   $0x0,-0x88(%rbp)
  jle    L34
  mov    -0x8(%rbp),%rax
  mov    (%rax),%eax
  add    %eax,-0x68(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  add    %eax,-0x64(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  add    %eax,-0x60(%rbp)
  jmp    L132
L34:
  mov    -0x8(%rbp),%rax
  mov    (%rax),%eax
  add    %eax,-0x74(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  add    %eax,-0x70(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  add    %eax,-0x6c(%rbp)
L132:
  addl   $0x1,-0x88(%rbp)
L167:
  mov    -0x88(%rbp),%eax
  cmp    -0xb4(%rbp),%eax
  jle    L8
  mov    -0xb4(%rbp),%eax
  mov    %eax,-0x78(%rbp)
  movl   $0x0,-0x90(%rbp)
  jmp    L25
L30:
  mov    -0x9c(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    -0x80(%rbp),%edx
  movslq %edx,%rdx
  lea    (%rdx,%rdx,1),%rcx
  mov    -0x38(%rbp),%rdx
  add    %rcx,%rdx
  movzwl (%rax),%eax
  mov    %ax,(%rdx)
  mov    -0x98(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    -0x80(%rbp),%edx
  movslq %edx,%rdx
  lea    (%rdx,%rdx,1),%rcx
  mov    -0x30(%rbp),%rdx
  add    %rcx,%rdx
  movzwl (%rax),%eax
  mov    %ax,(%rdx)
  mov    -0x94(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    -0x80(%rbp),%edx
  movslq %edx,%rdx
  lea    (%rdx,%rdx,1),%rcx
  mov    -0x28(%rbp),%rdx
  add    %rcx,%rdx
  movzwl (%rax),%eax
  mov    %ax,(%rdx)
  mov    -0x74(%rbp),%eax
  sub    %eax,-0x9c(%rbp)
  mov    -0x70(%rbp),%eax
  sub    %eax,-0x98(%rbp)
  mov    -0x6c(%rbp),%eax
  sub    %eax,-0x94(%rbp)
  mov    -0x78(%rbp),%eax
  sub    -0xb4(%rbp),%eax
  mov    %eax,%edx
  mov    -0x50(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x44(%rbp)
  mov    -0x44(%rbp),%eax
  cltd
  idivl  -0x50(%rbp)
  mov    %edx,%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  mov    %rax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    (%rax),%eax
  sub    %eax,-0x74(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  sub    %eax,-0x70(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  sub    %eax,-0x6c(%rbp)
  cmpl   $0x0,-0x8c(%rbp)
  jne    L113
  mov    -0x90(%rbp),%edx
  mov    -0xb4(%rbp),%eax
  add    %edx,%eax
  lea    0x1(%rax),%edx
  mov    -0x90(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x20(%rbp),%rax
  add    %rax,%rcx
  mov    -0x5c(%rbp),%eax
  cmp    %eax,%edx
  cmovle %edx,%eax
  mov    %eax,(%rcx)
L113:
  mov    -0x90(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x7c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  cwtl
  mov    %eax,-0x40(%rbp)
  mov    -0x40(%rbp),%eax
  sar    $0xb,%eax
  shl    $0x3,%eax
  movzbl %al,%edx
  mov    -0x8(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x40(%rbp),%eax
  sar    $0x5,%eax
  lea    0x0(,%rax,4),%ecx
  mov    -0x8(%rbp),%rax
  lea    0x4(%rax),%rdx
  movzbl %cl,%eax
  mov    %eax,(%rdx)
  mov    -0x40(%rbp),%eax
  lea    0x0(,%rax,8),%ecx
  mov    -0x8(%rbp),%rax
  lea    0x8(%rax),%rdx
  movzbl %cl,%eax
  mov    %eax,(%rdx)
  mov    -0x8(%rbp),%rax
  mov    (%rax),%eax
  add    %eax,-0x68(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  add    %eax,-0x64(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  add    %eax,-0x60(%rbp)
  mov    -0x68(%rbp),%eax
  add    %eax,-0x9c(%rbp)
  mov    -0x64(%rbp),%eax
  add    %eax,-0x98(%rbp)
  mov    -0x60(%rbp),%eax
  add    %eax,-0x94(%rbp)
  mov    -0x78(%rbp),%eax
  add    $0x1,%eax
  cltd
  idivl  -0x50(%rbp)
  mov    %edx,-0x78(%rbp)
  mov    -0x78(%rbp),%eax
  cltd
  idivl  -0x50(%rbp)
  mov    %edx,%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  mov    %rax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    (%rax),%eax
  add    %eax,-0x74(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  add    %eax,-0x70(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  add    %eax,-0x6c(%rbp)
  mov    -0x8(%rbp),%rax
  mov    (%rax),%eax
  sub    %eax,-0x68(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  sub    %eax,-0x64(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  sub    %eax,-0x60(%rbp)
  addl   $0x1,-0x80(%rbp)
  addl   $0x1,-0x90(%rbp)
L25:
  mov    -0x90(%rbp),%eax
  cmp    -0xac(%rbp),%eax
  jl     L30
  mov    -0xac(%rbp),%eax
  add    %eax,-0x7c(%rbp)
  addl   $0x1,-0x8c(%rbp)
L121:
  mov    -0x8c(%rbp),%eax
  cmp    -0xb0(%rbp),%eax
  jl     L208
  movl   $0x0,-0x90(%rbp)
  jmp    L101
L44:
  movl   $0x0,-0x94(%rbp)
  mov    -0x94(%rbp),%eax
  mov    %eax,-0x98(%rbp)
  mov    -0x98(%rbp),%eax
  mov    %eax,-0x9c(%rbp)
  mov    -0x9c(%rbp),%eax
  mov    %eax,-0x6c(%rbp)
  mov    -0x6c(%rbp),%eax
  mov    %eax,-0x70(%rbp)
  mov    -0x70(%rbp),%eax
  mov    %eax,-0x74(%rbp)
  mov    -0x74(%rbp),%eax
  mov    %eax,-0x60(%rbp)
  mov    -0x60(%rbp),%eax
  mov    %eax,-0x64(%rbp)
  mov    -0x64(%rbp),%eax
  mov    %eax,-0x68(%rbp)
  mov    -0xb4(%rbp),%eax
  neg    %eax
  mov    %eax,%edx
  mov    -0xac(%rbp),%eax
  imul   %edx,%eax
  mov    %eax,-0x84(%rbp)
  mov    -0xb4(%rbp),%eax
  neg    %eax
  mov    %eax,-0x88(%rbp)
  jmp    L31
L204:
  mov    -0x84(%rbp),%eax
  mov    $0x0,%edx
  test   %eax,%eax
  cmovns %eax,%edx
  mov    -0x90(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x80(%rbp)
  mov    -0x88(%rbp),%edx
  mov    -0xb4(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  mov    %rax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x80(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x8(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x80(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  mov    -0x8(%rbp),%rdx
  add    $0x4,%rdx
  cwtl
  mov    %eax,(%rdx)
  mov    -0x80(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  mov    -0x8(%rbp),%rdx
  add    $0x8,%rdx
  cwtl
  mov    %eax,(%rdx)
  mov    -0x88(%rbp),%eax
  mov    %eax,%edx
  neg    %edx
  cmovs  %eax,%edx
  mov    -0x48(%rbp),%eax
  sub    %edx,%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x80(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  cwtl
  imul   -0x3c(%rbp),%eax
  add    %eax,-0x9c(%rbp)
  mov    -0x80(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  cwtl
  imul   -0x3c(%rbp),%eax
  add    %eax,-0x98(%rbp)
  mov    -0x80(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  cwtl
  imul   -0x3c(%rbp),%eax
  add    %eax,-0x94(%rbp)
  cmpl   $0x0,-0x88(%rbp)
  jle    L166
  mov    -0x8(%rbp),%rax
  mov    (%rax),%eax
  add    %eax,-0x68(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  add    %eax,-0x64(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  add    %eax,-0x60(%rbp)
  jmp    L84
L166:
  mov    -0x8(%rbp),%rax
  mov    (%rax),%eax
  add    %eax,-0x74(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  add    %eax,-0x70(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  add    %eax,-0x6c(%rbp)
L84:
  mov    -0x88(%rbp),%eax
  cmp    -0x58(%rbp),%eax
  jge    L150
  mov    -0xac(%rbp),%eax
  add    %eax,-0x84(%rbp)
L150:
  addl   $0x1,-0x88(%rbp)
L31:
  mov    -0x88(%rbp),%eax
  cmp    -0xb4(%rbp),%eax
  jle    L204
  mov    -0x90(%rbp),%eax
  mov    %eax,-0x80(%rbp)
  mov    -0xb4(%rbp),%eax
  mov    %eax,-0x78(%rbp)
  movl   $0x0,-0x8c(%rbp)
  jmp    L21
L144:
  mov    -0x9c(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  sar    $0x3,%ax
  cwtl
  shl    $0xb,%eax
  mov    %eax,%ecx
  mov    -0x98(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  sar    $0x2,%ax
  cwtl
  shl    $0x5,%eax
  or     %eax,%ecx
  mov    -0x94(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  sar    $0x3,%ax
  mov    %eax,%edx
  mov    -0x80(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rsi
  mov    -0xa8(%rbp),%rax
  add    %rsi,%rax
  or     %ecx,%edx
  mov    %dx,(%rax)
  mov    -0x74(%rbp),%eax
  sub    %eax,-0x9c(%rbp)
  mov    -0x70(%rbp),%eax
  sub    %eax,-0x98(%rbp)
  mov    -0x6c(%rbp),%eax
  sub    %eax,-0x94(%rbp)
  mov    -0x78(%rbp),%eax
  sub    -0xb4(%rbp),%eax
  mov    %eax,%edx
  mov    -0x50(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x44(%rbp)
  mov    -0x44(%rbp),%eax
  cltd
  idivl  -0x50(%rbp)
  mov    %edx,%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  mov    %rax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    (%rax),%eax
  sub    %eax,-0x74(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  sub    %eax,-0x70(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  sub    %eax,-0x6c(%rbp)
  cmpl   $0x0,-0x90(%rbp)
  jne    L147
  mov    -0x8c(%rbp),%edx
  mov    -0x48(%rbp),%eax
  add    %eax,%edx
  mov    -0x58(%rbp),%eax
  cmp    %eax,%edx
  cmovle %edx,%eax
  mov    -0x8c(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x20(%rbp),%rdx
  add    %rcx,%rdx
  imul   -0xac(%rbp),%eax
  mov    %eax,(%rdx)
L147:
  mov    -0x8c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x90(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x40(%rbp)
  mov    -0x40(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x8(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x40(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  mov    -0x8(%rbp),%rdx
  add    $0x4,%rdx
  cwtl
  mov    %eax,(%rdx)
  mov    -0x40(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  mov    -0x8(%rbp),%rdx
  add    $0x8,%rdx
  cwtl
  mov    %eax,(%rdx)
  mov    -0x8(%rbp),%rax
  mov    (%rax),%eax
  add    %eax,-0x68(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  add    %eax,-0x64(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  add    %eax,-0x60(%rbp)
  mov    -0x68(%rbp),%eax
  add    %eax,-0x9c(%rbp)
  mov    -0x64(%rbp),%eax
  add    %eax,-0x98(%rbp)
  mov    -0x60(%rbp),%eax
  add    %eax,-0x94(%rbp)
  mov    -0x78(%rbp),%eax
  add    $0x1,%eax
  cltd
  idivl  -0x50(%rbp)
  mov    %edx,-0x78(%rbp)
  mov    -0x78(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  mov    %rax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    (%rax),%eax
  add    %eax,-0x74(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  add    %eax,-0x70(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  add    %eax,-0x6c(%rbp)
  mov    -0x8(%rbp),%rax
  mov    (%rax),%eax
  sub    %eax,-0x68(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  sub    %eax,-0x64(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  sub    %eax,-0x60(%rbp)
  mov    -0xac(%rbp),%eax
  add    %eax,-0x80(%rbp)
  addl   $0x1,-0x8c(%rbp)
L21:
  mov    -0x8c(%rbp),%eax
  cmp    -0xb0(%rbp),%eax
  jl     L144
  addl   $0x1,-0x90(%rbp)
L101:
  mov    -0x90(%rbp),%eax
  cmp    -0xac(%rbp),%eax
  jl     L44
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0xa8(%rbp),%rax
  leave
  ret
```

assistant: ```c
short *blur_RGB_565(short *pix, int w, int h, int radius) {
  int wm = w - 1;
  int hm = h - 1;
  int wh = w * h;
  int div = radius + radius + 1;
  short *r = (short *)malloc(wh * sizeof(short));
  short *g = (short *)malloc(wh * sizeof(short));
  short *b = (short *)malloc(wh * sizeof(short));
  int rsum, gsum, bsum, x, y, p, i, yp, yi, yw;
  int *vmin = (int *)malloc(((w) > (h) ? (w) : (h)) * sizeof(int));
  int divsum = (div + 1) >> 1;
  divsum *= divsum;
  short *dv = (short *)malloc(256 * divsum * sizeof(short));
  for (i = 0; i < 256 * divsum; i++) {
    dv[i] = (short)(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)&0xF800) >> 11) << 3;
      sir[1] = (((p)&0x7E0) >> 5) << 2;
      sir[2] = ((p)&0x1F) << 3;
      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)&0xF800) >> 11) << 3;
      sir[1] = (((p)&0x7E0) >> 5) << 2;
      sir[2] = ((p)&0x1F) << 3;
      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] = ((((dv[rsum]) >> 3) << 11) | (((dv[gsum]) >> 2) << 5) | ((dv[bsum]) >> 3));
      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);
}
```