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

```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    $0x208,%rsp
  mov    %rdi,0x78(%rsp)
  lea    0xb0(%rsp),%r14
  mov    %rsi,0x70(%rsp)
  mov    %r14,%r13
  mov    %edx,0x68(%rsp)
  mov    %ecx,0xac(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x1f8(%rsp)
  xor    %eax,%eax
  mov    $0x1,%eax
  call   <sqrf@plt>
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm0
  movss  %xmm1,0x8(%rsp)
  addss  %xmm0,%xmm0
  movss  %xmm0,0x10(%rsp)
  nopw   0x0(%rax,%rax,1)
L70:
  mov    $0xfffffffffffffffc,%r12
  nopw   0x0(%rax,%rax,1)
L88:
  mov    %ebp,%edi
  xor    %eax,%eax
  call   <sqrf@plt>
  mov    %r12d,%edi
  mov    %eax,%ebx
  xor    %eax,%eax
  call   <sqrf@plt>
  pxor   %xmm0,%xmm0
  add    %eax,%ebx
  neg    %ebx
  cvtsi2ss %ebx,%xmm0
  divss  0x10(%rsp),%xmm0
  call   <expf@plt>
  movss  %xmm0,0x10(%r13,%r12,4)
  addss  0x8(%rsp),%xmm0
  add    $0x1,%r12
  movss  %xmm0,0x8(%rsp)
  cmp    $0x5,%r12
  jne    L88
  add    $0x1,%ebp
  add    $0x24,%r13
  cmp    $0x5,%ebp
  jne    L70
  lea    0x24(%r14),%rdx
  movaps %xmm0,%xmm1
  add    $0x168,%r14
  nopl   0x0(%rax,%rax,1)
L55:
  lea    -0x24(%rdx),%rax
  nopl   0x0(%rax)
L43:
  movss  (%rax),%xmm0
  add    $0x4,%rax
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x4(%rax)
  cmp    %rax,%rdx
  jne    L43
  add    $0x24,%rdx
  cmp    %rdx,%r14
  jne    L55
  movss  0xb8(%rsp),%xmm6
  mov    0x68(%rsp),%ecx
  movss  0xbc(%rsp),%xmm7
  mov    0xac(%rsp),%esi
  movss  %xmm6,0x30(%rsp)
  lea    (%rcx,%rcx,1),%eax
  movss  0xc0(%rsp),%xmm6
  lea    0x0(,%rcx,4),%r13d
  movss  %xmm7,0x34(%rsp)
  sub    $0x4,%esi
  lea    (%rax,%rcx,1),%edi
  movss  0xd8(%rsp),%xmm7
  movss  %xmm6,0x38(%rsp)
  movss  0xdc(%rsp),%xmm6
  movss  %xmm7,0x3c(%rsp)
  movss  0xe0(%rsp),%xmm7
  movss  %xmm6,0x40(%rsp)
  movss  0xe4(%rsp),%xmm6
  movss  %xmm7,0x44(%rsp)
  movss  0x100(%rsp),%xmm7
  movss  %xmm6,0x48(%rsp)
  movss  0x104(%rsp),%xmm6
  movss  %xmm7,0x4c(%rsp)
  movss  0x108(%rsp),%xmm7
  movss  %xmm6,0x50(%rsp)
  movss  0x128(%rsp),%xmm6
  movss  %xmm7,0x54(%rsp)
  movss  0x12c(%rsp),%xmm7
  movss  %xmm6,0x58(%rsp)
  movss  0x150(%rsp),%xmm6
  mov    %esi,0xa8(%rsp)
  movss  %xmm7,0x5c(%rsp)
  movss  %xmm6,0x60(%rsp)
  cmp    $0x4,%esi
  jle    L50
  mov    $0x4,%edx
  cltq
  movslq %r13d,%r12
  movslq %edi,%r13
  mov    %rdx,%rsi
  mov    %r12,%r9
  mov    %r13,%r8
  mov    %r12d,0x6c(%rsp)
  sub    %rax,%rsi
  add    $0x4,%rax
  neg    %r9
  neg    %r8
  mov    %rax,0x88(%rsp)
  movslq %ecx,%rax
  lea    0x0(,%r9,4),%r15
  lea    0x0(,%r8,4),%r14
  sub    %rax,%rdx
  add    $0x4,%rax
  movl   $0x4,0x64(%rsp)
  mov    %rax,0x98(%rsp)
  lea    -0x9(%rcx),%eax
  mov    %r15,%rcx
  mov    %r13,%r15
  mov    %rsi,0x80(%rsp)
  mov    %rcx,%r13
  mov    %rdx,0x90(%rsp)
  mov    %rax,0xa0(%rsp)
  mov    %r14,%rax
  mov    %r12,%r14
  mov    %rax,%r12
  nopl   (%rax)
L81:
  cmpl   $0x8,0x68(%rsp)
  jle    L25
  movslq 0x6c(%rsp),%rdi
  mov    0x80(%rsp),%rax
  mov    0x78(%rsp),%r10
  mov    0x70(%rsp),%r8
  add    %rdi,%rax
  lea    0x0(,%rdi,4),%r11
  lea    -0x10(%r10,%rax,4),%rsi
  mov    0x88(%rsp),%rax
  lea    (%r8,%r11,1),%rbp
  lea    (%r10,%r11,1),%rbx
  add    %rdi,%rax
  lea    -0x10(%r10,%rax,4),%rcx
  mov    0x90(%rsp),%rax
  mov    %rcx,%r9
  mov    %r14,%rcx
  add    %rdi,%rax
  mov    %r9,%r14
  lea    -0x10(%r10,%rax,4),%rdx
  mov    0x98(%rsp),%rax
  add    %rdi,%rax
  add    0xa0(%rsp),%rdi
  lea    0x4(%r10,%rdi,4),%rdi
  lea    -0x10(%r10,%rax,4),%rax
  mov    %rdi,0x28(%rsp)
  mov    %rbp,%rdi
  mov    %r15,%rbp
  mov    %rsi,%r15
  mov    %r13,%rsi
  mov    %rdx,%r13
  mov    %r12,%rdx
  mov    %rax,%r12
  nopw   0x0(%rax,%rax,1)
L28:
  movss  0x8(%rbx,%rsi,1),%xmm0
  movss  0x18(%rbx,%rsi,1),%xmm1
  mov    %rdi,0x20(%rsp)
  add    $0x4,%r15
  mov    %rsi,0x18(%rsp)
  add    $0x4,%r14
  add    $0x4,%r13
  add    $0x4,%r12
  addss  %xmm0,%xmm1
  movss  0xc(%rbx,%rsi,1),%xmm0
  addss  -0x4(%r15),%xmm1
  mov    %rcx,0x10(%rsp)
  addss  0x14(%rbx,%rsi,1),%xmm0
  addss  0x1c(%r15),%xmm1
  addss  -0x4(%r13),%xmm0
  addss  -0x4(%r14),%xmm1
  addss  0x1c(%r13),%xmm0
  addss  0x1c(%r14),%xmm1
  addss  -0x4(%r12),%xmm0
  addss  0x8(%rbx,%rcx,4),%xmm1
  addss  0x1c(%r12),%xmm0
  addss  0x18(%rbx,%rcx,4),%xmm1
  addss  0xc(%rbx,%rcx,4),%xmm0
  mulss  0x30(%rsp),%xmm1
  addss  0x14(%rbx,%rcx,4),%xmm0
  mulss  0x34(%rsp),%xmm0
  addss  %xmm0,%xmm1
  movss  0x10(%rbx,%rsi,1),%xmm0
  addss  (%rbx),%xmm0
  addss  0x20(%rbx),%xmm0
  addss  0x10(%rbx,%rcx,4),%xmm0
  mulss  0x38(%rsp),%xmm0
  addss  %xmm0,%xmm1
  movss  0x4(%rbx,%rdx,1),%xmm0
  addss  0x1c(%rbx,%rdx,1),%xmm0
  addss  0x4(%rbx,%rbp,4),%xmm0
  addss  0x1c(%rbx,%rbp,4),%xmm0
  mulss  0x3c(%rsp),%xmm0
  addss  %xmm0,%xmm1
  movss  0x8(%rbx,%rdx,1),%xmm0
  addss  0x18(%rbx,%rdx,1),%xmm0
  mov    %rdx,0x8(%rsp)
  addss  (%r15),%xmm0
  addss  0x18(%r15),%xmm0
  addss  (%r14),%xmm0
  addss  0x18(%r14),%xmm0
  addss  0x8(%rbx,%rbp,4),%xmm0
  addss  0x18(%rbx,%rbp,4),%xmm0
  mulss  0x40(%rsp),%xmm0
  addss  %xmm0,%xmm1
  movss  0xc(%rbx,%rdx,1),%xmm0
  addss  0x14(%rbx,%rdx,1),%xmm0
  addss  0x0(%r13),%xmm0
  addss  0x18(%r13),%xmm0
  addss  (%r12),%xmm0
  addss  0x18(%r12),%xmm0
  addss  0xc(%rbx,%rbp,4),%xmm0
  addss  0x14(%rbx,%rbp,4),%xmm0
  mulss  0x44(%rsp),%xmm0
  addss  %xmm0,%xmm1
  movss  0x10(%rbx,%rdx,1),%xmm0
  addss  0x4(%rbx),%xmm0
  addss  0x1c(%rbx),%xmm0
  addss  0x10(%rbx,%rbp,4),%xmm0
  add    $0x4,%rbx
  mulss  0x48(%rsp),%xmm0
  addss  %xmm0,%xmm1
  movss  0x4(%r15),%xmm0
  addss  0x14(%r15),%xmm0
  addss  0x4(%r14),%xmm0
  addss  0x14(%r14),%xmm0
  mulss  0x4c(%rsp),%xmm0
  addss  %xmm0,%xmm1
  movss  0x8(%r15),%xmm0
  addss  0x10(%r15),%xmm0
  addss  0x4(%r13),%xmm0
  addss  0x14(%r13),%xmm0
  addss  0x4(%r12),%xmm0
  addss  0x14(%r12),%xmm0
  addss  0x8(%r14),%xmm0
  addss  0x10(%r14),%xmm0
  mulss  0x50(%rsp),%xmm0
  addss  %xmm0,%xmm1
  movss  0xc(%r15),%xmm0
  addss  0x4(%rbx),%xmm0
  addss  0x14(%rbx),%xmm0
  addss  0xc(%r14),%xmm0
  mulss  0x54(%rsp),%xmm0
  addss  %xmm0,%xmm1
  movss  0x8(%r13),%xmm0
  addss  0x10(%r13),%xmm0
  addss  0x8(%r12),%xmm0
  addss  0x10(%r12),%xmm0
  mulss  0x58(%rsp),%xmm0
  addss  %xmm0,%xmm1
  movss  0xc(%r13),%xmm0
  addss  0x8(%rbx),%xmm0
  addss  0x10(%rbx),%xmm0
  addss  0xc(%r12),%xmm0
  mulss  0x5c(%rsp),%xmm0
  addss  %xmm0,%xmm1
  movss  0x60(%rsp),%xmm0
  mulss  0xc(%rbx),%xmm0
  addss  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  call   <fmaxf@plt>
  movaps %xmm0,%xmm1
  movss  D4(%rip),%xmm0
  call   <fminf@plt>
  mov    0x20(%rsp),%rdi
  mov    0x8(%rsp),%rdx
  mov    0x10(%rsp),%rcx
  mov    0x18(%rsp),%rsi
  movss  %xmm0,0x10(%rdi)
  add    $0x4,%rdi
  cmp    %rbx,0x28(%rsp)
  jne    L28
  mov    %rbp,%r15
  mov    %rcx,%r14
  mov    %rsi,%r13
  mov    %rdx,%r12
L25:
  addl   $0x1,0x64(%rsp)
  mov    0x68(%rsp),%esi
  mov    0x64(%rsp),%eax
  add    %esi,0x6c(%rsp)
  cmp    0xa8(%rsp),%eax
  jne    L81
L50:
  mov    0x1f8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L79
  mov    0x68(%rsp),%esi
  mov    0x70(%rsp),%rdi
  mov    $0x4,%ecx
  xor    %eax,%eax
  mov    0xac(%rsp),%edx
  add    $0x208,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10f0 <dt_masks_extend_border@plt>
L79:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D4
data_type: byte[4]

tool: {"D4": [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);
}
```