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

```asm
<bitrv2conj>:
  endbr64
  push   %r15
  mov    %edi,%esi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x448,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x438(%rsp)
  xor    %eax,%eax
  cmp    $0x8,%edi
  jle    L105
  mov    $0x1,%r9d
  lea    0x30(%rsp),%r14
  lea    0x34(%rsp),%r13
  nopl   0x0(%rax,%rax,1)
L54:
  lea    -0x1(%r9),%ecx
  sar    %esi
  mov    %r14,%rax
  movslq %r9d,%rdi
  lea    0x0(%r13,%rcx,4),%r8
  xor    %ecx,%ecx
  jmp    L90
  nopl   (%rax)
L131:
  mov    (%rax),%ecx
L90:
  add    %esi,%ecx
  mov    %ecx,(%rax,%rdi,4)
  add    $0x4,%rax
  cmp    %rax,%r8
  jne    L131
  mov    %r9d,%eax
  lea    (%r9,%r9,1),%ebp
  shl    $0x4,%eax
  cmp    %esi,%eax
  jge    L147
  mov    %ebp,%r9d
  jmp    L54
  nopl   0x0(%rax,%rax,1)
L147:
  shl    $0x2,%r9d
L84:
  cmp    %esi,%eax
  je     L57
  movsd  0x8(%rdx),%xmm1
  movq   D17(%rip),%xmm0
  lea    0x1(%r9),%eax
  cltq
  xorpd  %xmm0,%xmm1
  lea    (%rdx,%rax,8),%rax
  movsd  %xmm1,0x8(%rdx)
  movsd  (%rax),%xmm1
  xorpd  %xmm0,%xmm1
  movsd  %xmm1,(%rax)
  cmp    $0x1,%ebp
  je     L113
  lea    -0x1(%rbp),%eax
  xor    %r12d,%r12d
  lea    0x30(%rsp),%r14
  movslq %r9d,%r15
  add    %rax,%rax
  lea    0x34(%rsp),%r13
  mov    %rax,0x8(%rsp)
  nopl   0x0(%rax)
L59:
  movslq 0x4(%r14,%r12,2),%rax
  lea    0x2(%r12),%r11d
  mov    %r13,%r10
  lea    (%r15,%rax,1),%rsi
  mov    %rax,%rbx
  lea    (%rdx,%rax,8),%rcx
  add    %r12,%rax
  lea    (%rdx,%rax,8),%rbp
  lea    (%rdx,%rsi,8),%rsi
  xor    %eax,%eax
  jmp    L53
  nop
L35:
  mov    (%r10),%eax
  add    $0x10,%rcx
  add    $0x4,%r10
L53:
  add    %r11d,%eax
  movsd  0x8(%rcx),%xmm1
  movsd  (%rcx),%xmm3
  add    $0x10,%rsi
  movslq %eax,%rdi
  add    %r9d,%eax
  shl    $0x3,%rdi
  cltq
  xorpd  %xmm0,%xmm1
  lea    (%rdx,%rdi,1),%r8
  lea    0x8(%rdx,%rdi,1),%rdi
  shl    $0x3,%rax
  movsd  (%rdi),%xmm2
  movsd  (%r8),%xmm4
  xorpd  %xmm0,%xmm2
  movsd  %xmm4,(%rcx)
  movsd  %xmm2,0x8(%rcx)
  movsd  %xmm3,(%r8)
  movsd  %xmm1,(%rdi)
  lea    (%rdx,%rax,1),%rdi
  lea    0x8(%rdx,%rax,1),%rax
  movsd  -0x8(%rsi),%xmm1
  movsd  (%rax),%xmm2
  movsd  (%rdi),%xmm4
  movsd  -0x10(%rsi),%xmm3
  xorpd  %xmm0,%xmm1
  xorpd  %xmm0,%xmm2
  movsd  %xmm4,-0x10(%rsi)
  movsd  %xmm2,-0x8(%rsi)
  movsd  %xmm3,(%rdi)
  movsd  %xmm1,(%rax)
  cmp    %rcx,%rbp
  jne    L35
  add    %r11d,%ebx
  add    $0x2,%r12
  movslq %ebx,%rax
  add    %r9d,%ebx
  lea    0x8(%rdx,%rax,8),%rax
  movslq %ebx,%rbx
  movsd  (%rax),%xmm1
  xorpd  %xmm0,%xmm1
  movsd  %xmm1,(%rax)
  lea    0x8(%rdx,%rbx,8),%rax
  movsd  (%rax),%xmm1
  xorpd  %xmm0,%xmm1
  movsd  %xmm1,(%rax)
  cmp    %r12,0x8(%rsp)
  jne    L59
L113:
  mov    0x438(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L106
  add    $0x448,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L57:
  movslq %r9d,%rax
  lea    0x30(%rsp),%r12
  mov    %ebp,0x8(%rsp)
  xor    %ebx,%ebx
  lea    (%rax,%rax,1),%rsi
  mov    %r12,0x10(%rsp)
  movq   D17(%rip),%xmm0
  lea    0x0(,%rbp,4),%r11d
  mov    %rsi,0x20(%rsp)
  add    %rax,%rsi
  xor    %r13d,%r13d
  mov    %rax,0x18(%rsp)
  mov    %rsi,0x28(%rsp)
  nopw   0x0(%rax,%rax,1)
L110:
  lea    0x0(%r13,%r13,1),%ebp
  add    $0x1,%r13d
  lea    0x0(%rbp,%rbx,1),%ecx
  movslq %ecx,%rax
  add    %r9d,%ecx
  lea    0x8(%rdx,%rax,8),%rax
  movsd  (%rax),%xmm1
  xorpd  %xmm0,%xmm1
  movsd  %xmm1,(%rax)
  lea    (%rcx,%r9,1),%eax
  movslq %ecx,%rcx
  shl    $0x3,%rcx
  lea    (%rdx,%rcx,1),%r8
  lea    0x8(%rdx,%rcx,1),%rdi
  movslq %eax,%rcx
  add    %r9d,%eax
  shl    $0x3,%rcx
  movsd  (%rdi),%xmm1
  movsd  (%r8),%xmm3
  cltq
  lea    (%rdx,%rcx,1),%rsi
  lea    0x8(%rdx,%rcx,1),%rcx
  movsd  (%rcx),%xmm2
  movsd  (%rsi),%xmm4
  xorpd  %xmm0,%xmm1
  lea    0x8(%rdx,%rax,8),%rax
  xorpd  %xmm0,%xmm2
  movsd  %xmm4,(%r8)
  movsd  %xmm2,(%rdi)
  movsd  %xmm3,(%rsi)
  movsd  %xmm1,(%rcx)
  movsd  (%rax),%xmm1
  xorpd  %xmm0,%xmm1
  movsd  %xmm1,(%rax)
  cmp    0x8(%rsp),%r13d
  je     L113
  movslq 0x4(%r12),%rax
  mov    0x18(%rsp),%rsi
  add    $0x2,%ebp
  mov    0x10(%rsp),%r10
  lea    (%rsi,%rax,1),%rcx
  mov    0x20(%rsp),%rsi
  mov    %rax,%rbx
  lea    (%rdx,%rax,8),%r8
  lea    (%rdx,%rcx,8),%rdi
  lea    (%rsi,%rax,1),%rcx
  add    0x28(%rsp),%rax
  lea    (%rdx,%rcx,8),%rsi
  lea    (%rdx,%rax,8),%rcx
  xor    %eax,%eax
  jmp    L6
  xchg   %ax,%ax
L116:
  mov    0x4(%r10),%eax
  add    $0x4,%r10
L6:
  add    %ebp,%eax
  movsd  0x8(%r8),%xmm1
  add    $0x10,%rdi
  add    $0x10,%r8
  movslq %eax,%r14
  add    %r11d,%eax
  add    $0x10,%rsi
  add    $0x10,%rcx
  shl    $0x3,%r14
  movsd  -0x10(%r8),%xmm3
  xorpd  %xmm0,%xmm1
  lea    (%rdx,%r14,1),%r15
  lea    0x8(%rdx,%r14,1),%r14
  movsd  (%r14),%xmm2
  movsd  (%r15),%xmm4
  xorpd  %xmm0,%xmm2
  movsd  %xmm4,-0x10(%r8)
  movsd  %xmm2,-0x8(%r8)
  movsd  %xmm3,(%r15)
  movsd  %xmm1,(%r14)
  movslq %eax,%r14
  movsd  -0x8(%rdi),%xmm1
  sub    %r9d,%eax
  shl    $0x3,%r14
  movsd  -0x10(%rdi),%xmm3
  lea    (%rdx,%r14,1),%r15
  lea    0x8(%rdx,%r14,1),%r14
  xorpd  %xmm0,%xmm1
  movsd  (%r14),%xmm2
  movsd  (%r15),%xmm4
  xorpd  %xmm0,%xmm2
  movsd  %xmm4,-0x10(%rdi)
  movsd  %xmm2,-0x8(%rdi)
  movsd  %xmm3,(%r15)
  movsd  %xmm1,(%r14)
  movslq %eax,%r14
  movsd  -0x8(%rsi),%xmm1
  add    %r11d,%eax
  shl    $0x3,%r14
  movsd  -0x10(%rsi),%xmm3
  cltq
  lea    (%rdx,%r14,1),%r15
  lea    0x8(%rdx,%r14,1),%r14
  xorpd  %xmm0,%xmm1
  shl    $0x3,%rax
  movsd  (%r14),%xmm2
  movsd  (%r15),%xmm4
  xorpd  %xmm0,%xmm2
  movsd  %xmm4,-0x10(%rsi)
  movsd  %xmm2,-0x8(%rsi)
  movsd  %xmm3,(%r15)
  movsd  %xmm1,(%r14)
  lea    (%rdx,%rax,1),%r14
  lea    0x8(%rdx,%rax,1),%rax
  movsd  -0x8(%rcx),%xmm1
  movsd  (%rax),%xmm2
  movsd  (%r14),%xmm4
  movsd  -0x10(%rcx),%xmm3
  xorpd  %xmm0,%xmm1
  xorpd  %xmm0,%xmm2
  movsd  %xmm4,-0x10(%rcx)
  movsd  %xmm2,-0x8(%rcx)
  movsd  %xmm3,(%r14)
  movsd  %xmm1,(%rax)
  cmp    %r10,%r12
  jne    L116
  add    $0x4,%r12
  jmp    L110
L105:
  mov    $0x2,%r9d
  mov    $0x1,%ebp
  mov    $0x8,%eax
  jmp    L84
L106:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D17
type_guessed: byte[8]

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

assistant: ```c
void bitrv2conj(int n, int *ip0, double *a) {
  int j, j1, k, k1, l, m, m2, ip[256];
  double xr, xi, yr, yi;
  (void)ip0;
  ip[0] = 0;
  l = n;
  m = 1;
  while ((m << 3) < l) {
    l >>= 1;
    for (j = 0; j < m; j++) {
      ip[m + j] = ip[j] + l;
    }
    m <<= 1;
  }
  m2 = 2 * m;
  if ((m << 3) == l) {
    for (k = 0; k < m; k++) {
      for (j = 0; j < k; j++) {
        j1 = 2 * j + ip[k];
        k1 = 2 * k + ip[j];
        xr = a[j1];
        xi = -a[j1 + 1];
        yr = a[k1];
        yi = -a[k1 + 1];
        a[j1] = yr;
        a[j1 + 1] = yi;
        a[k1] = xr;
        a[k1 + 1] = xi;
        j1 += m2;
        k1 += 2 * m2;
        xr = a[j1];
        xi = -a[j1 + 1];
        yr = a[k1];
        yi = -a[k1 + 1];
        a[j1] = yr;
        a[j1 + 1] = yi;
        a[k1] = xr;
        a[k1 + 1] = xi;
        j1 += m2;
        k1 -= m2;
        xr = a[j1];
        xi = -a[j1 + 1];
        yr = a[k1];
        yi = -a[k1 + 1];
        a[j1] = yr;
        a[j1 + 1] = yi;
        a[k1] = xr;
        a[k1 + 1] = xi;
        j1 += m2;
        k1 += 2 * m2;
        xr = a[j1];
        xi = -a[j1 + 1];
        yr = a[k1];
        yi = -a[k1 + 1];
        a[j1] = yr;
        a[j1 + 1] = yi;
        a[k1] = xr;
        a[k1 + 1] = xi;
      }
      k1 = 2 * k + ip[k];
      a[k1 + 1] = -a[k1 + 1];
      j1 = k1 + m2;
      k1 = j1 + m2;
      xr = a[j1];
      xi = -a[j1 + 1];
      yr = a[k1];
      yi = -a[k1 + 1];
      a[j1] = yr;
      a[j1 + 1] = yi;
      a[k1] = xr;
      a[k1 + 1] = xi;
      k1 += m2;
      a[k1 + 1] = -a[k1 + 1];
    }
  } else {
    a[1] = -a[1];
    a[m2 + 1] = -a[m2 + 1];
    for (k = 1; k < m; k++) {
      for (j = 0; j < k; j++) {
        j1 = 2 * j + ip[k];
        k1 = 2 * k + ip[j];
        xr = a[j1];
        xi = -a[j1 + 1];
        yr = a[k1];
        yi = -a[k1 + 1];
        a[j1] = yr;
        a[j1 + 1] = yi;
        a[k1] = xr;
        a[k1 + 1] = xi;
        j1 += m2;
        k1 += m2;
        xr = a[j1];
        xi = -a[j1 + 1];
        yr = a[k1];
        yi = -a[k1 + 1];
        a[j1] = yr;
        a[j1 + 1] = yi;
        a[k1] = xr;
        a[k1 + 1] = xi;
      }
      k1 = 2 * k + ip[k];
      a[k1 + 1] = -a[k1 + 1];
      a[k1 + m2 + 1] = -a[k1 + m2 + 1];
    }
  }
}
```