void convert1(unsigned char *rec, unsigned char *data, int numchan,
              int decreasing_f) {
  int ii, jj;
  if (decreasing_f) {
    for (ii = numchan / 8 - 1, jj = 0; ii >= 0; ii--, jj += 8) {
      data[jj] = (rec[ii] >> 7) & 1;
      data[jj + 1] = (rec[ii] >> 6) & 1;
      data[jj + 2] = (rec[ii] >> 5) & 1;
      data[jj + 3] = (rec[ii] >> 4) & 1;
      data[jj + 4] = (rec[ii] >> 3) & 1;
      data[jj + 5] = (rec[ii] >> 2) & 1;
      data[jj + 6] = (rec[ii] >> 1) & 1;
      data[jj + 7] = rec[ii] & 1;
    }
  } else {
    for (ii = 0, jj = 0; ii < numchan / 8; ii++, jj += 8) {
      data[jj] = rec[ii] & 1;
      data[jj + 1] = (rec[ii] >> 1) & 1;
      data[jj + 2] = (rec[ii] >> 2) & 1;
      data[jj + 3] = (rec[ii] >> 3) & 1;
      data[jj + 4] = (rec[ii] >> 4) & 1;
      data[jj + 5] = (rec[ii] >> 5) & 1;
      data[jj + 6] = (rec[ii] >> 6) & 1;
      data[jj + 7] = (rec[ii] >> 7) & 1;
    }
  }
}


x86 assembly (clang, -O0):
<convert1>:
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     1272 <convert1+0x172>
mov    -0x14(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
sub    $0x1,%eax
mov    %eax,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jl     126d <convert1+0x16d>
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
sar    $0x7,%eax
and    $0x1,%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),%eax
sar    $0x6,%eax
and    $0x1,%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),%eax
sar    $0x5,%eax
and    $0x1,%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),%eax
sar    $0x4,%eax
and    $0x1,%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),%eax
sar    $0x3,%eax
and    $0x1,%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),%eax
sar    $0x2,%eax
and    $0x1,%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),%eax
sar    $0x1,%eax
and    $0x1,%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),%eax
and    $0x1,%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    $0xffffffff,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x20(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x20(%rbp)
jmp    1134 <convert1+0x34>
jmp    13d2 <convert1+0x2d2>
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-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    13cd <convert1+0x2cd>
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
and    $0x1,%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),%eax
sar    $0x1,%eax
and    $0x1,%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),%eax
sar    $0x2,%eax
and    $0x1,%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),%eax
sar    $0x3,%eax
and    $0x1,%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),%eax
sar    $0x4,%eax
and    $0x1,%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),%eax
sar    $0x5,%eax
and    $0x1,%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),%eax
sar    $0x6,%eax
and    $0x1,%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),%eax
sar    $0x7,%eax
and    $0x1,%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    1280 <convert1+0x180>
jmp    13d2 <convert1+0x2d2>
pop    %rbp
ret

