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

```asm
<dt_masks_blur_9x9>:
  endbr64
  push   %r15
  cvtss2sd %xmm0,%xmm0
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    $0xfffffffc,%ebp
  push   %rbx
  sub    $0x2c8,%rsp
  mov    %rdi,0x150(%rsp)
  lea    0x170(%rsp),%r12
  mov    %rsi,0x148(%rsp)
  mov    %edx,0x140(%rsp)
  mov    %ecx,0x144(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x2b8(%rsp)
  xor    %eax,%eax
  mov    $0x1,%eax
  call   <sqrf@plt>
  pxor   %xmm0,%xmm0
  movl   $0x0,0x8(%rsp)
  cvtsi2ss %eax,%xmm0
  addss  %xmm0,%xmm0
  movss  %xmm0,0xc(%rsp)
  nopl   0x0(%rax,%rax,1)
L75:
  mov    $0xfffffffffffffffc,%r13
  nopw   0x0(%rax,%rax,1)
L19:
  mov    %ebp,%edi
  xor    %eax,%eax
  call   <sqrf@plt>
  mov    %r13d,%edi
  mov    %eax,%ebx
  xor    %eax,%eax
  call   <sqrf@plt>
  pxor   %xmm0,%xmm0
  add    %eax,%ebx
  neg    %ebx
  cvtsi2ss %ebx,%xmm0
  divss  0xc(%rsp),%xmm0
  call   <expf@plt>
  movss  %xmm0,0x10(%r12,%r13,4)
  addss  0x8(%rsp),%xmm0
  add    $0x1,%r13
  movss  %xmm0,0x8(%rsp)
  cmp    $0x5,%r13
  jne    L19
  add    $0x1,%ebp
  add    $0x24,%r12
  cmp    $0x5,%ebp
  jne    L75
  movups 0x228(%rsp),%xmm6
  shufps $0x0,%xmm0,%xmm0
  movups 0x174(%rsp),%xmm3
  movups 0x198(%rsp),%xmm1
  movups 0x1bc(%rsp),%xmm2
  divps  %xmm0,%xmm6
  movaps 0x1e0(%rsp),%xmm4
  movups 0x204(%rsp),%xmm5
  mov    0x140(%rsp),%edx
  lea    0x0(,%rdx,4),%ecx
  divps  %xmm0,%xmm3
  movups %xmm6,0x228(%rsp)
  movups 0x24c(%rsp),%xmm6
  divps  %xmm0,%xmm6
  movups %xmm3,0x174(%rsp)
  divps  %xmm0,%xmm1
  movups %xmm6,0x24c(%rsp)
  movaps 0x270(%rsp),%xmm6
  divps  %xmm0,%xmm6
  movups %xmm1,0x198(%rsp)
  movss  %xmm1,0xe4(%rsp)
  divps  %xmm0,%xmm2
  movaps %xmm6,0x270(%rsp)
  movups 0x294(%rsp),%xmm6
  divps  %xmm0,%xmm4
  movups %xmm2,0x1bc(%rsp)
  divps  %xmm0,%xmm5
  movaps %xmm4,0x1e0(%rsp)
  divps  %xmm0,%xmm6
  movaps %xmm3,%xmm0
  shufps $0x55,%xmm3,%xmm0
  movss  %xmm0,0x114(%rsp)
  movaps %xmm3,%xmm0
  unpckhps %xmm3,%xmm0
  shufps $0xff,%xmm3,%xmm3
  movss  %xmm3,0x110(%rsp)
  movss  %xmm0,0x10c(%rsp)
  movaps %xmm1,%xmm0
  shufps $0x55,%xmm1,%xmm0
  movups %xmm5,0x204(%rsp)
  shufps $0xff,%xmm5,%xmm5
  movss  %xmm0,0xe8(%rsp)
  movaps %xmm1,%xmm0
  movss  %xmm5,0x108(%rsp)
  unpckhps %xmm1,%xmm0
  shufps $0xff,%xmm1,%xmm1
  movss  %xmm0,0xec(%rsp)
  movaps %xmm2,%xmm0
  movss  %xmm1,0xf0(%rsp)
  shufps $0x55,%xmm2,%xmm0
  movss  %xmm0,0xf4(%rsp)
  movaps %xmm2,%xmm0
  unpckhps %xmm2,%xmm0
  shufps $0xff,%xmm2,%xmm2
  movss  %xmm2,0xfc(%rsp)
  movss  %xmm0,0xf8(%rsp)
  movaps %xmm4,%xmm0
  unpckhps %xmm4,%xmm0
  shufps $0xff,%xmm4,%xmm4
  movss  %xmm4,0x104(%rsp)
  movss  %xmm0,0x100(%rsp)
  movups %xmm6,0x294(%rsp)
  mov    0x144(%rsp),%eax
  sub    $0x4,%eax
  mov    %eax,0x124(%rsp)
  cmp    $0x4,%eax
  jle    L47
  cmp    $0x8,%edx
  jle    L47
  movslq %edx,%rbp
  movslq %ecx,%rcx
  mov    0x150(%rsp),%rbx
  sub    $0x9,%edx
  lea    0x0(,%rbp,8),%rax
  mov    %rbp,%r14
  add    %rcx,%rdx
  movl   $0x4,0x120(%rsp)
  lea    (%rbx,%rax,1),%rsi
  neg    %r14
  lea    0x4(%rbx,%rdx,4),%rdx
  add    %rsi,%rax
  lea    0x0(,%rbp,4),%rdi
  lea    0x0(%rbp,%rbp,1),%r15
  mov    %rdx,0x118(%rsp)
  mov    %rax,0x160(%rsp)
  mov    %r14,%rax
  lea    (%r15,%rbp,1),%r9
  mov    %rdi,%r12
  shl    $0x4,%rax
  shl    $0x3,%r14
  lea    0x4(%rbx,%r9,8),%r8
  neg    %r12
  add    %rbx,%rax
  lea    0x0(,%rcx,4),%rdx
  mov    %rdi,0x168(%rsp)
  mov    %rax,0x158(%rsp)
  mov    %rbp,%rax
  sub    %rdi,%rax
  mov    %rdx,0x128(%rsp)
  neg    %rdx
  shl    $0x2,%rax
  mov    %rdx,%r13
  mov    %rax,%r11
  mov    %r9,%rax
  mov    %r14,%r9
  nopw   0x0(%rax,%rax,1)
L70:
  movss  (%r8,%rbp,4),%xmm2
  mov    0x128(%rsp),%rdx
  mov    0x150(%rsp),%rdi
  movss  0x10(%r8,%rbp,4),%xmm4
  movss  %xmm2,0xb4(%rsp)
  movss  0x14(%rsi,%r12,1),%xmm2
  movss  0x10(%r8,%r12,1),%xmm7
  movss  0x8(%rdi,%rdx,1),%xmm6
  movss  %xmm4,0x40(%rsp)
  movss  0x14(%r8,%rbp,4),%xmm4
  movss  %xmm2,0x3c(%rsp)
  movss  0x18(%rsi,%r12,1),%xmm2
  movss  0x14(%rdi,%rdx,1),%xmm12
  movss  %xmm4,0x8(%rsp)
  movss  0x4(%r8,%rbp,4),%xmm4
  movss  0xc(%r8,%rbp,4),%xmm1
  movss  %xmm2,0x78(%rsp)
  movss  0x8(%rsi,%r12,1),%xmm2
  movss  0x4(%rsi,%r12,1),%xmm13
  movss  %xmm6,0x38(%rsp)
  movss  0x14(%r8,%r12,1),%xmm6
  movss  0x4(%rdi,%rdx,1),%xmm10
  movss  %xmm2,0x74(%rsp)
  movss  0x18(%rdi,%rdx,1),%xmm2
  movss  %xmm4,0x7c(%rsp)
  movss  0x10(%rsi,%r12,1),%xmm4
  movss  %xmm2,0xc(%rsp)
  movss  0x1c(%rdi,%rdx,1),%xmm2
  movss  %xmm6,0x34(%rsp)
  movss  %xmm2,0x44(%rsp)
  movss  0xc(%rdi,%rdx,1),%xmm2
  add    %rdx,%rdi
  movss  %xmm2,0x70(%rsp)
  movss  0x18(%r8,%r12,1),%xmm2
  movss  0x18(%rsi,%rbp,4),%xmm5
  mov    0x160(%rsp),%rbx
  movss  (%r8,%r12,1),%xmm6
  movss  %xmm5,0x2c(%rsp)
  movss  0x1c(%rsi,%rbp,4),%xmm5
  movss  (%r8),%xmm14
  movss  %xmm2,0x6c(%rsp)
  movss  0x4(%r8,%r12,1),%xmm2
  movss  0x14(%rbx,%rdx,1),%xmm3
  movss  %xmm5,0x64(%rsp)
  movss  0x8(%rsi,%rbp,4),%xmm5
  movss  0xc(%rbx,%rdx,1),%xmm9
  movss  %xmm2,0x30(%rsp)
  movss  0x8(%r8,%r12,1),%xmm2
  movss  0x4(%rsi,%rbp,4),%xmm15
  movss  %xmm5,0x28(%rsp)
  movss  0xc(%rsi,%rbp,4),%xmm5
  movss  %xmm2,0x68(%rsp)
  movss  0x14(%rsi,%rbp,4),%xmm2
  movss  %xmm5,0x60(%rsp)
  movss  0x10(%rbx,%rdx,1),%xmm5
  movss  %xmm3,0x5c(%rsp)
  movss  0x10(%r8),%xmm3
  movss  %xmm5,0x24(%rsp)
  movss  0x14(%r8),%xmm5
  movss  %xmm5,0x20(%rsp)
  movss  0x18(%r8),%xmm5
  movss  %xmm5,0x58(%rsp)
  movss  0x4(%r8),%xmm5
  movss  %xmm5,0x1c(%rsp)
  movss  0x8(%r8),%xmm5
  movss  %xmm5,0x54(%rsp)
  movss  0x18(%rsi),%xmm5
  mov    0x158(%rsp),%rbx
  movss  0x14(%rsi),%xmm11
  mov    0x148(%rsp),%r14
  mov    %r8,0x130(%rsp)
  mov    %r13,%r8
  movss  %xmm5,0x18(%rsp)
  movss  0x1c(%rsi),%xmm5
  movss  0x10(%rbx,%rdx,1),%xmm0
  mov    %r9,%r13
  add    %rdx,%r14
  mov    %rsi,0x138(%rsp)
  movss  0x4(%rsi),%xmm8
  movss  %xmm5,0x50(%rsp)
  movss  0x8(%rsi),%xmm5
  movss  %xmm0,0x14(%rsp)
  movss  0x14(%rbx,%rdx,1),%xmm0
  movss  %xmm5,0x10(%rsp)
  movss  0xc(%rsi),%xmm5
  movss  %xmm0,0x48(%rsp)
  movss  %xmm5,0x4c(%rsp)
  movss  0xc(%rbx,%rdx,1),%xmm5
  mov    %rdi,%rbx
  movd   %xmm11,%edx
  movd   %xmm13,%edi
  movaps %xmm1,%xmm13
  movaps %xmm5,%xmm0
  movaps %xmm4,%xmm5
  movaps %xmm2,%xmm4
  movaps %xmm5,%xmm11
  movaps %xmm12,%xmm2
  movaps %xmm7,%xmm12
  movaps %xmm3,%xmm7
  jmp    L32
L24:
  movss  0xd8(%rsp),%xmm3
  movss  0xa8(%rsp),%xmm5
  movss  %xmm3,0x48(%rsp)
  movss  0xdc(%rsp),%xmm3
  movss  %xmm5,0x54(%rsp)
  movss  0x8c(%rsp),%xmm5
  movss  %xmm3,0x4c(%rsp)
  movss  0x84(%rsp),%xmm3
  movss  %xmm5,0x5c(%rsp)
  movss  0x90(%rsp),%xmm5
  movss  %xmm3,0x50(%rsp)
  movss  0x88(%rsp),%xmm3
  movss  %xmm5,0x64(%rsp)
  movss  0x94(%rsp),%xmm5
  movss  %xmm3,0x58(%rsp)
  movss  0xac(%rsp),%xmm3
  movss  %xmm5,0x6c(%rsp)
  movss  0x98(%rsp),%xmm5
  movss  %xmm3,0x60(%rsp)
  movss  0xb0(%rsp),%xmm3
  movss  %xmm5,0x44(%rsp)
  movss  0x9c(%rsp),%xmm5
  movss  %xmm3,0x68(%rsp)
  movss  0xe0(%rsp),%xmm3
  movss  %xmm5,0x78(%rsp)
  movss  %xmm3,0x70(%rsp)
  movss  0xa0(%rsp),%xmm3
  movss  %xmm3,0x74(%rsp)
  movss  0xa4(%rsp),%xmm3
  movss  %xmm3,0x7c(%rsp)
L32:
  movss  0x20(%rbx,%r13,1),%xmm3
  movss  0x20(%rbx,%r15,4),%xmm5
  mov    %r11,0xd0(%rsp)
  addss  %xmm11,%xmm10
  movss  0x18(%rbx,%r8,1),%xmm1
  mov    %rax,0xc8(%rsp)
  add    $0x4,%r14
  movss  %xmm3,0x84(%rsp)
  movss  0x18(%rbx,%rcx,4),%xmm3
  movss  %xmm5,0x88(%rsp)
  movss  0x20(%rbx,%r12,1),%xmm5
  movss  %xmm3,0x8c(%rsp)
  movss  0x20(%rbx,%rbp,4),%xmm3
  movss  %xmm5,0x90(%rsp)
  movss  0x20(%rbx),%xmm5
  movss  %xmm3,0x94(%rsp)
  movss  0x1c(%rbx,%r11,1),%xmm3
  movss  %xmm5,0x98(%rsp)
  movss  0x8(%rsp),%xmm5
  movss  %xmm3,0x9c(%rsp)
  movss  0x1c(%rbx,%rax,4),%xmm3
  movss  %xmm5,0x80(%rsp)
  movss  0xc(%rbx,%r11,1),%xmm5
  movss  %xmm3,0x8(%rsp)
  movss  0xc(%rbx,%rax,4),%xmm3
  movss  %xmm5,0xa0(%rsp)
  movss  0x10(%rbx,%r13,1),%xmm5
  movss  %xmm3,0xa4(%rsp)
  movss  0x10(%rbx,%r15,4),%xmm3
  movss  %xmm1,0xd8(%rsp)
  movss  %xmm3,0xa8(%rsp)
  movss  0x10(%rbx,%r12,1),%xmm3
  movss  %xmm5,0xdc(%rsp)
  movss  %xmm3,0xac(%rsp)
  movss  0x10(%rbx,%rbp,4),%xmm3
  addss  0x48(%rsp),%xmm0
  addss  (%rbx,%r12,1),%xmm0
  addss  0x8(%rbx,%r8,1),%xmm1
  mov    %r8,0xc0(%rsp)
  addss  0x90(%rsp),%xmm0
  addss  (%rbx,%rbp,4),%xmm0
  movss  %xmm3,0xb0(%rsp)
  addss  0x94(%rsp),%xmm0
  addss  (%rbx,%r13,1),%xmm1
  mov    %rcx,0xb8(%rsp)
  addss  0x84(%rsp),%xmm1
  addss  (%rbx,%r15,4),%xmm1
  addss  0x88(%rsp),%xmm1
  addss  0x8(%rbx,%rcx,4),%xmm1
  add    $0x4,%rbx
  addss  0x8c(%rsp),%xmm1
  addss  %xmm0,%xmm9
  movss  0xc(%rbx),%xmm3
  mulss  0x114(%rsp),%xmm1
  addss  0x5c(%rsp),%xmm9
  mulss  0x10c(%rsp),%xmm9
  movss  0x98(%rsp),%xmm0
  movss  %xmm3,0xe0(%rsp)
  addss  %xmm1,%xmm9
  movss  0x14(%rsp),%xmm1
  addss  -0x4(%rbx),%xmm1
  addss  %xmm1,%xmm0
  addss  0x24(%rsp),%xmm0
  movd   %edi,%xmm1
  mulss  0x110(%rsp),%xmm0
  addss  0x9c(%rsp),%xmm1
  addss  0xb4(%rsp),%xmm1
  addss  0x8(%rsp),%xmm1
  mulss  0xe4(%rsp),%xmm1
  addss  %xmm9,%xmm0
  addss  %xmm1,%xmm0
  movss  0x78(%rsp),%xmm1
  addss  0x74(%rsp),%xmm1
  addss  %xmm8,%xmm1
  addss  0x50(%rsp),%xmm1
  addss  0x44(%rsp),%xmm10
  addss  0x38(%rsp),%xmm5
  addss  0x60(%rsp),%xmm4
  addss  %xmm14,%xmm1
  addss  0x58(%rsp),%xmm1
  addss  0x7c(%rsp),%xmm1
  addss  %xmm13,%xmm10
  mulss  0xf0(%rsp),%xmm10
  addss  0x80(%rsp),%xmm1
  mulss  0xe8(%rsp),%xmm1
  addss  %xmm0,%xmm1
  movss  0xa0(%rsp),%xmm0
  addss  0x3c(%rsp),%xmm0
  addss  %xmm15,%xmm0
  addss  0x64(%rsp),%xmm0
  addss  %xmm6,%xmm0
  addss  0x6c(%rsp),%xmm0
  movss  0x10(%rsp),%xmm6
  addss  0xa4(%rsp),%xmm0
  addss  0x40(%rsp),%xmm0
  mulss  0xec(%rsp),%xmm0
  addss  0x18(%rsp),%xmm6
  addss  %xmm0,%xmm1
  movss  0x1c(%rsp),%xmm0
  addss  %xmm6,%xmm0
  addss  0x20(%rsp),%xmm0
  mulss  0xf4(%rsp),%xmm0
  addss  %xmm1,%xmm10
  movss  0x28(%rsp),%xmm1
  addss  %xmm10,%xmm0
  movd   %edx,%xmm10
  addss  0x4c(%rsp),%xmm10
  addss  %xmm10,%xmm1
  addss  0x2c(%rsp),%xmm1
  addss  0x30(%rsp),%xmm1
  addss  0x34(%rsp),%xmm1
  addss  0x54(%rsp),%xmm1
  addss  %xmm7,%xmm1
  mulss  0xf8(%rsp),%xmm1
  addss  %xmm0,%xmm1
  movss  0xc(%rsp),%xmm0
  addss  %xmm5,%xmm0
  addss  0xa8(%rsp),%xmm0
  mulss  0xfc(%rsp),%xmm0
  addss  %xmm1,%xmm0
  movss  0x68(%rsp),%xmm1
  movss  0x100(%rsp),%xmm5
  addss  %xmm4,%xmm1
  movaps %xmm1,%xmm13
  movss  0xac(%rsp),%xmm1
  addss  0x70(%rsp),%xmm1
  addss  %xmm12,%xmm13
  mulss  %xmm13,%xmm5
  addss  %xmm0,%xmm5
  movaps %xmm1,%xmm0
  movss  0x108(%rsp),%xmm1
  addss  %xmm2,%xmm0
  addss  0xb0(%rsp),%xmm0
  mulss  0x104(%rsp),%xmm0
  mulss  %xmm3,%xmm1
  addss  %xmm5,%xmm0
  addss  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  call   <fmaxf@plt>
  movaps %xmm0,%xmm1
  movss  D0(%rip),%xmm0
  call   <fminf@plt>
  movss  0x7c(%rsp),%xmm2
  mov    0x74(%rsp),%edi
  movss  0x44(%rsp),%xmm4
  movss  0x78(%rsp),%xmm1
  movss  %xmm0,0xc(%r14)
  movss  0x80(%rsp),%xmm8
  movss  0x70(%rsp),%xmm12
  movss  %xmm2,0xb4(%rsp)
  movss  0x6c(%rsp),%xmm7
  movss  0xc(%rsp),%xmm2
  movss  %xmm4,0xc(%rsp)
  movss  0x68(%rsp),%xmm4
  movss  0x40(%rsp),%xmm13
  movss  %xmm8,0x40(%rsp)
  movss  0x3c(%rsp),%xmm11
  movss  0x38(%rsp),%xmm10
  movss  %xmm1,0x3c(%rsp)
  movss  0x30(%rsp),%xmm6
  movss  %xmm12,0x38(%rsp)
  movss  0x34(%rsp),%xmm12
  movss  %xmm4,0x30(%rsp)
  movss  0x2c(%rsp),%xmm4
  movss  %xmm7,0x34(%rsp)
  movss  0x64(%rsp),%xmm15
  movss  0x5c(%rsp),%xmm5
  movss  0x24(%rsp),%xmm9
  movss  0x60(%rsp),%xmm7
  movss  %xmm5,0x24(%rsp)
  movss  0x50(%rsp),%xmm5
  movss  0x58(%rsp),%xmm14
  movss  0x54(%rsp),%xmm1
  mov    0x18(%rsp),%edx
  movss  %xmm15,0x2c(%rsp)
  movss  0x48(%rsp),%xmm3
  movss  %xmm5,0x18(%rsp)
  movss  0x4c(%rsp),%xmm5
  cmp    0x118(%rsp),%rbx
  movss  0x28(%rsp),%xmm15
  movss  %xmm7,0x28(%rsp)
  movss  0x10(%rsp),%xmm8
  movss  0x20(%rsp),%xmm7
  movss  %xmm5,0x10(%rsp)
  movss  0x14(%rsp),%xmm0
  movss  %xmm14,0x20(%rsp)
  mov    0xb8(%rsp),%rcx
  movss  0x1c(%rsp),%xmm14
  mov    0xc0(%rsp),%r8
  movss  %xmm1,0x1c(%rsp)
  mov    0xc8(%rsp),%rax
  mov    0xd0(%rsp),%r11
  movss  %xmm3,0x14(%rsp)
  jne    L24
  mov    0x168(%rsp),%rdi
  mov    0x138(%rsp),%rsi
  mov    %r13,%r9
  mov    %r8,%r13
  mov    0x130(%rsp),%r8
  addl   $0x1,0x120(%rsp)
  add    %rdi,0x118(%rsp)
  mov    0x120(%rsp),%edx
  add    %rdi,%rsi
  add    %rcx,0x128(%rsp)
  add    %rdi,%r8
  cmp    0x124(%rsp),%edx
  jne    L70
L47:
  mov    0x2b8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L58
  mov    0x144(%rsp),%edx
  mov    0x140(%rsp),%esi
  mov    $0x4,%ecx
  xor    %eax,%eax
  mov    0x148(%rsp),%rdi
  add    $0x2c8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10f0 <dt_masks_extend_border@plt>
L58:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D0
data_type: byte[4]

tool: {"D0": [0x00,0x00,0x80,0x3f]}

assistant: ```c
void dt_masks_blur_9x9(float *const restrict src, float *const restrict out, const int width, const int height, const float sigma) {
  float kernel[9][9];
  const float temp = 2.0f * sqrf(sigma);
  float sum = 0.0f;
  for (int i = -4; i <= 4; i++) {
    for (int j = -4; j <= 4; j++) {
      kernel[i + 4][j + 4] = expf(-(sqrf(i) + sqrf(j)) / temp);
      sum += kernel[i + 4][j + 4];
    }
  }
  for (int i = 0; i < 9; i++) {
    for (int j = 0; j < 9; j++)
      kernel[i][j] /= sum;
  }
  const float c42 = kernel[0][2];
  const float c41 = kernel[0][3];
  const float c40 = kernel[0][4];
  const float c33 = kernel[1][1];
  const float c32 = kernel[1][2];
  const float c31 = kernel[1][3];
  const float c30 = kernel[1][4];
  const float c22 = kernel[2][2];
  const float c21 = kernel[2][3];
  const float c20 = kernel[2][4];
  const float c11 = kernel[3][3];
  const float c10 = kernel[3][4];
  const float c00 = kernel[4][4];
  const int w1 = width;
  const int w2 = 2 * width;
  const int w3 = 3 * width;
  const int w4 = 4 * width;
  for (int row = 4; row < height - 4; row++) {
#pragma GCC ivdep
    for (int col = 4; col < width - 4; col++) {
      const int i = row * width + col;
      const float val = c42 * (src[i - w4 - 2] + src[i - w4 + 2] + src[i - w2 - 4] + src[i - w2 + 4] + src[i + w2 - 4] + src[i + w2 + 4] + src[i + w4 - 2] + src[i + w4 + 2]) + c41 * (src[i - w4 - 1] + src[i - w4 + 1] + src[i - w1 - 4] + src[i - w1 + 4] + src[i + w1 - 4] + src[i + w1 + 4] + src[i + w4 - 1] + src[i + w4 + 1]) + c40 * (src[i - w4] + src[i - 4] + src[i + 4] + src[i + w4]) + c33 * (src[i - w3 - 3] + src[i - w3 + 3] + src[i + w3 - 3] + src[i + w3 + 3]) + c32 * (src[i - w3 - 2] + src[i - w3 + 2] + src[i - w2 - 3] + src[i - w2 + 3] + src[i + w2 - 3] + src[i + w2 + 3] + src[i + w3 - 2] + src[i + w3 + 2]) + c31 * (src[i - w3 - 1] + src[i - w3 + 1] + src[i - w1 - 3] + src[i - w1 + 3] + src[i + w1 - 3] + src[i + w1 + 3] + src[i + w3 - 1] + src[i + w3 + 1]) + c30 * (src[i - w3] + src[i - 3] + src[i + 3] + src[i + w3]) + c22 * (src[i - w2 - 2] + src[i - w2 + 2] + src[i + w2 - 2] + src[i + w2 + 2]) + c21 * (src[i - w2 - 1] + src[i - w2 + 1] + src[i - w1 - 2] + src[i - w1 + 2] + src[i + w1 - 2] + src[i + w1 + 2] + src[i + w2 - 1] + src[i + w2 + 1]) + c20 * (src[i - w2] + src[i - 2] + src[i + 2] + src[i + w2]) + c11 * (src[i - w1 - 1] + src[i - w1 + 1] + src[i + w1 - 1] + src[i + w1 + 1]) + c10 * (src[i - w1] + src[i - 1] + src[i + 1] + src[i + w1]) + c00 * src[i];
      out[i] = fminf(1.0f, fmaxf(0.0f, val));
    }
  }
  dt_masks_extend_border(out, width, height, 4);
}
```