user: Converte this assembly snippet into its equivalent C code:

```asm
<make_window>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %edi,%r15d
  mov    %esi,%r12d
  mov    %rcx,%rbx
  lea    -0x5(%rdi),%eax
  cmp    $0x1,%eax
  jbe    L3
  test   %edx,%edx
  je     L220
  lea    (%rsi,%rsi,1),%eax
  cmp    $0x2,%edi
  cmove  %eax,%r12d
  cmp    $0x9,%edx
  je     L42
  cmp    $0x8,%edx
  je     L152
  mov    %r12d,%r13d
  shr    $0x1f,%r13d
  add    %r12d,%r13d
  sar    %r13d
  cmp    $0xffffffff,%r12d
  jl     L47
  pxor   %xmm6,%xmm6
  cvtsi2sd %edx,%xmm6
  movq   %xmm6,%r14
  mov    $0x0,%ebp
  pxor   %xmm4,%xmm4
  movsd  %xmm4,0x8(%rsp)
  movsd  %xmm4,0x10(%rsp)
L362:
  movsd  0x10(%rsp),%xmm0
  call   <sin@plt>
  movq   %r14,%xmm1
  call   <pow@plt>
  pxor   %xmm0,%xmm0
  cvtsi2ss %rax,%xmm0
  movss  %xmm0,(%rbx,%rbp,4)
  mulss  %xmm0,%xmm0
  cvtss2sd %xmm0,%xmm0
  movapd %xmm0,%xmm5
  addsd  0x8(%rsp),%xmm5
  movsd  %xmm5,0x8(%rsp)
  pxor   %xmm1,%xmm1
  cvtsi2sd %r12d,%xmm1
  movsd  D14(%rip),%xmm6
  divsd  %xmm1,%xmm6
  movapd %xmm6,%xmm7
  addsd  0x10(%rsp),%xmm7
  movsd  %xmm7,0x10(%rsp)
  add    $0x1,%rbp
  cmp    %ebp,%r13d
  jge    L362
L219:
  cmp    $0x3,%r15d
  je     L67
  movsd  0x8(%rsp),%xmm0
  addsd  %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sd %r12d,%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  mov    %eax,%ecx
  mov    $0x1,%eax
  cltd
  idiv   %ecx
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  mov    %r12d,%eax
  shr    $0x1f,%eax
  add    %r12d,%eax
  sar    %eax
L186:
  mov    $0x0,%edx
  cvtsd2ss %xmm1,%xmm1
L5:
  movaps %xmm1,%xmm0
  mulss  (%rbx,%rdx,4),%xmm0
  movss  %xmm0,(%rbx,%rdx,4)
  add    $0x1,%rdx
  cmp    %edx,%eax
  jge    L5
L117:
  cmp    $0x4,%r15d
  je     L283
  cmp    $0x1,%r15d
  jne    L220
  movss  0x4(%rbx),%xmm1
  movslq %eax,%rdx
  movss  (%rbx,%rdx,4),%xmm0
  movss  %xmm0,0x4(%rbx)
  sub    $0x1,%eax
  cmp    $0x1,%eax
  jle    L383
  cltq
L227:
  movss  (%rbx,%rax,4),%xmm0
  movss  %xmm0,(%rbx,%rax,8)
  sub    $0x1,%rax
  cmp    $0x1,%eax
  jg     L227
L383:
  movss  %xmm1,0x8(%rbx)
  cmp    $0x3,%r12d
  jle    L220
  movslq %r12d,%rax
  lea    (%rbx,%rax,4),%rdx
  lea    0xc(%rbx),%rax
  sub    $0x4,%r12d
  shr    %r12d
  mov    %r12d,%ecx
  lea    0x14(%rbx,%rcx,8),%rcx
L306:
  movss  -0x8(%rdx),%xmm0
  movss  %xmm0,(%rax)
  sub    $0x8,%rdx
  add    $0x8,%rax
  cmp    %rax,%rcx
  jne    L306
  jmp    L220
L3:
  pxor   %xmm0,%xmm0
  cvtsi2sd %esi,%xmm0
  movsd  D71(%rip),%xmm1
  divsd  %xmm0,%xmm1
  movsd  %xmm1,0x8(%rsp)
  mov    %esi,%r14d
  shr    $0x1f,%r14d
  add    %esi,%r14d
  sar    %r14d
  cmp    $0xffffffff,%esi
  jl     L133
  mov    $0x0,%ebp
  mov    D61(%rip),%r13
L289:
  movq   %r13,%xmm0
  call   <erfc@plt>
  pxor   %xmm0,%xmm0
  cvtsi2ss %rax,%xmm0
  mulss  D0(%rip),%xmm0
  movss  %xmm0,(%rbx,%rbp,4)
  movq   %r13,%xmm2
  subsd  0x8(%rsp),%xmm2
  movq   %xmm2,%r13
  add    $0x1,%rbp
  cmp    %ebp,%r14d
  jge    L289
L133:
  cmp    $0x5,%r15d
  je     L220
  cmp    $0x1,%r12d
  jle    L220
  movslq %r12d,%r12
  lea    (%rbx,%r12,4),%r12
  mov    $0x0,%ebp
L99:
  pxor   %xmm0,%xmm0
  cvtss2sd (%rbx,%rbp,4),%xmm0
  addsd  D103(%rip),%xmm0
  mov    D88(%rip),%rax
  movq   %rax,%xmm1
  call   <pow@plt>
  pxor   %xmm0,%xmm0
  cvtsi2ss %rax,%xmm0
  movss  %xmm0,(%rbx,%rbp,4)
  movss  %xmm0,-0x4(%r12)
  add    $0x1,%rbp
  sub    $0x4,%r12
  cmp    %ebp,%r14d
  jg     L99
L220:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L42:
  pxor   %xmm0,%xmm0
  cvtsi2sd %r12d,%xmm0
  movsd  D44(%rip),%xmm1
  movapd %xmm1,%xmm6
  divsd  %xmm0,%xmm6
  movsd  %xmm6,0x10(%rsp)
  cmp    $0x7f,%r12d
  jg     L15
  divsd  D34(%rip),%xmm6
  movsd  %xmm6,0x10(%rsp)
L15:
  cmp    $0x3f,%r12d
  jg     L356
  movsd  0x10(%rsp),%xmm5
  divsd  D134(%rip),%xmm5
  movsd  %xmm5,0x10(%rsp)
L356:
  mov    %r12d,%r14d
  shr    $0x1f,%r14d
  add    %r12d,%r14d
  sar    %r14d
  cmp    $0xffffffff,%r12d
  jl     L47
  mov    $0x0,%ebp
  mov    D109(%rip),%r13
  pxor   %xmm5,%xmm5
  movsd  %xmm5,0x8(%rsp)
L214:
  movq   %r13,%xmm0
  call   <erfc@plt>
  pxor   %xmm0,%xmm0
  cvtsi2ss %rax,%xmm0
  mulss  D0(%rip),%xmm0
  movss  %xmm0,(%rbx,%rbp,4)
  mulss  %xmm0,%xmm0
  cvtss2sd %xmm0,%xmm0
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  movq   %r13,%xmm6
  subsd  0x10(%rsp),%xmm6
  movq   %xmm6,%r13
  add    $0x1,%rbp
  cmp    %ebp,%r14d
  jge    L214
  jmp    L219
L152:
  pxor   %xmm0,%xmm0
  cvtsi2sd %r12d,%xmm0
  movsd  D59(%rip),%xmm1
  divsd  %xmm0,%xmm1
  movsd  %xmm1,0x18(%rsp)
  mov    %r12d,%ebp
  shr    $0x1f,%ebp
  add    %r12d,%ebp
  sar    %ebp
  cmp    $0x1,%r12d
  jle    L239
  movslq %ebp,%rbp
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x8(%rsp)
  movsd  %xmm7,0x10(%rsp)
L217:
  movsd  0x8(%rsp),%xmm4
  movapd %xmm4,%xmm1
  xorpd  D146(%rip),%xmm1
  mulsd  %xmm4,%xmm1
  mov    D3(%rip),%rax
  movq   %rax,%xmm0
  call   <pow@plt>
  pxor   %xmm0,%xmm0
  cvtsi2ss %rax,%xmm0
  movss  %xmm0,(%rbx,%rbp,4)
  mulss  %xmm0,%xmm0
  cvtss2sd %xmm0,%xmm0
  addsd  0x10(%rsp),%xmm0
  movsd  %xmm0,0x10(%rsp)
  movsd  0x8(%rsp),%xmm4
  addsd  0x18(%rsp),%xmm4
  movsd  %xmm4,0x8(%rsp)
  sub    $0x1,%rbp
  test   %ebp,%ebp
  jg     L217
  cmp    $0x3,%r15d
  je     L335
L411:
  movsd  0x10(%rsp),%xmm0
  addsd  %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sd %r12d,%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  mov    %eax,%ecx
  mov    $0x1,%eax
  cltd
  idiv   %ecx
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  mov    $0x2,%ecx
  mov    %r12d,%eax
  cltd
  idiv   %ecx
  cmp    $0xffffffff,%r12d
  jl     L117
  jmp    L186
L67:
  movl   $0x3f800000,(%rbx)
  mov    %r12d,%edx
  shr    $0x1f,%edx
  add    %r12d,%edx
  sar    %edx
  cmp    $0x1,%r12d
  jle    L220
L22:
  mov    $0x1,%eax
  movss  D15(%rip),%xmm1
L174:
  movaps %xmm1,%xmm0
  divss  (%rbx,%rax,4),%xmm0
  movss  %xmm0,(%rbx,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%edx
  jge    L174
  jmp    L220
L283:
  lea    0x1(%rax),%edx
  cmp    %edx,%r12d
  jle    L220
  movslq %edx,%rdx
  lea    (%rbx,%rdx,4),%rdx
  lea    -0x2(%r12),%ecx
  sub    %eax,%ecx
  cltq
  add    %rax,%rcx
  lea    0x8(%rbx,%rcx,4),%rsi
  movslq %r12d,%rcx
  shl    $0x2,%rcx
L334:
  mov    %rcx,%rax
  sub    %rdx,%rax
  movss  (%rax,%rbx,2),%xmm0
  movss  %xmm0,(%rdx)
  add    $0x4,%rdx
  cmp    %rsi,%rdx
  jne    L334
  jmp    L220
L335:
  movl   $0x3f800000,(%rbx)
  mov    %r12d,%edx
  shr    $0x1f,%edx
  add    %r12d,%edx
  sar    %edx
  jmp    L22
L47:
  cmp    $0x3,%r15d
  je     L67
  pxor   %xmm1,%xmm1
  cvtsi2sd %r12d,%xmm1
  pxor   %xmm0,%xmm0
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  mov    %r12d,%eax
  shr    $0x1f,%eax
  add    %r12d,%eax
  sar    %eax
  jmp    L117
L239:
  cmp    $0x3,%edi
  jne    L87
  movl   $0x3f800000,(%rbx)
  jmp    L220
L87:
  pxor   %xmm6,%xmm6
  movsd  %xmm6,0x10(%rsp)
  jmp    L411
```

