user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<radbg>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  mov    %rdi,%r14
  mov    %rsi,0x30(%rsp)
  mov    %rdx,%r15
  mov    %rcx,0x78(%rsp)
  mov    %r8,%rbx
  mov    %r9,%r13
  lea    0x1(%rsi),%rax
  mov    %rax,0x38(%rsp)
  shr    %rax
  mov    %rax,0x18(%rsp)
  test   %rdx,%rdx
  je     L61
  mov    %rsi,%rdi
  lea    0x0(,%r14,8),%rax
  mov    %rax,%rsi
  imul   %rdi,%rsi
  mov    %rsi,(%rsp)
  mov    %r8,%r12
  mov    $0x0,%ebp
  mov    %r14,0x8(%rsp)
  mov    %rax,%r14
  mov    %r8,0x10(%rsp)
  mov    %r9,%rbx
L456:
  mov    %r14,%rdx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <memcpy@plt>
  add    $0x1,%rbp
  add    %r14,%rbx
  add    (%rsp),%r12
  cmp    %rbp,%r15
  jne    L456
  mov    0x8(%rsp),%r14
  mov    0x10(%rsp),%rbx
L61:
  cmpq   $0x3,0x38(%rsp)
  jbe    L332
  mov    %r14,%rax
  shl    $0x4,%rax
  mov    %rax,0x8(%rsp)
  lea    (%rbx,%rax,1),%r11
  lea    0x0(,%r14,8),%r8
  mov    %r8,%rbp
  imul   %r15,%rbp
  lea    0x0(%r13,%rbp,1),%r10
  lea    (%r15,%r15,1),%rax
  neg    %rax
  imul   %r14,%rax
  mov    %rax,0x10(%rsp)
  mov    %r15,%rdi
  imul   %r14,%rdi
  mov    %rdi,0x28(%rsp)
  mov    0x30(%rsp),%rax
  lea    -0x2(%rax),%rsi
  imul   %rdi,%rsi
  imul   %r8,%rax
  mov    %rax,(%rsp)
  mov    %rsi,%rdi
  mov    $0x1,%r9d
  mov    0x18(%rsp),%r12
  mov    %rsi,0x20(%rsp)
  mov    %rax,%rsi
L149:
  test   %r15,%r15
  je     L457
  mov    %r10,%rdx
  mov    %r11,%rax
  mov    $0x0,%ecx
L237:
  movsd  -0x8(%rax),%xmm0
  addsd  %xmm0,%xmm0
  movsd  %xmm0,(%rdx)
  movsd  (%rax),%xmm0
  addsd  %xmm0,%xmm0
  movsd  %xmm0,(%rdx,%rdi,8)
  add    $0x1,%rcx
  add    %rsi,%rax
  add    %r8,%rdx
  cmp    %rcx,%r15
  jne    L237
L457:
  add    $0x1,%r9
  add    0x8(%rsp),%r11
  add    %rbp,%r10
  add    0x10(%rsp),%rdi
  cmp    %r9,%r12
  ja     L149
  mov    0x20(%rsp),%rsi
  cmp    $0x1,%r14
  je     L332
  mov    0x8(%rsp),%rax
  lea    0x8(%rbx,%rax,1),%rax
  mov    %rax,0x20(%rsp)
  lea    -0x3(%r14),%rax
  and    $0xfffffffffffffffe,%rax
  mov    %rax,%r12
  mov    0x28(%rsp),%rax
  mov    $0x1,%edi
  lea    0x8(%r13),%rbp
  lea    0x18(%r13),%r11
  mov    %rbx,0x40(%rsp)
  mov    %rdi,%rbx
  mov    %r13,0x48(%rsp)
  mov    %rax,%r13
  jmp    L126
L201:
  lea    -0x20(%r8),%rcx
  lea    0x0(%rbp,%r9,8),%rax
  lea    (%r12,%r9,1),%rdx
  lea    (%r11,%rdx,8),%rdi
  mov    %r8,%rdx
L294:
  movsd  (%rdx),%xmm0
  addsd  (%rcx),%xmm0
  movsd  %xmm0,(%rax)
  movsd  (%rdx),%xmm0
  subsd  (%rcx),%xmm0
  movsd  %xmm0,(%rax,%rsi,8)
  movsd  0x8(%rdx),%xmm0
  addsd  0x8(%rcx),%xmm0
  movsd  %xmm0,0x8(%rax,%rsi,8)
  movsd  0x8(%rdx),%xmm0
  subsd  0x8(%rcx),%xmm0
  movsd  %xmm0,0x8(%rax)
  add    $0x10,%rdx
  sub    $0x10,%rcx
  add    $0x10,%rax
  cmp    %rdi,%rax
  jne    L294
