user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<conj_window>:
  endbr64
  test   %esi,%esi
  jle    L69
  pxor   %xmm7,%xmm7
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  cvtsi2ss %esi,%xmm7
  mov    %rdi,%rbp
  push   %rbx
  movslq %esi,%rbx
  sub    $0x10,%rsp
  movss  %xmm7,0x8(%rsp)
  jmp    L93
L23:
  movss  D71(%rip),%xmm5
  comiss %xmm0,%xmm5
  jbe    L10
  movaps %xmm5,%xmm1
  subss  %xmm0,%xmm1
L104:
  cvtss2sd %xmm1,%xmm1
  mulsd  D7(%rip),%xmm1
  cvtsd2ss %xmm1,%xmm1
  movaps %xmm1,%xmm0
  movss  %xmm1,0xc(%rsp)
  call   <cos@plt>
  movss  0xc(%rsp),%xmm1
  movsd  %xmm0,(%rsp)
  movaps %xmm1,%xmm0
  call   <cos@plt>
  mov    D22(%rip),%rax
  movsd  (%rsp),%xmm3
  movapd %xmm0,%xmm4
  movss  D89(%rip),%xmm0
  movq   %rax,%xmm2
  movq   %rax,%xmm1
  mulsd  %xmm2,%xmm3
  mulsd  %xmm2,%xmm4
  subsd  %xmm3,%xmm1
  movq   %rax,%xmm3
  subsd  %xmm4,%xmm3
  mulsd  %xmm3,%xmm1
  cvtsd2ss %xmm1,%xmm1
  subss  %xmm1,%xmm0
L84:
  pxor   %xmm7,%xmm7
  ucomiss %xmm0,%xmm7
  ja     L63
  sqrtss %xmm0,%xmm0
L60:
  movss  %xmm0,0x0(%rbp,%r12,4)
  add    $0x1,%r12
  cmp    %r12,%rbx
  je     L52
L93:
  movss  D89(%rip),%xmm6
  pxor   %xmm0,%xmm0
  cvtsi2ss %r12d,%xmm0
  mulss  D13(%rip),%xmm0
  divss  0x8(%rsp),%xmm0
  comiss %xmm0,%xmm6
  jbe    L23
L5:
  cvtss2sd %xmm0,%xmm0
  mulsd  D7(%rip),%xmm0
  pxor   %xmm1,%xmm1
  cvtsd2ss %xmm0,%xmm1
  movaps %xmm1,%xmm0
  movss  %xmm1,0xc(%rsp)
  call   <cos@plt>
  movss  0xc(%rsp),%xmm1
  movsd  %xmm0,(%rsp)
  movaps %xmm1,%xmm0
  call   <cos@plt>
  mov    D22(%rip),%rax
  movsd  (%rsp),%xmm3
  movapd %xmm0,%xmm4
  pxor   %xmm0,%xmm0
  movq   %rax,%xmm2
  movq   %rax,%xmm1
  mulsd  %xmm2,%xmm3
  mulsd  %xmm2,%xmm4
  subsd  %xmm3,%xmm1
  movq   %rax,%xmm3
  subsd  %xmm4,%xmm3
  mulsd  %xmm3,%xmm1
  cvtsd2ss %xmm1,%xmm0
  jmp    L84
  xchg   %ax,%ax
L10:
  movss  D35(%rip),%xmm6
  comiss %xmm0,%xmm6
  jbe    L65
  movaps %xmm0,%xmm1
  subss  D71(%rip),%xmm1
  jmp    L104
  nopl   (%rax)
L65:
  movss  D13(%rip),%xmm7
  subss  %xmm0,%xmm7
  movaps %xmm7,%xmm0
  jmp    L5
  nopl   0x0(%rax)
L52:
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax)
L69:
  ret
L63:
  call   <sqrtf@plt>
  jmp    L60
```

tool_calls: name: retrieve_data
arguments: data_tag: D71
type: byte[4]
name: retrieve_data
arguments: data_tag: D7
type: f64
name: retrieve_data
arguments: data_tag: D22
type: byte[8]
name: retrieve_data
arguments: data_tag: D89
type: byte[4]
name: retrieve_data
arguments: data_tag: D13
type: f32
name: retrieve_data
arguments: data_tag: D35
type: byte[4]

tool: {"D71": [0x00,0x00,0x00,0x40]}

tool: D7: 1.9979

tool: {"D22": [0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x3f]}

tool: {"D89": [0x00,0x00,0x80,0x3f]}

tool: D13: 4

tool: {"D35": [0x00,0x00,0x40,0x40]}

assistant: ```c
void conj_window(float *w, int len) {
  int i;
  for (i = 0; i < len; i++) {
    float x = 4 * ((float)i) / len;
    int inv = 0;
    if (x < 1) {
    } else if (x < 2) {
      x = 2 - x;
      inv = 1;
    } else if (x < 3) {
      x = x - 2;
      inv = 1;
    } else {
      x = 4 - x;
    }
    x *= 1.9979;
    w[i] = (.5 - .5 * cos(x)) * (.5 - .5 * cos(x));
    if (inv)
      w[i] = 1 - w[i];
    w[i] = sqrtf(w[i]);
  }
}
```