tool_calls: name: parse_data
arguments: label: D14
type_guessed: f64
name: parse_data
arguments: label: D71
type_guessed: f64
name: parse_data
arguments: label: D61
type_guessed: f64
name: parse_data
arguments: label: D0
type_guessed: byte[4]
name: parse_data
arguments: label: D103
type_guessed: byte[8]
name: parse_data
arguments: label: D88
type_guessed: byte[8]
name: parse_data
arguments: label: D44
type_guessed: f64
name: parse_data
arguments: label: D34
type_guessed: f64
name: parse_data
arguments: label: D134
type_guessed: f64
name: parse_data
arguments: label: D109
type_guessed: f64
name: parse_data
arguments: label: D59
type_guessed: f64
name: parse_data
arguments: label: D146
type_guessed: byte[16]
name: parse_data
arguments: label: D3
type_guessed: f64
name: parse_data
arguments: label: D15
type_guessed: byte[4]

tool: D14: 3.141592653589793

tool: D71: 13

tool: D61: 3.2

tool: {"D0": [0x00,0x00,0x00,0x3f]}

tool: {"D103": [0xfc,0xa9,0xf1,0xd2,0x4d,0x62,0x40,0x3f]}

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

tool: D44: 80

tool: D34: 1.5

tool: D134: 1.7

