user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<bitfill_unaligned>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    0x50(%rsp),%eax
  test   %eax,%eax
  jne    L45
L43:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L45:
  mov    %rsi,%rbx
  mov    $0xffffffffffffffff,%rsi
  mov    %rdi,%r15
  mov    %edx,%r14d
  mov    %r9d,%r12d
  mov    %rcx,%rbp
  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     L58
  mov    %r9,%rax
  mov    (%rbx),%rsi
  mov    %rbp,%rdi
  and    %r15,%rax
  test   %r15,%r15
  cmovne %rax,%r9
  mov    %r9,%rdx
  call   <comp@plt>
  mov    %rax,(%rbx)
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L58:
  test   %r9,%r9
  jne    L75
L31:
  mov    0x50(%rsp),%eax
  xor    %edx,%edx
  divl   0x58(%rsp)
  mov    %eax,%edx
  cmp    $0x3,%eax
  jbe    L38
  lea    -0x4(%rax),%r9d
  shr    $0x2,%r9d
  add    $0x1,%r9d
  shl    $0x5,%r9
  add    %rbx,%r9
  nopl   0x0(%rax)
L98:
  mov    %rbp,%rdi
  mov    %r13d,%ecx
  mov    %rbp,%rdx
  add    $0x20,%rbx
  shl    %cl,%rdi
  mov    %r12d,%ecx
  movq   %rbp,%xmm0
  shr    %cl,%rdx
  mov    %r13d,%ecx
  or     %rdx,%rdi
  mov    %rdi,%rsi
  mov    %rdi,%rdx
  movq   %rdi,%xmm1
  shl    %cl,%rsi
  mov    %r12d,%ecx
  punpcklqdq %xmm1,%xmm0
  shr    %cl,%rdx
  mov    %r13d,%ecx
  movups %xmm0,-0x20(%rbx)
  or     %rdx,%rsi
  mov    %rsi,%rdx
  mov    %rsi,%r10
  movq   %rsi,%xmm0
  shl    %cl,%rdx
  mov    %r12d,%ecx
  shr    %cl,%r10
  mov    %r13d,%ecx
  or     %r10,%rdx
  mov    %rdx,%rbp
  movq   %rdx,%xmm2
  shl    %cl,%rbp
  mov    %r12d,%ecx
  punpcklqdq %xmm2,%xmm0
  shr    %cl,%rdx
  movups %xmm0,-0x10(%rbx)
  or     %rdx,%rbp
  cmp    %rbx,%r9
  jne    L98
  and    $0x3,%eax
  mov    %eax,%edx
L38:
  lea    -0x1(%rdx),%eax
  test   %edx,%edx
  je     L28
  mov    %rbp,%rsi
  mov    %r13d,%ecx
  mov    %rbp,(%rbx)
  shl    %cl,%rsi
  mov    %r12d,%ecx
  shr    %cl,%rbp
  or     %rsi,%rbp
  test   %eax,%eax
  je     L37
  mov    %rbp,%rax
  mov    %r13d,%ecx
  mov    %rbp,0x8(%rbx)
  shl    %cl,%rax
  mov    %r12d,%ecx
  shr    %cl,%rbp
  or     %rax,%rbp
  cmp    $0x2,%edx
  je     L37
  mov    %rbp,%rax
  mov    %r13d,%ecx
  mov    %rbp,0x10(%rbx)
  shl    %cl,%rax
  mov    %r12d,%ecx
  shr    %cl,%rbp
  or     %rax,%rbp
L37:
  lea    (%rbx,%rdx,8),%rbx
L28:
  test   %r15,%r15
  je     L43
  mov    (%rbx),%rsi
  mov    %r15,%rdx
  mov    %rbp,%rdi
  call   <comp@plt>
  mov    %rax,(%rbx)
  jmp    L43
  nop
L75:
  mov    (%rbx),%rsi
  mov    %rbp,%rdi
  mov    %r9,%rdx
  add    $0x8,%rbx
  call   <comp@plt>
  mov    %r13d,%ecx
  mov    %rax,-0x8(%rbx)
  mov    %rbp,%rax
  shl    %cl,%rax
  mov    %r12d,%ecx
  shr    %cl,%rbp
  or     %rax,%rbp
  mov    0x58(%rsp),%eax
  sub    %r14d,%eax
  sub    %eax,0x50(%rsp)
  jmp    L31
```

assistant: ```c
void bitfill_unaligned(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(pat, *dst, first);
  } else {
    if (first) {
      *dst = comp(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(pat, *dst, last);
  }
}
```