user: Please show me the C implementation that matches the assembly code listed below:

```asm
<blur>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %r9,%r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  sub    $0x148,%rsp
  mov    %rdi,0xd8(%rsp)
  mov    0x180(%rsp),%r13d
  mov    %edx,0x28(%rsp)
  mov    0x188(%rsp),%ebx
  mov    %ecx,0xc(%rsp)
  mov    %r8d,0x68(%rsp)
  test   %ecx,%ecx
  jle    L687
  lea    0x2(%rdx,%rdx,1),%eax
  mov    %edx,%edi
  lea    0x2(%rsi),%r14
  movslq %r13d,%rsi
  mov    %eax,0x30(%rsp)
  movslq %edx,%rax
  mov    0xd8(%rsp),%r15
  sub    %r13d,%edi
  lea    0x2(%rax,%rax,1),%rax
  mov    %rsi,0x60(%rsp)
  mov    %rax,0x38(%rsp)
  movslq 0x68(%rsp),%rax
  add    %rsi,%r15
  mov    %edi,0x20(%rsp)
  mov    %rax,0x40(%rsp)
  xor    %eax,%eax
  test   %r13d,%r13d
  cmovns %r13d,%eax
  movl   $0x0,(%rsp)
  mov    %rbp,0x70(%rsp)
  mov    %eax,%ecx
  mov    %eax,0x2c(%rsp)
  cltq
  sub    %rsi,%rax
  neg    %rsi
  mov    %rax,%rdx
  mov    %rax,0x58(%rsp)
  mov    %edi,%eax
  sub    %ecx,%eax
  mov    %rsi,0x48(%rsp)
  sub    $0x1,%eax
  lea    0x1(%rdx,%rax,1),%r8
  lea    -0x1(%rbx),%eax
  mov    %eax,0x10(%rsp)
  mov    %ebx,%eax
  shr    $0x3,%eax
  sub    $0x1,%eax
  add    $0x1,%rax
  shl    $0x4,%rax
  mov    %rax,%r11
  mov    %ebx,%eax
  and    $0xfffffff8,%eax
  mov    %r11,%rbp
  mov    %eax,0x50(%rsp)
  nopl   0x0(%rax,%rax,1)
L601:
  mov    0x30(%rsp),%edx
  xor    %esi,%esi
  lea    -0x2(%r14),%rdi
  mov    %r8,0x18(%rsp)
  call   <memset@plt>
  test   %r13d,%r13d
  mov    0x18(%rsp),%r8
  jle    L498
  mov    %ebx,%edi
  mov    0x48(%rsp),%rcx
  mov    %r13d,%esi
  sub    %r13d,%edi
  jmp    L366
  nopl   0x0(%rax)
L572:
  add    $0x1,%rcx
  add    $0x1,%edi
  sub    $0x1,%esi
  je     L498
L366:
  movzbl (%r15,%rcx,1),%eax
  test   %eax,%eax
  je     L572
  imul   %ebx,%eax
  movslq %eax,%rdx
  mov    %esi,%eax
  cmp    %esi,%ebx
  jle    L572
  lea    -0x1(%rdi),%r9d
  cmp    $0x6,%r9d
  jbe    L579
  mov    %rdx,%rax
  mov    %edi,%r10d
  sub    %rcx,%rax
  shr    $0x3,%r10d
  lea    (%r12,%rax,4),%r9
  shl    $0x4,%r10
  xor    %eax,%eax
  xchg   %ax,%ax
L521:
  movdqu (%r9,%rax,2),%xmm0
  movdqu 0x10(%r9,%rax,2),%xmm3
  movdqu (%r14,%rax,1),%xmm5
  movdqa %xmm0,%xmm1
  punpcklwd %xmm3,%xmm0
  punpckhwd %xmm3,%xmm1
  movdqa %xmm0,%xmm2
  punpckhwd %xmm1,%xmm2
  punpcklwd %xmm1,%xmm0
  punpcklwd %xmm2,%xmm0
  paddw  %xmm5,%xmm0
  movups %xmm0,(%r14,%rax,1)
  add    $0x10,%rax
  cmp    %r10,%rax
  jne    L521
  mov    %edi,%r9d
  and    $0xfffffff8,%r9d
  lea    (%rsi,%r9,1),%eax
  cmp    %edi,%r9d
  je     L572
L579:
  movslq %eax,%r9
  lea    (%r9,%rcx,1),%r10
  add    %rdx,%r9
  mov    (%r12,%r9,4),%r9d
  add    %r9w,(%r14,%r10,2)
  lea    0x1(%rax),%r9d
  cmp    %r9d,%ebx
  jle    L572
  movslq %r9d,%r9
  lea    (%r9,%rcx,1),%r10
  add    %rdx,%r9
  mov    (%r12,%r9,4),%r9d
  add    %r9w,(%r14,%r10,2)
  lea    0x2(%rax),%r9d
  cmp    %r9d,%ebx
  jle    L572
  movslq %r9d,%r9
  lea    (%r9,%rcx,1),%r10
  add    %rdx,%r9
  mov    (%r12,%r9,4),%r9d
  add    %r9w,(%r14,%r10,2)
  lea    0x3(%rax),%r9d
  cmp    %r9d,%ebx
  jle    L572
  movslq %r9d,%r9
  lea    (%r9,%rcx,1),%r10
  add    %rdx,%r9
  mov    (%r12,%r9,4),%r9d
  add    %r9w,(%r14,%r10,2)
  lea    0x4(%rax),%r9d
  cmp    %r9d,%ebx
  jle    L572
  movslq %r9d,%r9
  lea    (%r9,%rcx,1),%r10
  add    %rdx,%r9
  mov    (%r12,%r9,4),%r9d
  add    %r9w,(%r14,%r10,2)
  lea    0x5(%rax),%r9d
  cmp    %r9d,%ebx
  jle    L572
  movslq %r9d,%r9
  add    $0x6,%eax
  lea    (%r9,%rcx,1),%r10
  add    %rdx,%r9
  mov    (%r12,%r9,4),%r9d
  add    %r9w,(%r14,%r10,2)
  cmp    %eax,%ebx
  jle    L572
  cltq
  add    $0x1,%edi
  lea    (%rax,%rcx,1),%r9
  add    %rax,%rdx
  add    $0x1,%rcx
  mov    (%r12,%rdx,4),%eax
  add    %ax,(%r14,%r9,2)
  sub    $0x1,%esi
  jne    L366
  nopl   (%rax)
L498:
  mov    0x2c(%rsp),%edi
  cmp    %edi,0x20(%rsp)
  jle    L377
  mov    0x58(%rsp),%rdx
  mov    0x50(%rsp),%r9d
  jmp    L620
  nopw   0x0(%rax,%rax,1)
L893:
  add    $0x1,%rdx
  cmp    %r8,%rdx
  je     L868
L620:
  movzbl (%r15,%rdx,1),%eax
  test   %eax,%eax
  je     L893
  imul   %ebx,%eax
  movslq %eax,%rdi
  test   %ebx,%ebx
  jle    L893
  cmpl   $0x6,0x10(%rsp)
  jbe    L930
  lea    (%r14,%rdx,2),%rsi
  lea    (%r12,%rdi,4),%rcx
  xor    %eax,%eax
  nopl   (%rax)
L941:
  movdqu (%rcx,%rax,2),%xmm0
  movdqu 0x10(%rcx,%rax,2),%xmm6
  movdqu (%rsi,%rax,1),%xmm3
  movdqa %xmm0,%xmm1
  punpcklwd %xmm6,%xmm0
  punpckhwd %xmm6,%xmm1
  movdqa %xmm0,%xmm2
  punpckhwd %xmm1,%xmm2
  punpcklwd %xmm1,%xmm0
  punpcklwd %xmm2,%xmm0
  paddw  %xmm3,%xmm0
  movups %xmm0,(%rsi,%rax,1)
  add    $0x10,%rax
  cmp    %rbp,%rax
  jne    L941
  cmp    %ebx,%r9d
  je     L893
  mov    %r9d,%eax
L849:
  movslq %eax,%rcx
  lea    (%rcx,%rdx,1),%rsi
  add    %rdi,%rcx
  mov    (%r12,%rcx,4),%ecx
  add    %cx,(%r14,%rsi,2)
  lea    0x1(%rax),%ecx
  cmp    %ecx,%ebx
  jle    L893
  movslq %ecx,%rcx
  lea    (%rcx,%rdx,1),%rsi
  add    %rdi,%rcx
  mov    (%r12,%rcx,4),%ecx
  add    %cx,(%r14,%rsi,2)
  lea    0x2(%rax),%ecx
  cmp    %ecx,%ebx
  jle    L893
  movslq %ecx,%rcx
  lea    (%rcx,%rdx,1),%rsi
  add    %rdi,%rcx
  mov    (%r12,%rcx,4),%ecx
  add    %cx,(%r14,%rsi,2)
  lea    0x3(%rax),%ecx
  cmp    %ecx,%ebx
  jle    L893
  movslq %ecx,%rcx
  lea    (%rcx,%rdx,1),%rsi
  add    %rdi,%rcx
  mov    (%r12,%rcx,4),%ecx
  add    %cx,(%r14,%rsi,2)
  lea    0x4(%rax),%ecx
  cmp    %ecx,%ebx
  jle    L893
  movslq %ecx,%rcx
  lea    (%rcx,%rdx,1),%rsi
  add    %rdi,%rcx
  mov    (%r12,%rcx,4),%ecx
  add    %cx,(%r14,%rsi,2)
  lea    0x5(%rax),%ecx
  cmp    %ecx,%ebx
  jle    L893
  movslq %ecx,%rcx
  add    $0x6,%eax
  lea    (%rcx,%rdx,1),%rsi
  add    %rdi,%rcx
  mov    (%r12,%rcx,4),%ecx
  add    %cx,(%r14,%rsi,2)
  cmp    %eax,%ebx
  jle    L893
  cltq
  lea    (%rax,%rdx,1),%rcx
  add    %rax,%rdi
  add    $0x1,%rdx
  mov    (%r12,%rdi,4),%eax
  add    %ax,(%r14,%rcx,2)
  cmp    %r8,%rdx
  jne    L620
  nopl   0x0(%rax,%rax,1)
L868:
  movslq 0x20(%rsp),%rcx
L400:
  cmp    %ecx,0x28(%rsp)
  jle    L274
  mov    0x28(%rsp),%eax
  lea    (%rax,%r13,1),%edx
  sub    %ecx,%edx
  sub    0x60(%rsp),%rcx
  lea    (%r14,%rcx,2),%rsi
  jmp    L299
  nopl   0x0(%rax)
L806:
  lea    -0x1(%rdx),%r11d
L531:
  mov    %r11d,%edx
  add    $0x1,%rcx
  add    $0x2,%rsi
  cmp    %r13d,%r11d
  je     L274
L299:
  movzbl (%r15,%rcx,1),%eax
  test   %eax,%eax
  je     L806
  imul   %ebx,%eax
  movslq %eax,%rdi
  test   %edx,%edx
  jle    L806
  lea    -0x1(%rdx),%r11d
  cmp    $0x6,%r11d
  jbe    L255
  mov    %edx,%r10d
  lea    (%r12,%rdi,4),%r9
  xor    %eax,%eax
  shr    $0x3,%r10d
  shl    $0x4,%r10
  nopw   0x0(%rax,%rax,1)
L144:
  movdqu (%r9,%rax,2),%xmm0
  movdqu 0x10(%r9,%rax,2),%xmm4
  movdqu (%rsi,%rax,1),%xmm6
  movdqa %xmm0,%xmm1
  punpcklwd %xmm4,%xmm0
  punpckhwd %xmm4,%xmm1
  movdqa %xmm0,%xmm2
  punpckhwd %xmm1,%xmm2
  punpcklwd %xmm1,%xmm0
  punpcklwd %xmm2,%xmm0
  paddw  %xmm6,%xmm0
  movups %xmm0,(%rsi,%rax,1)
  add    $0x10,%rax
  cmp    %r10,%rax
  jne    L144
  mov    %edx,%eax
  and    $0xfffffff8,%eax
  test   $0x7,%dl
  je     L531
L69:
  movslq %eax,%r9
  lea    (%r9,%rcx,1),%r10
  add    %rdi,%r9
  mov    (%r12,%r9,4),%r9d
  add    %r9w,(%r14,%r10,2)
  lea    0x1(%rax),%r9d
  cmp    %edx,%r9d
  jge    L531
  movslq %r9d,%r9
  lea    (%r9,%rcx,1),%r10
  add    %rdi,%r9
  mov    (%r12,%r9,4),%r9d
  add    %r9w,(%r14,%r10,2)
  lea    0x2(%rax),%r9d
  cmp    %edx,%r9d
  jge    L531
  movslq %r9d,%r9
  lea    (%r9,%rcx,1),%r10
  add    %rdi,%r9
  mov    (%r12,%r9,4),%r9d
  add    %r9w,(%r14,%r10,2)
  lea    0x3(%rax),%r9d
  cmp    %edx,%r9d
  jge    L531
  movslq %r9d,%r9
  lea    (%r9,%rcx,1),%r10
  add    %rdi,%r9
  mov    (%r12,%r9,4),%r9d
  add    %r9w,(%r14,%r10,2)
  lea    0x4(%rax),%r9d
  cmp    %edx,%r9d
  jge    L531
  movslq %r9d,%r9
  lea    (%r9,%rcx,1),%r10
  add    %rdi,%r9
  mov    (%r12,%r9,4),%r9d
  add    %r9w,(%r14,%r10,2)
  lea    0x5(%rax),%r9d
  cmp    %edx,%r9d
  jge    L531
  movslq %r9d,%r9
  add    $0x6,%eax
  lea    (%r9,%rcx,1),%r10
  add    %rdi,%r9
  mov    (%r12,%r9,4),%r9d
  add    %r9w,(%r14,%r10,2)
  cmp    %edx,%eax
  jge    L531
  cltq
  add    $0x2,%rsi
  lea    (%rax,%rcx,1),%rdx
  add    %rax,%rdi
  add    $0x1,%rcx
  mov    (%r12,%rdi,4),%eax
  add    %ax,(%r14,%rdx,2)
  mov    %r11d,%edx
  cmp    %r13d,%r11d
  jne    L299
  nopl   0x0(%rax)
L274:
  addl   $0x1,(%rsp)
  add    0x38(%rsp),%r14
  mov    (%rsp),%eax
  add    0x40(%rsp),%r15
  cmp    %eax,0xc(%rsp)
  jne    L601
  mov    0x70(%rsp),%rbp
L687:
  mov    0x28(%rsp),%ecx
  test   %ecx,%ecx
  jle    L170
  movslq 0x28(%rsp),%rax
  mov    0xc(%rsp),%r15d
  lea    -0x1(%r13),%r10d
  mov    %rbp,%r11
  mov    $0xfffffffffffffffe,%r8
  mov    %rbp,0x58(%rsp)
  lea    0x4(%r12),%r9
  lea    0x1(%rax),%esi
  lea    (%rax,%rax,1),%rdx
  mov    %rax,0x38(%rsp)
  mov    %r15d,%edi
  mov    %esi,%eax
  mov    %esi,0x40(%rsp)
  movslq %esi,%rsi
  lea    0x2(%rdx),%rcx
  imul   %r13d,%eax
  mov    %rdx,0x10(%rsp)
  sub    %r13d,%edi
  cltq
  add    %rax,%rax
  sub    %rax,%r8
  lea    0x0(%rbp,%rdx,1),%rax
  mov    %rsi,%rdx
  add    %rsi,%rsi
  mov    %rax,0x30(%rsp)
  xor    %eax,%eax
  test   %r13d,%r13d
  cmovns %r13d,%eax
  mov    %eax,0x2c(%rsp)
  imul   %edx,%eax
  cltq
  lea    0x2(%rax,%rax,1),%rax
  mov    %rax,0x48(%rsp)
  lea    -0x1(%rbx),%eax
  mov    %rax,0x18(%rsp)
  lea    (%r15,%r13,1),%eax
  mov    %eax,0x50(%rsp)
  nopw   0x0(%rax,%rax,1)
L353:
  lea    0x2(%r11),%rax
  xor    %r15d,%r15d
  mov    %rax,0x20(%rsp)
  mov    %rax,%r14
  test   %r13d,%r13d
  jg     L856
  jmp    L40
  cs nopw 0x0(%rax,%rax,1)
L175:
  add    $0x1,%r15d
  add    %rsi,%r14
  cmp    %r15d,%r13d
  je     L40
L856:
  movzwl (%r14),%edx
  test   %edx,%edx
  je     L175
  lea    0x80(%rdx),%ebp
  mov    0x10(%rsp),%rax
  mov    $0x80,%edx
  sar    $0x8,%ebp
  mov    %dx,(%r14)
  imul   %ebx,%ebp
  add    %r14,%rax
  movslq %ebp,%rbp
  cmp    %r10d,%ebx
  jle    L175
  mov    %rsi,(%rsp)
  movslq %r10d,%rdx
  lea    (%r12,%rbp,4),%rbp
  nopl   0x0(%rax)
L910:
  movzwl 0x0(%rbp,%rdx,4),%esi
  add    $0x1,%rdx
  add    %si,(%rax)
  add    %rcx,%rax
  cmp    %edx,%ebx
  jg     L910
  mov    (%rsp),%rsi
  add    $0x1,%r15d
  add    %rsi,%r14
  cmp    %r15d,%r13d
  jne    L856
L40:
  mov    0x2c(%rsp),%r15d
  cmp    %r15d,%edi
  jle    L227
  mov    0x48(%rsp),%rax
  lea    (%r11,%rax,1),%r14
  jmp    L187
  nopl   0x0(%rax)
L209:
  add    $0x1,%r15d
  add    %rsi,%r14
  cmp    %edi,%r15d
  je     L559
L187:
  movzwl (%r14),%edx
  test   %edx,%edx
  je     L209
  lea    0x80(%rdx),%ebp
  mov    $0x80,%edx
  lea    (%r8,%r14,1),%rax
  sar    $0x8,%ebp
  mov    %dx,(%r14)
  imul   %ebx,%ebp
  movslq %ebp,%rbp
  test   %ebx,%ebx
  jle    L209
  mov    %rsi,(%rsp)
  lea    (%r12,%rbp,4),%rdx
  add    0x18(%rsp),%rbp
  lea    (%r9,%rbp,4),%rbp
  nopl   (%rax)
L863:
  movzwl (%rdx),%esi
  add    $0x4,%rdx
  add    %si,(%rax)
  add    %rcx,%rax
  cmp    %rbp,%rdx
  jne    L863
  mov    (%rsp),%rsi
  add    $0x1,%r15d
  add    %rsi,%r14
  cmp    %edi,%r15d
  jne    L187
L559:
  mov    %edi,%eax
L831:
  cmp    %eax,0xc(%rsp)
  jle    L883
  mov    0x40(%rsp),%edx
  imul   %eax,%edx
  movslq %edx,%rdx
  lea    0x2(%r11,%rdx,2),%r14
  mov    0x50(%rsp),%r11d
  sub    %eax,%r11d
  jmp    L668
  nopl   0x0(%rax,%rax,1)
L631:
  sub    $0x1,%r11d
  add    %rsi,%r14
  cmp    %r11d,%r13d
  je     L883
L668:
  movzwl (%r14),%edx
  test   %edx,%edx
  je     L631
  lea    0x80(%rdx),%ebp
  mov    $0x80,%edx
  lea    (%r8,%r14,1),%rax
  sar    $0x8,%ebp
  mov    %dx,(%r14)
  imul   %ebx,%ebp
  movslq %ebp,%rbp
  test   %r11d,%r11d
  jle    L631
  lea    -0x1(%r11),%r15d
  lea    (%r12,%rbp,4),%rdx
  add    %r15,%rbp
  mov    %r15,%r11
  lea    (%r9,%rbp,4),%r15
  nop
L423:
  mov    (%rdx),%ebp
  add    $0x4,%rdx
  add    %bp,(%rax)
  add    %rcx,%rax
  cmp    %rdx,%r15
  jne    L423
  add    %rsi,%r14
  cmp    %r11d,%r13d
  jne    L668
L883:
  mov    0x20(%rsp),%r11
  cmp    0x30(%rsp),%r11
  jne    L353
  mov    0xc(%rsp),%eax
  mov    0x58(%rsp),%rbp
  test   %eax,%eax
  jle    L170
  mov    0x28(%rsp),%r12d
  mov    0x38(%rsp),%rax
  xor    %edx,%edx
  movslq 0x68(%rsp),%r14
  mov    %r12d,%esi
  lea    0x2(%rax,%rax,1),%r13
  lea    (%rax,%rax,1),%r15
  mov    %r12d,%eax
  and    $0xfffffff0,%esi
  shr    $0x4,%eax
  mov    %r12d,%edi
  lea    0x5(%rsi),%ecx
  mov    %esi,%ebx
  sub    $0x1,%eax
  mov    %ecx,0x60(%rsp)
  lea    (%rbx,%rbx,1),%r8
  add    $0x1,%rax
  mov    %rcx,0x80(%rsp)
  add    %rcx,%rcx
  shl    $0x4,%rax
  mov    %rcx,0x78(%rsp)
  lea    0x6(%rsi),%ecx
  mov    %ecx,0x70(%rsp)
  mov    %rcx,0x90(%rsp)
  add    %rcx,%rcx
  mov    %rcx,0x88(%rsp)
  lea    0x7(%rsi),%ecx
  mov    %ecx,0xa8(%rsp)
  mov    %rcx,0xa0(%rsp)
  add    %rcx,%rcx
  mov    %rcx,0x98(%rsp)
  lea    0x8(%rsi),%ecx
  mov    %ecx,0xac(%rsp)
  mov    %rcx,0xb8(%rsp)
  add    %rcx,%rcx
  mov    %rcx,0xb0(%rsp)
  lea    0x9(%rsi),%ecx
  mov    %ecx,0xd0(%rsp)
  mov    %rcx,0xc8(%rsp)
  add    %rcx,%rcx
  mov    %rbx,0x18(%rsp)
  lea    0x1(%rsi),%ebx
  mov    %rcx,0xc0(%rsp)
  lea    0xa(%rsi),%ecx
  lea    (%rbx,%rbx,1),%r9
  mov    %ebx,0x10(%rsp)
  mov    %rbx,0x20(%rsp)
  lea    0x2(%rsi),%ebx
  mov    %ecx,0xd4(%rsp)
  lea    (%rbx,%rbx,1),%r10
  mov    %rcx,0xe8(%rsp)
  add    %rcx,%rcx
  mov    %ebx,0x2c(%rsp)
  mov    %rbx,0x30(%rsp)
  lea    0x3(%rsi),%ebx
  mov    %rcx,0xe0(%rsp)
  lea    0xb(%rsi),%ecx
  lea    (%rbx,%rbx,1),%r11
  mov    %ebx,0x40(%rsp)
  mov    %rbx,0x50(%rsp)
  lea    0x4(%rsi),%ebx
  mov    %ecx,0xf8(%rsp)
  mov    %rcx,0x100(%rsp)
  add    %rcx,%rcx
  mov    %ebx,0x48(%rsp)
  mov    %rbx,0x58(%rsp)
  add    %rbx,%rbx
  mov    %rcx,0xf0(%rsp)
  lea    0xc(%rsi),%ecx
  movdqa D6(%rip),%xmm2
  mov    %ecx,0xfc(%rsp)
  mov    %rcx,0x108(%rsp)
  add    %rcx,%rcx
  mov    %rcx,0x110(%rsp)
  lea    0xd(%rsi),%ecx
  mov    %ecx,0x118(%rsp)
  mov    %rcx,0x120(%rsp)
  add    %rcx,%rcx
  mov    %rcx,0x128(%rsp)
  lea    0xe(%rsi),%ecx
  mov    %ecx,0x11c(%rsp)
  mov    %rcx,0x138(%rsp)
  add    %rcx,%rcx
  mov    %rcx,0x130(%rsp)
  lea    -0x1(%r12),%ecx
  mov    %rbx,0x68(%rsp)
  mov    %ecx,(%rsp)
  mov    0xd8(%rsp),%rcx
  mov    %esi,0x28(%rsp)
  mov    %r12d,%esi
  nopl   (%rax)
L204:
  mov    0x38(%rsp),%rbx
  add    %rcx,%rbx
  cmp    %rbx,%rbp
  lea    0x0(%rbp,%r15,1),%rbx
  setae  %r12b
  cmp    %rbx,%rcx
  setae  %bl
  or     %r12b,%bl
  je     L751
  xor    %ebx,%ebx
  cmpl   $0xe,(%rsp)
  jbe    L751
  nopw   0x0(%rax,%rax,1)
L333:
  movdqu 0x0(%rbp,%rbx,2),%xmm0
  movdqu 0x10(%rbp,%rbx,2),%xmm1
  psrlw  $0x8,%xmm0
  psrlw  $0x8,%xmm1
  pand   %xmm2,%xmm0
  pand   %xmm2,%xmm1
  packuswb %xmm1,%xmm0
  movups %xmm0,(%rcx,%rbx,1)
  add    $0x10,%rbx
  cmp    %rbx,%rax
  jne    L333
  cmp    %esi,0x28(%rsp)
  je     L959
  movzwl 0x0(%rbp,%r8,1),%ebx
  mov    0x18(%rsp),%r12
  movzbl %bh,%ebx
  mov    %bl,(%rcx,%r12,1)
  cmp    %esi,0x10(%rsp)
  jge    L959
  movzwl 0x0(%rbp,%r9,1),%ebx
  mov    0x20(%rsp),%r12
  movzbl %bh,%ebx
  mov    %bl,(%rcx,%r12,1)
  cmp    0x2c(%rsp),%esi
  jle    L959
  movzwl 0x0(%rbp,%r10,1),%ebx
  mov    0x30(%rsp),%r12
  movzbl %bh,%ebx
  mov    %bl,(%rcx,%r12,1)
  cmp    %esi,0x40(%rsp)
  jge    L959
  movzwl 0x0(%rbp,%r11,1),%ebx
  mov    0x50(%rsp),%r12
  movzbl %bh,%ebx
  mov    %bl,(%rcx,%r12,1)
  cmp    0x48(%rsp),%esi
  jle    L959
  mov    0x68(%rsp),%rbx
  mov    0x58(%rsp),%r12
  movzwl 0x0(%rbp,%rbx,1),%ebx
  movzbl %bh,%ebx
  mov    %bl,(%rcx,%r12,1)
  cmp    0x60(%rsp),%esi
  jle    L959
  mov    0x78(%rsp),%rbx
  mov    0x80(%rsp),%r12
  movzwl 0x0(%rbp,%rbx,1),%ebx
  movzbl %bh,%ebx
  mov    %bl,(%rcx,%r12,1)
  cmp    0x70(%rsp),%esi
  jle    L959
  mov    0x88(%rsp),%rbx
  mov    0x90(%rsp),%r12
  movzwl 0x0(%rbp,%rbx,1),%ebx
  movzbl %bh,%ebx
  mov    %bl,(%rcx,%r12,1)
  cmp    %esi,0xa8(%rsp)
  jge    L959
  mov    0x98(%rsp),%rbx
  mov    0xa0(%rsp),%r12
  movzwl 0x0(%rbp,%rbx,1),%ebx
  movzbl %bh,%ebx
  mov    %bl,(%rcx,%r12,1)
  cmp    %esi,0xac(%rsp)
  jge    L959
  mov    0xb0(%rsp),%rbx
  mov    0xb8(%rsp),%r12
  movzwl 0x0(%rbp,%rbx,1),%ebx
  movzbl %bh,%ebx
  mov    %bl,(%rcx,%r12,1)
  cmp    %esi,0xd0(%rsp)
  jge    L959
  mov    0xc0(%rsp),%rbx
  mov    0xc8(%rsp),%r12
  movzwl 0x0(%rbp,%rbx,1),%ebx
  movzbl %bh,%ebx
  mov    %bl,(%rcx,%r12,1)
  cmp    %esi,0xd4(%rsp)
  jge    L959
  mov    0xe0(%rsp),%rbx
  mov    0xe8(%rsp),%r12
  movzwl 0x0(%rbp,%rbx,1),%ebx
  movzbl %bh,%ebx
  mov    %bl,(%rcx,%r12,1)
  cmp    %esi,0xf8(%rsp)
  jge    L959
  mov    0xf0(%rsp),%rbx
  mov    0x100(%rsp),%r12
  movzwl 0x0(%rbp,%rbx,1),%ebx
  movzbl %bh,%ebx
  mov    %bl,(%rcx,%r12,1)
  cmp    %esi,0xfc(%rsp)
  jge    L959
  mov    0x110(%rsp),%rbx
  mov    0x108(%rsp),%r12
  movzwl 0x0(%rbp,%rbx,1),%ebx
  movzbl %bh,%ebx
  mov    %bl,(%rcx,%r12,1)
  cmp    0x118(%rsp),%esi
  jle    L959
  mov    0x128(%rsp),%rbx
  mov    0x120(%rsp),%r12
  movzwl 0x0(%rbp,%rbx,1),%ebx
  movzbl %bh,%ebx
  mov    %bl,(%rcx,%r12,1)
  cmp    0x11c(%rsp),%esi
  jle    L959
  mov    0x130(%rsp),%rbx
  mov    0x138(%rsp),%r12
  movzwl 0x0(%rbp,%rbx,1),%ebx
  movzbl %bh,%ebx
  mov    %bl,(%rcx,%r12,1)
  nopl   0x0(%rax)
L959:
  add    %r14,%rcx
  add    %r13,%rbp
  add    $0x1,%edx
  cmp    %edx,0xc(%rsp)
  jne    L204
L170:
  add    $0x148,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L255:
  xor    %eax,%eax
  jmp    L69
L930:
  xor    %eax,%eax
  jmp    L849
L751:
  xor    %ebx,%ebx
  nopl   (%rax)
L825:
  movzbl 0x1(%rbp,%rbx,2),%r12d
  mov    %r12b,(%rcx,%rbx,1)
  add    $0x1,%rbx
  cmp    %rbx,%rdi
  jne    L825
  jmp    L959
L377:
  movslq %edi,%rcx
  jmp    L400
L227:
  mov    %r15d,%eax
  jmp    L831
```

