user: Translate the below assembly code into C programming language:

```asm
<bitfill_unaligned>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %edx,0x8(%rsp)
  cmpl   $0x0,0x50(%rsp)
  jne    L31
L15:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L31:
  mov    %rsi,%rbp
  mov    %edx,%r15d
  mov    %rcx,%rbx
  mov    %r8d,%r12d
  mov    %r9d,%r13d
  mov    $0xffffffffffffffff,%rsi
  mov    %rdi,(%rsp)
  call   <FB_SHIFT_HIGH@plt>
  mov    %rax,%r14
  add    0x50(%rsp),%r15d
  mov    0x58(%rsp),%eax
  mov    %eax,0xc(%rsp)
  mov    %r15d,%eax
  mov    $0x0,%edx
  divl   0x58(%rsp)
  mov    $0xffffffffffffffff,%rsi
  mov    (%rsp),%rdi
  call   <FB_SHIFT_HIGH@plt>
  mov    %rax,%rdi
  not    %rdi
  mov    %rdi,(%rsp)
  cmp    0x58(%rsp),%r15d
  ja     L93
  mov    %rdi,%rax
  and    %r14,%rax
  test   %rdi,%rdi
  cmovne %rax,%r14
  mov    %r14,%rdx
  mov    0x0(%rbp),%rsi
  mov    %rbx,%rdi
  call   <comp@plt>
  mov    %rax,0x0(%rbp)
  jmp    L15
L93:
  test   %r14,%r14
  jne    L52
L44:
  mov    0x50(%rsp),%eax
  mov    $0x0,%edx
  divl   0xc(%rsp)
  mov    %eax,%edx
  cmp    $0x3,%eax
  jbe    L77
  lea    -0x4(%rax),%esi
  shr    $0x2,%esi
  add    $0x1,%esi
  mov    %esi,%esi
  shl    $0x5,%rsi
  add    %rbp,%rsi
L26:
  mov    %rbx,0x0(%rbp)
  mov    %rbx,%rdx
  mov    %r12d,%ecx
  shl    %cl,%rdx
  mov    %r13d,%ecx
  shr    %cl,%rbx
  or     %rbx,%rdx
  mov    %rdx,0x8(%rbp)
  mov    %rdx,%rbx
  mov    %r12d,%ecx
  shl    %cl,%rbx
  mov    %r13d,%ecx
  shr    %cl,%rdx
  or     %rdx,%rbx
  mov    %rbx,0x10(%rbp)
  mov    %rbx,%rdx
  mov    %r12d,%ecx
  shl    %cl,%rdx
  mov    %r13d,%ecx
  shr    %cl,%rbx
  or     %rbx,%rdx
  add    $0x20,%rbp
  mov    %rdx,-0x8(%rbp)
  mov    %rdx,%rbx
  mov    %r12d,%ecx
  shl    %cl,%rbx
  mov    %r13d,%ecx
  shr    %cl,%rdx
  or     %rdx,%rbx
  cmp    %rbp,%rsi
  jne    L26
  and    $0x3,%eax
  mov    %eax,%edx
L77:
  lea    -0x1(%rdx),%eax
  mov    %rbp,%r14
  test   %edx,%edx
  je     L60
  mov    %eax,%eax
  lea    0x8(%rbp,%rax,8),%r14
L76:
  add    $0x8,%rbp
  mov    %rbx,-0x8(%rbp)
  mov    %rbx,%rax
  mov    %r12d,%ecx
  shl    %cl,%rax
  mov    %r13d,%ecx
  shr    %cl,%rbx
  or     %rax,%rbx
  cmp    %r14,%rbp
  jne    L76
L60:
  cmpq   $0x0,(%rsp)
  je     L15
  mov    (%rsp),%rdx
  mov    (%r14),%rsi
  mov    %rbx,%rdi
  call   <comp@plt>
  mov    %rax,(%r14)
  jmp    L15
L52:
  mov    %r14,%rdx
  mov    0x0(%rbp),%rsi
  mov    %rbx,%rdi
  call   <comp@plt>
  mov    %rax,0x0(%rbp)
  add    $0x8,%rbp
  mov    %rbx,%rax
  mov    %r12d,%ecx
  shl    %cl,%rax
  mov    %r13d,%ecx
  shr    %cl,%rbx
  or     %rax,%rbx
  mov    0x58(%rsp),%eax
  sub    0x8(%rsp),%eax
  sub    %eax,0x50(%rsp)
  jmp    L44
```

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);
  }
}
```