L121:
  add    $0x1,%r10
  add    (%rsp),%r8
  add    %r14,%r9
  cmp    %r10,%r15
  je     L165
L70:
  cmp    $0x2,%r14
  ja     L201
  jmp    L121
L165:
  add    $0x1,%rbx
  mov    0x8(%rsp),%rdi
  add    %rdi,0x20(%rsp)
  add    0x28(%rsp),%r13
  add    0x10(%rsp),%rsi
  cmp    %rbx,0x18(%rsp)
  jbe    L466
L126:
  mov    %r13,%r9
  mov    0x20(%rsp),%r8
  mov    $0x0,%r10d
  test   %r15,%r15
  jne    L70
  jmp    L165
L466:
  mov    0x40(%rsp),%rbx
  mov    0x48(%rsp),%r13
L332:
  mov    0x30(%rsp),%r12
  mov    %r12d,%edi
  shl    $0x4,%edi
  call   <util_malloc_@plt>
  mov    %rax,%rbp
  test   %r12,%r12
  js     L259
  pxor   %xmm0,%xmm0
  cvtsi2sd %r12,%xmm0
L215:
  movsd  D2(%rip),%xmm1
  movapd %xmm1,%xmm4
  divsd  %xmm0,%xmm4
  movsd  %xmm4,(%rsp)
  mov    D79(%rip),%rax
  mov    %rax,0x0(%rbp)
  movq   $0x0,0x8(%rbp)
  comisd D37(%rip),%xmm4
  jae    L30
  cvttsd2si %xmm4,%r12
L460:
  mov    0x30(%rsp),%rax
  shl    $0x4,%rax
  mov    %rax,0x8(%rsp)
  lea    -0x10(%rbp,%rax,1),%rsi
  mov    %rsi,0x10(%rsp)
  mov    %r12,%rdi
  call   <cos@plt>
  mov    0x10(%rsp),%rsi
  movsd  %xmm0,(%rsi)
  movsd  %xmm0,0x10(%rbp)
  mov    %r12,%rdi
  call   <sin@plt>
  movsd  %xmm0,0x18(%rbp)
  xorpd  D70(%rip),%xmm0
  mov    0x8(%rsp),%rax
  movsd  %xmm0,-0x8(%rbp,%rax,1)
  mov    0x30(%rsp),%rax
  mov    %rax,%rdi
  shr    %rdi
  cmp    $0x3,%rax
  jbe    L408
  sub    $0x2,%rax
  shl    $0x4,%rax
  add    %rbp,%rax
  lea    0x20(%rbp),%rsi
  mov    $0x2,%r12d
  mov    %rbp,0x8(%rsp)
  mov    %rsi,%rbp
  mov    %r14,0x10(%rsp)
  mov    %r15,0x20(%rsp)
  mov    %rdi,%r15
  mov    %rbx,0x28(%rsp)
  mov    %rax,%rbx
  jmp    L239
L259:
  mov    0x30(%rsp),%rdi
  mov    %rdi,%rax
  shr    %rax
  and    $0x1,%edi
  or     %rdi,%rax
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  addsd  %xmm0,%xmm0
  jmp    L215
L30:
  movsd  (%rsp),%xmm0
  subsd  D37(%rip),%xmm0
  cvttsd2si %xmm0,%r12
  btc    $0x3f,%r12
  jmp    L460
L599:
  mov    %r12,%rax
  shr    %rax
  mov    %r12,%rdx
  and    $0x1,%edx
  or     %rdx,%rax
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  addsd  %xmm0,%xmm0
  jmp    L216
L588:
  subsd  D37(%rip),%xmm0
  cvttsd2si %xmm0,%r14
  movabs $0x8000000000000000,%rax
  xor    %rax,%r14
L443:
  mov    %r14,%rdi
  call   <cos@plt>
  movsd  %xmm0,(%rbx)
  movsd  %xmm0,0x0(%rbp)
  mov    %r14,%rdi
  call   <sin@plt>
  movsd  %xmm0,0x8(%rbp)
  xorpd  D70(%rip),%xmm0
  movsd  %xmm0,0x8(%rbx)
  add    $0x1,%r12
  sub    $0x10,%rbx
  add    $0x10,%rbp
  cmp    %r15,%r12
  ja     L376
