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

```asm
<bitrv1>:
  endbr64
  mov    %edi,%eax
  push   %r15
  mov    %rsi,%r8
  sar    $0x2,%eax
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  cmp    $0x1,%eax
  jle    L11
  mov    $0x1,%r9d
  nopl   (%rax)
L149:
  sar    %eax
  add    %r9d,%r9d
  cmp    %r9d,%eax
  jg     L149
  je     L191
  sar    %edi
  mov    $0x1,%r11d
  lea    0x8(%r8),%rbx
  movslq %r9d,%r10
  mov    %edi,%esi
  nopl   0x0(%rax)
L91:
  lea    (%r11,%rsi,1),%eax
  cmp    %eax,%esi
  jge    L95
  movslq %esi,%rdx
  lea    -0x1(%r11),%eax
  add    %rdx,%rax
  lea    (%r8,%rdx,8),%rcx
  mov    %r11d,%edx
  lea    (%rbx,%rax,8),%rbp
  nopl   (%rax)
L207:
  movslq %edx,%rax
  movsd  (%rcx),%xmm0
  lea    (%r8,%rax,8),%rax
  movsd  (%rax),%xmm1
  movsd  %xmm1,(%rcx)
  movsd  %xmm0,(%rax)
  lea    (%r9,%rdx,1),%eax
  movsd  (%rcx,%r10,8),%xmm0
  xor    %edi,%edx
  cltq
  lea    (%r8,%rax,8),%rax
  movsd  (%rax),%xmm1
  movsd  %xmm1,(%rcx,%r10,8)
  movsd  %xmm0,(%rax)
  cmp    %edi,%edx
  jge    L208
  mov    %edi,%eax
  nopl   (%rax)
L203:
  sar    %eax
  xor    %eax,%edx
  cmp    %eax,%edx
  jl     L203
L208:
  add    $0x8,%rcx
  cmp    %rcx,%rbp
  jne    L207
L95:
  add    $0x1,%r11d
  cmp    %r9d,%r11d
  je     L59
  xor    %edi,%esi
  cmp    %edi,%esi
  jge    L91
  mov    %edi,%eax
  nopw   0x0(%rax,%rax,1)
L187:
  sar    %eax
  xor    %eax,%esi
  cmp    %eax,%esi
  jl     L187
  jmp    L91
L11:
  je     L135
L59:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L191:
  lea    (%r9,%r9,1),%ebp
L152:
  lea    0x8(%r8),%rax
  movslq %r9d,%r11
  mov    %edi,%esi
  xor    %ecx,%ecx
  mov    %rax,-0x8(%rsp)
  mov    %r11,%r12
  lea    (%r11,%r11,2),%rbx
  sar    %esi
  shl    $0x4,%r12
  shl    $0x3,%rbx
  xor    %edi,%edi
  xor    %r13d,%r13d
L179:
  add    %r9d,%r13d
  xor    %esi,%edi
  movslq %r13d,%rax
  add    %r9d,%r13d
  lea    (%r8,%rax,8),%rdx
  movslq %r13d,%rax
  lea    (%r8,%rax,8),%rax
  movsd  (%rdx),%xmm0
  movsd  (%rax),%xmm1
  movsd  %xmm1,(%rdx)
  movsd  %xmm0,(%rax)
  cmp    %esi,%edi
  jge    L133
  mov    %esi,%eax
  nopl   0x0(%rax)
L118:
  sar    %eax
  xor    %eax,%edi
  cmp    %eax,%edi
  jl     L118
L133:
  lea    0x1(%rcx),%r15d
  cmp    %r15d,%r9d
  je     L59
  lea    (%r15,%rdi,1),%r13d
  cmp    %edi,%r13d
  jle    L6
  movslq %edi,%r10
  mov    %ecx,%eax
  mov    -0x8(%rsp),%rcx
  add    %r10,%rax
  lea    (%r8,%r10,8),%rdx
  lea    (%rcx,%rax,8),%r14
  mov    %r15d,%eax
  cs nopw 0x0(%rax,%rax,1)
L78:
  movslq %eax,%rcx
  movsd  (%rdx),%xmm0
  lea    (%r8,%rcx,8),%rcx
  movsd  (%rcx),%xmm1
  movsd  %xmm1,(%rdx)
  movsd  %xmm0,(%rcx)
  lea    (%rax,%rbp,1),%ecx
  movsd  (%rdx,%r11,8),%xmm0
  xor    %esi,%eax
  movslq %ecx,%r10
  sub    %r9d,%ecx
  lea    (%r8,%r10,8),%r10
  movsd  (%r10),%xmm1
  movsd  %xmm1,(%rdx,%r11,8)
  movsd  %xmm0,(%r10)
  movslq %ecx,%r10
  add    %ebp,%ecx
  movsd  (%rdx,%r12,1),%xmm0
  lea    (%r8,%r10,8),%r10
  movslq %ecx,%rcx
  movsd  (%r10),%xmm1
  lea    (%r8,%rcx,8),%rcx
  movsd  %xmm1,(%rdx,%r12,1)
  movsd  %xmm0,(%r10)
  movsd  (%rdx,%rbx,1),%xmm0
  movsd  (%rcx),%xmm1
  movsd  %xmm1,(%rdx,%rbx,1)
  movsd  %xmm0,(%rcx)
  cmp    %eax,%esi
  jle    L38
  mov    %esi,%ecx
  nopw   0x0(%rax,%rax,1)
L146:
  sar    %ecx
  xor    %ecx,%eax
  cmp    %ecx,%eax
  jl     L146
L38:
  add    $0x8,%rdx
  cmp    %rdx,%r14
  jne    L78
L6:
  mov    %r15d,%ecx
  jmp    L179
L135:
  mov    $0x1,%r9d
  mov    $0x2,%ebp
  jmp    L152
```

assistant: ```c
void bitrv1(int n, double *a) {
  int j0, k0, j1, k1, l, m, i, j, k;
  double x;
  l = n >> 2;
  m = 1;
  while (m < l) {
    l >>= 1;
    m <<= 1;
  }
  if (m == l) {
    j0 = 0;
    for (k0 = 0; k0 < m; k0++) {
      k = k0;
      for (j = j0; j < j0 + k0; j++) {
        x = a[j];
        a[j] = a[k];
        a[k] = x;
        j1 = j + m;
        k1 = k + 2 * m;
        x = a[j1];
        a[j1] = a[k1];
        a[k1] = x;
        j1 += m;
        k1 -= m;
        x = a[j1];
        a[j1] = a[k1];
        a[k1] = x;
        j1 += m;
        k1 += 2 * m;
        x = a[j1];
        a[j1] = a[k1];
        a[k1] = x;
        for (i = n >> 1; i > (k ^= i); i >>= 1)
          ;
      }
      j1 = j0 + k0 + m;
      k1 = j1 + m;
      x = a[j1];
      a[j1] = a[k1];
      a[k1] = x;
      for (i = n >> 1; i > (j0 ^= i); i >>= 1)
        ;
    }
  } else {
    j0 = 0;
    for (k0 = 1; k0 < m; k0++) {
      for (i = n >> 1; i > (j0 ^= i); i >>= 1)
        ;
      k = k0;
      for (j = j0; j < j0 + k0; j++) {
        x = a[j];
        a[j] = a[k];
        a[k] = x;
        j1 = j + m;
        k1 = k + m;
        x = a[j1];
        a[j1] = a[k1];
        a[k1] = x;
        for (i = n >> 1; i > (k ^= i); i >>= 1)
          ;
      }
    }
  }
}
```