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

```asm
<radbg>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0xd8,%rsp
  mov    %rdi,-0xb8(%rbp)
  mov    %rsi,-0xc0(%rbp)
  mov    %rdx,-0xc8(%rbp)
  mov    %rcx,-0xd0(%rbp)
  mov    %r8,-0xd8(%rbp)
  mov    %r9,-0xe0(%rbp)
  mov    -0xc0(%rbp),%rax
  mov    %rax,-0x68(%rbp)
  mov    -0xc0(%rbp),%rax
  add    $0x1,%rax
  shr    %rax
  mov    %rax,-0x60(%rbp)
  movq   $0x0,-0x90(%rbp)
  jmp    L314
L248:
  mov    -0xb8(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x68(%rbp),%rax
  imul   -0x90(%rbp),%rax
  imul   -0xb8(%rbp),%rax
  lea    0x0(,%rax,8),%rcx
  mov    -0xd8(%rbp),%rax
  add    %rax,%rcx
  mov    -0xb8(%rbp),%rax
  imul   -0x90(%rbp),%rax
  lea    0x0(,%rax,8),%rsi
  mov    -0xe0(%rbp),%rax
  add    %rsi,%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  addq   $0x1,-0x90(%rbp)
L314:
  mov    -0x90(%rbp),%rax
  cmp    -0xc8(%rbp),%rax
  jb     L248
  movq   $0x1,-0x98(%rbp)
  jmp    L144
L105:
  mov    -0xc0(%rbp),%rax
  sub    -0x98(%rbp),%rax
  mov    %rax,-0x80(%rbp)
  mov    -0x98(%rbp),%rax
  add    %rax,%rax
  mov    %rax,-0x18(%rbp)
  movq   $0x0,-0x90(%rbp)
  jmp    L266
L477:
  mov    -0x68(%rbp),%rax
  imul   -0x90(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  sub    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0xc8(%rbp),%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x68(%rbp),%rax
  imul   -0x90(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0xc8(%rbp),%rax
  imul   -0x80(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  addq   $0x1,-0x90(%rbp)
L266:
  mov    -0x90(%rbp),%rax
  cmp    -0xc8(%rbp),%rax
  jb     L477
  addq   $0x1,-0x98(%rbp)
L144:
  mov    -0x98(%rbp),%rax
  cmp    -0x60(%rbp),%rax
  jb     L105
  cmpq   $0x1,-0xb8(%rbp)
  je     L518
  movq   $0x1,-0x98(%rbp)
  mov    -0xc0(%rbp),%rax
  sub    $0x1,%rax
  mov    %rax,-0x80(%rbp)
  jmp    L358
L35:
  movq   $0x0,-0x90(%rbp)
  jmp    L309
L203:
  movq   $0x2,-0xa0(%rbp)
  jmp    L537
L423:
  mov    -0xb8(%rbp),%rax
  sub    -0xa0(%rbp),%rax
  mov    %rax,-0x58(%rbp)
  mov    -0x98(%rbp),%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  imul   -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  sub    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x98(%rbp),%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  imul   -0x90(%rbp),%rax
  add    %rdx,%rax
  sub    $0x1,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  sub    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0xc8(%rbp),%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  sub    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x98(%rbp),%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  imul   -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  sub    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x98(%rbp),%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  imul   -0x90(%rbp),%rax
  add    %rdx,%rax
  sub    $0x1,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  sub    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0xc8(%rbp),%rax
  imul   -0x80(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  sub    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x98(%rbp),%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  imul   -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x98(%rbp),%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  imul   -0x90(%rbp),%rax
  add    %rdx,%rax
  sub    $0x1,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0xc8(%rbp),%rax
  imul   -0x80(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x98(%rbp),%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  imul   -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x98(%rbp),%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  imul   -0x90(%rbp),%rax
  add    %rdx,%rax
  sub    $0x1,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0xc8(%rbp),%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addq   $0x2,-0xa0(%rbp)
L537:
  mov    -0xa0(%rbp),%rax
  cmp    -0xb8(%rbp),%rax
  jb     L423
  addq   $0x1,-0x90(%rbp)
L309:
  mov    -0x90(%rbp),%rax
  cmp    -0xc8(%rbp),%rax
  jb     L203
  addq   $0x1,-0x98(%rbp)
  subq   $0x1,-0x80(%rbp)
L358:
  mov    -0x98(%rbp),%rax
  cmp    -0x60(%rbp),%rax
  jb     L35
L518:
  mov    -0xc0(%rbp),%rax
  shl    $0x4,%eax
  mov    %eax,%edi
  call   <util_malloc_@plt>
  mov    %rax,-0x50(%rbp)
  movsd  D110(%rip),%xmm1
  mov    -0xc0(%rbp),%rax
  test   %rax,%rax
  js     L20
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L28
L20:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L28:
  divsd  %xmm0,%xmm1
  movsd  %xmm1,-0x48(%rbp)
  mov    -0x50(%rbp),%rax
  movsd  D5(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x50(%rbp),%rax
  add    $0x8,%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  movsd  -0x48(%rbp),%xmm0
  comisd D95(%rip),%xmm0
  jae    L247
  movsd  -0x48(%rbp),%xmm0
  cvttsd2si %xmm0,%rax
  jmp    L557
L247:
  movsd  -0x48(%rbp),%xmm0
  movsd  D95(%rip),%xmm1
  subsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%rax
  movabs $0x8000000000000000,%rdx
  xor    %rdx,%rax
L557:
  mov    -0xc0(%rbp),%rdx
  shl    $0x4,%rdx
  lea    -0x10(%rdx),%rcx
  mov    -0x50(%rbp),%rdx
  lea    (%rcx,%rdx,1),%rbx
  mov    %rax,%rdi
  call   <cos@plt>
  movq   %xmm0,%rax
  mov    %rax,(%rbx)
  mov    -0x50(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rbx),%xmm0
  movsd  %xmm0,(%rax)
  movsd  -0x48(%rbp),%xmm0
  comisd D95(%rip),%xmm0
  jae    L590
  movsd  -0x48(%rbp),%xmm0
  cvttsd2si %xmm0,%rax
  jmp    L348
L590:
  movsd  -0x48(%rbp),%xmm0
  movsd  D95(%rip),%xmm1
  subsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%rax
  movabs $0x8000000000000000,%rdx
  xor    %rdx,%rax
L348:
  mov    -0x50(%rbp),%rdx
  lea    0x18(%rdx),%rbx
  mov    %rax,%rdi
  call   <sin@plt>
  movq   %xmm0,%rax
  mov    %rax,(%rbx)
  mov    -0x50(%rbp),%rax
  add    $0x18,%rax
  movsd  (%rax),%xmm0
  mov    -0xc0(%rbp),%rax
  shl    $0x4,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movq   D50(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  movq   $0x2,-0xa0(%rbp)
  jmp    L370
L30:
  mov    -0xa0(%rbp),%rax
  test   %rax,%rax
  js     L138
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L208
L138:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L208:
  mulsd  -0x48(%rbp),%xmm0
  comisd D95(%rip),%xmm0
  jae    L534
  cvttsd2si %xmm0,%rax
  jmp    L355
L534:
  movsd  D95(%rip),%xmm1
  subsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%rax
  movabs $0x8000000000000000,%rdx
  xor    %rdx,%rax
L355:
  mov    -0xc0(%rbp),%rdx
  sub    -0xa0(%rbp),%rdx
  mov    %rdx,%rcx
  shl    $0x4,%rcx
  mov    -0x50(%rbp),%rdx
  lea    (%rcx,%rdx,1),%rbx
  mov    %rax,%rdi
  call   <cos@plt>
  movq   %xmm0,%rax
  mov    %rax,(%rbx)
  mov    -0xa0(%rbp),%rax
  shl    $0x4,%rax
  mov    %rax,%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rbx),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0xa0(%rbp),%rax
  test   %rax,%rax
  js     L464
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L56
L464:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L56:
  mulsd  -0x48(%rbp),%xmm0
  comisd D95(%rip),%xmm0
  jae    L165
  cvttsd2si %xmm0,%rax
  jmp    L485
L165:
  movsd  D95(%rip),%xmm1
  subsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%rax
  movabs $0x8000000000000000,%rdx
  xor    %rdx,%rax
L485:
  mov    -0xa0(%rbp),%rdx
  shl    $0x4,%rdx
  lea    0x8(%rdx),%rcx
  mov    -0x50(%rbp),%rdx
  lea    (%rcx,%rdx,1),%rbx
  mov    %rax,%rdi
  call   <sin@plt>
  movq   %xmm0,%rax
  mov    %rax,(%rbx)
  mov    -0xa0(%rbp),%rax
  shl    $0x4,%rax
  lea    0x8(%rax),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0xc0(%rbp),%rax
  sub    -0xa0(%rbp),%rax
  shl    $0x4,%rax
  lea    0x8(%rax),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movq   D50(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addq   $0x1,-0xa0(%rbp)
L370:
  mov    -0xc0(%rbp),%rax
  shr    %rax
  cmp    %rax,-0xa0(%rbp)
  jbe    L30
  movq   $0x1,-0x88(%rbp)
  jmp    L255
L131:
  mov    -0xc0(%rbp),%rax
  sub    -0x88(%rbp),%rax
  mov    %rax,-0x40(%rbp)
  mov    -0x88(%rbp),%rax
  shl    $0x4,%rax
  mov    %rax,%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x88(%rbp),%rax
  shl    $0x4,%rax
  lea    0x8(%rax),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movq   $0x0,-0x78(%rbp)
  jmp    L140
L544:
  mov    -0x78(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x78(%rbp),%rdx
  mov    -0xd0(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x38(%rbp),%xmm0
  mov    -0xd0(%rbp),%rax
  imul   -0x88(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0xc0(%rbp),%rax
  sub    $0x1,%rax
  imul   -0xd0(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0xd0(%rbp),%rax
  imul   -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  mulsd  -0x30(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  addq   $0x1,-0x78(%rbp)
L140:
  mov    -0x78(%rbp),%rax
  cmp    -0xd0(%rbp),%rax
  jb     L544
  mov    -0x88(%rbp),%rax
  add    %rax,%rax
  mov    %rax,-0x70(%rbp)
  movq   $0x2,-0x98(%rbp)
  jmp    L284
L27:
  mov    -0xc0(%rbp),%rax
  sub    -0x98(%rbp),%rax
  mov    %rax,-0x80(%rbp)
  mov    -0x88(%rbp),%rax
  add    %rax,%rax
  add    %rax,-0x70(%rbp)
  mov    -0xc0(%rbp),%rax
  add    %rax,%rax
  cmp    %rax,-0x70(%rbp)
  jb     L109
  mov    -0xc0(%rbp),%rax
  add    %rax,%rax
  sub    %rax,-0x70(%rbp)
L109:
  mov    -0x70(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  mov    -0x70(%rbp),%rax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movq   $0x0,-0x78(%rbp)
  jmp    L400
L319:
  mov    -0xd0(%rbp),%rax
  imul   -0x88(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0xd0(%rbp),%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x28(%rbp),%xmm0
  mov    -0xd0(%rbp),%rax
  imul   -0x88(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0xd0(%rbp),%rax
  imul   -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0xd0(%rbp),%rax
  imul   -0x80(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x20(%rbp),%xmm0
  mov    -0xd0(%rbp),%rax
  imul   -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addq   $0x1,-0x78(%rbp)
L400:
  mov    -0x78(%rbp),%rax
  cmp    -0xd0(%rbp),%rax
  jb     L319
  addq   $0x1,-0x98(%rbp)
L284:
  mov    -0x98(%rbp),%rax
  cmp    -0x60(%rbp),%rax
  jb     L27
  addq   $0x1,-0x88(%rbp)
L255:
  mov    -0x88(%rbp),%rax
  cmp    -0x60(%rbp),%rax
  jb     L131
  mov    -0x50(%rbp),%rax
  mov    %rax,%rdi
  call   <util_free_@plt>
  movq   $0x0,-0x50(%rbp)
  movq   $0x1,-0x98(%rbp)
  jmp    L300
L201:
  movq   $0x0,-0x78(%rbp)
  jmp    L334
L31:
  mov    -0x78(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0xd0(%rbp),%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x78(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addq   $0x1,-0x78(%rbp)
L334:
  mov    -0x78(%rbp),%rax
  cmp    -0xd0(%rbp),%rax
  jb     L31
  addq   $0x1,-0x98(%rbp)
L300:
  mov    -0x98(%rbp),%rax
  cmp    -0x60(%rbp),%rax
  jb     L201
  movq   $0x1,-0x98(%rbp)
  mov    -0xc0(%rbp),%rax
  sub    $0x1,%rax
  mov    %rax,-0x80(%rbp)
  jmp    L571
L524:
  movq   $0x0,-0x90(%rbp)
  jmp    L553
L436:
  mov    -0xc8(%rbp),%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0xc8(%rbp),%rax
  imul   -0x80(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0xc8(%rbp),%rax
  imul   -0x80(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0xc8(%rbp),%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0xc8(%rbp),%rax
  imul   -0x80(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0xc8(%rbp),%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addq   $0x1,-0x90(%rbp)
L553:
  mov    -0x90(%rbp),%rax
  cmp    -0xc8(%rbp),%rax
  jb     L436
  addq   $0x1,-0x98(%rbp)
  subq   $0x1,-0x80(%rbp)
L571:
  mov    -0x98(%rbp),%rax
  cmp    -0x60(%rbp),%rax
  jb     L524
  cmpq   $0x1,-0xb8(%rbp)
  je     L405
  movq   $0x1,-0x98(%rbp)
  mov    -0xc0(%rbp),%rax
  sub    $0x1,%rax
  mov    %rax,-0x80(%rbp)
  jmp    L130
L474:
  movq   $0x0,-0x90(%rbp)
  jmp    L95
L303:
  movq   $0x2,-0xa0(%rbp)
  jmp    L227
L225:
  mov    -0xc8(%rbp),%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  sub    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0xc8(%rbp),%rax
  imul   -0x80(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0xc8(%rbp),%rax
  imul   -0x80(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  sub    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0xc8(%rbp),%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  sub    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0xc8(%rbp),%rax
  imul   -0x80(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0xc8(%rbp),%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  sub    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0xc8(%rbp),%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0xc8(%rbp),%rax
  imul   -0x80(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  sub    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0xc8(%rbp),%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0xc8(%rbp),%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0xc8(%rbp),%rax
  imul   -0x80(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  sub    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0xc8(%rbp),%rax
  imul   -0x80(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addq   $0x2,-0xa0(%rbp)
L227:
  mov    -0xa0(%rbp),%rax
  cmp    -0xb8(%rbp),%rax
  jb     L225
  addq   $0x1,-0x90(%rbp)
L95:
  mov    -0x90(%rbp),%rax
  cmp    -0xc8(%rbp),%rax
  jb     L303
  addq   $0x1,-0x98(%rbp)
  subq   $0x1,-0x80(%rbp)
L130:
  mov    -0x98(%rbp),%rax
  cmp    -0x60(%rbp),%rax
  jb     L474
  mov    -0xd0(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rcx
  mov    -0xd8(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  movq   $0x1,-0x98(%rbp)
  jmp    L525
L213:
  movq   $0x0,-0x90(%rbp)
  jmp    L161
L533:
  mov    -0xc8(%rbp),%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rax,%rdx
  mov    -0xc8(%rbp),%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rcx
  mov    -0x90(%rbp),%rax
  add    %rcx,%rax
  imul   -0xb8(%rbp),%rax
  lea    0x0(,%rax,8),%rcx
  mov    -0xd8(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x98(%rbp),%rax
  sub    $0x1,%rax
  imul   -0xb8(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0xa8(%rbp)
  movq   $0x2,-0xa0(%rbp)
  jmp    L378
L369:
  mov    -0xa8(%rbp),%rax
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0xc8(%rbp),%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0xa8(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm2
  mov    -0xc8(%rbp),%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  sub    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  mov    -0xc8(%rbp),%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0xa8(%rbp),%rax
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0xc8(%rbp),%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  sub    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  mov    -0xa8(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm2
  mov    -0xc8(%rbp),%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mulsd  %xmm2,%xmm1
  mov    -0xc8(%rbp),%rax
  imul   -0x98(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  imul   -0xb8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  sub    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addq   $0x2,-0xa0(%rbp)
  addq   $0x2,-0xa8(%rbp)
L378:
  mov    -0xa0(%rbp),%rax
  cmp    -0xb8(%rbp),%rax
  jb     L369
  addq   $0x1,-0x90(%rbp)
L161:
  mov    -0x90(%rbp),%rax
  cmp    -0xc8(%rbp),%rax
  jb     L533
  addq   $0x1,-0x98(%rbp)
L525:
  mov    -0x98(%rbp),%rax
  cmp    -0xc0(%rbp),%rax
  jb     L213
  jmp    L373
L405:
  nop
L373:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D110
type_infered: f64
name: retrieve_data
arguments: label: D5
type_infered: f64
name: retrieve_data
arguments: label: D95
type_infered: f32[4]
name: retrieve_data
arguments: label: D50
type_infered: f32[2]

tool: D110: 6.283185307179586

tool: D5: 1

tool: {"D95": [0.0,448.0,0.0,0.0]}

tool: {"D50": [0.0,-0.0]}

assistant: ```c
void radbg(size_t ido, size_t ip, size_t l1, size_t idl1, double *cc, double *ch, const double *wa) {
  const size_t cdim = ip;
  static const double twopi = 6.28318530717958647692;
  size_t idij, ipph, i, j, k, l, j2, ic, jc, lc, ik;
  double ai1, ai2, ar1, ar2, arg;
  double *csarr;
  size_t aidx;
  ipph = (ip + 1) / 2;
  for (k = 0; k < l1; k++)
    memcpy(&ch[(0) + ido * ((k) + l1 * (0))], &cc[(0) + ido * ((0) + cdim * (k))], ido * sizeof(double));
  for (j = 1; j < ipph; j++) {
    jc = ip - j;
    j2 = 2 * j;
    for (k = 0; k < l1; k++) {
      ch[(0) + ido * ((k) + l1 * (j))] = 2 * cc[(ido - 1) + ido * ((j2 - 1) + cdim * (k))];
      ch[(0) + ido * ((k) + l1 * (jc))] = 2 * cc[(0) + ido * ((j2) + cdim * (k))];
    }
  }
  if (ido != 1)
    for (j = 1, jc = ip - 1; j < ipph; j++, jc--)
      for (k = 0; k < l1; k++)
        for (i = 2; i < ido; i += 2) {
          ic = ido - i;
          {
            ch[(i - 1) + ido * ((k) + l1 * (j))] = cc[(i - 1) + ido * ((2 * j) + cdim * (k))] + cc[(ic - 1) + ido * ((2 * j - 1) + cdim * (k))];
            ch[(i - 1) + ido * ((k) + l1 * (jc))] = cc[(i - 1) + ido * ((2 * j) + cdim * (k))] - cc[(ic - 1) + ido * ((2 * j - 1) + cdim * (k))];
          }
          {
            ch[(i) + ido * ((k) + l1 * (jc))] = cc[(i) + ido * ((2 * j) + cdim * (k))] + cc[(ic) + ido * ((2 * j - 1) + cdim * (k))];
            ch[(i) + ido * ((k) + l1 * (j))] = cc[(i) + ido * ((2 * j) + cdim * (k))] - cc[(ic) + ido * ((2 * j - 1) + cdim * (k))];
          }
        }
  csarr = ((double *)util_malloc_((2 * ip) * sizeof(double)));
  arg = twopi / ip;
  csarr[0] = 1.;
  csarr[1] = 0.;
  csarr[2] = csarr[2 * ip - 2] = cos(arg);
  csarr[3] = sin(arg);
  csarr[2 * ip - 1] = -csarr[3];
  for (i = 2; i <= ip / 2; ++i) {
    csarr[2 * i] = csarr[2 * ip - 2 * i] = cos(i * arg);
    csarr[2 * i + 1] = sin(i * arg);
    csarr[2 * ip - 2 * i + 1] = -csarr[2 * i + 1];
  }
  for (l = 1; l < ipph; l++) {
    lc = ip - l;
    ar1 = csarr[2 * l];
    ai1 = csarr[2 * l + 1];
    for (ik = 0; ik < idl1; ik++) {
      cc[(ik) + idl1 * (l)] = ch[(ik) + idl1 * (0)] + ar1 * ch[(ik) + idl1 * (1)];
      cc[(ik) + idl1 * (lc)] = ai1 * ch[(ik) + idl1 * (ip - 1)];
    }
    aidx = 2 * l;
    for (j = 2; j < ipph; j++) {
      jc = ip - j;
      aidx += 2 * l;
      if (aidx >= 2 * ip)
        aidx -= 2 * ip;
      ar2 = csarr[aidx];
      ai2 = csarr[aidx + 1];
      for (ik = 0; ik < idl1; ik++) {
        cc[(ik) + idl1 * (l)] += ar2 * ch[(ik) + idl1 * (j)];
        cc[(ik) + idl1 * (lc)] += ai2 * ch[(ik) + idl1 * (jc)];
      }
    }
  }
  do {
    util_free_(csarr);
    (csarr) = NULL;
  } while (0);
  for (j = 1; j < ipph; j++)
    for (ik = 0; ik < idl1; ik++)
      ch[(ik) + idl1 * (0)] += ch[(ik) + idl1 * (j)];
  for (j = 1, jc = ip - 1; j < ipph; j++, jc--)
    for (k = 0; k < l1; k++) {
      ch[(0) + ido * ((k) + l1 * (jc))] = cc[(0) + ido * ((k) + l1 * (j))] + cc[(0) + ido * ((k) + l1 * (jc))];
      ch[(0) + ido * ((k) + l1 * (j))] = cc[(0) + ido * ((k) + l1 * (j))] - cc[(0) + ido * ((k) + l1 * (jc))];
    }
  if (ido == 1)
    return;
  for (j = 1, jc = ip - 1; j < ipph; j++, jc--)
    for (k = 0; k < l1; k++)
      for (i = 2; i < ido; i += 2) {
        {
          ch[(i - 1) + ido * ((k) + l1 * (jc))] = cc[(i - 1) + ido * ((k) + l1 * (j))] + cc[(i) + ido * ((k) + l1 * (jc))];
          ch[(i - 1) + ido * ((k) + l1 * (j))] = cc[(i - 1) + ido * ((k) + l1 * (j))] - cc[(i) + ido * ((k) + l1 * (jc))];
        }
        {
          ch[(i) + ido * ((k) + l1 * (j))] = cc[(i) + ido * ((k) + l1 * (j))] + cc[(i - 1) + ido * ((k) + l1 * (jc))];
          ch[(i) + ido * ((k) + l1 * (jc))] = cc[(i) + ido * ((k) + l1 * (j))] - cc[(i - 1) + ido * ((k) + l1 * (jc))];
        }
      }
  memcpy(cc, ch, idl1 * sizeof(double));
  for (j = 1; j < ip; j++)
    for (k = 0; k < l1; k++) {
      cc[(0) + ido * ((k) + l1 * (j))] = ch[(0) + ido * ((k) + l1 * (j))];
      idij = (j - 1) * ido + 1;
      for (i = 2; i < ido; i += 2, idij += 2) {
        cc[(i) + ido * ((k) + l1 * (j))] = wa[idij - 1] * ch[(i) + ido * ((k) + l1 * (j))] + wa[idij] * ch[(i - 1) + ido * ((k) + l1 * (j))];
        cc[(i - 1) + ido * ((k) + l1 * (j))] = wa[idij - 1] * ch[(i - 1) + ido * ((k) + l1 * (j))] - wa[idij] * ch[(i) + ido * ((k) + l1 * (j))];
      }
    }
}
```