void convert2(unsigned char *rec, unsigned char *data, int numchan,
              int decreasing_f) {
  register unsigned char one = 1;
  register unsigned char two = 2;
  register unsigned char thr = 3;
  register unsigned char fou = 4;
  register unsigned char fiv = 5;
  register unsigned char six = 6;
  register unsigned char sev = 7;
  int ii, jj;
  if (decreasing_f) {
    for (ii = numchan / 8 - 1, jj = 0; ii >= 0; ii--, jj += 8) {
      data[jj] = (rec[ii] >> sev) & one;
      data[jj + 1] = (rec[ii] >> six) & one;
      data[jj + 2] = (rec[ii] >> fiv) & one;
      data[jj + 3] = (rec[ii] >> fou) & one;
      data[jj + 4] = (rec[ii] >> thr) & one;
      data[jj + 5] = (rec[ii] >> two) & one;
      data[jj + 6] = (rec[ii] >> one) & one;
      data[jj + 7] = rec[ii] & one;
    }
  } else {
    for (ii = 0, jj = 0; ii < numchan / 8; ii++, jj += 8) {
      data[jj] = rec[ii] & one;
      data[jj + 1] = (rec[ii] >> 1) & one;
      data[jj + 2] = (rec[ii] >> 2) & one;
      data[jj + 3] = (rec[ii] >> 3) & one;
      data[jj + 4] = (rec[ii] >> 4) & one;
      data[jj + 5] = (rec[ii] >> 5) & one;
      data[jj + 6] = (rec[ii] >> 6) & one;
      data[jj + 7] = (rec[ii] >> 7) & one;
    }
  }
}


x86 assembly (clang, -O0):
<convert2>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
movb   $0x1,-0x19(%rbp)
movb   $0x2,-0x1a(%rbp)
movb   $0x3,-0x1b(%rbp)
movb   $0x4,-0x1c(%rbp)
movb   $0x5,-0x1d(%rbp)
movb   $0x6,-0x1e(%rbp)
movb   $0x7,-0x1f(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     12bb <convert2+0x1bb>
mov    -0x14(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
sub    $0x1,%eax
mov    %eax,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
cmpl   $0x0,-0x24(%rbp)
jl     12b6 <convert2+0x1b6>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
movzbl -0x1f(%rbp),%ecx
sar    %cl,%eax
movzbl -0x19(%rbp),%ecx
and    %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
movzbl -0x1e(%rbp),%ecx
sar    %cl,%eax
movzbl -0x19(%rbp),%ecx
and    %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
movzbl -0x1d(%rbp),%ecx
sar    %cl,%eax
movzbl -0x19(%rbp),%ecx
and    %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
movzbl -0x1c(%rbp),%ecx
sar    %cl,%eax
movzbl -0x19(%rbp),%ecx
and    %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
movzbl -0x1b(%rbp),%ecx
sar    %cl,%eax
movzbl -0x19(%rbp),%ecx
and    %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x4,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
movzbl -0x1a(%rbp),%ecx
sar    %cl,%eax
movzbl -0x19(%rbp),%ecx
and    %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x5,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
movzbl -0x19(%rbp),%ecx
sar    %cl,%eax
movzbl -0x19(%rbp),%ecx
and    %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x6,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
movzbl -0x19(%rbp),%ecx
and    %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x7,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
mov    -0x28(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x28(%rbp)
jmp    1150 <convert2+0x50>
jmp    1433 <convert2+0x333>
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x14(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x2c(%rbp),%eax
cmp    %ecx,%eax
jge    142e <convert2+0x32e>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
movzbl -0x19(%rbp),%ecx
and    %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
sar    $0x1,%eax
movzbl -0x19(%rbp),%ecx
and    %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
sar    $0x2,%eax
movzbl -0x19(%rbp),%ecx
and    %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
sar    $0x3,%eax
movzbl -0x19(%rbp),%ecx
and    %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
sar    $0x4,%eax
movzbl -0x19(%rbp),%ecx
and    %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x4,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
sar    $0x5,%eax
movzbl -0x19(%rbp),%ecx
and    %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x5,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
sar    $0x6,%eax
movzbl -0x19(%rbp),%ecx
and    %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x6,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
sar    $0x7,%eax
movzbl -0x19(%rbp),%ecx
and    %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x7,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x28(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x28(%rbp)
jmp    12c9 <convert2+0x1c9>
jmp    1433 <convert2+0x333>
pop    %rbp
ret

x86 assembly (clang, -O2):
<convert2>:
push   %rbx
test   %ecx,%ecx
je     11b6 <convert2+0xb6>
cmp    $0x8,%edx
jl     1271 <convert2+0x171>
mov    %edx,%r8d
shr    $0x3,%r8d
cmp    $0x80,%edx
jae    1273 <convert2+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 <convert2+0x40>
jmp    1271 <convert2+0x171>
cmp    $0x8,%edx
jl     1271 <convert2+0x171>
mov    %edx,%eax
shr    $0x3,%eax
cmp    $0x40,%edx
jb     11e3 <convert2+0xe3>
lea    (%rdi,%rax,1),%rcx
cmp    %rsi,%rcx
jbe    1899 <convert2+0x799>
lea    (%rsi,%rax,8),%rcx
cmp    %rdi,%rcx
jbe    1899 <convert2+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 <convert2+0x100>
pop    %rbx
ret
lea    -0x1(%r8),%rbx
lea    -0x1(%r8),%eax
xor    %r9d,%r9d
cmp    %ebx,%eax
jb     1128 <convert2+0x28>
mov    %rbx,%rax
shr    $0x20,%rax
jne    1128 <convert2+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 <convert2+0x1d9>
mov    %r10b,%al
add    %rsi,%r9
add    %r11,%rax
sub    %r8,%rax
add    %rdi,%rax
cmp    %r9,%rax
jb     1125 <convert2+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 <convert2+0x210>
cmp    %r8,%r10
jne    112b <convert2+0x2b>
jmp    1271 <convert2+0x171>
cmp    $0x80,%edx
jae    1b09 <convert2+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 <convert2+0x7f0>
cmp    %rax,%r8
jne    11e8 <convert2+0xe8>
jmp    1271 <convert2+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 <convert2+0xa20>
cmp    %rax,%r8
je     1271 <convert2+0x171>
test   $0x8,%al
jne    18a8 <convert2+0x7a8>
lea    0x0(,%r8,8),%rdx
jmp    11e8 <convert2+0xe8>

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

LLVM IR (-O2):
define void @convert2(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
}