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

```asm
<dradf2>:
  endbr64
  mov    %esi,%eax
  push   %r15
  mov    %edi,%r9d
  mov    %esi,%r11d
  push   %r14
  imul   %edi,%eax
  mov    %rcx,%r10
  push   %r13
  push   %r12
  lea    (%rdi,%rdi,1),%r12d
  push   %rbp
  push   %rbx
  mov    %rdx,-0x18(%rsp)
  mov    %eax,-0x8(%rsp)
  test   %esi,%esi
  jle    L108
  cmp    $0x1,%edi
  jne    L80
  movslq %eax,%rsi
  mov    -0x18(%rsp),%rax
  xor    %edx,%edx
  xor    %ecx,%ecx
  mov    %rsi,%rbx
  shl    $0x3,%rsi
  add    %rsi,%rax
  lea    (%rbx,%rbx,1),%edi
  neg    %rsi
  nopw   0x0(%rax,%rax,1)
L71:
  movsd  (%rax),%xmm0
  addsd  (%rax,%rsi,1),%xmm0
  add    $0x2,%edx
  add    $0x8,%rax
  movsd  %xmm0,(%r10,%rcx,8)
  movsd  -0x8(%rax,%rsi,1),%xmm0
  movslq %edx,%rcx
  subsd  -0x8(%rax),%xmm0
  movsd  %xmm0,-0x8(%r10,%rcx,8)
  cmp    %edx,%edi
  jne    L71
L78:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L80:
  movslq %edi,%rax
  movslq -0x8(%rsp),%rsi
  xor    %ecx,%ecx
  lea    0x0(,%rax,8),%rdi
  xor    %eax,%eax
  cs nopw 0x0(%rax,%rax,1)
L90:
  movsd  (%rdx),%xmm0
  addsd  (%rdx,%rsi,8),%xmm0
  movslq %eax,%rbx
  add    %r12d,%eax
  add    $0x1,%ecx
  movsd  %xmm0,(%r10,%rbx,8)
  movsd  (%rdx),%xmm0
  subsd  (%rdx,%rsi,8),%xmm0
  movslq %eax,%rbx
  add    %rdi,%rdx
  movsd  %xmm0,-0x8(%r10,%rbx,8)
  cmp    %ecx,%r11d
  jne    L90
L108:
  cmp    $0x1,%r9d
  jle    L78
  cmp    $0x2,%r9d
  je     L58
  mov    %r9d,%eax
  and    $0x1,%eax
  mov    %eax,-0x4(%rsp)
  test   %r11d,%r11d
  jle    L78
  movslq %r9d,%rax
  movslq -0x8(%rsp),%r14
  lea    (%r9,%r9,1),%r13d
  mov    %r10,%rdi
  mov    %rax,-0x10(%rsp)
  movslq %r13d,%r13
  xor    %ebp,%ebp
  xor    %ebx,%ebx
  lea    0x0(,%rax,8),%r15
  shl    $0x3,%r14
  shl    $0x3,%r13
  mov    -0x18(%rsp),%rax
  lea    (%rax,%r14,1),%rsi
  cs nopw 0x0(%rax,%rax,1)
L97:
  lea    (%r12,%rbp,2),%eax
  mov    %rsi,%rdx
  cltq
  sub    %r14,%rdx
  lea    (%r10,%rax,8),%rcx
  mov    $0x2,%eax
  nopl   (%rax)
L116:
  movsd  -0x10(%r8,%rax,8),%xmm0
  movsd  -0x8(%rsi,%rax,8),%xmm2
  add    $0x10,%rdx
  sub    $0x10,%rcx
  movsd  -0x8(%r8,%rax,8),%xmm3
  movsd  (%rsi,%rax,8),%xmm4
  movapd %xmm0,%xmm1
  mulsd  %xmm2,%xmm1
  movapd %xmm3,%xmm5
  mulsd  %xmm3,%xmm2
  mulsd  %xmm4,%xmm0
  mulsd  %xmm4,%xmm5
  subsd  %xmm2,%xmm0
  movsd  (%rdx),%xmm2
  addsd  %xmm5,%xmm1
  addsd  %xmm0,%xmm2
  movsd  %xmm2,(%rdi,%rax,8)
  subsd  (%rdx),%xmm0
  movsd  %xmm0,(%rcx)
  movsd  -0x8(%rdx),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rdi,%rax,8)
  movsd  -0x8(%rdx),%xmm0
  add    $0x2,%rax
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rcx)
  cmp    %eax,%r9d
  jg     L116
  add    $0x1,%ebx
  add    %r9d,%ebp
  add    %r15,%rsi
  add    %r13,%rdi
  cmp    %ebx,%r11d
  jne    L97
  mov    -0x4(%rsp),%eax
  test   %eax,%eax
  jne    L78
  mov    -0x8(%rsp),%r8d
  sub    $0x1,%r9d
  add    %r9d,%r8d
L23:
  mov    -0x10(%rsp),%rdi
  mov    -0x18(%rsp),%rax
  movslq %r8d,%r8
  movslq %r12d,%rsi
  movslq %r9d,%rcx
  movq   D9(%rip),%xmm1
  shl    $0x3,%rsi
  xor    %edx,%edx
  shl    $0x3,%rdi
  lea    (%rax,%r8,8),%rax
  sub    %r8,%rcx
  add    %rdi,%r10
L106:
  movsd  (%rax),%xmm0
  add    $0x1,%edx
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,(%r10)
  movsd  (%rax,%rcx,8),%xmm0
  add    %rdi,%rax
  movsd  %xmm0,-0x8(%r10)
  add    %rsi,%r10
  cmp    %edx,%r11d
  jg     L106
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L58:
  test   %r11d,%r11d
  jle    L78
  mov    -0x8(%rsp),%r8d
  mov    $0x1,%r9d
  movq   $0x2,-0x10(%rsp)
  add    $0x1,%r8d
  jmp    L23
```

