void convert_old(unsigned char *rec, unsigned char *data, int numchan,
                 int decreasing_f) {
  int ii, jj;
  if (decreasing_f) {
    for (ii = 0, jj = numchan - 8; ii < numchan / 8; ii++, jj -= 8) {
      data[jj] = rec[ii] & 0x80 ? 1 : 0;
      data[jj + 1] = rec[ii] & 0x40 ? 1 : 0;
      data[jj + 2] = rec[ii] & 0x20 ? 1 : 0;
      data[jj + 3] = rec[ii] & 0x10 ? 1 : 0;
      data[jj + 4] = rec[ii] & 0x08 ? 1 : 0;
      data[jj + 5] = rec[ii] & 0x04 ? 1 : 0;
      data[jj + 6] = rec[ii] & 0x02 ? 1 : 0;
      data[jj + 7] = rec[ii] & 0x01 ? 1 : 0;
    }
  } else {
    for (ii = 0, jj = 0; ii < numchan / 8; ii++, jj += 8) {
      data[jj] = rec[ii] & 0x01 ? 1 : 0;
      data[jj + 1] = rec[ii] & 0x02 ? 1 : 0;
      data[jj + 2] = rec[ii] & 0x04 ? 1 : 0;
      data[jj + 3] = rec[ii] & 0x08 ? 1 : 0;
      data[jj + 4] = rec[ii] & 0x10 ? 1 : 0;
      data[jj + 5] = rec[ii] & 0x20 ? 1 : 0;
      data[jj + 6] = rec[ii] & 0x40 ? 1 : 0;
      data[jj + 7] = rec[ii] & 0x80 ? 1 : 0;
    }
  }
}


