user: 请将以下的汇编代码转换成C语言代码:

```asm
<FilterFoldedBinsBlob>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r12
  push   %rbx
  sub    $0x50,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %esi,-0x4c(%rbp)
  movss  %xmm0,-0x50(%rbp)
  mov    %edx,-0x54(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%r12
  mov    -0x4c(%rbp),%ebx
  movslq %ebx,%rax
  sub    $0x1,%rax
  mov    %rax,-0x28(%rbp)
  movslq %ebx,%rax
  mov    %rax,%r10
  mov    $0x0,%r11d
  movslq %ebx,%rax
  mov    %rax,%r8
  mov    $0x0,%r9d
  movslq %ebx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L16:
  cmp    %rdx,%rsp
  je     L68
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L16
L68:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L14
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L14:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x20(%rbp)
  movl   $0x0,-0x34(%rbp)
  jmp    L69
L64:
  movslq %ebx,%rax
  shl    $0x2,%eax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rcx
  mov    -0x20(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  movl   $0x0,-0x38(%rbp)
  jmp    L67
L37:
  mov    -0x38(%rbp),%edx
  mov    -0x4c(%rbp),%eax
  add    %edx,%eax
  add    $0x1,%eax
  cltd
  idivl  -0x4c(%rbp)
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm0
  movss  %xmm0,-0x30(%rbp)
  mov    -0x38(%rbp),%edx
  mov    -0x4c(%rbp),%eax
  add    %edx,%eax
  sub    $0x1,%eax
  cltd
  idivl  -0x4c(%rbp)
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm0
  movss  %xmm0,-0x2c(%rbp)
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  pxor   %xmm2,%xmm2
  cvtss2sd -0x50(%rbp),%xmm2
  movsd  D17(%rip),%xmm0
  subsd  %xmm2,%xmm0
  mulsd  %xmm0,%xmm1
  movss  -0x2c(%rbp),%xmm0
  addss  -0x30(%rbp),%xmm0
  mulss  -0x50(%rbp),%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd %xmm0,%xmm2
  movsd  D16(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x38(%rbp)
L67:
  mov    -0x38(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L37
  addl   $0x1,-0x34(%rbp)
L69:
  mov    -0x34(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jl     L64
  mov    %r12,%rsp
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L52
  call   <__stack_chk_fail@plt>
L52:
  lea    -0x10(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D17
datatype: f64
name: unpack_data
arguments: data_label: D16
datatype: f64

tool: D17: 1

tool: D16: 0.5

assistant: ```c
void FilterFoldedBinsBlob(float *folded, int bins, float strength, int iter) {
  float tmp[bins];
  int i;
  int j;
  for (j = 0; j < iter; j++) {
    memcpy(tmp, folded, sizeof(tmp));
    for (i = 0; i < bins; i++) {
      float right = tmp[(i + bins + 1) % bins];
      float left = tmp[(i + bins - 1) % bins];
      folded[i] = folded[i] * (1. - strength) + (left + right) * strength * 0.5;
    }
  }
}
```