x86 assembly (clang, -O2):
<convert1>:
push   %rbx
test   %ecx,%ecx
je     11b6 <convert1+0xb6>
cmp    $0x8,%edx
jl     1271 <convert1+0x171>
mov    %edx,%r8d
shr    $0x3,%r8d
cmp    $0x80,%edx
jae    1273 <convert1+0x173>
xor    %r9d,%r9d
mov    %r8,%rax
lea    (%r9,%rsi,1),%rcx
add    $0x7,%rcx
add    $0x1,%rax
nopw   0x0(%rax,%rax,1)
lea    -0x2(%rax),%edx
movzbl (%rdi,%rdx,1),%ebx
shr    $0x7,%bl
mov    %bl,-0x7(%rcx)
movzbl (%rdi,%rdx,1),%ebx
shr    $0x6,%bl
and    $0x1,%bl
mov    %bl,-0x6(%rcx)
movzbl (%rdi,%rdx,1),%ebx
shr    $0x5,%bl
and    $0x1,%bl
mov    %bl,-0x5(%rcx)
movzbl (%rdi,%rdx,1),%ebx
shr    $0x4,%bl
and    $0x1,%bl
mov    %bl,-0x4(%rcx)
movzbl (%rdi,%rdx,1),%ebx
shr    $0x3,%bl
and    $0x1,%bl
mov    %bl,-0x3(%rcx)
movzbl (%rdi,%rdx,1),%ebx
shr    $0x2,%bl
and    $0x1,%bl
mov    %bl,-0x2(%rcx)
movzbl (%rdi,%rdx,1),%ebx
shr    %bl
and    $0x1,%bl
mov    %bl,-0x1(%rcx)
movzbl (%rdi,%rdx,1),%edx
and    $0x1,%dl
mov    %dl,(%rcx)
add    $0x8,%rcx
add    $0xffffffffffffffff,%rax
cmp    $0x1,%rax
ja     1140 <convert1+0x40>
jmp    1271 <convert1+0x171>
cmp    $0x8,%edx
jl     1271 <convert1+0x171>
mov    %edx,%eax
shr    $0x3,%eax
cmp    $0x40,%edx
jb     11e3 <convert1+0xe3>
lea    (%rdi,%rax,1),%rcx
cmp    %rsi,%rcx
jbe    1899 <convert1+0x799>
lea    (%rsi,%rax,8),%rcx
cmp    %rdi,%rcx
jbe    1899 <convert1+0x799>
xor    %r8d,%r8d
xor    %edx,%edx
add    %r8,%rdi
sub    %r8,%rax
lea    (%rdx,%rsi,1),%rcx
add    $0x7,%rcx
xor    %edx,%edx
nopl   0x0(%rax,%rax,1)
movzbl (%rdi,%rdx,1),%ebx
and    $0x1,%bl
mov    %bl,-0x7(%rcx,%rdx,8)
movzbl (%rdi,%rdx,1),%ebx
shr    %bl
and    $0x1,%bl
mov    %bl,-0x6(%rcx,%rdx,8)
movzbl (%rdi,%rdx,1),%ebx
shr    $0x2,%bl
and    $0x1,%bl
mov    %bl,-0x5(%rcx,%rdx,8)
movzbl (%rdi,%rdx,1),%ebx
shr    $0x3,%bl
and    $0x1,%bl
mov    %bl,-0x4(%rcx,%rdx,8)
movzbl (%rdi,%rdx,1),%ebx
shr    $0x4,%bl
and    $0x1,%bl
mov    %bl,-0x3(%rcx,%rdx,8)
movzbl (%rdi,%rdx,1),%ebx
shr    $0x5,%bl
and    $0x1,%bl
mov    %bl,-0x2(%rcx,%rdx,8)
movzbl (%rdi,%rdx,1),%ebx
shr    $0x6,%bl
and    $0x1,%bl
mov    %bl,-0x1(%rcx,%rdx,8)
movzbl (%rdi,%rdx,1),%ebx
shr    $0x7,%bl
mov    %bl,(%rcx,%rdx,8)
add    $0x1,%rdx
cmp    %rdx,%rax
jne    1200 <convert1+0x100>
pop    %rbx
ret
lea    -0x1(%r8),%rbx
lea    -0x1(%r8),%eax
xor    %r9d,%r9d
cmp    %ebx,%eax
jb     1128 <convert1+0x28>
mov    %rbx,%rax
shr    $0x20,%rax
jne    1128 <convert1+0x28>
lea    0x0(,%r8,8),%r10
lea    0x8(,%r8,8),%r9
xor    %eax,%eax
cmp    $0x8,%edx
cmovae %r10,%r9
setae  %r10b
lea    -0x1(%r8),%r11d
lea    (%r11,%rdi,1),%rdx
add    $0x1,%rdx
cmp    %rsi,%rdx
jbe    12d9 <convert1+0x1d9>
mov    %r10b,%al
add    %rsi,%r9
add    %r11,%rax
sub    %r8,%rax
add    %rdi,%rax
cmp    %r9,%rax
jb     1125 <convert1+0x25>
mov    %r8d,%r10d
and    $0xfffffff0,%r10d
lea    0x0(,%r10,8),%r9
mov    %r8d,%eax
and    $0xf,%eax
xor    %edx,%edx
movdqa 0xd17(%rip),%xmm9
movdqa 0xd1e(%rip),%xmm8
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %ebx,%ecx
movdqu -0xf(%rdi,%rcx,1),%xmm1
movdqa %xmm1,%xmm0
psrlw  $0x7,%xmm0
movdqa 0xcd7(%rip),%xmm4
pand   %xmm4,%xmm0
movdqa %xmm0,%xmm2
pxor   %xmm5,%xmm5
punpcklbw %xmm5,%xmm2
pshufd $0x4e,%xmm2,%xmm2
pshuflw $0x1b,%xmm2,%xmm2
pshufhw $0x1b,%xmm2,%xmm2
punpckhbw %xmm5,%xmm0
pshufd $0x4e,%xmm0,%xmm0
pshuflw $0x1b,%xmm0,%xmm0
pshufhw $0x1b,%xmm0,%xmm15
packuswb %xmm2,%xmm15
movdqa %xmm1,%xmm0
psrlw  $0x6,%xmm0
pand   %xmm4,%xmm0
movdqa %xmm0,%xmm2
punpcklbw %xmm5,%xmm2
pshufd $0x4e,%xmm2,%xmm2
pshuflw $0x1b,%xmm2,%xmm2
pshufhw $0x1b,%xmm2,%xmm2
punpckhbw %xmm5,%xmm0
pshufd $0x4e,%xmm0,%xmm0
pshuflw $0x1b,%xmm0,%xmm0
pshufhw $0x1b,%xmm0,%xmm0
packuswb %xmm2,%xmm0
movdqa %xmm0,%xmm10
movdqa %xmm0,-0x30(%rsp)
movdqa %xmm1,%xmm0
psrlw  $0x5,%xmm0
pand   %xmm4,%xmm0
movdqa %xmm0,%xmm2
punpcklbw %xmm5,%xmm2
pshufd $0x4e,%xmm2,%xmm2
pshuflw $0x1b,%xmm2,%xmm2
pshufhw $0x1b,%xmm2,%xmm2
punpckhbw %xmm5,%xmm0
pshufd $0x4e,%xmm0,%xmm0
pshuflw $0x1b,%xmm0,%xmm0
pshufhw $0x1b,%xmm0,%xmm12
packuswb %xmm2,%xmm12
movdqa %xmm1,%xmm0
psrlw  $0x4,%xmm0
pand   %xmm4,%xmm0
movdqa %xmm0,%xmm2
punpcklbw %xmm5,%xmm2
pshufd $0x4e,%xmm2,%xmm2
pshuflw $0x1b,%xmm2,%xmm2
pshufhw $0x1b,%xmm2,%xmm2
punpckhbw %xmm5,%xmm0
pshufd $0x4e,%xmm0,%xmm0
pshuflw $0x1b,%xmm0,%xmm0
pshufhw $0x1b,%xmm0,%xmm0
packuswb %xmm2,%xmm0
movdqa %xmm0,%xmm7
movdqa %xmm0,-0x40(%rsp)
movdqa %xmm1,%xmm0
psrlw  $0x3,%xmm0
pand   %xmm4,%xmm0
movdqa %xmm0,%xmm2
punpcklbw %xmm5,%xmm2
pshufd $0x4e,%xmm2,%xmm2
pshuflw $0x1b,%xmm2,%xmm2
pshufhw $0x1b,%xmm2,%xmm2
punpckhbw %xmm5,%xmm0
pshufd $0x4e,%xmm0,%xmm0
pshuflw $0x1b,%xmm0,%xmm0
pshufhw $0x1b,%xmm0,%xmm11
packuswb %xmm2,%xmm11
movdqa %xmm1,%xmm0
psrlw  $0x2,%xmm0
pand   %xmm4,%xmm0
movdqa %xmm0,%xmm2
punpcklbw %xmm5,%xmm2
pshufd $0x4e,%xmm2,%xmm2
pshuflw $0x1b,%xmm2,%xmm2
pshufhw $0x1b,%xmm2,%xmm3
punpckhbw %xmm5,%xmm0
pshufd $0x4e,%xmm0,%xmm0
pshuflw $0x1b,%xmm0,%xmm0
pshufhw $0x1b,%xmm0,%xmm0
packuswb %xmm3,%xmm0
movdqa %xmm0,%xmm2
movdqa %xmm0,-0x50(%rsp)
movdqa %xmm1,%xmm0
psrlw  $0x1,%xmm0
pand   %xmm4,%xmm0
movdqa %xmm0,%xmm3
punpcklbw %xmm5,%xmm3
pshufd $0x4e,%xmm3,%xmm3
pshuflw $0x1b,%xmm3,%xmm3
pshufhw $0x1b,%xmm3,%xmm3
punpckhbw %xmm5,%xmm0
pshufd $0x4e,%xmm0,%xmm0
pshuflw $0x1b,%xmm0,%xmm0
pshufhw $0x1b,%xmm0,%xmm0
packuswb %xmm3,%xmm0
pand   %xmm4,%xmm1
movdqa %xmm1,%xmm3
punpcklbw %xmm5,%xmm3
pshufd $0x4e,%xmm3,%xmm3
pshuflw $0x1b,%xmm3,%xmm3
pshufhw $0x1b,%xmm3,%xmm3
punpckhbw %xmm5,%xmm1
pshufd $0x4e,%xmm1,%xmm1
pshuflw $0x1b,%xmm1,%xmm1
pshufhw $0x1b,%xmm1,%xmm13
packuswb %xmm3,%xmm13
movdqa %xmm0,%xmm1
punpcklbw %xmm13,%xmm1
pshuflw $0x60,%xmm1,%xmm3
pshufd $0x60,%xmm3,%xmm3
movdqa %xmm9,%xmm4
pandn  %xmm3,%xmm4
movdqa %xmm11,%xmm6
punpcklbw %xmm2,%xmm6
pshuflw $0xd4,%xmm6,%xmm3
pshufd $0x60,%xmm3,%xmm3
pand   %xmm9,%xmm3
por    %xmm4,%xmm3
pshufd $0xed,%xmm3,%xmm14
movdqa %xmm12,%xmm5
punpcklbw %xmm7,%xmm5
pshuflw $0x60,%xmm5,%xmm4
pshufd $0xd4,%xmm4,%xmm4
movdqa %xmm8,%xmm3
pandn  %xmm4,%xmm3
movdqa %xmm15,%xmm4
punpcklbw %xmm10,%xmm4
pshufd $0x0,%xmm4,%xmm10
pshufhw $0x55,%xmm10,%xmm2
pand   %xmm8,%xmm2
por    %xmm3,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm14,%xmm2
movdqa %xmm2,-0x20(%rsp)
pshuflw $0xe8,%xmm1,%xmm2
pshufd $0x60,%xmm2,%xmm2
movdqa %xmm9,%xmm3
pandn  %xmm2,%xmm3
pshuflw $0xf6,%xmm6,%xmm2
pshufd $0x60,%xmm2,%xmm2
pand   %xmm9,%xmm2
por    %xmm3,%xmm2
pshufd $0xed,%xmm2,%xmm10
pshuflw $0xe8,%xmm5,%xmm3
pshufd $0xd4,%xmm3,%xmm3
movdqa %xmm8,%xmm2
pandn  %xmm3,%xmm2
pshufd $0x55,%xmm4,%xmm3
pshufhw $0x55,%xmm3,%xmm3
pand   %xmm8,%xmm3
por    %xmm2,%xmm3
pshufd $0xe8,%xmm3,%xmm14
punpckldq %xmm10,%xmm14
pshufhw $0x60,%xmm1,%xmm2
pshufd $0xe8,%xmm2,%xmm2
movdqa %xmm9,%xmm3
pandn  %xmm2,%xmm3
pshufhw $0xd4,%xmm6,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pand   %xmm9,%xmm2
por    %xmm3,%xmm2
pshufhw $0x60,%xmm5,%xmm3
pshufd $0xf6,%xmm3,%xmm10
movdqa %xmm8,%xmm3
pandn  %xmm10,%xmm3
pshufd $0xaa,%xmm4,%xmm7
pshufhw $0x55,%xmm7,%xmm7
pand   %xmm8,%xmm7
por    %xmm3,%xmm7
pshufd $0xed,%xmm2,%xmm2
pshufd $0xe8,%xmm7,%xmm3
punpckldq %xmm2,%xmm3
pshufhw $0xe8,%xmm1,%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,%xmm5
pandn  %xmm2,%xmm5
pshufd $0xff,%xmm4,%xmm2
pshufhw $0x55,%xmm2,%xmm2
pand   %xmm8,%xmm2
por    %xmm5,%xmm2
pshufd $0xed,%xmm1,%xmm4
pshufd $0xe8,%xmm2,%xmm1
punpckldq %xmm4,%xmm1
punpckhbw %xmm13,%xmm0
pshuflw $0x60,%xmm0,%xmm2
pshufd $0x60,%xmm2,%xmm2
movdqa %xmm9,%xmm4
pandn  %xmm2,%xmm4
punpckhbw -0x50(%rsp),%xmm11
pshuflw $0xd4,%xmm11,%xmm2
pshufd $0x60,%xmm2,%xmm2
pand   %xmm9,%xmm2
por    %xmm4,%xmm2
pshufd $0xed,%xmm2,%xmm4
punpckhbw -0x40(%rsp),%xmm12
pshuflw $0x60,%xmm12,%xmm2
pshufd $0xd4,%xmm2,%xmm2
movdqa %xmm8,%xmm5
pandn  %xmm2,%xmm5
punpckhbw -0x30(%rsp),%xmm15
pshufd $0x0,%xmm15,%xmm2
pshufhw $0x55,%xmm2,%xmm2
pand   %xmm8,%xmm2
por    %xmm5,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm4,%xmm2
pshuflw $0xe8,%xmm0,%xmm4
pshufd $0x60,%xmm4,%xmm4
movdqa %xmm9,%xmm5
pandn  %xmm4,%xmm5
pshuflw $0xf6,%xmm11,%xmm4
pshufd $0x60,%xmm4,%xmm4
pand   %xmm9,%xmm4
por    %xmm5,%xmm4
pshufd $0xed,%xmm4,%xmm5
pshuflw $0xe8,%xmm12,%xmm4
pshufd $0xd4,%xmm4,%xmm4
movdqa %xmm8,%xmm6
pandn  %xmm4,%xmm6
pshufd $0x55,%xmm15,%xmm4
pshufhw $0x55,%xmm4,%xmm4
pand   %xmm8,%xmm4
por    %xmm6,%xmm4
pshufd $0xe8,%xmm4,%xmm4
punpckldq %xmm5,%xmm4
pshufhw $0x60,%xmm0,%xmm5
pshufd $0xe8,%xmm5,%xmm5
movdqa %xmm9,%xmm6
pandn  %xmm5,%xmm6
pshufhw $0xd4,%xmm11,%xmm5
pshufd $0xe8,%xmm5,%xmm5
pand   %xmm9,%xmm5
por    %xmm6,%xmm5
pshufhw $0x60,%xmm12,%xmm6
pshufd $0xf6,%xmm6,%xmm6
movdqa %xmm8,%xmm7
pandn  %xmm6,%xmm7
pshufd $0xaa,%xmm15,%xmm6
pshufhw $0x55,%xmm6,%xmm6
pand   %xmm8,%xmm6
por    %xmm7,%xmm6
pshufd $0xed,%xmm5,%xmm5
pshufd $0xe8,%xmm6,%xmm6
punpckldq %xmm5,%xmm6
pshufhw $0xe8,%xmm0,%xmm0
pshufd $0xe8,%xmm0,%xmm0
movdqa %xmm9,%xmm5
pandn  %xmm0,%xmm5
pshufhw $0xf6,%xmm11,%xmm0
pshufd $0xe8,%xmm0,%xmm0
pand   %xmm9,%xmm0
por    %xmm5,%xmm0
pshufhw $0xe8,%xmm12,%xmm5
pshufd $0xf6,%xmm5,%xmm5
movdqa %xmm8,%xmm7
pandn  %xmm5,%xmm7
pshufd $0xff,%xmm15,%xmm5
pshufhw $0x55,%xmm5,%xmm5
pand   %xmm8,%xmm5
por    %xmm7,%xmm5
pshufd $0xed,%xmm0,%xmm0
pshufd $0xe8,%xmm5,%xmm5
punpckldq %xmm0,%xmm5
movdqu %xmm5,0x70(%rsi,%rdx,1)
movdqu %xmm6,0x60(%rsi,%rdx,1)
movdqu %xmm4,0x50(%rsi,%rdx,1)
movdqu %xmm2,0x40(%rsi,%rdx,1)
movdqu %xmm1,0x30(%rsi,%rdx,1)
movdqu %xmm3,0x20(%rsi,%rdx,1)
movdqu %xmm14,0x10(%rsi,%rdx,1)
movdqa -0x20(%rsp),%xmm0
movdqu %xmm0,(%rsi,%rdx,1)
add    $0xfffffffffffffff0,%rbx
sub    $0xffffffffffffff80,%rdx
cmp    %rdx,%r9
jne    1310 <convert1+0x210>
cmp    %r8,%r10
jne    112b <convert1+0x2b>
jmp    1271 <convert1+0x171>
cmp    $0x80,%edx
jae    1b09 <convert1+0xa09>
xor    %r8d,%r8d
mov    %r8,%rcx
mov    %eax,%r8d
and    $0xfffffff8,%r8d
lea    0x0(,%r8,8),%rdx
movdqa 0x76d(%rip),%xmm8
movdqa 0x764(%rip),%xmm10
movdqa 0x72b(%rip),%xmm9
movdqa 0x732(%rip),%xmm11
movdqa 0x739(%rip),%xmm12
nopw   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    18f0 <convert1+0x7f0>
cmp    %rax,%r8
jne    11e8 <convert1+0xe8>
jmp    1271 <convert1+0x171>
mov    %eax,%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 0x4cf(%rip),%xmm0
pand   %xmm0,%xmm1
movdqa %xmm1,%xmm11
movdqa %xmm1,-0x40(%rsp)
movdqa %xmm7,%xmm1
psrlw  $0x1,%xmm1
pand   %xmm0,%xmm1
movdqa %xmm1,%xmm5
movdqa %xmm1,-0x50(%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 0x446(%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 0x410(%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,-0x20(%rsp)
pshuflw $0xe8,%xmm14,%xmm0
pshufd $0x60,%xmm0,%xmm10
movdqa 0x3b4(%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 0x38b(%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,-0x30(%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,-0x10(%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 -0x40(%rsp),%xmm6
punpckhbw -0x50(%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 -0x10(%rsp),%xmm0
movups %xmm0,0x20(%rsi,%rdx,8)
movaps -0x30(%rsp),%xmm0
movups %xmm0,0x10(%rsi,%rdx,8)
movdqa -0x20(%rsp),%xmm0
movdqu %xmm0,(%rsi,%rdx,8)
add    $0x10,%rdx
cmp    %rdx,%r8
jne    1b20 <convert1+0xa20>
cmp    %rax,%r8
je     1271 <convert1+0x171>
test   $0x8,%al
jne    18a8 <convert1+0x7a8>
lea    0x0(,%r8,8),%rdx
jmp    11e8 <convert1+0xe8>

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

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