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

```asm
<make_window>:
  endbr64
  push   %r14
  lea    -0x5(%rdi),%eax
  mov    %edi,%r14d
  push   %r13
  push   %r12
  movslq %esi,%r12
  push   %rbp
  push   %rbx
  mov    %rcx,%rbx
  sub    $0x30,%rsp
  cmp    $0x1,%eax
  jbe    L50
  test   %edx,%edx
  je     L380
  mov    %r12d,%ebp
  cmp    $0x2,%edi
  je     L21
  shr    $0x1f,%ebp
  add    %r12d,%ebp
  sar    %ebp
L400:
  cmp    $0x9,%edx
  je     L327
  cmp    $0x8,%edx
  je     L165
  cmp    $0xffffffff,%r12d
  jl     L411
  pxor   %xmm7,%xmm7
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  xor    %r13d,%r13d
  cvtsi2sd %r12d,%xmm7
  movsd  %xmm0,0x8(%rsp)
  cvtsi2sd %edx,%xmm1
  movsd  %xmm0,0x10(%rsp)
  movsd  %xmm7,0x28(%rsp)
  jmp    L307
  nopl   0x0(%rax)
L398:
  call   <sin@plt>
  movsd  0x18(%rsp),%xmm1
L307:
  movsd  %xmm1,0x18(%rsp)
  call   <pow@plt>
  pxor   %xmm0,%xmm0
  movsd  0x28(%rsp),%xmm5
  cvtsi2ss %rax,%xmm0
  movsd  %xmm5,0x20(%rsp)
  movss  %xmm0,(%rbx,%r13,4)
  mulss  %xmm0,%xmm0
  add    $0x1,%r13
  cvtss2sd %xmm0,%xmm0
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  movsd  D4(%rip),%xmm0
  divsd  %xmm5,%xmm0
  addsd  0x10(%rsp),%xmm0
  movsd  %xmm0,0x10(%rsp)
  cmp    %r13d,%ebp
  jge    L398
L236:
  cmp    $0x3,%r14d
  je     L626
  movsd  0x8(%rsp),%xmm0
  addsd  %xmm0,%xmm0
  divsd  0x20(%rsp),%xmm0
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  pxor   %xmm1,%xmm1
  mov    %eax,%r8d
  mov    $0x1,%eax
  cltd
  idiv   %r8d
  cvtsi2sd %eax,%xmm1
L683:
  xor    %esi,%esi
  test   %ebp,%ebp
  cvtsd2ss %xmm1,%xmm1
  cmovns %ebp,%esi
  lea    0x1(%rsi),%ecx
  cmp    $0x2,%ebp
  jle    L324
  mov    %ecx,%edx
  movaps %xmm1,%xmm2
  mov    %rbx,%rax
  shr    $0x2,%edx
  shufps $0x0,%xmm2,%xmm2
  sub    $0x1,%edx
  shl    $0x4,%rdx
  lea    0x10(%rbx,%rdx,1),%rdx
  nop
L334:
  movups (%rax),%xmm0
  add    $0x10,%rax
  mulps  %xmm2,%xmm0
  movups %xmm0,-0x10(%rax)
  cmp    %rdx,%rax
  jne    L334
  mov    %ecx,%edx
  and    $0xfffffffc,%edx
  mov    %edx,%eax
  cmp    %edx,%ecx
  je     L611
L655:
  sub    %edx,%ecx
  cmp    %edx,%esi
  je     L436
  lea    (%rbx,%rdx,4),%rdx
  movaps %xmm1,%xmm2
  movq   (%rdx),%xmm0
  shufps $0xe0,%xmm2,%xmm2
  mulps  %xmm2,%xmm0
  movlps %xmm0,(%rdx)
  mov    %ecx,%edx
  and    $0xfffffffe,%edx
  add    %edx,%eax
  cmp    %edx,%ecx
  je     L611
L436:
  cltq
  lea    (%rbx,%rax,4),%rax
  mulss  (%rax),%xmm1
  movss  %xmm1,(%rax)
L611:
  cmp    $0x4,%r14d
  je     L244
  cmp    $0x1,%r14d
  jne    L380
  movslq %ebp,%rdx
  lea    -0x1(%rbp),%edi
  movss  0x4(%rbx),%xmm2
  movss  (%rbx,%rdx,4),%xmm0
  lea    0x0(,%rdx,4),%rcx
  movss  %xmm0,0x4(%rbx)
  cmp    $0x1,%edi
  jle    L485
  lea    0x0(,%rdx,8),%rsi
  lea    -0x2(%rbp),%edx
  mov    %rdx,%r8
  neg    %rdx
  lea    -0x4(%rsi),%r9
  lea    (%rcx,%rdx,4),%rax
  lea    (%rsi,%rdx,8),%rdx
  cmp    %rax,%r9
  setle  %al
  cmp    %rdx,%rcx
  setle  %dl
  or     %dl,%al
  je     L139
  sub    $0x3,%ebp
  cmp    $0x6,%ebp
  jbe    L139
  lea    -0x8(%rbx,%rsi,1),%rax
  mov    %r8d,%esi
  lea    -0x10(%rbx,%rcx,1),%rcx
  shr    $0x2,%esi
  lea    -0x10(%rcx),%rdx
  lea    -0x1(%rsi),%r9d
  mov    %rdx,%rsi
  shl    $0x4,%r9
  sub    %r9,%rsi
  jmp    L220
  nopl   (%rax)
L59:
  sub    $0x10,%rdx
L220:
  movups (%rcx),%xmm0
  movss  0xc(%rcx),%xmm1
  sub    $0x20,%rax
  mov    %rdx,%rcx
  movss  %xmm1,0x20(%rax)
  movaps %xmm0,%xmm1
  unpckhps %xmm0,%xmm1
  movss  %xmm0,0x8(%rax)
  movss  %xmm1,0x18(%rax)
  movaps %xmm0,%xmm1
  shufps $0x55,%xmm0,%xmm1
  movss  %xmm1,0x10(%rax)
  cmp    %rsi,%rdx
  jne    L59
  mov    %r8d,%edx
  mov    %edi,%eax
  and    $0xfffffffc,%edx
  sub    %edx,%eax
  cmp    %edx,%r8d
  je     L485
  movslq %eax,%rsi
  lea    (%rax,%rax,1),%edx
  movss  (%rbx,%rsi,4),%xmm0
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  movss  %xmm0,(%rbx,%rdx,4)
  lea    -0x1(%rax),%edx
  cmp    $0x2,%eax
  je     L485
  movslq %edx,%rdx
  movss  (%rbx,%rdx,4),%xmm0
  lea    0x0(,%rdx,4),%rsi
  movss  %xmm0,-0x8(%rbx,%rcx,1)
  cmp    $0x3,%eax
  je     L485
  movss  -0x4(%rbx,%rsi,1),%xmm0
  movss  %xmm0,-0x10(%rbx,%rcx,1)
L485:
  movss  %xmm2,0x8(%rbx)
  cmp    $0x3,%r12d
  jle    L380
  movslq %r12d,%rax
  sub    $0x4,%r12d
  shr    %r12d
  lea    (%rbx,%rax,4),%rdx
  lea    0xc(%rbx),%rax
  mov    %r12d,%ecx
  lea    0x14(%rbx,%rcx,8),%rcx
  nopw   0x0(%rax,%rax,1)
L393:
  movss  -0x8(%rdx),%xmm0
  add    $0x8,%rax
  sub    $0x8,%rdx
  movss  %xmm0,-0x8(%rax)
  cmp    %rax,%rcx
  jne    L393
L380:
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax)
L50:
  pxor   %xmm0,%xmm0
  movsd  D32(%rip),%xmm1
  mov    %r12d,%r13d
  cvtsi2sd %r12d,%xmm0
  shr    $0x1f,%r13d
  add    %r12d,%r13d
  sar    %r13d
  divsd  %xmm0,%xmm1
  movsd  %xmm1,0x18(%rsp)
  cmp    $0xffffffff,%r12d
  jl     L127
  movss  D22(%rip),%xmm4
  movsd  D8(%rip),%xmm1
  xor    %ebp,%ebp
  movss  %xmm4,0x10(%rsp)
  xchg   %ax,%ax
L343:
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x8(%rsp)
  call   <erfc@plt>
  pxor   %xmm0,%xmm0
  movsd  0x8(%rsp),%xmm1
  subsd  0x18(%rsp),%xmm1
  cvtsi2ss %rax,%xmm0
  mulss  0x10(%rsp),%xmm0
  movss  %xmm0,(%rbx,%rbp,4)
  add    $0x1,%rbp
  cmp    %ebp,%r13d
  jge    L343
L127:
  cmp    $0x5,%r14d
  je     L380
  cmp    $0x1,%r12d
  jle    L380
  lea    (%rbx,%r12,4),%r12
  xor    %ebp,%ebp
  nopw   0x0(%rax,%rax,1)
L545:
  pxor   %xmm0,%xmm0
  mov    D169(%rip),%rax
  sub    $0x4,%r12
  cvtss2sd (%rbx,%rbp,4),%xmm0
  addsd  D64(%rip),%xmm0
  movq   %rax,%xmm1
  call   <pow@plt>
  pxor   %xmm0,%xmm0
  cvtsi2ss %rax,%xmm0
  movss  %xmm0,(%rbx,%rbp,4)
  add    $0x1,%rbp
  movss  %xmm0,(%r12)
  cmp    %ebp,%r13d
  jg     L545
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
L165:
  pxor   %xmm4,%xmm4
  movsd  D167(%rip),%xmm0
  cvtsi2sd %r12d,%xmm4
  divsd  %xmm4,%xmm0
  movsd  %xmm4,0x20(%rsp)
  movsd  %xmm0,0x18(%rsp)
  cmp    $0x1,%r12d
  jle    L535
  pxor   %xmm2,%xmm2
  movslq %ebp,%r13
  movsd  %xmm2,0x8(%rsp)
  nopl   0x0(%rax,%rax,1)
L698:
  movapd %xmm2,%xmm1
  xorpd  D116(%rip),%xmm1
  mov    D110(%rip),%rax
  movsd  %xmm2,0x10(%rsp)
  mulsd  %xmm2,%xmm1
  movq   %rax,%xmm0
  call   <pow@plt>
  pxor   %xmm0,%xmm0
  movsd  0x10(%rsp),%xmm2
  addsd  0x18(%rsp),%xmm2
  cvtsi2ss %rax,%xmm0
  movss  %xmm0,(%rbx,%r13,4)
  mulss  %xmm0,%xmm0
  sub    $0x1,%r13
  cvtss2sd %xmm0,%xmm0
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  test   %r13d,%r13d
  jg     L698
  cmp    $0x3,%r14d
  jne    L638
  movss  D130(%rip),%xmm2
  movss  %xmm2,(%rbx)
L668:
  test   %ebp,%ebp
  mov    $0x1,%ecx
  cmovg  %ebp,%ecx
  cmp    $0x3,%ebp
  jle    L97
  mov    %ecx,%edx
  movaps D130(%rip),%xmm1
  lea    0x4(%rbx),%rax
  shr    $0x2,%edx
  sub    $0x1,%edx
  shl    $0x4,%rdx
  lea    0x14(%rbx,%rdx,1),%rdx
  nopl   0x0(%rax)
L376:
  movups (%rax),%xmm3
  movaps %xmm1,%xmm0
  add    $0x10,%rax
  divps  %xmm3,%xmm0
  movups %xmm0,-0x10(%rax)
  cmp    %rdx,%rax
  jne    L376
  mov    %ecx,%edx
  and    $0xfffffffc,%edx
  lea    0x1(%rdx),%eax
  cmp    %ecx,%edx
  je     L380
L529:
  movslq %eax,%rdx
  movaps %xmm2,%xmm0
  shl    $0x2,%rdx
  lea    (%rbx,%rdx,1),%rcx
  divss  (%rcx),%xmm0
  movss  %xmm0,(%rcx)
  lea    0x1(%rax),%ecx
  cmp    %ebp,%ecx
  jg     L380
  lea    0x4(%rbx,%rdx,1),%rcx
  add    $0x2,%eax
  movaps %xmm2,%xmm0
  divss  (%rcx),%xmm0
  movss  %xmm0,(%rcx)
  cmp    %eax,%ebp
  jl     L380
  lea    0x8(%rbx,%rdx,1),%rax
  divss  (%rax),%xmm2
  movss  %xmm2,(%rax)
  jmp    L380
  nopl   0x0(%rax)
L327:
  pxor   %xmm6,%xmm6
  movsd  D104(%rip),%xmm0
  cvtsi2sd %r12d,%xmm6
  divsd  %xmm6,%xmm0
  movsd  %xmm6,0x20(%rsp)
  movsd  %xmm0,0x28(%rsp)
  cmp    $0x7f,%r12d
  jg     L554
  divsd  D91(%rip),%xmm0
  movsd  %xmm0,0x28(%rsp)
  cmp    $0x3f,%r12d
  jg     L197
  divsd  D112(%rip),%xmm0
  movsd  %xmm0,0x28(%rsp)
L197:
  cmp    $0xffffffff,%r12d
  jl     L411
L554:
  movss  D22(%rip),%xmm7
  pxor   %xmm3,%xmm3
  movsd  D66(%rip),%xmm1
  xor    %r13d,%r13d
  movsd  %xmm3,0x8(%rsp)
  movss  %xmm7,0x10(%rsp)
  cs nopw 0x0(%rax,%rax,1)
L136:
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x18(%rsp)
  call   <erfc@plt>
  pxor   %xmm0,%xmm0
  movsd  0x18(%rsp),%xmm1
  subsd  0x28(%rsp),%xmm1
  cvtsi2ss %rax,%xmm0
  mulss  0x10(%rsp),%xmm0
  movss  %xmm0,(%rbx,%r13,4)
  mulss  %xmm0,%xmm0
  add    $0x1,%r13
  cvtss2sd %xmm0,%xmm0
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  cmp    %r13d,%ebp
  jge    L136
  jmp    L236
  nopw   0x0(%rax,%rax,1)
L21:
  add    %r12d,%r12d
  jmp    L400
L244:
  lea    0x1(%rbp),%r8d
  cmp    %r8d,%r12d
  jle    L380
  mov    %r12d,%ecx
  movslq %r12d,%r9
  movslq %ebp,%r10
  sub    %ebp,%ecx
  mov    %r9,%rsi
  lea    0x1(%r10),%r11
  lea    -0x1(%rcx),%edx
  sub    %r10,%rsi
  lea    0x0(,%r11,4),%rax
  mov    %rdx,%r13
  shl    $0x2,%rsi
  mov    %rdx,%rdi
  add    %r11,%rdx
  neg    %r13
  shl    $0x2,%rdx
  lea    (%rsi,%r13,4),%r13
  cmp    %rdx,%r13
  setge  %dl
  cmp    %rsi,%rax
  setge  %r11b
  or     %r11b,%dl
  je     L119
  sub    $0x2,%ecx
  cmp    $0x2,%ecx
  jbe    L119
  lea    (%rbx,%rax,1),%rcx
  mov    %edi,%eax
  lea    -0x10(%rbx,%rsi,1),%rdx
  shr    $0x2,%eax
  lea    -0x1(%rax),%esi
  lea    0x10(%rcx),%rax
  shl    $0x4,%rsi
  add    %rax,%rsi
  jmp    L293
  nopl   (%rax)
L503:
  add    $0x10,%rax
L293:
  movups (%rdx),%xmm0
  sub    $0x10,%rdx
  shufps $0x1b,%xmm0,%xmm0
  movups %xmm0,(%rcx)
  mov    %rax,%rcx
  cmp    %rsi,%rax
  jne    L503
  mov    %edi,%edx
  and    $0xfffffffc,%edx
  lea    (%rdx,%r8,1),%eax
  cmp    %edi,%edx
  je     L380
  mov    %r12d,%edx
  sub    %eax,%edx
  movslq %edx,%rdx
  movss  (%rbx,%rdx,4),%xmm0
  movslq %eax,%rdx
  movss  %xmm0,(%rbx,%rdx,4)
  lea    0x1(%rax),%edx
  cmp    %r12d,%edx
  jge    L380
  mov    %r12d,%ecx
  movslq %edx,%rsi
  add    $0x2,%eax
  sub    %edx,%ecx
  lea    0x0(,%rsi,4),%rdi
  movslq %ecx,%rdx
  movss  (%rbx,%rdx,4),%xmm0
  movss  %xmm0,(%rbx,%rsi,4)
  cmp    %r12d,%eax
  jge    L380
  sub    %eax,%r12d
  movslq %r12d,%rax
  movss  (%rbx,%rax,4),%xmm0
  movss  %xmm0,0x4(%rbx,%rdi,1)
  jmp    L380
L139:
  movslq %edi,%rax
  cs nopw 0x0(%rax,%rax,1)
L609:
  movss  (%rbx,%rax,4),%xmm0
  movss  %xmm0,(%rbx,%rax,8)
  sub    $0x1,%rax
  cmp    $0x1,%eax
  jg     L609
  jmp    L485
  nopl   0x0(%rax,%rax,1)
L626:
  movss  D130(%rip),%xmm2
  movss  %xmm2,(%rbx)
  cmp    $0x1,%r12d
  jg     L668
  jmp    L380
  nopl   0x0(%rax,%rax,1)
L411:
  cmp    $0x3,%r14d
  je     L693
  pxor   %xmm1,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sd %r12d,%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  jmp    L611
L324:
  xor    %edx,%edx
  xor    %eax,%eax
  jmp    L655
L693:
  movl   $0x3f800000,(%rbx)
  jmp    L380
L97:
  mov    $0x1,%eax
  jmp    L529
L535:
  cmp    $0x3,%r14d
  je     L693
  pxor   %xmm0,%xmm0
  divsd  0x20(%rsp),%xmm0
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  mov    %eax,%ecx
  cmp    $0xffffffff,%r12d
  jl     L611
L682:
  mov    $0x1,%eax
  pxor   %xmm1,%xmm1
  cltd
  idiv   %ecx
  cvtsi2sd %eax,%xmm1
  jmp    L683
  nopl   (%rax)
L119:
  lea    -0x2(%r12),%edx
  add    %rbx,%rax
  shl    $0x2,%r9
  sub    %ebp,%edx
  add    %r10,%rdx
  lea    0x8(%rbx,%rdx,4),%rcx
  cs nopw 0x0(%rax,%rax,1)
L168:
  mov    %r9,%rdx
  sub    %rax,%rdx
  add    $0x4,%rax
  movss  (%rdx,%rbx,2),%xmm0
  movss  %xmm0,-0x4(%rax)
  cmp    %rax,%rcx
  jne    L168
  jmp    L380
L638:
  movsd  0x8(%rsp),%xmm0
  addsd  %xmm0,%xmm0
  divsd  0x20(%rsp),%xmm0
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  mov    %eax,%ecx
  jmp    L682
```

