#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
scalar_t__ malloc(int);
char *bits_to_bytes(int len, char *in) {
  int i;
  unsigned char c;
  char *out = (char *)malloc(len * 8 * sizeof(char));
  for (i = 0; i < len; i++) {
    for (c = 0; c < 8; c++) {
      out[i * 8 + c] = (in[i] >> c) & 1;
    }
  }
}


x86 assembly (clang, -O0):
<bits_to_bytes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0xc(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0xc(%rbp),%eax
shl    $0x3,%eax
cltq
shl    $0x0,%rax
mov    %eax,%edi
call   1030 <malloc@plt>
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11a7 <bits_to_bytes+0x97>
movb   $0x0,-0x1d(%rbp)
movzbl -0x1d(%rbp),%eax
cmp    $0x8,%eax
jge    1194 <bits_to_bytes+0x84>
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
movzbl -0x1d(%rbp),%ecx
sar    %cl,%eax
and    $0x1,%eax
mov    %al,%dl
mov    -0x28(%rbp),%rax
mov    -0x1c(%rbp),%ecx
shl    $0x3,%ecx
movzbl -0x1d(%rbp),%esi
add    %esi,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x1d(%rbp),%al
add    $0x1,%al
mov    %al,-0x1d(%rbp)
jmp    114d <bits_to_bytes+0x3d>
jmp    1199 <bits_to_bytes+0x89>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    113d <bits_to_bytes+0x2d>
mov    -0x8(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bits_to_bytes>:
push   %r14
push   %rbx
sub    $0x58,%rsp
mov    %rsi,%rbx
mov    %edi,%r14d
lea    0x0(,%r14,8),%edi
call   1030 <malloc@plt>
test   %r14d,%r14d
jle    1871 <bits_to_bytes+0x761>
mov    %r14d,%edi
cmp    $0x8,%r14d
jae    1143 <bits_to_bytes+0x33>
xor    %edx,%edx
jmp    1800 <bits_to_bytes+0x6f0>
lea    (%rbx,%rdi,1),%rdx
cmp    %rax,%rdx
jbe    115c <bits_to_bytes+0x4c>
lea    (%rax,%rdi,8),%rdx
cmp    %rbx,%rdx
jbe    115c <bits_to_bytes+0x4c>
xor    %edx,%edx
jmp    1800 <bits_to_bytes+0x6f0>
cmp    $0x10,%r14d
jae    1169 <bits_to_bytes+0x59>
xor    %edx,%edx
jmp    15b5 <bits_to_bytes+0x4a5>
mov    %edi,%edx
and    $0xfffffff0,%edx
xor    %esi,%esi
movdqu (%rbx,%rsi,1),%xmm7
movdqa %xmm7,%xmm1
movdqa 0xe7f(%rip),%xmm0
pand   %xmm0,%xmm1
movdqa %xmm1,%xmm11
movdqa %xmm1,0x20(%rsp)
movdqa %xmm7,%xmm1
psrlw  $0x1,%xmm1
pand   %xmm0,%xmm1
movdqa %xmm1,%xmm5
movdqa %xmm1,0x10(%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 0xdf6(%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 0xdc0(%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,0x40(%rsp)
pshuflw $0xe8,%xmm14,%xmm0
pshufd $0x60,%xmm0,%xmm10
movdqa 0xd64(%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 0xd3b(%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,(%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 0x20(%rsp),%xmm6
punpckhbw 0x10(%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(%rax,%rsi,8)
movdqu %xmm4,0x60(%rax,%rsi,8)
movdqu %xmm2,0x50(%rax,%rsi,8)
movdqu %xmm0,0x40(%rax,%rsi,8)
movdqu %xmm14,0x30(%rax,%rsi,8)
movaps (%rsp),%xmm0
movups %xmm0,0x20(%rax,%rsi,8)
movaps 0x30(%rsp),%xmm0
movups %xmm0,0x10(%rax,%rsi,8)
movdqa 0x40(%rsp),%xmm0
movdqu %xmm0,(%rax,%rsi,8)
add    $0x10,%rsi
cmp    %rsi,%rdx
jne    1170 <bits_to_bytes+0x60>
cmp    %rdi,%rdx
je     1871 <bits_to_bytes+0x761>
test   $0x8,%dil
je     1800 <bits_to_bytes+0x6f0>
mov    %rdx,%rsi
mov    %edi,%edx
and    $0xfffffff8,%edx
movdqa 0xa6a(%rip),%xmm8
movdqa 0xa61(%rip),%xmm10
movdqa 0xa28(%rip),%xmm9
movdqa 0xa2f(%rip),%xmm11
movdqa 0xa36(%rip),%xmm12
nopw   0x0(%rax,%rax,1)
movq   (%rbx,%rsi,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(%rax,%rsi,8)
movdqu %xmm2,0x20(%rax,%rsi,8)
movdqu %xmm1,0x10(%rax,%rsi,8)
movdqu %xmm13,(%rax,%rsi,8)
add    $0x8,%rsi
cmp    %rsi,%rdx
jne    15f0 <bits_to_bytes+0x4e0>
cmp    %rdi,%rdx
je     1871 <bits_to_bytes+0x761>
movzbl (%rbx,%rdx,1),%ecx
and    $0x1,%cl
mov    %cl,(%rax,%rdx,8)
movzbl (%rbx,%rdx,1),%ecx
shr    %cl
and    $0x1,%cl
mov    %cl,0x1(%rax,%rdx,8)
movzbl (%rbx,%rdx,1),%ecx
shr    $0x2,%cl
and    $0x1,%cl
mov    %cl,0x2(%rax,%rdx,8)
movzbl (%rbx,%rdx,1),%ecx
shr    $0x3,%cl
and    $0x1,%cl
mov    %cl,0x3(%rax,%rdx,8)
movzbl (%rbx,%rdx,1),%ecx
shr    $0x4,%cl
and    $0x1,%cl
mov    %cl,0x4(%rax,%rdx,8)
movzbl (%rbx,%rdx,1),%ecx
shr    $0x5,%cl
and    $0x1,%cl
mov    %cl,0x5(%rax,%rdx,8)
movzbl (%rbx,%rdx,1),%ecx
shr    $0x6,%cl
and    $0x1,%cl
mov    %cl,0x6(%rax,%rdx,8)
movzbl (%rbx,%rdx,1),%ecx
shr    $0x7,%cl
mov    %cl,0x7(%rax,%rdx,8)
add    $0x1,%rdx
cmp    %rdx,%rdi
jne    1800 <bits_to_bytes+0x6f0>
add    $0x58,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i8* @bits_to_bytes(i32 %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i8
%8 = alloca i8*
store i32 %0, i32* %4
store i8* %1, i8** %5
%9 = load i32, i32* %4
%10 = mul nsw i32 %9, 8
%11 = sext i32 %10 to i64
%12 = mul i64 %11, 1
%13 = trunc i64 %12 to i32
%14 = call i64 @malloc(i32 %13)
%15 = inttoptr i64 %14 to i8*
store i8* %15, i8** %8
store i32 0, i32* %6
br label %16
16: ; preds = %49, %2
%17 = load i32, i32* %6
%18 = load i32, i32* %4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %52
20: ; preds = %16
store i8 0, i8* %7
br label %21
21: ; preds = %45, %20
%22 = load i8, i8* %7
%23 = zext i8 %22 to i32
%24 = icmp slt i32 %23, 8
br i1 %24, label %25, label %48
25: ; preds = %21
%26 = load i8*, i8** %5
%27 = load i32, i32* %6
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, i8* %26, i64 %28
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = load i8, i8* %7
%33 = zext i8 %32 to i32
%34 = ashr i32 %31, %33
%35 = and i32 %34, 1
%36 = trunc i32 %35 to i8
%37 = load i8*, i8** %8
%38 = load i32, i32* %6
%39 = mul nsw i32 %38, 8
%40 = load i8, i8* %7
%41 = zext i8 %40 to i32
%42 = add nsw i32 %39, %41
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, i8* %37, i64 %43
store i8 %36, i8* %44
br label %45
45: ; preds = %25
%46 = load i8, i8* %7
%47 = add i8 %46, 1
store i8 %47, i8* %7
br label %21
48: ; preds = %21
br label %49
49: ; preds = %48
%50 = load i32, i32* %6
%51 = add nsw i32 %50, 1
store i32 %51, i32* %6
br label %16
52: ; preds = %16
%53 = load i8*, i8** %3
ret i8* %53
}

LLVM IR (-O2):
define noalias i8* @bits_to_bytes(i32 %0, i8* nocapture %1) {
%3 = shl nsw i32 %0, 3
%4 = tail call i64 @malloc(i32 %3)
%5 = inttoptr i64 %4 to i8*
%6 = icmp sgt i32 %0, 0
br i1 %6, label %7, label %150
7: ; preds = %2
%8 = zext i32 %0 to i64
%9 = icmp ult i32 %0, 8
br i1 %9, label %105, label %10
10: ; preds = %7
%11 = shl nuw nsw i64 %8, 3
%12 = getelementptr i8, i8* %5, i64 %11
%13 = getelementptr i8, i8* %1, i64 %8
%14 = icmp ugt i8* %13, %5
%15 = icmp ugt i8* %12, %1
%16 = and i1 %14, %15
br i1 %16, label %105, label %17
17: ; preds = %10
%18 = icmp ult i32 %0, 16
br i1 %18, label %63, label %19
19: ; preds = %17
%20 = and i64 %8, 4294967280
%21 = getelementptr inbounds i8, i8* %5, i64 -7
br label %22
22: ; preds = %22, %19
%23 = phi i64 [ 0, %19 ], [ %56, %22 ]
%24 = getelementptr inbounds i8, i8* %1, i64 %23
%25 = shl nsw i64 %23, 3
%26 = bitcast i8* %24 to <16 x i8>*
%27 = load <16 x i8>, <16 x i8>* %26
%28 = and <16 x i8> %27, <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>
%29 = lshr <16 x i8> %27, <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>
%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> %27, <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>
%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 = bitcast i8* %24 to <16 x i8>*
%34 = load <16 x i8>, <16 x i8>* %33
%35 = lshr <16 x i8> %34, <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>
%36 = and <16 x i8> %35, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%37 = lshr <16 x i8> %34, <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>
%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> %34, <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>
%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 = bitcast i8* %24 to <16 x i8>*
%42 = load <16 x i8>, <16 x i8>* %41
%43 = lshr <16 x i8> %42, <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>
%44 = and <16 x i8> %43, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%45 = lshr <16 x i8> %42, <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>
%46 = or i64 %25, 7
%47 = getelementptr inbounds i8, i8* %21, i64 %46
%48 = bitcast i8* %47 to <128 x i8>*
%49 = shufflevector <16 x i8> %28, <16 x i8> %30, <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>
%50 = shufflevector <16 x i8> %32, <16 x i8> %36, <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>
%51 = shufflevector <16 x i8> %38, <16 x i8> %40, <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> %44, <16 x i8> %45, <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 <32 x i8> %49, <32 x i8> %50, <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>
%54 = 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>
%55 = shufflevector <64 x i8> %53, <64 x i8> %54, <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> %55, <128 x i8>* %48
%56 = add nuw i64 %23, 16
%57 = icmp eq i64 %56, %20
br i1 %57, label %58, label %22
58: ; preds = %22
%59 = icmp eq i64 %20, %8
br i1 %59, label %150, label %60
60: ; preds = %58
%61 = and i64 %8, 8
%62 = icmp eq i64 %61, 0
br i1 %62, label %105, label %63
63: ; preds = %17, %60
%64 = phi i64 [ %20, %60 ], [ 0, %17 ]
%65 = and i64 %8, 4294967288
%66 = getelementptr inbounds i8, i8* %5, i64 -7
br label %67
67: ; preds = %67, %63
%68 = phi i64 [ %64, %63 ], [ %101, %67 ]
%69 = getelementptr inbounds i8, i8* %1, i64 %68
%70 = shl nsw i64 %68, 3
%71 = bitcast i8* %69 to <8 x i8>*
%72 = load <8 x i8>, <8 x i8>* %71
%73 = and <8 x i8> %72, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%74 = lshr <8 x i8> %72, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%75 = and <8 x i8> %74, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%76 = lshr <8 x i8> %72, <i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2>
%77 = and <8 x i8> %76, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%78 = bitcast i8* %69 to <8 x i8>*
%79 = load <8 x i8>, <8 x i8>* %78
%80 = lshr <8 x i8> %79, <i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3>
%81 = and <8 x i8> %80, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%82 = lshr <8 x i8> %79, <i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4>
%83 = and <8 x i8> %82, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%84 = lshr <8 x i8> %79, <i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5>
%85 = and <8 x i8> %84, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%86 = bitcast i8* %69 to <8 x i8>*
%87 = load <8 x i8>, <8 x i8>* %86
%88 = lshr <8 x i8> %87, <i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6>
%89 = and <8 x i8> %88, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
%90 = lshr <8 x i8> %87, <i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7>
%91 = or i64 %70, 7
%92 = getelementptr inbounds i8, i8* %66, i64 %91
%93 = bitcast i8* %92 to <64 x i8>*
%94 = shufflevector <8 x i8> %73, <8 x i8> %75, <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>
%95 = shufflevector <8 x i8> %77, <8 x i8> %81, <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>
%96 = shufflevector <8 x i8> %83, <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>
%97 = shufflevector <8 x i8> %89, <8 x i8> %90, <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>
%98 = shufflevector <16 x i8> %94, <16 x i8> %95, <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>
%99 = shufflevector <16 x i8> %96, <16 x i8> %97, <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>
%100 = shufflevector <32 x i8> %98, <32 x i8> %99, <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> %100, <64 x i8>* %93
%101 = add nuw i64 %68, 8
%102 = icmp eq i64 %101, %65
br i1 %102, label %103, label %67
103: ; preds = %67
%104 = icmp eq i64 %65, %8
br i1 %104, label %150, label %105
105: ; preds = %10, %7, %60, %103
%106 = phi i64 [ 0, %7 ], [ 0, %10 ], [ %20, %60 ], [ %65, %103 ]
br label %107
107: ; preds = %105, %107
%108 = phi i64 [ %148, %107 ], [ %106, %105 ]
%109 = getelementptr inbounds i8, i8* %1, i64 %108
%110 = shl nsw i64 %108, 3
%111 = load i8, i8* %109
%112 = and i8 %111, 1
%113 = getelementptr inbounds i8, i8* %5, i64 %110
store i8 %112, i8* %113
%114 = load i8, i8* %109
%115 = lshr i8 %114, 1
%116 = and i8 %115, 1
%117 = or i64 %110, 1
%118 = getelementptr inbounds i8, i8* %5, i64 %117
store i8 %116, i8* %118
%119 = load i8, i8* %109
%120 = lshr i8 %119, 2
%121 = and i8 %120, 1
%122 = or i64 %110, 2
%123 = getelementptr inbounds i8, i8* %5, i64 %122
store i8 %121, i8* %123
%124 = load i8, i8* %109
%125 = lshr i8 %124, 3
%126 = and i8 %125, 1
%127 = or i64 %110, 3
%128 = getelementptr inbounds i8, i8* %5, i64 %127
store i8 %126, i8* %128
%129 = load i8, i8* %109
%130 = lshr i8 %129, 4
%131 = and i8 %130, 1
%132 = or i64 %110, 4
%133 = getelementptr inbounds i8, i8* %5, i64 %132
store i8 %131, i8* %133
%134 = load i8, i8* %109
%135 = lshr i8 %134, 5
%136 = and i8 %135, 1
%137 = or i64 %110, 5
%138 = getelementptr inbounds i8, i8* %5, i64 %137
store i8 %136, i8* %138
%139 = load i8, i8* %109
%140 = lshr i8 %139, 6
%141 = and i8 %140, 1
%142 = or i64 %110, 6
%143 = getelementptr inbounds i8, i8* %5, i64 %142
store i8 %141, i8* %143
%144 = load i8, i8* %109
%145 = lshr i8 %144, 7
%146 = or i64 %110, 7
%147 = getelementptr inbounds i8, i8* %5, i64 %146
store i8 %145, i8* %147
%148 = add nuw nsw i64 %108, 1
%149 = icmp eq i64 %148, %8
br i1 %149, label %150, label %107
150: ; preds = %107, %58, %103, %2
ret i8* undef
}