user: 请从给定的汇编指令推导出C源代码：

```asm
<IntegerUnpacker_8>:
  endbr64
  cmp    $0x8,%edx
  jg     L330
  cmp    %ecx,%edx
  jl     L330
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    0x1f(%r9),%eax
  test   %r9d,%r9d
  cmovns %r9d,%eax
  sar    $0x5,%eax
  cltq
  lea    (%rdi,%rax,4),%r11
  mov    %r9d,%ecx
  sar    $0x1f,%ecx
  shr    $0x1b,%ecx
  lea    (%r9,%rcx,1),%eax
  and    $0x1f,%eax
  sub    %eax,%ecx
  lea    0x20(%rcx),%ebp
  mov    (%r11),%eax
  je     L63
  shl    $0x20,%rax
  lea    0x8(%r11),%r10
  mov    0x4(%r11),%ecx
  or     %rcx,%rax
  mov    %r9d,%ecx
  and    $0x1f,%ecx
  mov    %rax,%rbx
  shl    %cl,%rbx
  cmp    $0x20,%ebp
  cmovl  %rbx,%rax
L134:
  cmp    $0x3,%r8d
  jle    L347
  lea    -0x4(%r8),%ebx
  shr    $0x2,%ebx
  lea    0x1(%rbx),%ecx
  mov    %ecx,%ecx
  lea    (%rsi,%rcx,4),%r11
  mov    $0x40,%r9d
  sub    %edx,%r9d
  jmp    L230
L63:
  lea    0x4(%r11),%rdi
  cmp    $0x8,%edx
  je     L33
  cmp    $0x6,%edx
  jne    L29
  cmp    $0xf,%r8d
  jle    L86
  lea    -0x10(%r8),%r13d
  shr    $0x4,%r13d
  mov    %r13d,%r12d
  lea    (%r12,%r12,2),%rcx
  lea    0x10(%r11,%rcx,4),%rbx
  mov    %rsi,%rcx
  mov    %rdi,%r11
L150:
  mov    (%r11),%r9d
  mov    0x4(%r11),%r10d
  add    $0xc,%r11
  mov    %eax,%r14d
  mov    -0x4(%r11),%eax
  mov    %r14d,%r15d
  shr    $0x1a,%r15d
  mov    %r15b,(%rcx)
  mov    %r14d,%r15d
  shr    $0x14,%r15d
  and    $0x3f,%r15d
  mov    %r15b,0x1(%rcx)
  mov    %r14d,%r15d
  shr    $0xe,%r15d
  and    $0x3f,%r15d
  mov    %r15b,0x2(%rcx)
  mov    %r14d,%r15d
  shr    $0x8,%r15d
  and    $0x3f,%r15d
  mov    %r15b,0x3(%rcx)
  mov    %r14d,%r15d
  shr    $0x2,%r15b
  mov    %r15b,0x4(%rcx)
  shl    $0x4,%r14d
  and    $0x30,%r14d
  mov    %r9d,%r15d
  shr    $0x1c,%r15d
  or     %r15d,%r14d
  mov    %r14b,0x5(%rcx)
  mov    %r9d,%r14d
  shr    $0x16,%r14d
  and    $0x3f,%r14d
  mov    %r14b,0x6(%rcx)
  mov    %r9d,%r14d
  shr    $0x10,%r14d
  and    $0x3f,%r14d
  mov    %r14b,0x7(%rcx)
  mov    %r9d,%r14d
  shr    $0xa,%r14d
  and    $0x3f,%r14d
  mov    %r14b,0x8(%rcx)
  mov    %r9d,%r14d
  shr    $0x4,%r14d
  and    $0x3f,%r14d
  mov    %r14b,0x9(%rcx)
  shl    $0x2,%r9d
  and    $0x3c,%r9d
  mov    %r10d,%r14d
  shr    $0x1e,%r14d
  or     %r14d,%r9d
  mov    %r9b,0xa(%rcx)
  mov    %r10d,%r9d
  shr    $0x18,%r9d
  and    $0x3f,%r9d
  mov    %r9b,0xb(%rcx)
  mov    %r10d,%r9d
  shr    $0x12,%r9d
  and    $0x3f,%r9d
  mov    %r9b,0xc(%rcx)
  mov    %r10d,%r9d
  shr    $0xc,%r9d
  and    $0x3f,%r9d
  mov    %r9b,0xd(%rcx)
  mov    %r10d,%r9d
  shr    $0x6,%r9d
  and    $0x3f,%r9d
  mov    %r9b,0xe(%rcx)
  add    $0x10,%rcx
  and    $0x3f,%r10d
  mov    %r10b,-0x1(%rcx)
  cmp    %r11,%rbx
  jne    L150
  add    $0x1,%r12
  lea    (%r12,%r12,2),%rcx
  lea    (%rdi,%rcx,4),%rdi
  shl    $0x4,%r12
  add    %r12,%rsi
  neg    %r13d
  shl    $0x4,%r13d
  lea    -0x10(%r8,%r13,1),%r8d
L86:
  cmp    $0x1,%edx
  jne    L98
  cmp    $0x1f,%r8d
  jle    L293
  lea    -0x20(%r8),%r11d
  shr    $0x5,%r11d
  lea    0x1(%r11),%ebx
  mov    %ebx,%ebx
  lea    (%rdi,%rbx,4),%r9
  mov    %rsi,%rcx
L166:
  mov    %eax,%r10d
  shr    $0x1f,%r10d
  mov    %r10b,(%rcx)
  mov    %eax,%r10d
  shr    $0x1e,%r10d
  and    $0x1,%r10d
  mov    %r10b,0x1(%rcx)
  mov    %eax,%r10d
  shr    $0x1d,%r10d
  and    $0x1,%r10d
  mov    %r10b,0x2(%rcx)
  mov    %eax,%r10d
  shr    $0x1c,%r10d
  and    $0x1,%r10d
  mov    %r10b,0x3(%rcx)
  mov    %eax,%r10d
  shr    $0x1b,%r10d
  and    $0x1,%r10d
  mov    %r10b,0x4(%rcx)
  mov    %eax,%r10d
  shr    $0x1a,%r10d
  and    $0x1,%r10d
  mov    %r10b,0x5(%rcx)
  mov    %eax,%r10d
  shr    $0x19,%r10d
  and    $0x1,%r10d
  mov    %r10b,0x6(%rcx)
  mov    %eax,%r10d
  shr    $0x18,%r10d
  and    $0x1,%r10d
  mov    %r10b,0x7(%rcx)
  mov    %eax,%r10d
  shr    $0x17,%r10d
  and    $0x1,%r10d
  mov    %r10b,0x8(%rcx)
  mov    %eax,%r10d
  shr    $0x16,%r10d
  and    $0x1,%r10d
  mov    %r10b,0x9(%rcx)
  mov    %eax,%r10d
  shr    $0x15,%r10d
  and    $0x1,%r10d
  mov    %r10b,0xa(%rcx)
  mov    %eax,%r10d
  shr    $0x14,%r10d
  and    $0x1,%r10d
  mov    %r10b,0xb(%rcx)
  mov    %eax,%r10d
  shr    $0x13,%r10d
  and    $0x1,%r10d
  mov    %r10b,0xc(%rcx)
  mov    %eax,%r10d
  shr    $0x12,%r10d
  and    $0x1,%r10d
  mov    %r10b,0xd(%rcx)
  mov    %eax,%r10d
  shr    $0x11,%r10d
  and    $0x1,%r10d
  mov    %r10b,0xe(%rcx)
  mov    %eax,%r10d
  shr    $0x10,%r10d
  and    $0x1,%r10d
  mov    %r10b,0xf(%rcx)
  mov    %eax,%r10d
  shr    $0xf,%r10d
  and    $0x1,%r10d
  mov    %r10b,0x10(%rcx)
  mov    %eax,%r10d
  shr    $0xe,%r10d
  and    $0x1,%r10d
  mov    %r10b,0x11(%rcx)
  mov    %eax,%r10d
  shr    $0xd,%r10d
  and    $0x1,%r10d
  mov    %r10b,0x12(%rcx)
  mov    %eax,%r10d
  shr    $0xc,%r10d
  and    $0x1,%r10d
  mov    %r10b,0x13(%rcx)
  mov    %eax,%r10d
  shr    $0xb,%r10d
  and    $0x1,%r10d
  mov    %r10b,0x14(%rcx)
  mov    %eax,%r10d
  shr    $0xa,%r10d
  and    $0x1,%r10d
  mov    %r10b,0x15(%rcx)
  mov    %eax,%r10d
  shr    $0x9,%r10d
  and    $0x1,%r10d
  mov    %r10b,0x16(%rcx)
  mov    %eax,%r10d
  shr    $0x8,%r10d
  and    $0x1,%r10d
  mov    %r10b,0x17(%rcx)
  mov    %eax,%r10d
  shr    $0x7,%r10b
  mov    %r10b,0x18(%rcx)
  mov    %eax,%r10d
  shr    $0x6,%r10d
  and    $0x1,%r10d
  mov    %r10b,0x19(%rcx)
  mov    %eax,%r10d
  shr    $0x5,%r10d
  and    $0x1,%r10d
  mov    %r10b,0x1a(%rcx)
  mov    %eax,%r10d
  shr    $0x4,%r10d
  and    $0x1,%r10d
  mov    %r10b,0x1b(%rcx)
  mov    %eax,%r10d
  shr    $0x3,%r10d
  and    $0x1,%r10d
  mov    %r10b,0x1c(%rcx)
  mov    %eax,%r10d
  shr    $0x2,%r10d
  and    $0x1,%r10d
  mov    %r10b,0x1d(%rcx)
  mov    %eax,%r10d
  shr    %r10d
  and    $0x1,%r10d
  mov    %r10b,0x1e(%rcx)
  add    $0x20,%rcx
  and    $0x1,%eax
  mov    %al,-0x1(%rcx)
  add    $0x4,%rdi
  mov    -0x4(%rdi),%eax
  cmp    %r9,%rdi
  jne    L166
  shl    $0x5,%rbx
  add    %rbx,%rsi
  neg    %r11d
  shl    $0x5,%r11d
  lea    -0x20(%r8,%r11,1),%r8d
  jmp    L1
L33:
  cmp    $0x7,%r8d
  jle    L172
  lea    -0x8(%r8),%ebx
  shr    $0x3,%ebx
  mov    %ebx,%r14d
  mov    %ebx,%r12d
  lea    0xc(%r11,%r12,8),%r11
  mov    %rsi,%rcx
  mov    %rdi,%r9
L20:
  mov    %eax,%r10d
  shr    $0x18,%r10d
  mov    %r10b,(%rcx)
  mov    %eax,%r10d
  shr    $0x10,%r10d
  mov    %r10b,0x1(%rcx)
  movzbl %ah,%ebx
  mov    %bl,0x2(%rcx)
  mov    %al,0x3(%rcx)
  mov    (%r9),%eax
  mov    %eax,%r10d
  shr    $0x18,%r10d
  mov    %r10b,0x4(%rcx)
  mov    %eax,%r10d
  shr    $0x10,%r10d
  mov    %r10b,0x5(%rcx)
  movzbl %ah,%ebx
  mov    %bl,0x6(%rcx)
  add    $0x8,%rcx
  mov    %al,-0x1(%rcx)
  add    $0x8,%r9
  mov    -0x4(%r9),%eax
  cmp    %r9,%r11
  jne    L20
  lea    0x8(,%r12,8),%rcx
  add    %rcx,%rsi
  add    %rcx,%rdi
  mov    %r14d,%ebx
  neg    %ebx
  lea    -0x8(%r8,%rbx,8),%r8d
L172:
  cmp    $0x2,%edx
  jne    L86
  cmp    $0xf,%r8d
  jle    L278
  lea    -0x10(%r8),%r11d
  shr    $0x4,%r11d
  lea    0x1(%r11),%ebx
  mov    %ebx,%ebx
  lea    (%rdi,%rbx,4),%r9
  mov    %rsi,%rcx
L292:
  mov    %eax,%r10d
  shr    $0x1e,%r10d
  mov    %r10b,(%rcx)
  mov    %eax,%r10d
  shr    $0x1c,%r10d
  and    $0x3,%r10d
  mov    %r10b,0x1(%rcx)
  mov    %eax,%r10d
  shr    $0x1a,%r10d
  and    $0x3,%r10d
  mov    %r10b,0x2(%rcx)
  mov    %eax,%r10d
  shr    $0x18,%r10d
  and    $0x3,%r10d
  mov    %r10b,0x3(%rcx)
  mov    %eax,%r10d
  shr    $0x16,%r10d
  and    $0x3,%r10d
  mov    %r10b,0x4(%rcx)
  mov    %eax,%r10d
  shr    $0x14,%r10d
  and    $0x3,%r10d
  mov    %r10b,0x5(%rcx)
  mov    %eax,%r10d
  shr    $0x12,%r10d
  and    $0x3,%r10d
  mov    %r10b,0x6(%rcx)
  mov    %eax,%r10d
  shr    $0x10,%r10d
  and    $0x3,%r10d
  mov    %r10b,0x7(%rcx)
  mov    %eax,%r10d
  shr    $0xe,%r10d
  and    $0x3,%r10d
  mov    %r10b,0x8(%rcx)
  mov    %eax,%r10d
  shr    $0xc,%r10d
  and    $0x3,%r10d
  mov    %r10b,0x9(%rcx)
  mov    %eax,%r10d
  shr    $0xa,%r10d
  and    $0x3,%r10d
  mov    %r10b,0xa(%rcx)
  mov    %eax,%r10d
  shr    $0x8,%r10d
  and    $0x3,%r10d
  mov    %r10b,0xb(%rcx)
  mov    %eax,%r10d
  shr    $0x6,%r10b
  mov    %r10b,0xc(%rcx)
  mov    %eax,%r10d
  shr    $0x4,%r10d
  and    $0x3,%r10d
  mov    %r10b,0xd(%rcx)
  mov    %eax,%r10d
  shr    $0x2,%r10d
  and    $0x3,%r10d
  mov    %r10b,0xe(%rcx)
  add    $0x10,%rcx
  and    $0x3,%eax
  mov    %al,-0x1(%rcx)
  add    $0x4,%rdi
  mov    -0x4(%rdi),%eax
  cmp    %r9,%rdi
  jne    L292
  shl    $0x4,%rbx
  add    %rbx,%rsi
  neg    %r11d
  shl    $0x4,%r11d
  lea    -0x10(%r8,%r11,1),%r8d
  jmp    L1
L29:
  cmp    $0x4,%edx
  jne    L172
  cmp    $0x7,%r8d
  jle    L13
  lea    -0x8(%r8),%r11d
  shr    $0x3,%r11d
  lea    0x1(%r11),%ebx
  mov    %ebx,%ebx
  lea    (%rdi,%rbx,4),%r9
  mov    %rsi,%rcx
L30:
  mov    %eax,%r10d
  shr    $0x1c,%r10d
  mov    %r10b,(%rcx)
  mov    %eax,%r10d
  shr    $0x18,%r10d
  and    $0xf,%r10d
  mov    %r10b,0x1(%rcx)
  mov    %eax,%r10d
  shr    $0x14,%r10d
  and    $0xf,%r10d
  mov    %r10b,0x2(%rcx)
  mov    %eax,%r10d
  shr    $0x10,%r10d
  and    $0xf,%r10d
  mov    %r10b,0x3(%rcx)
  mov    %eax,%r10d
  shr    $0xc,%r10d
  and    $0xf,%r10d
  mov    %r10b,0x4(%rcx)
  mov    %eax,%r10d
  shr    $0x8,%r10d
  and    $0xf,%r10d
  mov    %r10b,0x5(%rcx)
  mov    %eax,%r10d
  shr    $0x4,%r10b
  mov    %r10b,0x6(%rcx)
  add    $0x8,%rcx
  and    $0xf,%eax
  mov    %al,-0x1(%rcx)
  add    $0x4,%rdi
  mov    -0x4(%rdi),%eax
  cmp    %r9,%rdi
  jne    L30
  lea    (%rsi,%rbx,8),%rsi
  neg    %r11d
  lea    -0x8(%r8,%r11,8),%r8d
L1:
  shl    $0x20,%rax
  lea    0x4(%r9),%r10
  mov    (%r9),%ecx
  or     %rcx,%rax
  jmp    L134
L24:
  mov    %edx,%ecx
  sub    %edi,%ecx
  shr    %cl,%rax
  mov    %r10d,%r10d
  or     %rax,%r10
  mov    %r10,%rax
  shl    %cl,%rax
L351:
  add    $0x20,%ebp
  mov    %r12,%r10
L165:
  cmp    %rsi,%r11
  je     L340
L230:
  mov    %rax,%rdi
  mov    %r9d,%ecx
  shr    %cl,%rdi
  mov    %dil,(%rsi)
  mov    %edx,%ecx
  shl    %cl,%rax
  mov    %ebp,%edi
  sub    %edx,%edi
  mov    %rax,%r15
  mov    %r9d,%ecx
  shr    %cl,%r15
  mov    %r15b,0x1(%rsi)
  mov    %edx,%ecx
  shl    %cl,%rax
  sub    %edx,%edi
  mov    %rax,%r14
  mov    %r9d,%ecx
  shr    %cl,%r14
  mov    %r14b,0x2(%rsi)
  mov    %edx,%ecx
  shl    %cl,%rax
  sub    %edx,%edi
  add    $0x4,%rsi
  mov    %rax,%r15
  mov    %r9d,%ecx
  shr    %cl,%r15
  mov    %r15b,-0x1(%rsi)
  mov    %edx,%ecx
  shl    %cl,%rax
  mov    %edi,%ebp
  sub    %edx,%ebp
  test   %ebp,%ebp
  jg     L165
  lea    0x4(%r10),%r12
  mov    (%r10),%r10d
  jne    L24
  mov    %r10d,%r10d
  or     %r10,%rax
  jmp    L351
L340:
  neg    %ebx
  lea    -0x4(%r8,%rbx,4),%r8d
L347:
  test   %r8d,%r8d
  jle    L247
  mov    %r8d,%r8d
  add    %rsi,%r8
  mov    $0x40,%r11d
  sub    %edx,%r11d
  jmp    L371
L93:
  lea    0x4(%r10),%rbx
  mov    (%r10),%r9d
  jne    L365
  mov    %r9d,%r9d
  or     %r9,%rax
L352:
  lea    0x20(%rdi),%ebp
  mov    %rbx,%r10
L154:
  cmp    %r8,%rsi
  je     L247
L371:
  add    $0x1,%rsi
  mov    %rax,%rdi
  mov    %r11d,%ecx
  shr    %cl,%rdi
  mov    %dil,-0x1(%rsi)
  mov    %edx,%ecx
  shl    %cl,%rax
  mov    %ebp,%edi
  sub    %edx,%edi
  test   %edi,%edi
  jle    L93
  mov    %edi,%ebp
  jmp    L154
L365:
  mov    %edx,%ecx
  sub    %ebp,%ecx
  shr    %cl,%rax
  mov    %r9d,%r9d
  or     %rax,%r9
  mov    %r9,%rax
  shl    %cl,%rax
  jmp    L352
L98:
  mov    %rdi,%r9
  jmp    L1
L293:
  mov    %rdi,%r9
  jmp    L1
L278:
  mov    %rdi,%r9
  jmp    L1
L13:
  mov    %rdi,%r9
  jmp    L1
L247:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L330:
  ret
```