tool_calls: name: read_data
arguments: tag: D6
datatype: byte[16]

tool: {"D6": [0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00]}

assistant: ```c
void blur(unsigned char *buffer, unsigned short *tmp2, int width, int height, int stride, int *m2, int r, int mwidth) {
  int x, y;
  unsigned char *s = buffer;
  unsigned short *t = tmp2 + 1;
  for (y = 0; y < height; y++) {
    memset(t - 1, 0, (width + 1) * sizeof(short));
    for (x = 0; x < r; x++) {
      const int src = s[x];
      if (src) {
        register unsigned short *dstp = t + x - r;
        int mx;
        unsigned *m3 = m2 + src * mwidth;
        for (mx = r - x; mx < mwidth; mx++) {
          dstp[mx] += m3[mx];
        }
      }
    }
    for (; x < width - r; x++) {
      const int src = s[x];
      if (src) {
        register unsigned short *dstp = t + x - r;
        int mx;
        unsigned *m3 = m2 + src * mwidth;
        for (mx = 0; mx < mwidth; mx++) {
          dstp[mx] += m3[mx];
        }
      }
    }
    for (; x < width; x++) {
      const int src = s[x];
      if (src) {
        register unsigned short *dstp = t + x - r;
        int mx;
        const int x2 = r + width - x;
        unsigned *m3 = m2 + src * mwidth;
        for (mx = 0; mx < x2; mx++) {
          dstp[mx] += m3[mx];
        }
      }
    }
    s += stride;
    t += width + 1;
  }
  t = tmp2;
  for (x = 0; x < width; x++) {
    for (y = 0; y < r; y++) {
      unsigned short *srcp = t + y * (width + 1) + 1;
      int src = *srcp;
      if (src) {
        register unsigned short *dstp = srcp - 1 + width + 1;
        const int src2 = (src + 128) >> 8;
        unsigned *m3 = m2 + src2 * mwidth;
        int mx;
        *srcp = 128;
        for (mx = r - 1; mx < mwidth; mx++) {
          *dstp += m3[mx];
          dstp += width + 1;
        }
      }
    }
    for (; y < height - r; y++) {
      unsigned short *srcp = t + y * (width + 1) + 1;
      int src = *srcp;
      if (src) {
        register unsigned short *dstp = srcp - 1 - r * (width + 1);
        const int src2 = (src + 128) >> 8;
        unsigned *m3 = m2 + src2 * mwidth;
        int mx;
        *srcp = 128;
        for (mx = 0; mx < mwidth; mx++) {
          *dstp += m3[mx];
          dstp += width + 1;
        }
      }
    }
    for (; y < height; y++) {
      unsigned short *srcp = t + y * (width + 1) + 1;
      int src = *srcp;
      if (src) {
        const int y2 = r + height - y;
        register unsigned short *dstp = srcp - 1 - r * (width + 1);
        const int src2 = (src + 128) >> 8;
        unsigned *m3 = m2 + src2 * mwidth;
        int mx;
        *srcp = 128;
        for (mx = 0; mx < y2; mx++) {
          *dstp += m3[mx];
          dstp += width + 1;
        }
      }
    }
    t++;
  }
  t = tmp2;
  s = buffer;
  for (y = 0; y < height; y++) {
    for (x = 0; x < width; x++) {
      s[x] = t[x] >> 8;
    }
    s += stride;
    t += width + 1;
  }
}
```