L239:
  test   %r12,%r12
  js     L599
  pxor   %xmm0,%xmm0
  cvtsi2sd %r12,%xmm0
L216:
  mulsd  (%rsp),%xmm0
  comisd D37(%rip),%xmm0
  jae    L588
  cvttsd2si %xmm0,%r14
  jmp    L443
L376:
  mov    0x8(%rsp),%rbp
  mov    0x10(%rsp),%r14
  mov    0x20(%rsp),%r15
  mov    0x28(%rsp),%rbx
L408:
  cmpq   $0x3,0x38(%rsp)
  jbe    L219
  mov    0x30(%rsp),%r10
  lea    -0x1(%r10),%rcx
  mov    %rcx,0x80(%rsp)
  mov    0x78(%rsp),%rsi
  lea    0x0(,%rsi,8),%rdx
  mov    %rdx,0x40(%rsp)
  lea    (%r10,%r10,1),%rax
  mov    %rax,0x50(%rsp)
  lea    0x10(%rbp),%rax
  mov    %rax,0x20(%rsp)
  lea    (%rbx,%rdx,1),%r11
  mov    %rsi,%rax
  neg    %rax
  shl    $0x3,%rax
  mov    %rax,0x48(%rsp)
  mov    %rcx,%rax
  imul   %rdx,%rax
  lea    (%rbx,%rax,1),%r12
  lea    (%rsi,%rsi,1),%rcx
  mov    %rcx,(%rsp)
  lea    -0x2(%r10),%rcx
  imul   %rsi,%rcx
  mov    %rsi,%rdi
  shl    $0x4,%rdi
  add    %rbx,%rdi
  lea    0x0(%r13,%rdx,1),%r9
  mov    %r9,0x68(%rsp)
  add    %r13,%rax
  mov    %rax,0x70(%rsp)
  mov    $0x4,%eax
  sub    %r10,%rax
  mov    %rsi,%r9
  imul   %rsi,%rax
  mov    %rax,0x58(%rsp)
  imul   %r10,%rdx
  mov    %rdx,%rax
  add    %r13,%rax
  mov    %rax,0x60(%rsp)
  movq   $0x1,0x10(%rsp)
  mov    %r14,0x88(%rsp)
  mov    %r15,0x90(%rsp)
  mov    %rbx,0x98(%rsp)
L509:
  mov    0x20(%rsp),%rax
  movsd  (%rax),%xmm1
  movsd  0x8(%rax),%xmm2
  test   %r9,%r9
  je     L338
  mov    $0x0,%eax
  mov    0x68(%rsp),%r14
  mov    0x70(%rsp),%r15
