user: 下面的汇编指令对应的C源代码是什么：

```asm
<radbg>:
  endbr64
  push   %r15
  lea    0x1(%rsi),%rax
  mov    %rdx,%r15
  push   %r14
  shr    %rax
  push   %r13
  push   %r12
  mov    %r9,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %r8,%rbx
  sub    $0x88,%rsp
  mov    %rsi,0x18(%rsp)
  mov    %rcx,0x58(%rsp)
  mov    %rax,(%rsp)
  test   %rdx,%rdx
  je     L305
  mov    0x18(%rsp),%rax
  mov    %rdi,0x8(%rsp)
  mov    %r8,%r13
  xor    %r14d,%r14d
  lea    0x0(,%rdi,8),%rdx
  mov    %r8,0x10(%rsp)
  mov    %r9,%r12
  imul   %rdx,%rax
  mov    %r9,0x20(%rsp)
  mov    %rdx,%rbp
  mov    %rax,%rbx
  nopw   0x0(%rax,%rax,1)
L1:
  mov    %r13,%rsi
  mov    %r12,%rdi
  mov    %rbp,%rdx
  add    $0x1,%r14
  call   <memcpy@plt>
  add    %rbp,%r12
  add    %rbx,%r13
  cmp    %r14,%r15
  jne    L1
  mov    0x8(%rsp),%rbp
  mov    0x10(%rsp),%rbx
  mov    0x20(%rsp),%r12
L305:
  cmpq   $0x1,(%rsp)
  jbe    L317
  mov    %r15,%rdi
  mov    0x18(%rsp),%rdx
  lea    (%r15,%r15,1),%rax
  mov    %rbp,%rcx
  imul   %rbp,%rdi
  neg    %rax
  mov    %r15,%r14
  shl    $0x4,%rcx
  imul   %rbp,%rax
  lea    -0x2(%rdx),%rsi
  mov    %rcx,0x28(%rsp)
  mov    $0x2,%r9d
  lea    0x0(,%rbp,8),%r8
  mov    %rbp,0x10(%rsp)
  lea    (%rbx,%rcx,1),%r13
  imul   %rdi,%rsi
  mov    %rdi,0x20(%rsp)
  mov    (%rsp),%rdi
  imul   %r8,%r14
  mov    %rax,0x38(%rsp)
  imul   %r8,%rdx
  add    %rdi,%rdi
  mov    %rbx,0x40(%rsp)
  mov    %rax,%rbx
  mov    %rdi,0x30(%rsp)
  mov    0x30(%rsp),%rbp
  mov    %rsi,%rdi
  mov    %rsi,0x8(%rsp)
  lea    (%r12,%r14,1),%r10
  mov    %rcx,%rsi
  mov    %rdx,%r11
  nopl   0x0(%rax)
L242:
  mov    %r10,%rdx
  mov    %r13,%rax
  xor    %ecx,%ecx
  test   %r15,%r15
  je     L237
  nopl   (%rax)
L133:
  movsd  -0x8(%rax),%xmm0
  add    $0x1,%rcx
  addsd  %xmm0,%xmm0
  movsd  %xmm0,(%rdx)
  movsd  (%rax),%xmm0
  add    %r11,%rax
  addsd  %xmm0,%xmm0
  movsd  %xmm0,(%rdx,%rdi,8)
  add    %r8,%rdx
  cmp    %rcx,%r15
  jne    L133
L237:
  add    $0x2,%r9
  add    %rsi,%r13
  add    %r14,%r10
  add    %rbx,%rdi
  cmp    %rbp,%r9
  jne    L242
  mov    0x10(%rsp),%rbp
  mov    0x8(%rsp),%rsi
  mov    0x40(%rsp),%rbx
  cmp    $0x1,%rbp
  je     L317
  mov    0x28(%rsp),%rax
  mov    0x20(%rsp),%rdi
  mov    %rbx,0x40(%rsp)
  lea    0x8(%r12),%r14
  mov    %r12,0x48(%rsp)
  lea    0x18(%r12),%r13
  lea    0x8(%rbx,%rax,1),%rax
  mov    %rdi,0x10(%rsp)
  mov    $0x2,%edi
  mov    %rax,0x8(%rsp)
  lea    -0x3(%rbp),%rax
  mov    %rdi,%r12
  and    $0xfffffffffffffffe,%rax
  mov    %rax,%rbx
L87:
  mov    0x10(%rsp),%r9
  mov    0x8(%rsp),%r8
  xor    %r10d,%r10d
  test   %r15,%r15
  je     L44
  nopw   0x0(%rax,%rax,1)
L321:
  cmp    $0x2,%rbp
  jbe    L104
  lea    (%rbx,%r9,1),%rdx
  lea    -0x20(%r8),%rcx
  lea    0x0(%r13,%rdx,8),%rdi
  lea    (%r14,%r9,8),%rax
  mov    %r8,%rdx
  nopw   0x0(%rax,%rax,1)
L299:
  movsd  (%rdx),%xmm0
  addsd  (%rcx),%xmm0
  add    $0x10,%rdx
  sub    $0x10,%rcx
  movsd  %xmm0,(%rax)
  movsd  -0x10(%rdx),%xmm0
  subsd  0x10(%rcx),%xmm0
  movsd  %xmm0,(%rax,%rsi,8)
  movsd  -0x8(%rdx),%xmm0
  addsd  0x18(%rcx),%xmm0
  movsd  %xmm0,0x8(%rax,%rsi,8)
  movsd  -0x8(%rdx),%xmm0
  subsd  0x18(%rcx),%xmm0
  add    $0x10,%rax
  movsd  %xmm0,-0x8(%rax)
  cmp    %rdi,%rax
  jne    L299
L104:
  add    $0x1,%r10
  add    %r11,%r8
  add    %rbp,%r9
  cmp    %r10,%r15
  jne    L321
L44:
  mov    0x28(%rsp),%rdi
  add    0x38(%rsp),%rsi
  add    $0x2,%r12
  add    %rdi,0x8(%rsp)
  mov    0x20(%rsp),%rdi
  add    %rdi,0x10(%rsp)
  cmp    0x30(%rsp),%r12
  jne    L87
  mov    0x40(%rsp),%rbx
  mov    0x48(%rsp),%r12
L317:
  mov    0x18(%rsp),%r14
  mov    %r14d,%edi
  shl    $0x4,%edi
  call   <util_malloc_@plt>
  mov    %rax,%r10
  test   %r14,%r14
  js     L382
  pxor   %xmm0,%xmm0
  cvtsi2sd %r14,%xmm0
L354:
  movsd  D6(%rip),%xmm1
  mov    D55(%rip),%rax
  movq   $0x0,0x8(%r10)
  movapd %xmm1,%xmm4
  mov    %rax,(%r10)
  divsd  %xmm0,%xmm4
  comisd D27(%rip),%xmm4
  movsd  %xmm4,0x8(%rsp)
  jae    L489
  cvttsd2si %xmm4,%r13
L95:
  mov    0x18(%rsp),%r14
  mov    %r13,%rdi
  mov    %r10,0x20(%rsp)
  shl    $0x4,%r14
  lea    -0x10(%r10,%r14,1),%rax
  mov    %rax,0x10(%rsp)
  call   <cos@plt>
  mov    0x10(%rsp),%rax
  mov    0x20(%rsp),%r10
  mov    %r13,%rdi
  movsd  %xmm0,(%rax)
  movsd  %xmm0,0x10(%r10)
  mov    %r10,0x10(%rsp)
  call   <sin@plt>
  mov    0x10(%rsp),%r10
  mov    0x18(%rsp),%rax
  movsd  %xmm0,0x18(%r10)
  xorpd  D73(%rip),%xmm0
  mov    %rax,%rdi
  shr    %rdi
  movsd  %xmm0,-0x8(%r10,%r14,1)
  cmp    $0x3,%rax
  jbe    L368
  mov    0x18(%rsp),%rax
  mov    %rbp,0x20(%rsp)
  lea    0x20(%r10),%r14
  mov    %rdi,%rbp
  mov    %rbx,0x28(%rsp)
  lea    -0x2(%rax),%r13
  mov    $0x2,%eax
  mov    %r10,0x10(%rsp)
  shl    $0x4,%r13
  mov    %r12,0x30(%rsp)
  mov    %rax,%rbx
  add    %r10,%r13
  jmp    L132
L134:
  cvttsd2si %xmm0,%r12
L197:
  mov    %r12,%rdi
  sub    $0x10,%r13
  add    $0x10,%r14
  call   <cos@plt>
  mov    %r12,%rdi
  movsd  %xmm0,0x10(%r13)
  movsd  %xmm0,-0x10(%r14)
  call   <sin@plt>
  mov    %rbx,%rdx
  add    $0x1,%rbx
  movsd  %xmm0,-0x8(%r14)
  xorpd  D73(%rip),%xmm0
  movsd  %xmm0,0x18(%r13)
  cmp    %rbp,%rdx
  je     L61
L132:
  pxor   %xmm0,%xmm0
  cvtsi2sd %rbx,%xmm0
  mulsd  0x8(%rsp),%xmm0
  comisd D27(%rip),%xmm0
  jb     L134
  subsd  D27(%rip),%xmm0
  movabs $0x8000000000000000,%rax
  cvttsd2si %xmm0,%r12
  xor    %rax,%r12
  jmp    L197
L61:
  mov    0x10(%rsp),%r10
  mov    0x20(%rsp),%rbp
  mov    0x28(%rsp),%rbx
  mov    0x30(%rsp),%r12
L368:
  cmpq   $0x1,(%rsp)
  jbe    L145
  mov    0x58(%rsp),%rsi
  mov    0x18(%rsp),%r11
  lea    0x10(%r10),%rdi
  mov    %rbx,0x78(%rsp)
  mov    %rdi,0x8(%rsp)
  lea    -0x1(%r11),%rax
  lea    -0x2(%r11),%rcx
  mov    %rsi,%rdi
  mov    %rbp,0x68(%rsp)
  lea    0x0(,%rsi,8),%rdx
  mov    %rax,0x60(%rsp)
  lea    (%r11,%r11,1),%r9
  shl    $0x4,%rdi
  imul   %rdx,%rax
  mov    %rdx,0x20(%rsp)
  lea    (%rbx,%rdx,1),%r14
  mov    %r9,%rbp
  imul   %rsi,%rcx
  lea    (%rsi,%rsi,1),%r8
  mov    %r15,0x70(%rsp)
  add    %rbx,%rdi
  mov    %r12,0x30(%rsp)
  mov    %r8,%r15
  mov    %rsi,%r9
  lea    (%rbx,%rax,1),%r13
  add    %r12,%rax
  mov    %r13,0x10(%rsp)
  mov    (%rsp),%r13
  mov    %rax,0x40(%rsp)
  mov    $0x4,%eax
  add    %r13,%r13
  sub    %r11,%rax
  imul   %rsi,%rax
  mov    %r13,0x28(%rsp)
  lea    (%r12,%rdx,1),%r13
  imul   %r11,%rdx
  mov    %r13,0x38(%rsp)
  mov    0x10(%rsp),%r13
  mov    %rax,0x50(%rsp)
  mov    %rdx,%rax
  add    %r12,%rax
  mov    %rax,0x48(%rsp)
  mov    $0x2,%eax
  mov    %rax,%r12
  nopl   0x0(%rax)
L387:
  mov    0x8(%rsp),%rax
  movsd  (%rax),%xmm2
  movsd  0x8(%rax),%xmm1
  xor    %eax,%eax
  test   %r9,%r9
  je     L209
  mov    0x40(%rsp),%rdx
  mov    0x30(%rsp),%rsi
  mov    0x38(%rsp),%r8
  nopl   0x0(%rax)
L6:
  movsd  (%r8,%rax,8),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  (%rsi,%rax,8),%xmm0
  movsd  %xmm0,(%r14,%rax,8)
  movsd  (%rdx,%rax,8),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,0x0(%r13,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%r9
  jne    L6
L209:
  cmpq   $0x2,(%rsp)
  je     L90
  mov    %r13,0x10(%rsp)
  mov    0x50(%rsp),%rsi
  mov    %r15,%rbx
  mov    %r12,%r8
  mov    0x48(%rsp),%r13
  mov    $0x2,%r11d
  nopl   0x0(%rax)
L70:
  add    %r12,%r8
  mov    %r8,%rax
  sub    %rbp,%rax
  cmp    %r8,%rbp
  cmovbe %rax,%r8
  movsd  (%r10,%r8,8),%xmm1
  movsd  0x8(%r10,%r8,8),%xmm2
  test   %r9,%r9
  je     L461
  mov    %rbx,%rax
  neg    %rax
  lea    0x0(%r13,%rax,8),%rdx
  mov    %r14,%rax
L185:
  movsd  (%rdx,%rsi,8),%xmm0
  add    $0x8,%rdx
  mulsd  %xmm1,%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  movsd  -0x8(%rdx),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  (%rax,%rcx,8),%xmm0
  movsd  %xmm0,(%rax,%rcx,8)
  add    $0x8,%rax
  cmp    %rdi,%rax
  jne    L185
L461:
  add    $0x1,%r11
  add    %r9,%rbx
  add    %r15,%rsi
  cmp    %r11,(%rsp)
  jne    L70
  mov    0x10(%rsp),%r13
L90:
  mov    0x20(%rsp),%rax
  addq   $0x10,0x8(%rsp)
  sub    %r15,%rcx
  add    $0x2,%r12
  add    %rax,%r14
  add    %rax,%rdi
  sub    %rax,%r13
  cmp    0x28(%rsp),%r12
  jne    L387
  mov    %r10,%rdi
  mov    0x68(%rsp),%rbp
  mov    0x70(%rsp),%r15
  mov    0x78(%rsp),%rbx
  mov    0x30(%rsp),%r12
  mov    0x38(%rsp),%r13
  call   <util_free_@plt>
  mov    0x58(%rsp),%rsi
  mov    (%rsp),%rdi
  mov    $0x1,%ecx
  mov    %rsi,%rdx
  xchg   %ax,%ax
L288:
  mov    %r12,%rax
  test   %rsi,%rsi
  je     L463
  nopl   0x0(%rax,%rax,1)
L466:
  movsd  (%rax),%xmm0
  addsd  (%rax,%rdx,8),%xmm0
  add    $0x8,%rax
  movsd  %xmm0,-0x8(%rax)
  cmp    %rax,%r13
  jne    L466
L463:
  add    $0x1,%rcx
  add    %rsi,%rdx
  cmp    %rcx,%rdi
  jne    L288
  mov    0x60(%rsp),%r9
  mov    (%rsp),%r11
  mov    $0x1,%edi
  lea    0x0(,%rbp,8),%rsi
  mov    %rsi,%r10
  imul   %r15,%r10
  imul   %r10,%r9
  mov    %r10,%r8
  nopw   0x0(%rax,%rax,1)
L93:
  mov    %r9,%rdx
  mov    %r8,%rax
  xor    %ecx,%ecx
  test   %r15,%r15
  je     L42
  nopl   (%rax)
L319:
  movsd  (%rbx,%rax,1),%xmm0
  addsd  (%rbx,%rdx,1),%xmm0
  add    $0x1,%rcx
  movsd  %xmm0,(%r12,%rdx,1)
  movsd  (%rbx,%rax,1),%xmm0
  subsd  (%rbx,%rdx,1),%xmm0
  add    %rsi,%rdx
  movsd  %xmm0,(%r12,%rax,1)
  add    %rsi,%rax
  cmp    %rcx,%r15
  jne    L319
L42:
  add    $0x1,%rdi
  add    %r10,%r8
  sub    %r10,%r9
  cmp    %rdi,%r11
  jne    L93
  cmp    $0x1,%rbp
  je     L401
  mov    %r15,%rax
  mov    0x60(%rsp),%rdi
  mov    $0x2,%esi
  sub    0x18(%rsp),%rsi
  imul   %rbp,%rax
  mov    %rbx,0x30(%rsp)
  lea    0x8(%rbx),%r11
  mov    %r12,0x38(%rsp)
  lea    0x8(%r12),%r13
  lea    0x18(%r12),%r14
  movq   $0x1,0x8(%rsp)
  imul   %rax,%rdi
  mov    %rax,0x28(%rsp)
  imul   %rax,%rsi
  mov    %rdi,0x10(%rsp)
  lea    (%rax,%rax,1),%rdi
  mov    %rdi,0x20(%rsp)
  mov    %rax,%rdi
  lea    -0x3(%rbp),%rax
  and    $0xfffffffffffffffe,%rax
  mov    %rdi,%r12
  mov    %rax,%rbx
  nopl   0x0(%rax,%rax,1)
L262:
  mov    0x10(%rsp),%r8
  mov    %r12,%r10
  xor    %r9d,%r9d
  test   %r15,%r15
  je     L441
  nopl   0x0(%rax)
L339:
  cmp    $0x2,%rbp
  jbe    L477
  lea    0x0(,%r8,8),%rax
  lea    (%r8,%rbx,1),%rdi
  lea    (%r11,%rax,1),%rdx
  lea    (%r11,%r10,8),%rcx
  add    %r13,%rax
  lea    (%r14,%rdi,8),%rdi
  nopl   0x0(%rax)
L229:
  movsd  (%rcx),%xmm0
  addsd  0x8(%rdx),%xmm0
  add    $0x10,%rcx
  add    $0x10,%rdx
  movsd  %xmm0,(%rax)
  movsd  -0x10(%rcx),%xmm0
  subsd  -0x8(%rdx),%xmm0
  movsd  %xmm0,(%rax,%rsi,8)
  movsd  -0x8(%rcx),%xmm0
  addsd  -0x10(%rdx),%xmm0
  movsd  %xmm0,0x8(%rax,%rsi,8)
  movsd  -0x8(%rcx),%xmm0
  subsd  -0x10(%rdx),%xmm0
  add    $0x10,%rax
  movsd  %xmm0,-0x8(%rax)
  cmp    %rax,%rdi
  jne    L229
L477:
  add    $0x1,%r9
  add    %rbp,%r10
  add    %rbp,%r8
  cmp    %r9,%r15
  jne    L339
L441:
  mov    0x28(%rsp),%rcx
  addq   $0x1,0x8(%rsp)
  sub    %rcx,0x10(%rsp)
  mov    0x8(%rsp),%rax
  add    %rcx,%r12
  add    0x20(%rsp),%rsi
  cmp    %rax,(%rsp)
  jne    L262
  mov    0x30(%rsp),%rbx
  mov    0x38(%rsp),%r12
L337:
  mov    0x58(%rsp),%rdx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  shl    $0x3,%rdx
  call   <memcpy@plt>
  cmpq   $0x1,0x18(%rsp)
  jbe    L401
  lea    -0x3(%rbp),%rax
  mov    %r15,%r14
  xor    %r13d,%r13d
  movq   $0x1,(%rsp)
  and    $0xfffffffffffffffe,%rax
  imul   %rbp,%r14
  lea    0x0(,%rbp,8),%r11
  mov    %rax,0x10(%rsp)
  mov    0xc0(%rsp),%rax
  add    $0x10,%rax
  mov    %r14,0x8(%rsp)
  mov    %rax,0x20(%rsp)
  nopl   (%rax)
L178:
  test   %r15,%r15
  je     L344
  mov    0xc0(%rsp),%rax
  mov    0x20(%rsp),%rdi
  lea    0x8(,%r14,8),%r8
  xor    %r9d,%r9d
  lea    (%rax,%r13,8),%r10
  mov    0x10(%rsp),%rax
  add    %r13,%rax
  lea    (%rdi,%rax,8),%rsi
  mov    %r14,%rdi
  nopl   0x0(%rax)
L109:
  movsd  (%r12,%rdi,8),%xmm0
  lea    (%r12,%r8,1),%rdx
  lea    (%rbx,%r8,1),%rcx
  mov    %r10,%rax
  movsd  %xmm0,(%rbx,%rdi,8)
  cmp    $0x2,%rbp
  jbe    L370
  nopl   0x0(%rax)
L159:
  movsd  (%rax),%xmm0
  add    $0x10,%rax
  add    $0x10,%rdx
  add    $0x10,%rcx
  mulsd  -0x8(%rdx),%xmm0
  movsd  -0x8(%rax),%xmm1
  mulsd  -0x10(%rdx),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rcx)
  movsd  -0x10(%rax),%xmm0
  movsd  -0x8(%rax),%xmm1
  mulsd  -0x10(%rdx),%xmm0
  mulsd  -0x8(%rdx),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rcx)
  cmp    %rsi,%rax
  jne    L159
L370:
  add    $0x1,%r9
  add    %rbp,%rdi
  add    %r11,%r8
  cmp    %r9,%r15
  jne    L109
L344:
  addq   $0x1,(%rsp)
  add    %rbp,%r13
  mov    (%rsp),%rax
  add    0x8(%rsp),%r14
  cmp    %rax,0x18(%rsp)
  jne    L178
L401:
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L489:
  movsd  0x8(%rsp),%xmm0
  subsd  D27(%rip),%xmm0
  cvttsd2si %xmm0,%r13
  btc    $0x3f,%r13
  jmp    L95
L382:
  mov    0x18(%rsp),%rdi
  pxor   %xmm0,%xmm0
  mov    %rdi,%rax
  and    $0x1,%edi
  shr    %rax
  or     %rdi,%rax
  cvtsi2sd %rax,%xmm0
  addsd  %xmm0,%xmm0
  jmp    L354
L145:
  mov    %r10,%rdi
  call   <util_free_@plt>
  cmp    $0x1,%rbp
  jne    L337
  jmp    L401
```

tool_calls: name: extract_symbolic_data
arguments: label: D6
datatype: f64
name: extract_symbolic_data
arguments: label: D55
datatype: f64
name: extract_symbolic_data
arguments: label: D27
datatype: f32[4]
name: extract_symbolic_data
arguments: label: D73
datatype: f32[4]

tool: D6: 6.283185307179586

tool: D55: 1

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

tool: {"D73": [0.0,-0.0,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))];
      }
    }
}
```