user: 请将以下的汇编代码转换成C语言代码：

```asm
<bitfill_unaligned_rev>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    0x50(%rsp),%eax
  test   %eax,%eax
  jne    L99
L105:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L99:
  mov    %rsi,%rbp
  mov    $0xffffffffffffffff,%rsi
  mov    %rdi,%r15
  mov    %edx,%r14d
  mov    %r9d,%r12d
  mov    %rcx,%rbx
  mov    %r8d,%r13d
  call   <FB_SHIFT_HIGH@plt>
  mov    0x50(%rsp),%ecx
  xor    %edx,%edx
  mov    %r15,%rdi
  mov    %rax,0x8(%rsp)
  mov    $0xffffffffffffffff,%rsi
  add    %r14d,%ecx
  mov    %ecx,%eax
  mov    %ecx,0x4(%rsp)
  divl   0x58(%rsp)
  call   <FB_SHIFT_HIGH@plt>
  mov    0x4(%rsp),%ecx
  cmp    0x58(%rsp),%ecx
  not    %rax
  mov    0x8(%rsp),%r9
  mov    %rax,%r15
  ja     L24
  mov    %r9,%rax
  mov    0x0(%rbp),%rsi
  and    %r15,%rax
  test   %r15,%r15
  cmovne %rax,%r9
  xor    %rsi,%rbx
  mov    %rbx,%rdi
  mov    %r9,%rdx
  call   <comp@plt>
  mov    %rax,0x0(%rbp)
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L24:
  test   %r9,%r9
  jne    L103
L85:
  mov    0x50(%rsp),%eax
  xor    %edx,%edx
  divl   0x58(%rsp)
  mov    %eax,%edx
  cmp    $0x3,%eax
  jbe    L43
  lea    -0x4(%rax),%r9d
  shr    $0x2,%r9d
  add    $0x1,%r9d
  shl    $0x5,%r9
  add    %rbp,%r9
  nopl   0x0(%rax)
L76:
  mov    %rbx,%rdi
  mov    %r13d,%ecx
  mov    %rbx,%rdx
  movdqu 0x0(%rbp),%xmm1
  shl    %cl,%rdi
  mov    %r12d,%ecx
  movq   %rbx,%xmm0
  add    $0x20,%rbp
  shr    %cl,%rdx
  mov    %r13d,%ecx
  movdqu -0x10(%rbp),%xmm4
  or     %rdx,%rdi
  mov    %rdi,%rsi
  mov    %rdi,%rdx
  movq   %rdi,%xmm2
  shl    %cl,%rsi
  mov    %r12d,%ecx
  punpcklqdq %xmm2,%xmm0
  shr    %cl,%rdx
  mov    %r13d,%ecx
  pxor   %xmm0,%xmm1
  or     %rdx,%rsi
  movups %xmm1,-0x20(%rbp)
  mov    %rsi,%rdx
  mov    %rsi,%r10
  movq   %rsi,%xmm0
  shl    %cl,%rdx
  mov    %r12d,%ecx
  shr    %cl,%r10
  mov    %r13d,%ecx
  or     %r10,%rdx
  movq   %rdx,%xmm3
  mov    %rdx,%rbx
  shl    %cl,%rbx
  punpcklqdq %xmm3,%xmm0
  mov    %r12d,%ecx
  pxor   %xmm4,%xmm0
  shr    %cl,%rdx
  movups %xmm0,-0x10(%rbp)
  or     %rdx,%rbx
  cmp    %rbp,%r9
  jne    L76
  and    $0x3,%eax
  mov    %eax,%edx
L43:
  test   %edx,%edx
  je     L55
  mov    %rbx,%rsi
  mov    %r13d,%ecx
  mov    0x0(%rbp),%rax
  shl    %cl,%rsi
  mov    %r12d,%ecx
  xor    %rbx,%rax
  shr    %cl,%rbx
  or     %rsi,%rbx
  cmp    $0x1,%edx
  je     L60
  mov    %rbx,%rsi
  mov    %r13d,%ecx
  xor    %rbx,%rax
  shl    %cl,%rsi
  mov    %r12d,%ecx
  shr    %cl,%rbx
  or     %rsi,%rbx
  cmp    $0x2,%edx
  je     L60
  mov    %rbx,%rdx
  mov    %r13d,%ecx
  xor    %rbx,%rax
  shl    %cl,%rdx
  mov    %r12d,%ecx
  shr    %cl,%rbx
  or     %rdx,%rbx
L60:
  mov    %rax,0x0(%rbp)
L55:
  test   %r15,%r15
  je     L105
  mov    0x0(%rbp),%rsi
  mov    %r15,%rdx
  xor    %rsi,%rbx
  mov    %rbx,%rdi
  call   <comp@plt>
  mov    %rax,0x0(%rbp)
  jmp    L105
  nopw   0x0(%rax,%rax,1)
L103:
  mov    0x0(%rbp),%rsi
  mov    %r9,%rdx
  add    $0x8,%rbp
  mov    %rsi,%rdi
  xor    %rbx,%rdi
  call   <comp@plt>
  mov    %r13d,%ecx
  mov    %rax,-0x8(%rbp)
  mov    %rbx,%rax
  shl    %cl,%rax
  mov    %r12d,%ecx
  shr    %cl,%rbx
  or     %rax,%rbx
  mov    0x58(%rsp),%eax
  sub    %r14d,%eax
  sub    %eax,0x50(%rsp)
  jmp    L85
```

assistant: ```c
void bitfill_unaligned_rev(struct fb_info *p, unsigned long *dst, int dst_idx, unsigned long pat, int left, int right, unsigned n, int bits) {
  unsigned long first, last;
  if (!n)
    return;
  first = FB_SHIFT_HIGH(p, ~0UL, dst_idx);
  last = ~(FB_SHIFT_HIGH(p, ~0UL, (dst_idx + n) % bits));
  if (dst_idx + n <= bits) {
    if (last)
      first &= last;
    *dst = comp(*dst ^ pat, *dst, first);
  } else {
    if (first != 0UL) {
      *dst = comp(*dst ^ pat, *dst, first);
      dst++;
      pat = pat << left | pat >> right;
      n -= bits - dst_idx;
    }
    n /= bits;
    while (n >= 4) {
      *dst++ ^= pat;
      pat = pat << left | pat >> right;
      *dst++ ^= pat;
      pat = pat << left | pat >> right;
      *dst++ ^= pat;
      pat = pat << left | pat >> right;
      *dst++ ^= pat;
      pat = pat << left | pat >> right;
      n -= 4;
    }
    while (n--) {
      *dst ^= pat;
      pat = pat << left | pat >> right;
    }
    if (last)
      *dst = comp(*dst ^ pat, *dst, last);
  }
}
```