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

```asm
<SMR>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %edx,-0x30(%rbp)
  mov    %ecx,-0x34(%rbp)
  mov    %r8,-0x40(%rbp)
  mov    %r9d,-0x38(%rbp)
  movss  %xmm0,-0x44(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L50
L11:
  movl   $0x0,-0x10(%rbp)
  jmp    L29
L76:
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x8(%rbp)
  movl   $0x0,-0x18(%rbp)
  jmp    L97
L47:
  movl   $0x0,-0x14(%rbp)
  jmp    L46
L80:
  mov    -0x14(%rbp),%eax
  imul   -0x30(%rbp),%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  imul   -0x34(%rbp),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x18(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm2
  movaps %xmm0,%xmm1
  subss  %xmm2,%xmm1
  pxor   %xmm0,%xmm0
  comiss %xmm1,%xmm0
  jbe    L19
  mov    -0x14(%rbp),%eax
  imul   -0x30(%rbp),%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  imul   -0x34(%rbp),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x18(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  movss  D2(%rip),%xmm1
  xorps  %xmm1,%xmm0
  jmp    L66
L19:
  mov    -0x14(%rbp),%eax
  imul   -0x30(%rbp),%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  imul   -0x34(%rbp),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x18(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
L66:
  movss  %xmm0,-0x4(%rbp)
  movss  -0x4(%rbp),%xmm0
  movaps %xmm0,%xmm1
  addss  %xmm0,%xmm1
  movss  -0x44(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L67
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x18(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm3
  movss  %xmm3,-0x48(%rbp)
  movss  -0x4(%rbp),%xmm1
  movss  D14(%rip),%xmm0
  mulss  %xmm1,%xmm0
  cvttss2si %xmm0,%eax
  mov    %eax,%edi
  call   <exp@plt>
  mulss  -0x48(%rbp),%xmm0
  movss  -0x8(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x8(%rbp)
L67:
  addl   $0x1,-0x14(%rbp)
L46:
  mov    -0x14(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L80
  addl   $0x1,-0x18(%rbp)
L97:
  mov    -0x18(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jl     L47
  mov    -0xc(%rbp),%eax
  imul   -0x34(%rbp),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  -0x8(%rbp),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x10(%rbp)
L29:
  mov    -0x10(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L76
  addl   $0x1,-0xc(%rbp)
L50:
  mov    -0xc(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L11
  mov    $0x0,%eax
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D2
type: byte[4]
name: disassemble_data
arguments: data_label: D14
type: byte[4]

tool: {"D2": [0x00,0x00,0x00,0x80]}

tool: {"D14": [0x00,0x00,0x00,0xc0]}

assistant: ```c
int SMR(float *input, int ichannels, int iheight, int iwidth, float *output, int numProto, float *code, float *weight, float th) {
  int i, k, x, y;
  float dist, yi_hat;
  for (y = 0; y < iheight; y++) {
    for (x = 0; x < iwidth; x++) {
      yi_hat = 0;
      for (i = 0; i < numProto; i++) {
        for (k = 0; k < ichannels; k++) {
          dist = (input[(y + k * iheight) * iwidth + x] - code[k + i * ichannels]) < 0 ? -(input[(y + k * iheight) * iwidth + x] - code[k + i * ichannels]) : (input[(y + k * iheight) * iwidth + x] - code[k + i * ichannels]);
          if (2 * dist < th)
            yi_hat += weight[i] * exp(-2 * dist);
        }
      }
      output[y * iwidth + x] = yi_hat;
    }
  }
  return 0;
}
```