tool: D109: 3.6

tool: D59: 8.4

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

tool: D3: 2.7

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

assistant: ```c
void make_window(int mo, int sz, int n, float *win) {
  double x, z, sumsq;
  double e1, e2;
  float t1;
  int i, size;
  if (mo == 5 || mo == 6) {
    e1 = 3.2;
    e2 = 13.0 / sz;
    for (i = 0; i <= sz / 2; i++) {
      win[i] = 0.5F * (float)erfc(e1);
      e1 -= e2;
    }
    if (mo == 5)
      return;
    for (i = 0; i < sz / 2; i++) {
      win[i] = (float)pow(win[i] + .0005, -2.0);
      win[sz - i - 1] = win[i];
    }
    return;
  }
  if (n == 0)
    return;
  size = sz;
  z = n;
  if (mo == 2)
    size = 2 * sz;
  sumsq = 0;
  if (n == 9) {
    e1 = 3.6;
    e2 = 80.0 / size;
    if (size < 128)
      e2 /= 1.5;
    if (size < 64)
      e2 /= 1.7;
    for (i = 0; i <= size / 2; i++) {
      win[i] = 0.5F * (float)erfc(e1);
      sumsq += win[i] * win[i];
      e1 -= e2;
    }
  } else {
    if (n == 8) {
      e1 = 0;
      e2 = 8.4 / size;
      for (i = size / 2; i > 0; i--) {
        win[i] = (float)pow(2.7, -e1 * e1);
        sumsq += win[i] * win[i];
        e1 += e2;
      }
    } else {
      x = 0;
      for (i = 0; i <= size / 2; i++) {
        win[i] = (float)pow(sin(x), z);
        sumsq += win[i] * win[i];
        x += 3.1415926535897932 / size;
      }
    }
  }
  if (mo == 5)
    return;
  if (mo == 3) {
    win[0] = 1;
    for (i = 1; i <= size / 2; i++) {
      win[i] = 1 / win[i];
    }
    return;
  }
  z = 1 / sqrt(2 * sumsq / size);
  for (i = 0; i <= size / 2; i++) {
    win[i] *= (float)z;
  }
  if (mo == 4) {
    for (i = size / 2 + 1; i < size; i++) {
      win[i] = win[size - i];
    }
    return;
  }
  if (mo == 1) {
    t1 = win[1];
    win[1] = win[size / 2];
    for (i = size / 2 - 1; i > 1; i--) {
      win[2 * i] = win[i];
    }
    win[2] = t1;
    for (i = 0; i < size - 3; i += 2) {
      win[i + 3] = win[size - i - 2];
    }
  }
}
```