tool_calls: name: disassemble_data
arguments: tag: D4
type_guessed: f64
name: disassemble_data
arguments: tag: D32
type_guessed: f64
name: disassemble_data
arguments: tag: D22
type_guessed: byte[4]
name: disassemble_data
arguments: tag: D8
type_guessed: f64
name: disassemble_data
arguments: tag: D169
type_guessed: byte[8]
name: disassemble_data
arguments: tag: D64
type_guessed: byte[8]
name: disassemble_data
arguments: tag: D167
type_guessed: f64
name: disassemble_data
arguments: tag: D116
type_guessed: byte[16]
name: disassemble_data
arguments: tag: D110
type_guessed: f64
name: disassemble_data
arguments: tag: D130
type_guessed: byte[16]
name: disassemble_data
arguments: tag: D104
type_guessed: f64
name: disassemble_data
arguments: tag: D91
type_guessed: f64
name: disassemble_data
arguments: tag: D112
type_guessed: f64
name: disassemble_data
arguments: tag: D66
type_guessed: f64

tool: D4: 3.141592653589793

tool: D32: 13

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

tool: D8: 3.2

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

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

tool: D167: 8.4

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

tool: D110: 2.7

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

tool: D104: 80

tool: D91: 1.5

tool: D112: 1.7

tool: D66: 3.6

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];
    }
  }
}
```