tool_calls: name: disassemble_data
arguments: data_tag: D9
type_infered: byte[8]

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

assistant: ```c
void dradf2(int ido, int l1, double *cc, double *ch, double *wa1) {
  int i, k;
  double ti2, tr2;
  int t0, t1, t2, t3, t4, t5, t6;
  t1 = 0;
  t0 = (t2 = l1 * ido);
  t3 = ido << 1;
  for (k = 0; k < l1; k++) {
    ch[t1 << 1] = cc[t1] + cc[t2];
    ch[(t1 << 1) + t3 - 1] = cc[t1] - cc[t2];
    t1 += ido;
    t2 += ido;
  }
  if (ido < 2)
    return;
  if (ido == 2)
    goto L105;
  t1 = 0;
  t2 = t0;
  for (k = 0; k < l1; k++) {
    t3 = t2;
    t4 = (t1 << 1) + (ido << 1);
    t5 = t1;
    t6 = t1 + t1;
    for (i = 2; i < ido; i += 2) {
      t3 += 2;
      t4 -= 2;
      t5 += 2;
      t6 += 2;
      tr2 = wa1[i - 2] * cc[t3 - 1] + wa1[i - 1] * cc[t3];
      ti2 = wa1[i - 2] * cc[t3] - wa1[i - 1] * cc[t3 - 1];
      ch[t6] = cc[t5] + ti2;
      ch[t4] = ti2 - cc[t5];
      ch[t6 - 1] = cc[t5 - 1] + tr2;
      ch[t4 - 1] = cc[t5 - 1] - tr2;
    }
    t1 += ido;
    t2 += ido;
  }
  if (ido % 2 == 1)
    return;
L105:
  t3 = (t2 = (t1 = ido) - 1);
  t2 += t0;
  for (k = 0; k < l1; k++) {
    ch[t1] = -cc[t2];
    ch[t1 - 1] = cc[t3];
    t1 += ido << 1;
    t2 += ido;
    t3 += ido;
  }
}
```