assistant: ```c
void IntegerUnpacker_8(void *stream, void *dst, int nbits, int nbitt, int n, int offset) {
  unsigned int *packed = (unsigned int *)stream;
  char *unpacked = (char *)dst;
  unsigned long long temp;
  unsigned int token, token1, token2, token3;
  int bleft;
  int signed_offset = 0;
  if (nbits > 8 || nbitt > nbits)
    return;
  packed += offset / 32;
  bleft = 32 - (offset % 32);
  token = *packed++;
  if (nbits == -1)
    signed_offset = -(1 << (nbitt - 1));
  if (bleft == 32) {
    if (nbits == 8) {
      while (n > 7) {
        *unpacked++ = ((token >> 24));
        *unpacked++ = ((token >> 16) & 0xFF);
        *unpacked++ = ((token >> 8) & 0xFF);
        *unpacked++ = (token & 0xFF);
        token = *packed++;
        *unpacked++ = ((token >> 24));
        *unpacked++ = ((token >> 16) & 0xFF);
        *unpacked++ = ((token >> 8) & 0xFF);
        *unpacked++ = (token & 0xFF);
        token = *packed++;
        n -= 8;
      }
    }
    if (nbits == 6) {
      while (n > 15) {
        token2 = *packed++;
        token3 = *packed++;
        token1 = *packed++;
        *unpacked++ = ((token >> 26));
        *unpacked++ = ((token >> 20) & 0x3F);
        *unpacked++ = ((token >> 14) & 0x3F);
        *unpacked++ = ((token >> 8) & 0x3F);
        *unpacked++ = ((token >> 2) & 0x3F);
        *unpacked++ = (((token & 0x3) << 4) | (token2 >> 28));
        *unpacked++ = ((token2 >> 22) & 0x3F);
        *unpacked++ = ((token2 >> 16) & 0x3F);
        *unpacked++ = ((token2 >> 10) & 0x3F);
        *unpacked++ = ((token2 >> 4) & 0x3F);
        *unpacked++ = (((token2 & 0xF) << 2) | (token3 >> 30));
        *unpacked++ = ((token3 >> 24) & 0x3F);
        *unpacked++ = ((token3 >> 18) & 0x3F);
        *unpacked++ = ((token3 >> 12) & 0x3F);
        *unpacked++ = ((token3 >> 6) & 0x3F);
        *unpacked++ = (token3 & 0x3F);
        token = token1;
        n -= 16;
      }
    }
    if (nbits == 4) {
      while (n > 7) {
        *unpacked++ = ((token >> 28));
        *unpacked++ = ((token >> 24) & 0xF);
        *unpacked++ = ((token >> 20) & 0xF);
        *unpacked++ = ((token >> 16) & 0xF);
        *unpacked++ = ((token >> 12) & 0xF);
        *unpacked++ = ((token >> 8) & 0xF);
        *unpacked++ = ((token >> 4) & 0xF);
        *unpacked++ = (token & 0xF);
        token = *packed++;
        n -= 8;
      }
    }
    if (nbits == 2) {
      while (n > 15) {
        *unpacked++ = ((token >> 30));
        *unpacked++ = ((token >> 28) & 0x3);
        *unpacked++ = ((token >> 26) & 0x3);
        *unpacked++ = ((token >> 24) & 0x3);
        *unpacked++ = ((token >> 22) & 0x3);
        *unpacked++ = ((token >> 20) & 0x3);
        *unpacked++ = ((token >> 18) & 0x3);
        *unpacked++ = ((token >> 16) & 0x3);
        *unpacked++ = ((token >> 14) & 0x3);
        *unpacked++ = ((token >> 12) & 0x3);
        *unpacked++ = ((token >> 10) & 0x3);
        *unpacked++ = ((token >> 8) & 0x3);
        *unpacked++ = ((token >> 6) & 0x3);
        *unpacked++ = ((token >> 4) & 0x3);
        *unpacked++ = ((token >> 2) & 0x3);
        *unpacked++ = (token & 0x3);
        token = *packed++;
        n -= 16;
      }
    }
    if (nbits == 1) {
      while (n > 31) {
        *unpacked++ = ((token >> 31) & 1);
        *unpacked++ = ((token >> 30) & 1);
        *unpacked++ = ((token >> 29) & 1);
        *unpacked++ = ((token >> 28) & 1);
        *unpacked++ = ((token >> 27) & 1);
        *unpacked++ = ((token >> 26) & 1);
        *unpacked++ = ((token >> 25) & 1);
        *unpacked++ = ((token >> 24) & 1);
        *unpacked++ = ((token >> 23) & 1);
        *unpacked++ = ((token >> 22) & 1);
        *unpacked++ = ((token >> 21) & 1);
        *unpacked++ = ((token >> 20) & 1);
        *unpacked++ = ((token >> 19) & 1);
        *unpacked++ = ((token >> 18) & 1);
        *unpacked++ = ((token >> 17) & 1);
        *unpacked++ = ((token >> 16) & 1);
        *unpacked++ = ((token >> 15) & 1);
        *unpacked++ = ((token >> 14) & 1);
        *unpacked++ = ((token >> 13) & 1);
        *unpacked++ = ((token >> 12) & 1);
        *unpacked++ = ((token >> 11) & 1);
        *unpacked++ = ((token >> 10) & 1);
        *unpacked++ = ((token >> 9) & 1);
        *unpacked++ = ((token >> 8) & 1);
        *unpacked++ = ((token >> 7) & 1);
        *unpacked++ = ((token >> 6) & 1);
        *unpacked++ = ((token >> 5) & 1);
        *unpacked++ = ((token >> 4) & 1);
        *unpacked++ = ((token >> 3) & 1);
        *unpacked++ = ((token >> 2) & 1);
        *unpacked++ = ((token >> 1) & 1);
        *unpacked++ = (token & 1);
        token = *packed++;
        n -= 32;
      }
    }
  }
  temp = token;
  temp <<= 32;
  temp |= *packed++;
  if (bleft < 32)
    temp <<= (32 - bleft);
  while (n > 3) {
    *unpacked++ = (temp >> (64 - nbits));
    temp <<= nbits;
    bleft -= nbits;
    *unpacked++ = (temp >> (64 - nbits));
    temp <<= nbits;
    bleft -= nbits;
    *unpacked++ = (temp >> (64 - nbits));
    temp <<= nbits;
    bleft -= nbits;
    *unpacked++ = (temp >> (64 - nbits));
    temp <<= nbits;
    bleft -= nbits;
    if (bleft <= 0) {
      token = *packed++;
      if (bleft == 0) {
        temp |= token;
      } else {
        temp = temp >> (-bleft);
        temp |= token;
        temp <<= (-bleft);
      }
      bleft += 32;
    }
    n -= 4;
  }
  while (n-- > 0) {
    *unpacked++ = (temp >> (64 - nbits));
    temp <<= nbits;
    bleft -= nbits;
    if (bleft <= 0) {
      token = *packed++;
      if (bleft == 0) {
        temp |= token;
      } else {
        temp = temp >> (-bleft);
        temp |= token;
        temp <<= (-bleft);
      }
      bleft += 32;
    }
  }
}
```