user: Translate the below assembly code into C programming language:

```asm
<sms_filterArray>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x48(%rbp)
  mov    %esi,-0x4c(%rbp)
  mov    %edx,-0x50(%rbp)
  mov    %rcx,-0x58(%rbp)
  mov    -0x50(%rbp),%eax
  sub    $0x2,%eax
  mov    %eax,-0x38(%rbp)
  mov    -0x50(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x34(%rbp),%eax
  imul   -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x18(%rbp)
  movl   $0x0,-0x40(%rbp)
  jmp    L29
L10:
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  D3(%rip),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movl   $0x1,-0x3c(%rbp)
  jmp    L12
L71:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x50(%rbp),%xmm0
  mov    -0x3c(%rbp),%eax
  add    $0x1,%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x40(%rbp),%eax
  sub    -0x34(%rbp),%eax
  mov    %eax,%edx
  mov    -0x3c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x30(%rbp)
  cmpl   $0x0,-0x30(%rbp)
  js     L53
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  movsd  -0x28(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x20(%rbp),%xmm0
  addsd  -0x10(%rbp),%xmm0
  movsd  %xmm0,-0x20(%rbp)
L53:
  mov    -0x40(%rbp),%edx
  mov    -0x34(%rbp),%eax
  add    %edx,%eax
  sub    -0x3c(%rbp),%eax
  mov    %eax,-0x30(%rbp)
  mov    -0x30(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jge    L1
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  movsd  -0x28(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x20(%rbp),%xmm0
  addsd  -0x10(%rbp),%xmm0
  movsd  %xmm0,-0x20(%rbp)
L1:
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x2c(%rbp),%eax
  imul   -0x4c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  pxor   %xmm0,%xmm0
  ucomisd -0x8(%rbp),%xmm0
  jp     L41
  pxor   %xmm0,%xmm0
  ucomisd -0x8(%rbp),%xmm0
  je     L34
L41:
  movsd  -0x8(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  movsd  -0x28(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x20(%rbp),%xmm0
  addsd  -0x10(%rbp),%xmm0
  movsd  %xmm0,-0x20(%rbp)
L34:
  addl   $0x1,-0x3c(%rbp)
L12:
  mov    -0x3c(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jl     L71
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x28(%rbp),%xmm0
  divsd  -0x20(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x40(%rbp)
L29:
  mov    -0x40(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L10
  nop
  nop
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D3
type_guessed: byte[8]

tool: {"D3": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

assistant: ```c
void sms_filterArray(double *pFArray, int size1, int size2, double *pFOutArray) {
  int i, j, iPoint, iFrame, size2_2 = size2 - 2, size2_1 = size2 - 1;
  double *pFCurrentArray = pFArray + (size2_1)*size1;
  double fVal, fWeighting, fTotalWeighting, fTmpVal;
  for (i = 0; i < size1; i++) {
    fVal = pFCurrentArray[i];
    fTotalWeighting = 1;
    for (j = 1; j < (size2_2); j++) {
      fWeighting = (double)size2 / (1 + j);
      iPoint = i - (size2_1) + j;
      if (iPoint >= 0) {
        fVal += pFCurrentArray[iPoint] * fWeighting;
        fTotalWeighting += fWeighting;
      }
      iPoint = i + (size2_1)-j;
      if (iPoint < size1) {
        fVal += pFCurrentArray[iPoint] * fWeighting;
        fTotalWeighting += fWeighting;
      }
      iFrame = j;
      fTmpVal = pFArray[iFrame * size1 + i];
      if (fTmpVal) {
        fVal += fTmpVal * fWeighting;
        fTotalWeighting += fWeighting;
      }
    }
    pFOutArray[i] = fVal / fTotalWeighting;
  }
}
```