user: What is the c source code of the assembly code below?

```asm
<predict>:
  endbr64
  push   %r15
  imul   %esi,%edx
  mov    $0xffffffff,%r10d
  lea    -0x1(%r8),%eax
  push   %r14
  push   %r13
  push   %r12
  mov    %edx,%r14d
  lea    -0x1(%rcx),%edx
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  test   %ecx,%ecx
  cmovs  %ecx,%r10d
  mov    0x50(%rsp),%r15d
  add    $0x1,%r10d
  test   %ecx,%ecx
  mov    $0xffffffff,%ecx
  cmovle %r10d,%edx
  test   %r8d,%r8d
  cmovs  %r8d,%ecx
  add    $0x1,%ecx
  test   %r8d,%r8d
  cmovg  %eax,%ecx
  mov    %ecx,%ebx
  imul   %esi,%ebx
  test   %r14d,%r14d
  jle    L154
  mov    %edx,%r12d
  mov    %r14d,%edx
  mov    %esi,%ebp
  mov    %rdi,%r13
  lea    -0x1(%r14),%eax
  mov    %r9,%rdi
  shl    $0x2,%rdx
  xor    %esi,%esi
  mov    %eax,0xc(%rsp)
  call   <memset@plt>
  mov    %ebx,%ecx
  movslq %ebp,%r8
  lea    (%r12,%rbp,1),%ebx
  mov    %rax,%r9
  shl    $0x2,%r8
  xor    %eax,%eax
  pxor   %xmm1,%xmm1
  sub    %ecx,%ebx
  jmp    L77
  nopl   0x0(%rax,%rax,1)
L164:
  add    %ebp,%ecx
  mov    %r11d,%eax
  add    %r8,%r13
  cmp    %r11d,%r14d
  jle    L16
L77:
  lea    0x0(%rbp,%rax,1),%r11d
  test   %ecx,%ecx
  js     L164
  cmp    %ecx,%r14d
  jle    L164
  cmp    %r11d,%eax
  jge    L164
  lea    (%rbx,%rcx,1),%edi
  mov    %r13,%rdx
  sub    %eax,%edi
  mov    %r12d,%eax
  nopl   0x0(%rax,%rax,1)
L124:
  test   %eax,%eax
  js     L14
  cmp    %eax,%ebp
  jle    L14
  movss  (%rdx),%xmm0
  lea    (%rax,%rcx,1),%esi
  movslq %esi,%rsi
  addss  %xmm0,%xmm1
  movss  %xmm0,(%r9,%rsi,4)
L14:
  add    $0x1,%eax
  add    $0x4,%rdx
  cmp    %eax,%edi
  jne    L124
  add    %ebp,%ecx
  mov    %r11d,%eax
  add    %r8,%r13
  cmp    %r11d,%r14d
  jg     L77
L16:
  test   %r15d,%r15d
  jne    L154
  movss  D6(%rip),%xmm0
  cmpl   $0x2,0xc(%rsp)
  movaps %xmm0,%xmm2
  divss  %xmm1,%xmm2
  jbe    L79
  mov    %r14d,%edx
  movaps %xmm2,%xmm1
  mov    %r9,%rax
  shr    $0x2,%edx
  shufps $0x0,%xmm1,%xmm1
  sub    $0x1,%edx
  shl    $0x4,%rdx
  lea    0x10(%r9,%rdx,1),%rdx
  nopl   0x0(%rax,%rax,1)
L157:
  movups (%rax),%xmm0
  add    $0x10,%rax
  mulps  %xmm1,%xmm0
  movups %xmm0,-0x10(%rax)
  cmp    %rdx,%rax
  jne    L157
  mov    %r14d,%eax
  and    $0xfffffffc,%eax
  mov    %eax,%r15d
  cmp    %r14d,%eax
  je     L154
L36:
  sub    %eax,%r14d
  cmp    $0x1,%r14d
  je     L121
  lea    (%r9,%rax,4),%rax
  movaps %xmm2,%xmm1
  movq   (%rax),%xmm0
  shufps $0xe0,%xmm1,%xmm1
  mulps  %xmm1,%xmm0
  movlps %xmm0,(%rax)
  mov    %r14d,%eax
  and    $0xfffffffe,%eax
  add    %eax,%r15d
  cmp    %eax,%r14d
  je     L154
L121:
  movslq %r15d,%r15
  lea    (%r9,%r15,4),%rax
  mulss  (%rax),%xmm2
  movss  %xmm2,(%rax)
L154:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L79:
  xor    %eax,%eax
  jmp    L36
```

tool_calls: name: extract_symbolic_data
arguments: label: D6
type_infered: f32

tool: D6: 2

assistant: ```c
void predict(filt, x_dim, y_dim, x_pos, y_pos, result, f_or_e) register float *filt, *result;
register int x_dim;
int y_dim, x_pos, y_pos, f_or_e;
{
  register int y_filt, x_filt, y_res, x_res;
  register float taps_used = 0;
  register float fraction;
  int filt_sz = x_dim * y_dim;
  int x_start = ((x_pos > 0) ? (x_pos - 1) : ((x_pos < 0) ? (x_pos + 1) : 0));
  int y_start = x_dim * ((y_pos > 0) ? (y_pos - 1) : ((y_pos < 0) ? (y_pos + 1) : 0));
  int i;
  for (i = 0; i < filt_sz; i++)
    result[i] = 0.0;
  for (y_filt = 0, y_res = y_start; y_filt < filt_sz; y_filt += x_dim, y_res += x_dim)
    if ((y_res >= 0) && (y_res < filt_sz))
      for (x_filt = y_filt, x_res = x_start; x_filt < y_filt + x_dim; x_filt++, x_res++)
        if ((x_res >= 0) && (x_res < x_dim)) {
          result[y_res + x_res] = filt[x_filt];
          taps_used += filt[x_filt];
        }
  if (f_or_e == 0) {
    fraction = ((float)2.0) / ((float)taps_used);
    for (i = 0; i < filt_sz; i++)
      result[i] *= fraction;
  }
}
```