L230:
  movapd %xmm1,%xmm0
  mulsd  (%r14,%rax,8),%xmm0
  addsd  0x0(%r13,%rax,8),%xmm0
  movsd  %xmm0,(%r11,%rax,8)
  movapd %xmm2,%xmm0
  mulsd  (%r15,%rax,8),%xmm0
  movsd  %xmm0,(%r12,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%r9
  jne    L230
L338:
  mov    0x10(%rsp),%rax
  lea    (%rax,%rax,1),%r8
  mov    %r8,0x8(%rsp)
  cmpq   $0x5,0x38(%rsp)
  jbe    L465
  mov    0x58(%rsp),%rsi
  mov    (%rsp),%rbx
  mov    $0x2,%r10d
  mov    0x50(%rsp),%r14
  mov    0x60(%rsp),%r15
  mov    %r12,0x28(%rsp)
  mov    0x18(%rsp),%r12
L54:
  add    0x8(%rsp),%r8
  mov    %r8,%rax
  sub    %r14,%rax
  cmp    %r8,%r14
  cmovbe %rax,%r8
  movsd  0x0(%rbp,%r8,8),%xmm1
  movsd  0x8(%rbp,%r8,8),%xmm2
  test   %r9,%r9
  je     L342
  mov    %rbx,%rax
  neg    %rax
  lea    (%r15,%rax,8),%rdx
  mov    %r11,%rax
L0:
  movapd %xmm1,%xmm0
  mulsd  (%rdx,%rsi,8),%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  movapd %xmm2,%xmm0
  mulsd  (%rdx),%xmm0
  addsd  (%rax,%rcx,8),%xmm0
  movsd  %xmm0,(%rax,%rcx,8)
  add    $0x8,%rax
  add    $0x8,%rdx
  cmp    %rdi,%rax
  jne    L0
L342:
  add    $0x1,%r10
  add    %r9,%rbx
  add    (%rsp),%rsi
  cmp    %r10,%r12
  ja     L54
  mov    0x28(%rsp),%r12
L465:
  addq   $0x1,0x10(%rsp)
  mov    0x10(%rsp),%rax
  addq   $0x10,0x20(%rsp)
  mov    0x40(%rsp),%rbx
  add    %rbx,%r11
  add    0x48(%rsp),%r12
  sub    (%rsp),%rcx
  add    %rbx,%rdi
  cmp    %rax,0x18(%rsp)
  ja     L509
  mov    0x88(%rsp),%r14
  mov    0x90(%rsp),%r15
  mov    0x98(%rsp),%rbx
  mov    %rbp,%rdi
  call   <util_free_@plt>
  mov    0x40(%rsp),%rdx
  add    %r13,%rdx
  mov    0x78(%rsp),%rdi
  mov    %rdi,%rcx
  mov    $0x1,%esi
  mov    0x18(%rsp),%r8
  jmp    L283
L474:
  movsd  (%rax),%xmm0
  addsd  (%rax,%rcx,8),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L474
L325:
  add    $0x1,%rsi
  add    %rdi,%rcx
  cmp    %rsi,%r8
  jbe    L563
L283:
  mov    %r13,%rax
  test   %rdi,%rdi
  jne    L474
  jmp    L325
L6:
  movsd  (%rbx,%rax,1),%xmm0
  addsd  (%rbx,%rdx,1),%xmm0
  movsd  %xmm0,0x0(%r13,%rdx,1)
  movsd  (%rbx,%rax,1),%xmm0
  subsd  (%rbx,%rdx,1),%xmm0
  movsd  %xmm0,0x0(%r13,%rax,1)
  add    $0x1,%rcx
  add    %rsi,%rax
  add    %rsi,%rdx
  cmp    %rcx,%r15
  jne    L6
L538:
  add    $0x1,%rdi
  add    %r11,%r8
  add    %r10,%r9
  cmp    %rdi,%rbp
  jbe    L68
L253:
  mov    %r9,%rdx
  mov    %r8,%rax
  mov    $0x0,%ecx
  test   %r15,%r15
  jne    L6
  jmp    L538
L441:
  lea    (%r11,%r10,8),%rcx
  lea    0x0(,%r8,8),%rax
  lea    (%r11,%rax,1),%rdx
  add    (%rsp),%rax
  lea    (%r12,%r8,1),%rdi
  lea    0x0(%rbp,%rdi,8),%rdi
L156:
  movsd  (%rcx),%xmm0
  addsd  0x8(%rdx),%xmm0
  movsd  %xmm0,(%rax)
  movsd  (%rcx),%xmm0
  subsd  0x8(%rdx),%xmm0
  movsd  %xmm0,(%rax,%rsi,8)
  movsd  0x8(%rcx),%xmm0
  addsd  (%rdx),%xmm0
  movsd  %xmm0,0x8(%rax,%rsi,8)
  movsd  0x8(%rcx),%xmm0
  subsd  (%rdx),%xmm0
  movsd  %xmm0,0x8(%rax)
  add    $0x10,%rcx
  add    $0x10,%rdx
  add    $0x10,%rax
  cmp    %rdi,%rax
  jne    L156
L521:
  add    $0x1,%r9
  add    %r14,%r10
  add    %r14,%r8
  cmp    %r9,%r15
  je     L594
L398:
  cmp    $0x2,%r14
  ja     L441
  jmp    L521
L594:
  add    $0x1,%rbx
  mov    0x10(%rsp),%rdi
  add    %rdi,0x8(%rsp)
  sub    %rdi,%r13
  add    0x20(%rsp),%rsi
  cmp    %rbx,0x18(%rsp)
  jbe    L432
L4:
  mov    %r13,%r8
  mov    0x8(%rsp),%r10
  mov    $0x0,%r9d
  test   %r15,%r15
  jne    L398
  jmp    L594
L244:
  lea    0x8(,%rbp,8),%r8
  mov    0xe0(%rsp),%rax
  lea    (%rax,%r11,8),%r10
  mov    0x10(%rsp),%rax
  add    %r11,%rax
  mov    0x18(%rsp),%rdi
  lea    (%rdi,%rax,8),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%r9d
L256:
  movsd  0x0(%r13,%rdi,8),%xmm0
  movsd  %xmm0,(%rbx,%rdi,8)
  cmp    $0x2,%r14
  jbe    L477
  lea    0x0(%r13,%r8,1),%rdx
  lea    (%rbx,%r8,1),%rcx
  mov    %r10,%rax
L459:
  movsd  (%rax),%xmm0
  mulsd  0x8(%rdx),%xmm0
  movsd  0x8(%rax),%xmm1
  mulsd  (%rdx),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,0x8(%rcx)
  movsd  (%rax),%xmm0
  mulsd  (%rdx),%xmm0
  movsd  0x8(%rax),%xmm1
  mulsd  0x8(%rdx),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rcx)
  add    $0x10,%rax
  add    $0x10,%rdx
  add    $0x10,%rcx
  cmp    %rsi,%rax
  jne    L459