x86 assembly (clang, -O0):
<convert_old>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     12d4 <convert_old+0x1d4>
movl   $0x0,-0x1c(%rbp)
mov    -0x14(%rbp),%eax
sub    $0x8,%eax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x14(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x24(%rbp),%eax
cmp    %ecx,%eax
jge    12cf <convert_old+0x1cf>
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
and    $0x80,%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
and    $0x40,%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
and    $0x20,%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
and    $0x10,%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
and    $0x8,%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x4,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
and    $0x4,%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x5,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
and    $0x2,%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x6,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
and    $0x1,%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x7,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x20(%rbp),%eax
sub    $0x8,%eax
mov    %eax,-0x20(%rbp)
jmp    112c <convert_old+0x2c>
jmp    148a <convert_old+0x38a>
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x14(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x28(%rbp),%eax
cmp    %ecx,%eax
jge    1485 <convert_old+0x385>
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
and    $0x1,%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
and    $0x2,%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
and    $0x4,%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
and    $0x8,%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
and    $0x10,%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x4,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
and    $0x20,%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x5,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
and    $0x40,%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x6,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
and    $0x80,%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x7,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x20(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x20(%rbp)
jmp    12e2 <convert_old+0x1e2>
jmp    148a <convert_old+0x38a>
pop    %rbp
ret

x86 assembly (clang, -O2):
<convert_old>:
test   %ecx,%ecx
je     11d2 <convert_old+0xd2>
cmp    $0x8,%edx
jl     128a <convert_old+0x18a>
mov    %edx,%r10d
shr    $0x3,%r10d
mov    %edx,%r8d
cmp    $0x80,%edx
jb     114e <convert_old+0x4e>
lea    0x0(,%r10,8),%rax
mov    %r8,%rcx
sub    %rax,%rcx
add    %rsi,%rcx
lea    (%rdi,%r10,1),%rax
cmp    %rax,%rcx
jae    128b <convert_old+0x18b>
lea    (%rsi,%r8,1),%rax
cmp    %rdi,%rax
jbe    128b <convert_old+0x18b>
xor    %ecx,%ecx
mov    %r8,%r9
lea    (%r9,%rsi,1),%rax
add    $0xffffffffffffffff,%rax
nopl   0x0(%rax,%rax,1)
movzbl (%rdi,%rcx,1),%edx
shr    $0x7,%dl
mov    %dl,-0x7(%rax)
movzbl (%rdi,%rcx,1),%edx
shr    $0x6,%dl
and    $0x1,%dl
mov    %dl,-0x6(%rax)
movzbl (%rdi,%rcx,1),%edx
shr    $0x5,%dl
and    $0x1,%dl
mov    %dl,-0x5(%rax)
movzbl (%rdi,%rcx,1),%edx
shr    $0x4,%dl
and    $0x1,%dl
mov    %dl,-0x4(%rax)
movzbl (%rdi,%rcx,1),%edx
shr    $0x3,%dl
and    $0x1,%dl
mov    %dl,-0x3(%rax)
movzbl (%rdi,%rcx,1),%edx
shr    $0x2,%dl
and    $0x1,%dl
mov    %dl,-0x2(%rax)
movzbl (%rdi,%rcx,1),%edx
shr    %dl
and    $0x1,%dl
mov    %dl,-0x1(%rax)
movzbl (%rdi,%rcx,1),%edx
and    $0x1,%dl
mov    %dl,(%rax)
add    $0x1,%rcx
add    $0xfffffffffffffff8,%rax
cmp    %rcx,%r10
jne    1160 <convert_old+0x60>
jmp    128a <convert_old+0x18a>
cmp    $0x8,%edx
jl     128a <convert_old+0x18a>
mov    %edx,%r9d
shr    $0x3,%r9d
cmp    $0x40,%edx
jb     1201 <convert_old+0x101>
lea    (%rdi,%r9,1),%rcx
cmp    %rsi,%rcx
jbe    186d <convert_old+0x76d>
lea    (%rsi,%r9,8),%rcx
cmp    %rdi,%rcx
jbe    186d <convert_old+0x76d>
xor    %r8d,%r8d
xor    %edx,%edx
add    %r8,%rdi
sub    %r8,%r9
lea    (%rdx,%rsi,1),%rcx
add    $0x7,%rcx
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
movzbl (%rdi,%rdx,1),%eax
and    $0x1,%al
mov    %al,-0x7(%rcx,%rdx,8)
movzbl (%rdi,%rdx,1),%eax
shr    %al
and    $0x1,%al
mov    %al,-0x6(%rcx,%rdx,8)
movzbl (%rdi,%rdx,1),%eax
shr    $0x2,%al
and    $0x1,%al
mov    %al,-0x5(%rcx,%rdx,8)
movzbl (%rdi,%rdx,1),%eax
shr    $0x3,%al
and    $0x1,%al
mov    %al,-0x4(%rcx,%rdx,8)
movzbl (%rdi,%rdx,1),%eax
shr    $0x4,%al
and    $0x1,%al
mov    %al,-0x3(%rcx,%rdx,8)
movzbl (%rdi,%rdx,1),%eax
shr    $0x5,%al
and    $0x1,%al
mov    %al,-0x2(%rcx,%rdx,8)
movzbl (%rdi,%rdx,1),%eax
shr    $0x6,%al
and    $0x1,%al
mov    %al,-0x1(%rcx,%rdx,8)
movzbl (%rdi,%rdx,1),%eax
shr    $0x7,%al
mov    %al,(%rcx,%rdx,8)
add    $0x1,%rdx
cmp    %rdx,%r9
jne    1220 <convert_old+0x120>
ret
mov    %r10d,%ecx
and    $0xfffffff0,%ecx
lea    0x0(,%rcx,8),%rax
mov    %r8,%r9
sub    %rax,%r9
lea    (%r8,%rsi,1),%rdx
add    $0xffffffffffffff80,%rdx
shr    $0x3,%r8
and    $0xfffffff0,%r8d
neg    %r8
xor    %eax,%eax
mov    %rdi,%r11
movdqa 0xd60(%rip),%xmm8
movdqu (%r11),%xmm13
movdqa %xmm13,%xmm2
psrlw  $0x7,%xmm2
movdqa 0xd29(%rip),%xmm7
pand   %xmm7,%xmm2
movdqa %xmm13,%xmm6
psrlw  $0x6,%xmm6
pand   %xmm7,%xmm6
movdqa %xmm13,%xmm5
psrlw  $0x5,%xmm5
pand   %xmm7,%xmm5
movdqa %xmm13,%xmm1
psrlw  $0x4,%xmm1
pand   %xmm7,%xmm1
movdqa %xmm13,%xmm4
psrlw  $0x3,%xmm4
pand   %xmm7,%xmm4
movdqa %xmm13,%xmm3
psrlw  $0x2,%xmm3
pand   %xmm7,%xmm3
movdqa %xmm13,%xmm0
psrlw  $0x1,%xmm0
pand   %xmm7,%xmm0
pand   %xmm7,%xmm13
movdqa %xmm2,%xmm7
pxor   %xmm9,%xmm9
punpcklbw %xmm9,%xmm7
pshufd $0x4e,%xmm7,%xmm7
pshuflw $0x1b,%xmm7,%xmm7
pshufhw $0x1b,%xmm7,%xmm7
punpckhbw %xmm9,%xmm2
pshufd $0x4e,%xmm2,%xmm2
pshuflw $0x1b,%xmm2,%xmm2
pshufhw $0x1b,%xmm2,%xmm2
packuswb %xmm7,%xmm2
movdqa %xmm2,-0x58(%rsp)
movdqa %xmm6,%xmm2
punpcklbw %xmm9,%xmm2
pshufd $0x4e,%xmm2,%xmm2
pshuflw $0x1b,%xmm2,%xmm2
pshufhw $0x1b,%xmm2,%xmm2
punpckhbw %xmm9,%xmm6
pshufd $0x4e,%xmm6,%xmm6
pshuflw $0x1b,%xmm6,%xmm6
pshufhw $0x1b,%xmm6,%xmm11
packuswb %xmm2,%xmm11
movdqa %xmm11,-0x28(%rsp)
movdqa %xmm5,%xmm2
punpcklbw %xmm9,%xmm2
pshufd $0x4e,%xmm2,%xmm2
pshuflw $0x1b,%xmm2,%xmm2
pshufhw $0x1b,%xmm2,%xmm2
punpckhbw %xmm9,%xmm5
pshufd $0x4e,%xmm5,%xmm5
pshuflw $0x1b,%xmm5,%xmm5
pshufhw $0x1b,%xmm5,%xmm14
packuswb %xmm2,%xmm14
movdqa %xmm1,%xmm2
punpcklbw %xmm9,%xmm2
pshufd $0x4e,%xmm2,%xmm2
pshuflw $0x1b,%xmm2,%xmm2
pshufhw $0x1b,%xmm2,%xmm2
punpckhbw %xmm9,%xmm1
pshufd $0x4e,%xmm1,%xmm1
pshuflw $0x1b,%xmm1,%xmm1
pshufhw $0x1b,%xmm1,%xmm1
packuswb %xmm2,%xmm1
movdqa %xmm1,-0x38(%rsp)
movdqa %xmm4,%xmm2
punpcklbw %xmm9,%xmm2
pshufd $0x4e,%xmm2,%xmm2
pshuflw $0x1b,%xmm2,%xmm2
pshufhw $0x1b,%xmm2,%xmm2
punpckhbw %xmm9,%xmm4
pshufd $0x4e,%xmm4,%xmm4
pshuflw $0x1b,%xmm4,%xmm4
pshufhw $0x1b,%xmm4,%xmm10
packuswb %xmm2,%xmm10
movdqa %xmm3,%xmm2
punpcklbw %xmm9,%xmm2
pshufd $0x4e,%xmm2,%xmm2
pshuflw $0x1b,%xmm2,%xmm2
pshufhw $0x1b,%xmm2,%xmm2
punpckhbw %xmm9,%xmm3
pshufd $0x4e,%xmm3,%xmm3
pshuflw $0x1b,%xmm3,%xmm3
pshufhw $0x1b,%xmm3,%xmm3
packuswb %xmm2,%xmm3
movdqa %xmm3,-0x48(%rsp)
movdqa %xmm0,%xmm2
punpcklbw %xmm9,%xmm2
pshufd $0x4e,%xmm2,%xmm2
pshuflw $0x1b,%xmm2,%xmm2
pshufhw $0x1b,%xmm2,%xmm2
punpckhbw %xmm9,%xmm0
pshufd $0x4e,%xmm0,%xmm0
pshuflw $0x1b,%xmm0,%xmm0
pshufhw $0x1b,%xmm0,%xmm0
packuswb %xmm2,%xmm0
movdqa %xmm13,%xmm2
punpcklbw %xmm9,%xmm2
pshufd $0x4e,%xmm2,%xmm2
pshuflw $0x1b,%xmm2,%xmm2
pshufhw $0x1b,%xmm2,%xmm4
punpckhbw %xmm9,%xmm13
pshufd $0x4e,%xmm13,%xmm2
pshuflw $0x1b,%xmm2,%xmm2
pshufhw $0x1b,%xmm2,%xmm12
packuswb %xmm4,%xmm12
movdqa %xmm0,%xmm7
punpcklbw %xmm12,%xmm7
pshuflw $0x60,%xmm7,%xmm4
pshufd $0x60,%xmm4,%xmm4
movdqa 0xb18(%rip),%xmm9
movdqa %xmm9,%xmm5
pandn  %xmm4,%xmm5
movdqa %xmm10,%xmm6
punpcklbw %xmm3,%xmm6
pshuflw $0xd4,%xmm6,%xmm4
pshufd $0x60,%xmm4,%xmm4
pand   %xmm9,%xmm4
por    %xmm5,%xmm4
pshufd $0xed,%xmm4,%xmm13
movdqa %xmm14,%xmm5
punpcklbw %xmm1,%xmm5
pshuflw $0x60,%xmm5,%xmm4
pshufd $0xd4,%xmm4,%xmm4
movdqa %xmm8,%xmm15
pandn  %xmm4,%xmm15
movdqa -0x58(%rsp),%xmm4
punpcklbw %xmm11,%xmm4
pshufd $0x0,%xmm4,%xmm11
pshufhw $0x55,%xmm11,%xmm1
pand   %xmm8,%xmm1
por    %xmm15,%xmm1
pshufd $0xe8,%xmm1,%xmm1
punpckldq %xmm13,%xmm1
movdqa %xmm1,-0x18(%rsp)
pshuflw $0xe8,%xmm7,%xmm1
pshufd $0x60,%xmm1,%xmm11
movdqa %xmm9,%xmm1
pandn  %xmm11,%xmm1
pshuflw $0xf6,%xmm6,%xmm3
pshufd $0x60,%xmm3,%xmm3
pand   %xmm9,%xmm3
por    %xmm1,%xmm3
pshufd $0xed,%xmm3,%xmm11
pshuflw $0xe8,%xmm5,%xmm3
pshufd $0xd4,%xmm3,%xmm3
movdqa %xmm8,%xmm1
pandn  %xmm3,%xmm1
pshufd $0x55,%xmm4,%xmm3
pshufhw $0x55,%xmm3,%xmm3
pand   %xmm8,%xmm3
por    %xmm1,%xmm3
pshufd $0xe8,%xmm3,%xmm13
punpckldq %xmm11,%xmm13
pshufhw $0x60,%xmm7,%xmm1
pshufd $0xe8,%xmm1,%xmm1
movdqa %xmm9,%xmm3
pandn  %xmm1,%xmm3
pshufhw $0xd4,%xmm6,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pand   %xmm9,%xmm1
por    %xmm3,%xmm1
pshufhw $0x60,%xmm5,%xmm3
pshufd $0xf6,%xmm3,%xmm11
movdqa %xmm8,%xmm3
pandn  %xmm11,%xmm3
pshufd $0xaa,%xmm4,%xmm2
pshufhw $0x55,%xmm2,%xmm2
pand   %xmm8,%xmm2
por    %xmm3,%xmm2
pshufd $0xed,%xmm1,%xmm1
pshufd $0xe8,%xmm2,%xmm15
punpckldq %xmm1,%xmm15
pshufhw $0xe8,%xmm7,%xmm1
pshufd $0xe8,%xmm1,%xmm1
movdqa %xmm9,%xmm2
pandn  %xmm1,%xmm2
pshufhw $0xf6,%xmm6,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pand   %xmm9,%xmm1
por    %xmm2,%xmm1
pshufhw $0xe8,%xmm5,%xmm2
pshufd $0xf6,%xmm2,%xmm2
movdqa %xmm8,%xmm3
pandn  %xmm2,%xmm3
pshufd $0xff,%xmm4,%xmm2
pshufhw $0x55,%xmm2,%xmm2
pand   %xmm8,%xmm2
por    %xmm3,%xmm2
pshufd $0xed,%xmm1,%xmm1
pshufd $0xe8,%xmm2,%xmm7
punpckldq %xmm1,%xmm7
punpckhbw %xmm12,%xmm0
pshuflw $0x60,%xmm0,%xmm1
pshufd $0x60,%xmm1,%xmm1
movdqa %xmm9,%xmm2
pandn  %xmm1,%xmm2
punpckhbw -0x48(%rsp),%xmm10
pshuflw $0xd4,%xmm10,%xmm1
pshufd $0x60,%xmm1,%xmm1
pand   %xmm9,%xmm1
por    %xmm2,%xmm1
pshufd $0xed,%xmm1,%xmm2
punpckhbw -0x38(%rsp),%xmm14
pshuflw $0x60,%xmm14,%xmm1
pshufd $0xd4,%xmm1,%xmm1
movdqa %xmm8,%xmm3
pandn  %xmm1,%xmm3
movdqa -0x58(%rsp),%xmm6
punpckhbw -0x28(%rsp),%xmm6
pshufd $0x0,%xmm6,%xmm1
pshufhw $0x55,%xmm1,%xmm1
pand   %xmm8,%xmm1
por    %xmm3,%xmm1
pshufd $0xe8,%xmm1,%xmm1
punpckldq %xmm2,%xmm1
pshuflw $0xe8,%xmm0,%xmm2
pshufd $0x60,%xmm2,%xmm2
movdqa %xmm9,%xmm3
pandn  %xmm2,%xmm3
pshuflw $0xf6,%xmm10,%xmm2
pshufd $0x60,%xmm2,%xmm2
pand   %xmm9,%xmm2
por    %xmm3,%xmm2
pshufd $0xed,%xmm2,%xmm3
pshuflw $0xe8,%xmm14,%xmm2
pshufd $0xd4,%xmm2,%xmm2
movdqa %xmm8,%xmm4
pandn  %xmm2,%xmm4
pshufd $0x55,%xmm6,%xmm2
pshufhw $0x55,%xmm2,%xmm2
pand   %xmm8,%xmm2
por    %xmm4,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm3,%xmm2
pshufhw $0x60,%xmm0,%xmm3
pshufd $0xe8,%xmm3,%xmm3
movdqa %xmm9,%xmm4
pandn  %xmm3,%xmm4
pshufhw $0xd4,%xmm10,%xmm3
pshufd $0xe8,%xmm3,%xmm3
pand   %xmm9,%xmm3
por    %xmm4,%xmm3
pshufhw $0x60,%xmm14,%xmm4
pshufd $0xf6,%xmm4,%xmm4
movdqa %xmm8,%xmm5
pandn  %xmm4,%xmm5
pshufd $0xaa,%xmm6,%xmm4
pshufhw $0x55,%xmm4,%xmm4
pand   %xmm8,%xmm4
por    %xmm5,%xmm4
pshufd $0xed,%xmm3,%xmm3
pshufd $0xe8,%xmm4,%xmm4
punpckldq %xmm3,%xmm4
pshufhw $0xe8,%xmm0,%xmm0
pshufd $0xe8,%xmm0,%xmm0
movdqa %xmm9,%xmm3
pandn  %xmm0,%xmm3
pshufhw $0xf6,%xmm10,%xmm0
pshufd $0xe8,%xmm0,%xmm0
pand   %xmm9,%xmm0
por    %xmm3,%xmm0
pshufhw $0xe8,%xmm14,%xmm3
pshufd $0xf6,%xmm3,%xmm3
movdqa %xmm8,%xmm5
pandn  %xmm3,%xmm5
pshufd $0xff,%xmm6,%xmm3
pshufhw $0x55,%xmm3,%xmm3
pand   %xmm8,%xmm3
por    %xmm5,%xmm3
pshufd $0xed,%xmm0,%xmm0
pshufd $0xe8,%xmm3,%xmm3
punpckldq %xmm0,%xmm3
movdqu %xmm3,0x70(%rdx,%rax,8)
movdqu %xmm4,0x60(%rdx,%rax,8)
movdqu %xmm2,0x50(%rdx,%rax,8)
movdqu %xmm1,0x40(%rdx,%rax,8)
movdqu %xmm7,0x30(%rdx,%rax,8)
movdqu %xmm15,0x20(%rdx,%rax,8)
movdqu %xmm13,0x10(%rdx,%rax,8)
movdqa -0x18(%rsp),%xmm0
movdqu %xmm0,(%rdx,%rax,8)
add    $0x10,%r11
add    $0xfffffffffffffff0,%rax
cmp    %rax,%r8
jne    12c0 <convert_old+0x1c0>
cmp    %r10,%rcx
jne    1153 <convert_old+0x53>
jmp    128a <convert_old+0x18a>
cmp    $0x80,%edx
jae    1ad9 <convert_old+0x9d9>
xor    %r8d,%r8d
mov    %r8,%rcx
mov    %r9d,%r8d
and    $0xfffffff8,%r8d
lea    0x0(,%r8,8),%rdx
movdqa 0x799(%rip),%xmm8
movdqa 0x790(%rip),%xmm10
movdqa 0x757(%rip),%xmm9
movdqa 0x75e(%rip),%xmm11
movdqa 0x765(%rip),%xmm12
nopl   0x0(%rax,%rax,1)
movq   (%rdi,%rcx,1),%xmm1
movdqa %xmm1,%xmm5
pand   %xmm8,%xmm5
movdqa %xmm1,%xmm0
psrlw  $0x1,%xmm0
pand   %xmm10,%xmm0
punpcklbw %xmm0,%xmm5
movdqa %xmm1,%xmm6
psrlw  $0x2,%xmm6
pand   %xmm10,%xmm6
movdqa %xmm1,%xmm0
psrlw  $0x3,%xmm0
pand   %xmm10,%xmm0
punpcklbw %xmm0,%xmm6
movdqa %xmm1,%xmm7
psrlw  $0x4,%xmm7
pand   %xmm10,%xmm7
movdqa %xmm1,%xmm0
psrlw  $0x5,%xmm0
pand   %xmm10,%xmm0
punpcklbw %xmm0,%xmm7
movdqa %xmm1,%xmm0
psrlw  $0x6,%xmm0
pand   %xmm10,%xmm0
psrlw  $0x7,%xmm1
pand   %xmm9,%xmm1
punpcklbw %xmm1,%xmm0
pshuflw $0x60,%xmm0,%xmm1
pshufd $0x60,%xmm1,%xmm1
movdqa %xmm11,%xmm2
pandn  %xmm1,%xmm2
pshuflw $0xd4,%xmm7,%xmm1
pshufd $0x60,%xmm1,%xmm1
pand   %xmm11,%xmm1
por    %xmm2,%xmm1
pshufd $0xed,%xmm1,%xmm1
pshuflw $0x60,%xmm6,%xmm2
pshufd $0xd4,%xmm2,%xmm2
movdqa %xmm12,%xmm4
pandn  %xmm2,%xmm4
pshufd $0x0,%xmm5,%xmm2
pshufhw $0x55,%xmm2,%xmm2
pand   %xmm12,%xmm2
por    %xmm4,%xmm2
pshufd $0xe8,%xmm2,%xmm13
punpckldq %xmm1,%xmm13
pshuflw $0xe8,%xmm0,%xmm1
pshufd $0x60,%xmm1,%xmm1
movdqa %xmm11,%xmm4
pandn  %xmm1,%xmm4
pshuflw $0xf6,%xmm7,%xmm1
pshufd $0x60,%xmm1,%xmm1
pand   %xmm11,%xmm1
por    %xmm4,%xmm1
pshufd $0xed,%xmm1,%xmm4
pshuflw $0xe8,%xmm6,%xmm1
pshufd $0xd4,%xmm1,%xmm1
movdqa %xmm12,%xmm3
pandn  %xmm1,%xmm3
pshufd $0x55,%xmm5,%xmm1
pshufhw $0x55,%xmm1,%xmm1
pand   %xmm12,%xmm1
por    %xmm3,%xmm1
pshufd $0xe8,%xmm1,%xmm1
punpckldq %xmm4,%xmm1
pshufhw $0x60,%xmm0,%xmm3
pshufd $0xe8,%xmm3,%xmm3
movdqa %xmm11,%xmm4
pandn  %xmm3,%xmm4
pshufhw $0xd4,%xmm7,%xmm3
pshufd $0xe8,%xmm3,%xmm3
pand   %xmm11,%xmm3
por    %xmm4,%xmm3
pshufd $0xed,%xmm3,%xmm3
pshufhw $0x60,%xmm6,%xmm4
pshufd $0xf6,%xmm4,%xmm4
movdqa %xmm12,%xmm2
pandn  %xmm4,%xmm2
pshufd $0xaa,%xmm5,%xmm4
pshufhw $0x55,%xmm4,%xmm4
pand   %xmm12,%xmm4
por    %xmm2,%xmm4
pshufd $0xe8,%xmm4,%xmm2
punpckldq %xmm3,%xmm2
pshufhw $0xe8,%xmm0,%xmm0
pshufd $0xe8,%xmm0,%xmm0
movdqa %xmm11,%xmm3
pandn  %xmm0,%xmm3
pshufhw $0xf6,%xmm7,%xmm0
pshufd $0xe8,%xmm0,%xmm0
pand   %xmm11,%xmm0
por    %xmm3,%xmm0
pshufd $0xed,%xmm0,%xmm0
pshufhw $0xe8,%xmm6,%xmm3
pshufd $0xf6,%xmm3,%xmm3
movdqa %xmm12,%xmm4
pandn  %xmm3,%xmm4
pshufd $0xff,%xmm5,%xmm3
pshufhw $0x55,%xmm3,%xmm3
pand   %xmm12,%xmm3
por    %xmm4,%xmm3
pshufd $0xe8,%xmm3,%xmm3
punpckldq %xmm0,%xmm3
movdqu %xmm3,0x30(%rsi,%rcx,8)
movdqu %xmm2,0x20(%rsi,%rcx,8)
movdqu %xmm1,0x10(%rsi,%rcx,8)
movdqu %xmm13,(%rsi,%rcx,8)
add    $0x8,%rcx
cmp    %rcx,%r8
jne    18c0 <convert_old+0x7c0>
cmp    %r9,%r8
jne    1206 <convert_old+0x106>
jmp    128a <convert_old+0x18a>
mov    %r9d,%r8d
and    $0xfffffff0,%r8d
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movdqu (%rdi,%rdx,1),%xmm7
movdqa %xmm7,%xmm1
movdqa 0x4ff(%rip),%xmm0
pand   %xmm0,%xmm1
movdqa %xmm1,%xmm11
movdqa %xmm1,-0x28(%rsp)
movdqa %xmm7,%xmm1
psrlw  $0x1,%xmm1
pand   %xmm0,%xmm1
movdqa %xmm1,%xmm5
movdqa %xmm1,-0x38(%rsp)
movdqa %xmm7,%xmm9
psrlw  $0x2,%xmm9
pand   %xmm0,%xmm9
movdqa %xmm7,%xmm15
psrlw  $0x3,%xmm15
pand   %xmm0,%xmm15
movdqa %xmm7,%xmm8
psrlw  $0x4,%xmm8
pand   %xmm0,%xmm8
movdqa %xmm7,%xmm13
psrlw  $0x5,%xmm13
pand   %xmm0,%xmm13
movdqa %xmm7,%xmm1
psrlw  $0x6,%xmm1
pand   %xmm0,%xmm1
psrlw  $0x7,%xmm7
pand   %xmm0,%xmm7
movdqa %xmm1,%xmm14
punpcklbw %xmm7,%xmm14
pshuflw $0x60,%xmm14,%xmm3
pshufd $0x60,%xmm3,%xmm3
movdqa 0x476(%rip),%xmm0
movdqa %xmm0,%xmm4
pandn  %xmm3,%xmm4
movdqa %xmm8,%xmm6
punpcklbw %xmm13,%xmm6
pshuflw $0xd4,%xmm6,%xmm3
pshufd $0x60,%xmm3,%xmm3
pand   %xmm0,%xmm3
por    %xmm4,%xmm3
pshufd $0xed,%xmm3,%xmm10
movdqa %xmm9,%xmm4
punpcklbw %xmm15,%xmm4
pshuflw $0x60,%xmm4,%xmm3
pshufd $0xd4,%xmm3,%xmm3
movdqa 0x440(%rip),%xmm2
movdqa %xmm2,%xmm12
pandn  %xmm3,%xmm12
movdqa %xmm11,%xmm3
punpcklbw %xmm5,%xmm3
pshufd $0x0,%xmm3,%xmm11
pshufhw $0x55,%xmm11,%xmm0
pand   %xmm2,%xmm0
por    %xmm12,%xmm0
pshufd $0xe8,%xmm0,%xmm0
punpckldq %xmm10,%xmm0
movdqa %xmm0,-0x58(%rsp)
pshuflw $0xe8,%xmm14,%xmm0
pshufd $0x60,%xmm0,%xmm10
movdqa 0x3e4(%rip),%xmm5
movdqa %xmm5,%xmm0
pandn  %xmm10,%xmm0
pshuflw $0xf6,%xmm6,%xmm2
pshufd $0x60,%xmm2,%xmm2
pand   %xmm5,%xmm2
movdqa %xmm5,%xmm10
por    %xmm0,%xmm2
pshufd $0xed,%xmm2,%xmm11
pshuflw $0xe8,%xmm4,%xmm2
pshufd $0xd4,%xmm2,%xmm2
movdqa 0x3bb(%rip),%xmm12
movdqa %xmm12,%xmm0
pandn  %xmm2,%xmm0
pshufd $0x55,%xmm3,%xmm2
pshufhw $0x55,%xmm2,%xmm2
pand   %xmm12,%xmm2
por    %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm0
punpckldq %xmm11,%xmm0
movdqa %xmm0,-0x18(%rsp)
pshufhw $0x60,%xmm14,%xmm0
pshufd $0xe8,%xmm0,%xmm0
movdqa %xmm5,%xmm2
pandn  %xmm0,%xmm2
pshufhw $0xd4,%xmm6,%xmm0
pshufd $0xe8,%xmm0,%xmm0
pand   %xmm5,%xmm0
por    %xmm2,%xmm0
pshufhw $0x60,%xmm4,%xmm2
pshufd $0xf6,%xmm2,%xmm11
movdqa %xmm12,%xmm2
pandn  %xmm11,%xmm2
pshufd $0xaa,%xmm3,%xmm5
pshufhw $0x55,%xmm5,%xmm5
pand   %xmm12,%xmm5
por    %xmm2,%xmm5
pshufd $0xed,%xmm0,%xmm0
pshufd $0xe8,%xmm5,%xmm2
punpckldq %xmm0,%xmm2
movdqa %xmm2,-0x48(%rsp)
pshufhw $0xe8,%xmm14,%xmm0
pshufd $0xe8,%xmm0,%xmm0
movdqa %xmm10,%xmm2
pandn  %xmm0,%xmm2
pshufhw $0xf6,%xmm6,%xmm0
pshufd $0xe8,%xmm0,%xmm0
pand   %xmm10,%xmm0
por    %xmm2,%xmm0
pshufhw $0xe8,%xmm4,%xmm2
pshufd $0xf6,%xmm2,%xmm2
movdqa %xmm12,%xmm4
pandn  %xmm2,%xmm4
pshufd $0xff,%xmm3,%xmm2
pshufhw $0x55,%xmm2,%xmm2
pand   %xmm12,%xmm2
por    %xmm4,%xmm2
pshufd $0xed,%xmm0,%xmm0
pshufd $0xe8,%xmm2,%xmm14
punpckldq %xmm0,%xmm14
punpckhbw %xmm7,%xmm1
pshuflw $0x60,%xmm1,%xmm0
pshufd $0x60,%xmm0,%xmm0
movdqa %xmm10,%xmm2
pandn  %xmm0,%xmm2
punpckhbw %xmm13,%xmm8
pshuflw $0xd4,%xmm8,%xmm0
pshufd $0x60,%xmm0,%xmm0
pand   %xmm10,%xmm0
por    %xmm2,%xmm0
pshufd $0xed,%xmm0,%xmm2
punpckhbw %xmm15,%xmm9
pshuflw $0x60,%xmm9,%xmm0
pshufd $0xd4,%xmm0,%xmm0
movdqa %xmm12,%xmm3
pandn  %xmm0,%xmm3
movdqa -0x28(%rsp),%xmm6
punpckhbw -0x38(%rsp),%xmm6
pshufd $0x0,%xmm6,%xmm0
pshufhw $0x55,%xmm0,%xmm0
pand   %xmm12,%xmm0
por    %xmm3,%xmm0
pshufd $0xe8,%xmm0,%xmm0
punpckldq %xmm2,%xmm0
pshuflw $0xe8,%xmm1,%xmm2
pshufd $0x60,%xmm2,%xmm2
movdqa %xmm10,%xmm3
pandn  %xmm2,%xmm3
pshuflw $0xf6,%xmm8,%xmm2
pshufd $0x60,%xmm2,%xmm2
pand   %xmm10,%xmm2
por    %xmm3,%xmm2
pshufd $0xed,%xmm2,%xmm3
pshuflw $0xe8,%xmm9,%xmm2
pshufd $0xd4,%xmm2,%xmm2
movdqa %xmm12,%xmm4
pandn  %xmm2,%xmm4
pshufd $0x55,%xmm6,%xmm2
pshufhw $0x55,%xmm2,%xmm2
pand   %xmm12,%xmm2
por    %xmm4,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm3,%xmm2
pshufhw $0x60,%xmm1,%xmm3
pshufd $0xe8,%xmm3,%xmm3
movdqa %xmm10,%xmm4
pandn  %xmm3,%xmm4
pshufhw $0xd4,%xmm8,%xmm3
pshufd $0xe8,%xmm3,%xmm3
pand   %xmm10,%xmm3
por    %xmm4,%xmm3
pshufhw $0x60,%xmm9,%xmm4
pshufd $0xf6,%xmm4,%xmm4
movdqa %xmm12,%xmm5
pandn  %xmm4,%xmm5
pshufd $0xaa,%xmm6,%xmm4
pshufhw $0x55,%xmm4,%xmm4
pand   %xmm12,%xmm4
por    %xmm5,%xmm4
pshufd $0xed,%xmm3,%xmm3
pshufd $0xe8,%xmm4,%xmm4
punpckldq %xmm3,%xmm4
pshufhw $0xe8,%xmm1,%xmm1
pshufd $0xe8,%xmm1,%xmm1
movdqa %xmm10,%xmm3
pandn  %xmm1,%xmm3
pshufhw $0xf6,%xmm8,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pand   %xmm10,%xmm1
por    %xmm3,%xmm1
pshufhw $0xe8,%xmm9,%xmm3
pshufd $0xf6,%xmm3,%xmm3
movdqa %xmm12,%xmm5
pandn  %xmm3,%xmm5
pshufd $0xff,%xmm6,%xmm3
pshufhw $0x55,%xmm3,%xmm3
pand   %xmm12,%xmm3
por    %xmm5,%xmm3
pshufd $0xed,%xmm1,%xmm1
pshufd $0xe8,%xmm3,%xmm3
punpckldq %xmm1,%xmm3
movdqu %xmm3,0x70(%rsi,%rdx,8)
movdqu %xmm4,0x60(%rsi,%rdx,8)
movdqu %xmm2,0x50(%rsi,%rdx,8)
movdqu %xmm0,0x40(%rsi,%rdx,8)
movdqu %xmm14,0x30(%rsi,%rdx,8)
movaps -0x48(%rsp),%xmm0
movups %xmm0,0x20(%rsi,%rdx,8)
movaps -0x18(%rsp),%xmm0
movups %xmm0,0x10(%rsi,%rdx,8)
movdqa -0x58(%rsp),%xmm0
movdqu %xmm0,(%rsi,%rdx,8)
add    $0x10,%rdx
cmp    %rdx,%r8
jne    1af0 <convert_old+0x9f0>
cmp    %r9,%r8
je     128a <convert_old+0x18a>
test   $0x8,%r9b
jne    187c <convert_old+0x77c>
lea    0x0(,%r8,8),%rdx
jmp    1206 <convert_old+0x106>

LLVM IR (-O0):
define void @convert_old(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%11 = load i32, i32* %8
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %155
13: ; preds = %4
store i32 0, i32* %9
%14 = load i32, i32* %7
%15 = sub nsw i32 %14, 8
store i32 %15, i32* %10
br label %16
16: ; preds = %149, %13
%17 = load i32, i32* %9
%18 = load i32, i32* %7
%19 = sdiv i32 %18, 8
%20 = icmp slt i32 %17, %19
br i1 %20, label %21, label %154
21: ; preds = %16
%22 = load i8*, i8** %5
%23 = load i32, i32* %9
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, i8* %22, i64 %24
%26 = load i8, i8* %25
%27 = zext i8 %26 to i32
%28 = and i32 %27, 128
%29 = icmp ne i32 %28, 0
%30 = zext i1 %29 to i64
%31 = select i1 %29, i32 1, i32 0
%32 = trunc i32 %31 to i8
%33 = load i8*, i8** %6
%34 = load i32, i32* %10
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, i8* %33, i64 %35
store i8 %32, i8* %36
%37 = load i8*, i8** %5
%38 = load i32, i32* %9
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, i8* %37, i64 %39
%41 = load i8, i8* %40
%42 = zext i8 %41 to i32
%43 = and i32 %42, 64
%44 = icmp ne i32 %43, 0
%45 = zext i1 %44 to i64
%46 = select i1 %44, i32 1, i32 0
%47 = trunc i32 %46 to i8
%48 = load i8*, i8** %6
%49 = load i32, i32* %10
%50 = add nsw i32 %49, 1
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8, i8* %48, i64 %51
store i8 %47, i8* %52
%53 = load i8*, i8** %5
%54 = load i32, i32* %9
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, i8* %53, i64 %55
%57 = load i8, i8* %56
%58 = zext i8 %57 to i32
%59 = and i32 %58, 32
%60 = icmp ne i32 %59, 0
%61 = zext i1 %60 to i64
%62 = select i1 %60, i32 1, i32 0
%63 = trunc i32 %62 to i8
%64 = load i8*, i8** %6
%65 = load i32, i32* %10
%66 = add nsw i32 %65, 2
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, i8* %64, i64 %67
store i8 %63, i8* %68
%69 = load i8*, i8** %5
%70 = load i32, i32* %9
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8, i8* %69, i64 %71
%73 = load i8, i8* %72
%74 = zext i8 %73 to i32
%75 = and i32 %74, 16
%76 = icmp ne i32 %75, 0
%77 = zext i1 %76 to i64
%78 = select i1 %76, i32 1, i32 0
%79 = trunc i32 %78 to i8
%80 = load i8*, i8** %6
%81 = load i32, i32* %10
%82 = add nsw i32 %81, 3
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i8, i8* %80, i64 %83
store i8 %79, i8* %84
%85 = load i8*, i8** %5
%86 = load i32, i32* %9
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i8, i8* %85, i64 %87
%89 = load i8, i8* %88
%90 = zext i8 %89 to i32
%91 = and i32 %90, 8
%92 = icmp ne i32 %91, 0
%93 = zext i1 %92 to i64
%94 = select i1 %92, i32 1, i32 0
%95 = trunc i32 %94 to i8
%96 = load i8*, i8** %6
%97 = load i32, i32* %10
%98 = add nsw i32 %97, 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i8, i8* %96, i64 %99
store i8 %95, i8* %100
%101 = load i8*, i8** %5
%102 = load i32, i32* %9
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i8, i8* %101, i64 %103
%105 = load i8, i8* %104
%106 = zext i8 %105 to i32
%107 = and i32 %106, 4
%108 = icmp ne i32 %107, 0
%109 = zext i1 %108 to i64
%110 = select i1 %108, i32 1, i32 0
%111 = trunc i32 %110 to i8
%112 = load i8*, i8** %6
%113 = load i32, i32* %10
%114 = add nsw i32 %113, 5
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i8, i8* %112, i64 %115
store i8 %111, i8* %116
%117 = load i8*, i8** %5
%118 = load i32, i32* %9
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i8, i8* %117, i64 %119
%121 = load i8, i8* %120
%122 = zext i8 %121 to i32
%123 = and i32 %122, 2
%124 = icmp ne i32 %123, 0
%125 = zext i1 %124 to i64
%126 = select i1 %124, i32 1, i32 0
%127 = trunc i32 %126 to i8
%128 = load i8*, i8** %6
%129 = load i32, i32* %10
%130 = add nsw i32 %129, 6
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds i8, i8* %128, i64 %131
store i8 %127, i8* %132
%133 = load i8*, i8** %5
%134 = load i32, i32* %9
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds i8, i8* %133, i64 %135
%137 = load i8, i8* %136
%138 = zext i8 %137 to i32
%139 = and i32 %138, 1
%140 = icmp ne i32 %139, 0
%141 = zext i1 %140 to i64
%142 = select i1 %140, i32 1, i32 0
%143 = trunc i32 %142 to i8
%144 = load i8*, i8** %6
%145 = load i32, i32* %10
%146 = add nsw i32 %145, 7
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds i8, i8* %144, i64 %147
store i8 %143, i8* %148
br label %149
149: ; preds = %21
%150 = load i32, i32* %9
%151 = add nsw i32 %150, 1
store i32 %151, i32* %9
%152 = load i32, i32* %10
%153 = sub nsw i32 %152, 8
store i32 %153, i32* %10
br label %16
154: ; preds = %16
br label %295
155: ; preds = %4
store i32 0, i32* %9
store i32 0, i32* %10
br label %156
156: ; preds = %289, %155
%157 = load i32, i32* %9
%158 = load i32, i32* %7
%159 = sdiv i32 %158, 8
%160 = icmp slt i32 %157, %159
br i1 %160, label %161, label %294
161: ; preds = %156
%162 = load i8*, i8** %5
%163 = load i32, i32* %9
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds i8, i8* %162, i64 %164
%166 = load i8, i8* %165
%167 = zext i8 %166 to i32
%168 = and i32 %167, 1
%169 = icmp ne i32 %168, 0
%170 = zext i1 %169 to i64
%171 = select i1 %169, i32 1, i32 0
%172 = trunc i32 %171 to i8
%173 = load i8*, i8** %6
%174 = load i32, i32* %10
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds i8, i8* %173, i64 %175
store i8 %172, i8* %176
%177 = load i8*, i8** %5
%178 = load i32, i32* %9
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds i8, i8* %177, i64 %179
%181 = load i8, i8* %180
%182 = zext i8 %181 to i32
%183 = and i32 %182, 2
%184 = icmp ne i32 %183, 0
%185 = zext i1 %184 to i64
%186 = select i1 %184, i32 1, i32 0
%187 = trunc i32 %186 to i8
%188 = load i8*, i8** %6
%189 = load i32, i32* %10
%190 = add nsw i32 %189, 1
%191 = sext i32 %190 to i64
%192 = getelementptr inbounds i8, i8* %188, i64 %191
store i8 %187, i8* %192
%193 = load i8*, i8** %5
%194 = load i32, i32* %9
%195 = sext i32 %194 to i64
%196 = getelementptr inbounds i8, i8* %193, i64 %195
%197 = load i8, i8* %196
%198 = zext i8 %197 to i32
%199 = and i32 %198, 4
%200 = icmp ne i32 %199, 0
%201 = zext i1 %200 to i64
%202 = select i1 %200, i32 1, i32 0
%203 = trunc i32 %202 to i8
%204 = load i8*, i8** %6
%205 = load i32, i32* %10
%206 = add nsw i32 %205, 2
%207 = sext i32 %206 to i64
%208 = getelementptr inbounds i8, i8* %204, i64 %207
store i8 %203, i8* %208
%209 = load i8*, i8** %5
%210 = load i32, i32* %9
%211 = sext i32 %210 to i64
%212 = getelementptr inbounds i8, i8* %209, i64 %211
%213 = load i8, i8* %212
%214 = zext i8 %213 to i32
%215 = and i32 %214, 8
%216 = icmp ne i32 %215, 0
%217 = zext i1 %216 to i64
%218 = select i1 %216, i32 1, i32 0
%219 = trunc i32 %218 to i8
%220 = load i8*, i8** %6
%221 = load i32, i32* %10
%222 = add nsw i32 %221, 3
%223 = sext i32 %222 to i64
%224 = getelementptr inbounds i8, i8* %220, i64 %223
store i8 %219, i8* %224
%225 = load i8*, i8** %5
%226 = load i32, i32* %9
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds i8, i8* %225, i64 %227
%229 = load i8, i8* %228
%230 = zext i8 %229 to i32
%231 = and i32 %230, 16
%232 = icmp ne i32 %231, 0
%233 = zext i1 %232 to i64
%234 = select i1 %232, i32 1, i32 0
%235 = trunc i32 %234 to i8
%236 = load i8*, i8** %6
%237 = load i32, i32* %10
%238 = add nsw i32 %237, 4
%239 = sext i32 %238 to i64
%240 = getelementptr inbounds i8, i8* %236, i64 %239
store i8 %235, i8* %240
%241 = load i8*, i8** %5
%242 = load i32, i32* %9
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds i8, i8* %241, i64 %243
%245 = load i8, i8* %244
%246 = zext i8 %245 to i32
%247 = and i32 %246, 32
%248 = icmp ne i32 %247, 0
%249 = zext i1 %248 to i64
%250 = select i1 %248, i32 1, i32 0
%251 = trunc i32 %250 to i8
%252 = load i8*, i8** %6
%253 = load i32, i32* %10
%254 = add nsw i32 %253, 5
%255 = sext i32 %254 to i64
%256 = getelementptr inbounds i8, i8* %252, i64 %255
store i8 %251, i8* %256
%257 = load i8*, i8** %5
%258 = load i32, i32* %9
%259 = sext i32 %258 to i64
%260 = getelementptr inbounds i8, i8* %257, i64 %259
%261 = load i8, i8* %260
%262 = zext i8 %261 to i32
%263 = and i32 %262, 64
%264 = icmp ne i32 %263, 0
%265 = zext i1 %264 to i64
%266 = select i1 %264, i32 1, i32 0
%267 = trunc i32 %266 to i8
%268 = load i8*, i8** %6
%269 = load i32, i32* %10
%270 = add nsw i32 %269, 6
%271 = sext i32 %270 to i64
%272 = getelementptr inbounds i8, i8* %268, i64 %271
store i8 %267, i8* %272
%273 = load i8*, i8** %5
%274 = load i32, i32* %9
%275 = sext i32 %274 to i64
%276 = getelementptr inbounds i8, i8* %273, i64 %275
%277 = load i8, i8* %276
%278 = zext i8 %277 to i32
%279 = and i32 %278, 128
%280 = icmp ne i32 %279, 0
%281 = zext i1 %280 to i64
%282 = select i1 %280, i32 1, i32 0
%283 = trunc i32 %282 to i8
%284 = load i8*, i8** %6
%285 = load i32, i32* %10
%286 = add nsw i32 %285, 7
%287 = sext i32 %286 to i64
%288 = getelementptr inbounds i8, i8* %284, i64 %287
store i8 %283, i8* %288
br label %289
289: ; preds = %161
%290 = load i32, i32* %9
%291 = add nsw i32 %290, 1
store i32 %291, i32* %9
%292 = load i32, i32* %10
%293 = add nsw i32 %292, 8
store i32 %293, i32* %10
br label %156
294: ; preds = %156
br label %295
295: ; preds = %294, %154
ret void
}

LLVM IR (-O2):
define void @convert_old(i8* nocapture %0, i8* nocapture writeonly %1, i32 %2, i32 %3) {
%5 = icmp eq i32 %3, 0
%6 = icmp sgt i32 %2, 7
br i1 %5, label %77, label %7
7: ; preds = %4
br i1 %6, label %8, label %270
8: ; preds = %7
%9 = lshr i32 %2, 3
%10 = zext i32 %2 to i64
%11 = zext i32 %9 to i64
%12 = icmp ult i32 %2, 128
br i1 %12, label %74, label %13
13: ; preds = %8
%14 = mul nsw i64 %11, -8
%15 = add nsw i64 %14, %10
%16 = getelementptr i8, i8* %1, i64 %15
%17 = getelementptr i8, i8* %1, i64 %10
%18 = getelementptr i8, i8* %0, i64 %11
%19 = icmp ult i8* %16, %18
%20 = icmp ugt i8* %17, %0
%21 = and i1 %19, %20
br i1 %21, label %74, label %22
22: ; preds = %13
%23 = and i64 %11, 536870896
%24 = mul nsw i64 %23, -8
%25 = add nsw i64 %24, %10
%26 = getelementptr inbounds i8, i8* %1, i64 -127
br label %27
27: ; preds = %27, %22
%28 = phi i64 [ 0, %22 ], [ %70, %27 ]
%29 = mul i64 %28, -8
%30 = add i64 %29, %10
%31 = getelementptr inbounds i8, i8* %0, i64 %28
%32 = bitcast i8* %31 to <16 x i8>*
%33 = load <16 x i8>, <16 x i8>* %32
%34 = lshr <16 x i8> %33, <i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7>
%35 = lshr <16 x i8> %33, <i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6>
%36 = and <16 x i8> %35, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%37 = lshr <16 x i8> %33, <i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5>
%38 = and <16 x i8> %37, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%39 = bitcast i8* %31 to <16 x i8>*
%40 = load <16 x i8>, <16 x i8>* %39
%41 = lshr <16 x i8> %40, <i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4>
%42 = and <16 x i8> %41, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%43 = lshr <16 x i8> %40, <i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3>
%44 = and <16 x i8> %43, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%45 = lshr <16 x i8> %40, <i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2>
%46 = and <16 x i8> %45, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%47 = bitcast i8* %31 to <16 x i8>*
%48 = load <16 x i8>, <16 x i8>* %47
%49 = lshr <16 x i8> %48, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%50 = and <16 x i8> %49, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%51 = and <16 x i8> %48, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%52 = add nsw i64 %30, -1
%53 = getelementptr inbounds i8, i8* %26, i64 %52
%54 = bitcast i8* %53 to <128 x i8>*
%55 = shufflevector <16 x i8> %34, <16 x i8> poison, <16 x i32> <i32 15, i32 14, i32 13, i32 12, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
%56 = shufflevector <16 x i8> %36, <16 x i8> poison, <16 x i32> <i32 15, i32 14, i32 13, i32 12, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
%57 = shufflevector <16 x i8> %38, <16 x i8> poison, <16 x i32> <i32 15, i32 14, i32 13, i32 12, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
%58 = shufflevector <16 x i8> %42, <16 x i8> poison, <16 x i32> <i32 15, i32 14, i32 13, i32 12, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
%59 = shufflevector <16 x i8> %44, <16 x i8> poison, <16 x i32> <i32 15, i32 14, i32 13, i32 12, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
%60 = shufflevector <16 x i8> %46, <16 x i8> poison, <16 x i32> <i32 15, i32 14, i32 13, i32 12, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
%61 = shufflevector <16 x i8> %50, <16 x i8> poison, <16 x i32> <i32 15, i32 14, i32 13, i32 12, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
%62 = shufflevector <16 x i8> %51, <16 x i8> poison, <16 x i32> <i32 15, i32 14, i32 13, i32 12, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
%63 = shufflevector <16 x i8> %55, <16 x i8> %56, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31>
%64 = shufflevector <16 x i8> %57, <16 x i8> %58, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31>
%65 = shufflevector <16 x i8> %59, <16 x i8> %60, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31>
%66 = shufflevector <16 x i8> %61, <16 x i8> %62, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31>
%67 = shufflevector <32 x i8> %63, <32 x i8> %64, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31, i32 32, i32 33, i32 34, i32 35, i32 36, i32 37, i32 38, i32 39, i32 40, i32 41, i32 42, i32 43, i32 44, i32 45, i32 46, i32 47, i32 48, i32 49, i32 50, i32 51, i32 52, i32 53, i32 54, i32 55, i32 56, i32 57, i32 58, i32 59, i32 60, i32 61, i32 62, i32 63>
%68 = shufflevector <32 x i8> %65, <32 x i8> %66, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31, i32 32, i32 33, i32 34, i32 35, i32 36, i32 37, i32 38, i32 39, i32 40, i32 41, i32 42, i32 43, i32 44, i32 45, i32 46, i32 47, i32 48, i32 49, i32 50, i32 51, i32 52, i32 53, i32 54, i32 55, i32 56, i32 57, i32 58, i32 59, i32 60, i32 61, i32 62, i32 63>
%69 = shufflevector <64 x i8> %67, <64 x i8> %68, <128 x i32> <i32 0, i32 16, i32 32, i32 48, i32 64, i32 80, i32 96, i32 112, i32 1, i32 17, i32 33, i32 49, i32 65, i32 81, i32 97, i32 113, i32 2, i32 18, i32 34, i32 50, i32 66, i32 82, i32 98, i32 114, i32 3, i32 19, i32 35, i32 51, i32 67, i32 83, i32 99, i32 115, i32 4, i32 20, i32 36, i32 52, i32 68, i32 84, i32 100, i32 116, i32 5, i32 21, i32 37, i32 53, i32 69, i32 85, i32 101, i32 117, i32 6, i32 22, i32 38, i32 54, i32 70, i32 86, i32 102, i32 118, i32 7, i32 23, i32 39, i32 55, i32 71, i32 87, i32 103, i32 119, i32 8, i32 24, i32 40, i32 56, i32 72, i32 88, i32 104, i32 120, i32 9, i32 25, i32 41, i32 57, i32 73, i32 89, i32 105, i32 121, i32 10, i32 26, i32 42, i32 58, i32 74, i32 90, i32 106, i32 122, i32 11, i32 27, i32 43, i32 59, i32 75, i32 91, i32 107, i32 123, i32 12, i32 28, i32 44, i32 60, i32 76, i32 92, i32 108, i32 124, i32 13, i32 29, i32 45, i32 61, i32 77, i32 93, i32 109, i32 125, i32 14, i32 30, i32 46, i32 62, i32 78, i32 94, i32 110, i32 126, i32 15, i32 31, i32 47, i32 63, i32 79, i32 95, i32 111, i32 127>
store <128 x i8> %69, <128 x i8>* %54
%70 = add nuw i64 %28, 16
%71 = icmp eq i64 %70, %23
br i1 %71, label %72, label %27
72: ; preds = %27
%73 = icmp eq i64 %23, %11
br i1 %73, label %270, label %74
74: ; preds = %13, %8, %72
%75 = phi i64 [ 0, %13 ], [ 0, %8 ], [ %23, %72 ]
%76 = phi i64 [ %10, %13 ], [ %10, %8 ], [ %25, %72 ]
br label %182
77: ; preds = %4
br i1 %6, label %78, label %270
78: ; preds = %77
%79 = lshr i32 %2, 3
%80 = zext i32 %79 to i64
%81 = icmp ult i32 %2, 64
br i1 %81, label %179, label %82
82: ; preds = %78
%83 = shl nuw nsw i64 %80, 3
%84 = getelementptr i8, i8* %1, i64 %83
%85 = getelementptr i8, i8* %0, i64 %80
%86 = icmp ugt i8* %85, %1
%87 = icmp ugt i8* %84, %0
%88 = and i1 %86, %87
br i1 %88, label %179, label %89
89: ; preds = %82
%90 = icmp ult i32 %2, 128
br i1 %90, label %136, label %91
91: ; preds = %89
%92 = and i64 %80, 536870896
%93 = getelementptr inbounds i8, i8* %1, i64 -7
br label %94
94: ; preds = %94, %91
%95 = phi i64 [ 0, %91 ], [ %128, %94 ]
%96 = shl i64 %95, 3
%97 = getelementptr inbounds i8, i8* %0, i64 %95
%98 = bitcast i8* %97 to <16 x i8>*
%99 = load <16 x i8>, <16 x i8>* %98
%100 = and <16 x i8> %99, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%101 = lshr <16 x i8> %99, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%102 = and <16 x i8> %101, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%103 = lshr <16 x i8> %99, <i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2>
%104 = and <16 x i8> %103, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%105 = bitcast i8* %97 to <16 x i8>*
%106 = load <16 x i8>, <16 x i8>* %105
%107 = lshr <16 x i8> %106, <i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3>
%108 = and <16 x i8> %107, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%109 = lshr <16 x i8> %106, <i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4>
%110 = and <16 x i8> %109, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%111 = lshr <16 x i8> %106, <i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5>
%112 = and <16 x i8> %111, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%113 = bitcast i8* %97 to <16 x i8>*
%114 = load <16 x i8>, <16 x i8>* %113
%115 = lshr <16 x i8> %114, <i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6>
%116 = and <16 x i8> %115, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%117 = lshr <16 x i8> %114, <i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7>
%118 = or i64 %96, 7
%119 = getelementptr inbounds i8, i8* %93, i64 %118
%120 = bitcast i8* %119 to <128 x i8>*
%121 = shufflevector <16 x i8> %100, <16 x i8> %102, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31>
%122 = shufflevector <16 x i8> %104, <16 x i8> %108, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31>
%123 = shufflevector <16 x i8> %110, <16 x i8> %112, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31>
%124 = shufflevector <16 x i8> %116, <16 x i8> %117, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31>
%125 = shufflevector <32 x i8> %121, <32 x i8> %122, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31, i32 32, i32 33, i32 34, i32 35, i32 36, i32 37, i32 38, i32 39, i32 40, i32 41, i32 42, i32 43, i32 44, i32 45, i32 46, i32 47, i32 48, i32 49, i32 50, i32 51, i32 52, i32 53, i32 54, i32 55, i32 56, i32 57, i32 58, i32 59, i32 60, i32 61, i32 62, i32 63>
%126 = shufflevector <32 x i8> %123, <32 x i8> %124, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31, i32 32, i32 33, i32 34, i32 35, i32 36, i32 37, i32 38, i32 39, i32 40, i32 41, i32 42, i32 43, i32 44, i32 45, i32 46, i32 47, i32 48, i32 49, i32 50, i32 51, i32 52, i32 53, i32 54, i32 55, i32 56, i32 57, i32 58, i32 59, i32 60, i32 61, i32 62, i32 63>
%127 = shufflevector <64 x i8> %125, <64 x i8> %126, <128 x i32> <i32 0, i32 16, i32 32, i32 48, i32 64, i32 80, i32 96, i32 112, i32 1, i32 17, i32 33, i32 49, i32 65, i32 81, i32 97, i32 113, i32 2, i32 18, i32 34, i32 50, i32 66, i32 82, i32 98, i32 114, i32 3, i32 19, i32 35, i32 51, i32 67, i32 83, i32 99, i32 115, i32 4, i32 20, i32 36, i32 52, i32 68, i32 84, i32 100, i32 116, i32 5, i32 21, i32 37, i32 53, i32 69, i32 85, i32 101, i32 117, i32 6, i32 22, i32 38, i32 54, i32 70, i32 86, i32 102, i32 118, i32 7, i32 23, i32 39, i32 55, i32 71, i32 87, i32 103, i32 119, i32 8, i32 24, i32 40, i32 56, i32 72, i32 88, i32 104, i32 120, i32 9, i32 25, i32 41, i32 57, i32 73, i32 89, i32 105, i32 121, i32 10, i32 26, i32 42, i32 58, i32 74, i32 90, i32 106, i32 122, i32 11, i32 27, i32 43, i32 59, i32 75, i32 91, i32 107, i32 123, i32 12, i32 28, i32 44, i32 60, i32 76, i32 92, i32 108, i32 124, i32 13, i32 29, i32 45, i32 61, i32 77, i32 93, i32 109, i32 125, i32 14, i32 30, i32 46, i32 62, i32 78, i32 94, i32 110, i32 126, i32 15, i32 31, i32 47, i32 63, i32 79, i32 95, i32 111, i32 127>
store <128 x i8> %127, <128 x i8>* %120
%128 = add nuw i64 %95, 16
%129 = icmp eq i64 %128, %92
br i1 %129, label %130, label %94
130: ; preds = %94
%131 = icmp eq i64 %92, %80
br i1 %131, label %270, label %132
132: ; preds = %130
%133 = shl nuw nsw i64 %92, 3
%134 = and i64 %80, 8
%135 = icmp eq i64 %134, 0
br i1 %135, label %179, label %136
136: ; preds = %89, %132
%137 = phi i64 [ %92, %132 ], [ 0, %89 ]
%138 = and i64 %80, 536870904
%139 = shl nuw nsw i64 %138, 3
%140 = getelementptr inbounds i8, i8* %1, i64 -7
br label %141
141: ; preds = %141, %136
%142 = phi i64 [ %137, %136 ], [ %175, %141 ]
%143 = shl i64 %142, 3
%144 = getelementptr inbounds i8, i8* %0, i64 %142
%145 = bitcast i8* %144 to <8 x i8>*
%146 = load <8 x i8>, <8 x i8>* %145
%147 = and <8 x i8> %146, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%148 = lshr <8 x i8> %146, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%149 = and <8 x i8> %148, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%150 = lshr <8 x i8> %146, <i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2>
%151 = and <8 x i8> %150, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%152 = bitcast i8* %144 to <8 x i8>*
%153 = load <8 x i8>, <8 x i8>* %152
%154 = lshr <8 x i8> %153, <i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3>
%155 = and <8 x i8> %154, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%156 = lshr <8 x i8> %153, <i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4>
%157 = and <8 x i8> %156, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%158 = lshr <8 x i8> %153, <i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5>
%159 = and <8 x i8> %158, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%160 = bitcast i8* %144 to <8 x i8>*
%161 = load <8 x i8>, <8 x i8>* %160
%162 = lshr <8 x i8> %161, <i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6>
%163 = and <8 x i8> %162, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%164 = lshr <8 x i8> %161, <i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7>
%165 = or i64 %143, 7
%166 = getelementptr inbounds i8, i8* %140, i64 %165
%167 = bitcast i8* %166 to <64 x i8>*
%168 = shufflevector <8 x i8> %147, <8 x i8> %149, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15>
%169 = shufflevector <8 x i8> %151, <8 x i8> %155, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15>
%170 = shufflevector <8 x i8> %157, <8 x i8> %159, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15>
%171 = shufflevector <8 x i8> %163, <8 x i8> %164, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15>
%172 = shufflevector <16 x i8> %168, <16 x i8> %169, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31>
%173 = shufflevector <16 x i8> %170, <16 x i8> %171, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31>
%174 = shufflevector <32 x i8> %172, <32 x i8> %173, <64 x i32> <i32 0, i32 8, i32 16, i32 24, i32 32, i32 40, i32 48, i32 56, i32 1, i32 9, i32 17, i32 25, i32 33, i32 41, i32 49, i32 57, i32 2, i32 10, i32 18, i32 26, i32 34, i32 42, i32 50, i32 58, i32 3, i32 11, i32 19, i32 27, i32 35, i32 43, i32 51, i32 59, i32 4, i32 12, i32 20, i32 28, i32 36, i32 44, i32 52, i32 60, i32 5, i32 13, i32 21, i32 29, i32 37, i32 45, i32 53, i32 61, i32 6, i32 14, i32 22, i32 30, i32 38, i32 46, i32 54, i32 62, i32 7, i32 15, i32 23, i32 31, i32 39, i32 47, i32 55, i32 63>
store <64 x i8> %174, <64 x i8>* %167
%175 = add nuw i64 %142, 8
%176 = icmp eq i64 %175, %138
br i1 %176, label %177, label %141
177: ; preds = %141
%178 = icmp eq i64 %138, %80
br i1 %178, label %270, label %179
179: ; preds = %82, %78, %132, %177
%180 = phi i64 [ 0, %78 ], [ 0, %82 ], [ %92, %132 ], [ %138, %177 ]
%181 = phi i64 [ 0, %78 ], [ 0, %82 ], [ %133, %132 ], [ %139, %177 ]
br label %226
182: ; preds = %74, %182
%183 = phi i64 [ %224, %182 ], [ %75, %74 ]
%184 = phi i64 [ %185, %182 ], [ %76, %74 ]
%185 = add nsw i64 %184, -8
%186 = getelementptr inbounds i8, i8* %0, i64 %183
%187 = load i8, i8* %186
%188 = lshr i8 %187, 7
%189 = getelementptr inbounds i8, i8* %1, i64 %185
store i8 %188, i8* %189
%190 = load i8, i8* %186
%191 = lshr i8 %190, 6
%192 = and i8 %191, 1
%193 = add nsw i64 %184, -7
%194 = getelementptr inbounds i8, i8* %1, i64 %193
store i8 %192, i8* %194
%195 = load i8, i8* %186
%196 = lshr i8 %195, 5
%197 = and i8 %196, 1
%198 = add nsw i64 %184, -6
%199 = getelementptr inbounds i8, i8* %1, i64 %198
store i8 %197, i8* %199
%200 = load i8, i8* %186
%201 = lshr i8 %200, 4
%202 = and i8 %201, 1
%203 = add nsw i64 %184, -5
%204 = getelementptr inbounds i8, i8* %1, i64 %203
store i8 %202, i8* %204
%205 = load i8, i8* %186
%206 = lshr i8 %205, 3
%207 = and i8 %206, 1
%208 = add nsw i64 %184, -4
%209 = getelementptr inbounds i8, i8* %1, i64 %208
store i8 %207, i8* %209
%210 = load i8, i8* %186
%211 = lshr i8 %210, 2
%212 = and i8 %211, 1
%213 = add nsw i64 %184, -3
%214 = getelementptr inbounds i8, i8* %1, i64 %213
store i8 %212, i8* %214
%215 = load i8, i8* %186
%216 = lshr i8 %215, 1
%217 = and i8 %216, 1
%218 = add nsw i64 %184, -2
%219 = getelementptr inbounds i8, i8* %1, i64 %218
store i8 %217, i8* %219
%220 = load i8, i8* %186
%221 = and i8 %220, 1
%222 = add nsw i64 %184, -1
%223 = getelementptr inbounds i8, i8* %1, i64 %222
store i8 %221, i8* %223
%224 = add nuw nsw i64 %183, 1
%225 = icmp eq i64 %224, %11
br i1 %225, label %270, label %182
226: ; preds = %179, %226
%227 = phi i64 [ %267, %226 ], [ %180, %179 ]
%228 = phi i64 [ %268, %226 ], [ %181, %179 ]
%229 = getelementptr inbounds i8, i8* %0, i64 %227
%230 = load i8, i8* %229
%231 = and i8 %230, 1
%232 = getelementptr inbounds i8, i8* %1, i64 %228
store i8 %231, i8* %232
%233 = load i8, i8* %229
%234 = lshr i8 %233, 1
%235 = and i8 %234, 1
%236 = or i64 %228, 1
%237 = getelementptr inbounds i8, i8* %1, i64 %236
store i8 %235, i8* %237
%238 = load i8, i8* %229
%239 = lshr i8 %238, 2
%240 = and i8 %239, 1
%241 = or i64 %228, 2
%242 = getelementptr inbounds i8, i8* %1, i64 %241
store i8 %240, i8* %242
%243 = load i8, i8* %229
%244 = lshr i8 %243, 3
%245 = and i8 %244, 1
%246 = or i64 %228, 3
%247 = getelementptr inbounds i8, i8* %1, i64 %246
store i8 %245, i8* %247
%248 = load i8, i8* %229
%249 = lshr i8 %248, 4
%250 = and i8 %249, 1
%251 = or i64 %228, 4
%252 = getelementptr inbounds i8, i8* %1, i64 %251
store i8 %250, i8* %252
%253 = load i8, i8* %229
%254 = lshr i8 %253, 5
%255 = and i8 %254, 1
%256 = or i64 %228, 5
%257 = getelementptr inbounds i8, i8* %1, i64 %256
store i8 %255, i8* %257
%258 = load i8, i8* %229
%259 = lshr i8 %258, 6
%260 = and i8 %259, 1
%261 = or i64 %228, 6
%262 = getelementptr inbounds i8, i8* %1, i64 %261
store i8 %260, i8* %262
%263 = load i8, i8* %229
%264 = lshr i8 %263, 7
%265 = or i64 %228, 7
%266 = getelementptr inbounds i8, i8* %1, i64 %265
store i8 %264, i8* %266
%267 = add nuw nsw i64 %227, 1
%268 = add nuw nsw i64 %228, 8
%269 = icmp eq i64 %267, %80
br i1 %269, label %270, label %226
270: ; preds = %182, %226, %72, %130, %177, %7, %77
ret void
}