char *lxt2_wr_expand_integer_to_bits(unsigned int len, int value) {
  static char s[33];
  char *p = s;
  unsigned int i;
  if (len > 32)
    len = 32;
  len--;
  for (i = 0; i <= len; i++) {
    *(p++) = '0' | ((value & (1 << (len - i))) != 0);
  }
  *p = 0;
  return (s);
}


x86 assembly (clang, -O0):
<lxt2_wr_expand_integer_to_bits>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
lea    0x2f1f(%rip),%rax
mov    %rax,-0x10(%rbp)
cmpl   $0x20,-0x4(%rbp)
jbe    1126 <lxt2_wr_expand_integer_to_bits+0x26>
movl   $0x20,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x4(%rbp),%eax
ja     1185 <lxt2_wr_expand_integer_to_bits+0x85>
mov    -0x8(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    -0x14(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
setne  %al
and    $0x1,%al
movzbl %al,%eax
or     $0x30,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1136 <lxt2_wr_expand_integer_to_bits+0x36>
mov    -0x10(%rbp),%rax
movb   $0x0,(%rax)
lea    0x2e9d(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<lxt2_wr_expand_integer_to_bits>:
cmp    $0x20,%edi
mov    $0x20,%r8d
cmovb  %edi,%r8d
cmp    $0x2,%r8d
mov    $0x1,%eax
cmovae %r8d,%eax
lea    -0x1(%rax),%r9d
cmp    $0xf,%r9d
jae    1132 <lxt2_wr_expand_integer_to_bits+0x32>
lea    0x2f05(%rip),%rdx
xor    %ecx,%ecx
jmp    16fd <lxt2_wr_expand_integer_to_bits+0x5fd>
add    $0x1,%r9
mov    %r9,%rcx
and    $0xfffffffffffffff0,%rcx
lea    0x2eec(%rip),%rdx
movd   %r8d,%xmm0
pshufd $0x0,%xmm0,%xmm12
movd   %esi,%xmm0
pshufd $0x0,%xmm0,%xmm13
lea    -0x10(%rcx),%rdi
mov    %rdi,%r10
shr    $0x4,%r10
add    $0x1,%r10
test   %rdi,%rdi
je     1736 <lxt2_wr_expand_integer_to_bits+0x636>
mov    %r10,%rdi
and    $0xfffffffffffffffe,%rdi
movdqa 0xebf(%rip),%xmm14
movdqa 0xec6(%rip),%xmm15
movdqa 0xecd(%rip),%xmm11
movdqa 0xed4(%rip),%xmm9
xor    %r11d,%r11d
nop
movdqa %xmm11,-0x28(%rsp)
movdqa %xmm15,-0x18(%rsp)
movdqa %xmm14,-0x78(%rsp)
movdqa %xmm9,%xmm10
movdqa %xmm14,%xmm1
pcmpeqd %xmm0,%xmm0
pxor   %xmm0,%xmm1
movdqa %xmm15,%xmm3
pxor   %xmm0,%xmm3
movdqa %xmm11,%xmm2
pxor   %xmm0,%xmm2
movdqa %xmm9,%xmm7
pxor   %xmm0,%xmm7
paddd  %xmm12,%xmm7
paddd  %xmm12,%xmm2
paddd  %xmm12,%xmm1
pshuflw $0xfe,%xmm1,%xmm0
movdqa %xmm13,%xmm4
psrld  %xmm0,%xmm4
paddd  %xmm12,%xmm3
pshuflw $0x54,%xmm1,%xmm6
movdqa %xmm13,%xmm0
psrld  %xmm6,%xmm0
pshufd $0xee,%xmm1,%xmm1
pshuflw $0xfe,%xmm1,%xmm6
movdqa %xmm13,%xmm5
psrld  %xmm6,%xmm5
punpcklqdq %xmm4,%xmm0
pshuflw $0x54,%xmm1,%xmm1
movdqa %xmm13,%xmm4
psrld  %xmm1,%xmm4
punpckhqdq %xmm5,%xmm4
pshuflw $0xfe,%xmm3,%xmm1
movdqa %xmm13,%xmm5
psrld  %xmm1,%xmm5
shufps $0xcc,%xmm4,%xmm0
pshuflw $0x54,%xmm3,%xmm4
movdqa %xmm13,%xmm1
psrld  %xmm4,%xmm1
pshufd $0xee,%xmm3,%xmm3
pshuflw $0xfe,%xmm3,%xmm4
movdqa %xmm13,%xmm6
psrld  %xmm4,%xmm6
punpcklqdq %xmm5,%xmm1
pshuflw $0x54,%xmm3,%xmm3
movdqa %xmm13,%xmm4
psrld  %xmm3,%xmm4
punpckhqdq %xmm6,%xmm4
pshuflw $0xfe,%xmm2,%xmm3
movdqa %xmm13,%xmm5
psrld  %xmm3,%xmm5
shufps $0xcc,%xmm4,%xmm1
pshuflw $0x54,%xmm2,%xmm4
movdqa %xmm13,%xmm3
psrld  %xmm4,%xmm3
pshufd $0xee,%xmm2,%xmm2
pshuflw $0xfe,%xmm2,%xmm4
movdqa %xmm13,%xmm6
psrld  %xmm4,%xmm6
punpcklqdq %xmm5,%xmm3
pshuflw $0x54,%xmm2,%xmm2
movdqa %xmm13,%xmm4
psrld  %xmm2,%xmm4
punpckhqdq %xmm6,%xmm4
pshuflw $0xfe,%xmm7,%xmm2
movdqa %xmm13,%xmm5
psrld  %xmm2,%xmm5
shufps $0xcc,%xmm4,%xmm3
pshuflw $0x54,%xmm7,%xmm4
movdqa %xmm13,%xmm2
psrld  %xmm4,%xmm2
pshufd $0xee,%xmm7,%xmm4
pshuflw $0xfe,%xmm4,%xmm6
movdqa %xmm13,%xmm7
psrld  %xmm6,%xmm7
punpcklqdq %xmm5,%xmm2
pshuflw $0x54,%xmm4,%xmm4
movdqa %xmm13,%xmm5
psrld  %xmm4,%xmm5
punpckhqdq %xmm7,%xmm5
shufps $0xcc,%xmm5,%xmm2
movaps 0xd5f(%rip),%xmm7
andps  %xmm7,%xmm2
andps  %xmm7,%xmm3
packuswb %xmm3,%xmm2
andps  %xmm7,%xmm1
andps  %xmm7,%xmm0
packuswb %xmm0,%xmm1
packuswb %xmm1,%xmm2
movdqa 0xd4f(%rip),%xmm0
pand   %xmm0,%xmm2
movdqa 0xd53(%rip),%xmm0
por    %xmm0,%xmm2
movdqa %xmm2,(%r11,%rdx,1)
movdqa %xmm12,%xmm8
movdqa %xmm9,-0x68(%rsp)
psubd  %xmm9,%xmm8
movdqa 0xd40(%rip),%xmm0
paddd  %xmm0,%xmm8
movdqa %xmm12,%xmm2
movdqa %xmm11,-0x58(%rsp)
psubd  %xmm11,%xmm2
paddd  %xmm0,%xmm2
movdqa %xmm12,%xmm3
movdqa %xmm15,-0x48(%rsp)
psubd  %xmm15,%xmm3
paddd  %xmm0,%xmm3
movdqa %xmm12,%xmm1
movdqa %xmm14,-0x38(%rsp)
psubd  %xmm14,%xmm1
paddd  %xmm0,%xmm1
pshuflw $0xfe,%xmm1,%xmm0
movdqa %xmm13,%xmm4
psrld  %xmm0,%xmm4
pshuflw $0x54,%xmm1,%xmm5
movdqa %xmm13,%xmm0
psrld  %xmm5,%xmm0
punpcklqdq %xmm4,%xmm0
pshufd $0xee,%xmm1,%xmm1
pshuflw $0xfe,%xmm1,%xmm4
movdqa %xmm13,%xmm5
psrld  %xmm4,%xmm5
pshuflw $0x54,%xmm1,%xmm1
movdqa %xmm13,%xmm4
psrld  %xmm1,%xmm4
punpckhqdq %xmm5,%xmm4
shufps $0xcc,%xmm4,%xmm0
pshuflw $0xfe,%xmm3,%xmm1
movdqa %xmm13,%xmm4
psrld  %xmm1,%xmm4
pshuflw $0x54,%xmm3,%xmm5
movdqa %xmm13,%xmm1
psrld  %xmm5,%xmm1
punpcklqdq %xmm4,%xmm1
pshufd $0xee,%xmm3,%xmm3
pshuflw $0xfe,%xmm3,%xmm4
movdqa %xmm13,%xmm5
psrld  %xmm4,%xmm5
pshuflw $0x54,%xmm3,%xmm3
movdqa %xmm13,%xmm4
psrld  %xmm3,%xmm4
punpckhqdq %xmm5,%xmm4
shufps $0xcc,%xmm4,%xmm1
pshuflw $0xfe,%xmm2,%xmm3
movdqa %xmm13,%xmm4
psrld  %xmm3,%xmm4
pshuflw $0x54,%xmm2,%xmm5
movdqa %xmm13,%xmm3
psrld  %xmm5,%xmm3
punpcklqdq %xmm4,%xmm3
pshufd $0xee,%xmm2,%xmm2
pshuflw $0xfe,%xmm2,%xmm4
movdqa %xmm13,%xmm5
psrld  %xmm4,%xmm5
pshuflw $0x54,%xmm2,%xmm2
movdqa %xmm13,%xmm4
psrld  %xmm2,%xmm4
punpckhqdq %xmm5,%xmm4
shufps $0xcc,%xmm4,%xmm3
pshuflw $0xfe,%xmm8,%xmm2
movdqa %xmm13,%xmm4
psrld  %xmm2,%xmm4
pshuflw $0x54,%xmm8,%xmm5
movdqa %xmm13,%xmm2
psrld  %xmm5,%xmm2
punpcklqdq %xmm4,%xmm2
pshufd $0xee,%xmm8,%xmm4
pshuflw $0xfe,%xmm4,%xmm5
movdqa %xmm13,%xmm6
psrld  %xmm5,%xmm6
pshuflw $0x54,%xmm4,%xmm4
movdqa %xmm13,%xmm5
psrld  %xmm4,%xmm5
punpckhqdq %xmm6,%xmm5
shufps $0xcc,%xmm5,%xmm2
andps  %xmm7,%xmm2
andps  %xmm7,%xmm3
packuswb %xmm3,%xmm2
andps  %xmm7,%xmm1
andps  %xmm7,%xmm0
packuswb %xmm0,%xmm1
packuswb %xmm1,%xmm2
pand   0xb95(%rip),%xmm2
por    0xb9d(%rip),%xmm2
movdqa %xmm2,0x10(%r11,%rdx,1)
movdqa -0x28(%rsp),%xmm11
movdqa -0x18(%rsp),%xmm15
add    $0x20,%r11
movdqa 0xb9c(%rip),%xmm0
paddd  %xmm0,%xmm9
paddd  %xmm0,%xmm11
paddd  %xmm0,%xmm15
movdqa -0x78(%rsp),%xmm1
paddd  %xmm0,%xmm1
movdqa %xmm1,-0x78(%rsp)
movdqa -0x78(%rsp),%xmm14
add    $0xfffffffffffffffe,%rdi
jne    11a0 <lxt2_wr_expand_integer_to_bits+0xa0>
movdqa 0xb74(%rip),%xmm1
movdqa %xmm1,%xmm2
psubd  -0x68(%rsp),%xmm2
movdqa %xmm1,%xmm3
psubd  -0x58(%rsp),%xmm3
movdqa %xmm1,%xmm4
psubd  -0x48(%rsp),%xmm4
psubd  -0x38(%rsp),%xmm1
test   $0x1,%r10b
je     16f5 <lxt2_wr_expand_integer_to_bits+0x5f5>
paddd  %xmm12,%xmm2
paddd  %xmm12,%xmm3
paddd  %xmm12,%xmm1
pshuflw $0xfe,%xmm1,%xmm0
movdqa %xmm13,%xmm5
psrld  %xmm0,%xmm5
paddd  %xmm12,%xmm4
pshuflw $0x54,%xmm1,%xmm6
movdqa %xmm13,%xmm0
psrld  %xmm6,%xmm0
pshufd $0xee,%xmm1,%xmm1
pshuflw $0xfe,%xmm1,%xmm6
movdqa %xmm13,%xmm7
psrld  %xmm6,%xmm7
punpcklqdq %xmm5,%xmm0
pshuflw $0x54,%xmm1,%xmm1
movdqa %xmm13,%xmm5
psrld  %xmm1,%xmm5
punpckhqdq %xmm7,%xmm5
pshuflw $0xfe,%xmm4,%xmm1
movdqa %xmm13,%xmm6
psrld  %xmm1,%xmm6
shufps $0xcc,%xmm5,%xmm0
pshuflw $0x54,%xmm4,%xmm5
movdqa %xmm13,%xmm1
psrld  %xmm5,%xmm1
pshufd $0xee,%xmm4,%xmm4
pshuflw $0xfe,%xmm4,%xmm5
movdqa %xmm13,%xmm7
psrld  %xmm5,%xmm7
punpcklqdq %xmm6,%xmm1
pshuflw $0x54,%xmm4,%xmm4
movdqa %xmm13,%xmm5
psrld  %xmm4,%xmm5
punpckhqdq %xmm7,%xmm5
pshuflw $0xfe,%xmm3,%xmm4
movdqa %xmm13,%xmm6
psrld  %xmm4,%xmm6
shufps $0xcc,%xmm5,%xmm1
pshuflw $0x54,%xmm3,%xmm5
movdqa %xmm13,%xmm4
psrld  %xmm5,%xmm4
pshufd $0xee,%xmm3,%xmm3
pshuflw $0xfe,%xmm3,%xmm5
movdqa %xmm13,%xmm7
psrld  %xmm5,%xmm7
punpcklqdq %xmm6,%xmm4
pshuflw $0x54,%xmm3,%xmm3
movdqa %xmm13,%xmm5
psrld  %xmm3,%xmm5
punpckhqdq %xmm7,%xmm5
pshuflw $0xfe,%xmm2,%xmm3
movdqa %xmm13,%xmm6
psrld  %xmm3,%xmm6
shufps $0xcc,%xmm5,%xmm4
pshuflw $0x54,%xmm2,%xmm5
movdqa %xmm13,%xmm3
psrld  %xmm5,%xmm3
pshufd $0xee,%xmm2,%xmm2
pshuflw $0xfe,%xmm2,%xmm5
movdqa %xmm13,%xmm7
psrld  %xmm5,%xmm7
punpcklqdq %xmm6,%xmm3
pshuflw $0x54,%xmm2,%xmm2
psrld  %xmm2,%xmm13
punpckhqdq %xmm7,%xmm13
shufps $0xcc,%xmm13,%xmm3
movaps 0x9b9(%rip),%xmm2
andps  %xmm2,%xmm3
andps  %xmm2,%xmm4
packuswb %xmm4,%xmm3
andps  %xmm2,%xmm1
andps  %xmm2,%xmm0
packuswb %xmm0,%xmm1
packuswb %xmm1,%xmm3
pand   0x9a9(%rip),%xmm3
por    0x9b1(%rip),%xmm3
movdqa %xmm3,(%r11,%rdx,1)
add    %rcx,%rdx
cmp    %rcx,%r9
je     172b <lxt2_wr_expand_integer_to_bits+0x62b>
sub    %ecx,%eax
not    %ecx
add    %r8d,%ecx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %esi,%edi
shr    %cl,%edi
and    $0x1,%dil
or     $0x30,%dil
mov    %dil,(%rdx)
add    $0x1,%rdx
add    $0xffffffff,%ecx
add    $0xffffffff,%eax
jne    1710 <lxt2_wr_expand_integer_to_bits+0x610>
movb   $0x0,(%rdx)
lea    0x28fb(%rip),%rax
ret
movdqa 0x8c2(%rip),%xmm1
movdqa 0x8ca(%rip),%xmm4
movdqa 0x8d2(%rip),%xmm3
movdqa 0x8da(%rip),%xmm2
xor    %r11d,%r11d
test   $0x1,%r10b
jne    158a <lxt2_wr_expand_integer_to_bits+0x48a>
jmp    16f5 <lxt2_wr_expand_integer_to_bits+0x5f5>

LLVM IR (-O0):
@lxt2_wr_expand_integer_to_bits.s = internal global [33 x i8] zeroinitializer
define i8* @lxt2_wr_expand_integer_to_bits(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
store i8* getelementptr inbounds ([33 x i8], [33 x i8]* @lxt2_wr_expand_integer_to_bits.s, i64 0, i64 0), i8** %5
%7 = load i32, i32* %3
%8 = icmp ugt i32 %7, 32
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 32, i32* %3
br label %10
10: ; preds = %9, %2
%11 = load i32, i32* %3
%12 = add i32 %11, -1
store i32 %12, i32* %3
store i32 0, i32* %6
br label %13
13: ; preds = %30, %10
%14 = load i32, i32* %6
%15 = load i32, i32* %3
%16 = icmp ule i32 %14, %15
br i1 %16, label %17, label %33
17: ; preds = %13
%18 = load i32, i32* %4
%19 = load i32, i32* %3
%20 = load i32, i32* %6
%21 = sub i32 %19, %20
%22 = shl i32 1, %21
%23 = and i32 %18, %22
%24 = icmp ne i32 %23, 0
%25 = zext i1 %24 to i32
%26 = or i32 48, %25
%27 = trunc i32 %26 to i8
%28 = load i8*, i8** %5
%29 = getelementptr inbounds i8, i8* %28, i32 1
store i8* %29, i8** %5
store i8 %27, i8* %28
br label %30
30: ; preds = %17
%31 = load i32, i32* %6
%32 = add i32 %31, 1
store i32 %32, i32* %6
br label %13
33: ; preds = %13
%34 = load i8*, i8** %5
store i8 0, i8* %34
ret i8* getelementptr inbounds ([33 x i8], [33 x i8]* @lxt2_wr_expand_integer_to_bits.s, i64 0, i64 0)
}

LLVM IR (-O2):
@lxt2_wr_expand_integer_to_bits.s = internal global [33 x i8] zeroinitializer
define i8* @lxt2_wr_expand_integer_to_bits(i32 %0, i32 %1) {
%3 = icmp ult i32 %0, 32
%4 = select i1 %3, i32 %0, i32 32
%5 = call i32 @llvm.umax.i32(i32 %4, i32 1)
%6 = add nsw i32 %5, -1
%7 = zext i32 %6 to i64
%8 = add nuw nsw i64 %7, 1
%9 = icmp ult i32 %6, 15
br i1 %9, label %66, label %10
10: ; preds = %2
%11 = and i64 %8, 8589934576
%12 = trunc i64 %11 to i32
%13 = getelementptr [33 x i8], [33 x i8]* @lxt2_wr_expand_integer_to_bits.s, i64 0, i64 %11
%14 = insertelement <16 x i32> poison, i32 %4, i64 0
%15 = shufflevector <16 x i32> %14, <16 x i32> poison, <16 x i32> zeroinitializer
%16 = insertelement <16 x i32> poison, i32 %1, i64 0
%17 = shufflevector <16 x i32> %16, <16 x i32> poison, <16 x i32> zeroinitializer
%18 = add nsw i64 %11, -16
%19 = lshr exact i64 %18, 4
%20 = add nuw nsw i64 %19, 1
%21 = and i64 %20, 1
%22 = icmp eq i64 %18, 0
br i1 %22, label %52, label %23
23: ; preds = %10
%24 = and i64 %20, 2305843009213693950
br label %25
25: ; preds = %25, %23
%26 = phi i64 [ 0, %23 ], [ %46, %25 ]
%27 = phi <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>, %23 ], [ %47, %25 ]
%28 = phi i64 [ 0, %23 ], [ %48, %25 ]
%29 = getelementptr [33 x i8], [33 x i8]* @lxt2_wr_expand_integer_to_bits.s, i64 0, i64 %26
%30 = xor <16 x i32> %27, <i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1>
%31 = add nsw <16 x i32> %15, %30
%32 = lshr <16 x i32> %17, %31
%33 = trunc <16 x i32> %32 to <16 x i8>
%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 = or <16 x i8> %34, <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>
%36 = bitcast i8* %29 to <16 x i8>*
store <16 x i8> %35, <16 x i8>* %36
%37 = or i64 %26, 16
%38 = getelementptr [33 x i8], [33 x i8]* @lxt2_wr_expand_integer_to_bits.s, i64 0, i64 %37
%39 = sub <16 x i32> <i32 -17, i32 -17, i32 -17, i32 -17, i32 -17, i32 -17, i32 -17, i32 -17, i32 -17, i32 -17, i32 -17, i32 -17, i32 -17, i32 -17, i32 -17, i32 -17>, %27
%40 = add nsw <16 x i32> %15, %39
%41 = lshr <16 x i32> %17, %40
%42 = trunc <16 x i32> %41 to <16 x i8>
%43 = and <16 x i8> %42, <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>
%44 = or <16 x i8> %43, <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>
%45 = bitcast i8* %38 to <16 x i8>*
store <16 x i8> %44, <16 x i8>* %45
%46 = add nuw i64 %26, 32
%47 = add <16 x i32> %27, <i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32>
%48 = add i64 %28, 2
%49 = icmp eq i64 %48, %24
br i1 %49, label %50, label %25
50: ; preds = %25
%51 = sub <16 x i32> <i32 -33, i32 -33, i32 -33, i32 -33, i32 -33, i32 -33, i32 -33, i32 -33, i32 -33, i32 -33, i32 -33, i32 -33, i32 -33, i32 -33, i32 -33, i32 -33>, %27
br label %52
52: ; preds = %50, %10
%53 = phi i64 [ 0, %10 ], [ %46, %50 ]
%54 = phi <16 x i32> [ <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>, %10 ], [ %51, %50 ]
%55 = icmp eq i64 %21, 0
br i1 %55, label %64, label %56
56: ; preds = %52
%57 = getelementptr [33 x i8], [33 x i8]* @lxt2_wr_expand_integer_to_bits.s, i64 0, i64 %53
%58 = add nsw <16 x i32> %15, %54
%59 = lshr <16 x i32> %17, %58
%60 = trunc <16 x i32> %59 to <16 x i8>
%61 = and <16 x i8> %60, <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>
%62 = or <16 x i8> %61, <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>
%63 = bitcast i8* %57 to <16 x i8>*
store <16 x i8> %62, <16 x i8>* %63
br label %64
64: ; preds = %52, %56
%65 = icmp eq i64 %8, %11
br i1 %65, label %81, label %66
66: ; preds = %2, %64
%67 = phi i32 [ 0, %2 ], [ %12, %64 ]
%68 = phi i8* [ getelementptr inbounds ([33 x i8], [33 x i8]* @lxt2_wr_expand_integer_to_bits.s, i64 0, i64 0), %2 ], [ %13, %64 ]
br label %69
69: ; preds = %66, %69
%70 = phi i32 [ %79, %69 ], [ %67, %66 ]
%71 = phi i8* [ %78, %69 ], [ %68, %66 ]
%72 = xor i32 %70, -1
%73 = add nsw i32 %4, %72
%74 = lshr i32 %1, %73
%75 = trunc i32 %74 to i8
%76 = and i8 %75, 1
%77 = or i8 %76, 48
%78 = getelementptr inbounds i8, i8* %71, i64 1
store i8 %77, i8* %71
%79 = add nuw nsw i32 %70, 1
%80 = icmp eq i32 %79, %5
br i1 %80, label %81, label %69
81: ; preds = %69, %64
%82 = phi i8* [ %13, %64 ], [ %78, %69 ]
store i8 0, i8* %82
ret i8* getelementptr inbounds ([33 x i8], [33 x i8]* @lxt2_wr_expand_integer_to_bits.s, i64 0, i64 0)
}