L477:
  add    $0x1,%r9
  add    %r14,%rdi
  add    (%rsp),%r8
  cmp    %r9,%r15
  jne    L256
L120:
  add    $0x1,%r12
  add    0x8(%rsp),%rbp
  add    %r14,%r11
  cmp    %r12,0x30(%rsp)
  je     L541
L114:
  test   %r15,%r15
  jne    L244
  jmp    L120
L68:
  cmp    $0x1,%r14
  je     L541
  mov    %r15,%rdi
  imul   %r14,%rdi
  mov    %rdi,0x10(%rsp)
  mov    0x80(%rsp),%rcx
  imul   %rdi,%rcx
  lea    (%rdi,%rdi,1),%rax
  mov    %rax,0x20(%rsp)
  mov    $0x2,%esi
  sub    0x30(%rsp),%rsi
  imul   %rdi,%rsi
  lea    -0x3(%r14),%rax
  and    $0xfffffffffffffffe,%rax
  mov    %rax,%r12
  mov    %rdi,0x8(%rsp)
  mov    $0x1,%edi
  lea    0x8(%rbx),%r11
  lea    0x8(%r13),%rax
  mov    %rax,(%rsp)
  lea    0x18(%r13),%rbp
  mov    %rbx,0x28(%rsp)
  mov    %rdi,%rbx
  mov    %r13,0x38(%rsp)
  mov    %rcx,%r13
  jmp    L4
L563:
  lea    0x0(,%r14,8),%rsi
  mov    %rsi,%r11
  imul   %r15,%r11
  mov    %r15,%r10
  imul   %r14,%r10
  neg    %r10
  shl    $0x3,%r10
  mov    0x80(%rsp),%r9
  imul   %r11,%r9
  mov    %r11,%r8
  mov    $0x1,%edi
  mov    0x18(%rsp),%rbp
  jmp    L253
L219:
  mov    %rbp,%rdi
  call   <util_free_@plt>
  cmp    $0x1,%r14
  je     L541
  mov    0x78(%rsp),%rdx
  shl    $0x3,%rdx
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <memcpy@plt>
  cmpq   $0x1,0x30(%rsp)
  ja     L22
L541:
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L432:
  mov    0x28(%rsp),%rbx
  mov    0x38(%rsp),%r13
  mov    0x78(%rsp),%rdx
  shl    $0x3,%rdx
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <memcpy@plt>
L22:
  mov    %r15,%rbp
  imul   %r14,%rbp
  mov    %rbp,0x8(%rsp)
  lea    0x0(,%r14,8),%rax
  mov    %rax,(%rsp)
  lea    -0x3(%r14),%rax
  and    $0xfffffffffffffffe,%rax
  mov    %rax,0x10(%rsp)
  mov    $0x0,%r11d
  mov    $0x1,%r12d
  mov    0xe0(%rsp),%rax
  add    $0x10,%rax
  mov    %rax,0x18(%rsp)
  jmp    L114
```

tool_calls: name: unpack_data
arguments: label: D2
data_type: f64
name: unpack_data
arguments: label: D79
data_type: f64
name: unpack_data
arguments: label: D37
data_type: f32[4]
name: unpack_data
arguments: label: D70
data_type: f32[4]

tool: D2: 6.283185307179586

tool: D79: 1

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

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