void unpack13(unsigned int *p, unsigned int *w) {
  int i;
  for (i = 0; i < 128; i += 32, p += 32, w += 13) {
    p[0] = (w[0] >> 19);
    p[1] = (w[0] >> 6) & 8191;
    p[2] = (w[0] << 7) & 8191;
    p[2] |= (w[1] >> 25);
    p[3] = (w[1] >> 12) & 8191;
    p[4] = (w[1] << 1) & 8191;
    p[4] |= (w[2] >> 31);
    p[5] = (w[2] >> 18) & 8191;
    p[6] = (w[2] >> 5) & 8191;
    p[7] = (w[2] << 8) & 8191;
    p[7] |= (w[3] >> 24);
    p[8] = (w[3] >> 11) & 8191;
    p[9] = (w[3] << 2) & 8191;
    p[9] |= (w[4] >> 30);
    p[10] = (w[4] >> 17) & 8191;
    p[11] = (w[4] >> 4) & 8191;
    p[12] = (w[4] << 9) & 8191;
    p[12] |= (w[5] >> 23);
    p[13] = (w[5] >> 10) & 8191;
    p[14] = (w[5] << 3) & 8191;
    p[14] |= (w[6] >> 29);
    p[15] = (w[6] >> 16) & 8191;
    p[16] = (w[6] >> 3) & 8191;
    p[17] = (w[6] << 10) & 8191;
    p[17] |= (w[7] >> 22);
    p[18] = (w[7] >> 9) & 8191;
    p[19] = (w[7] << 4) & 8191;
    p[19] |= (w[8] >> 28);
    p[20] = (w[8] >> 15) & 8191;
    p[21] = (w[8] >> 2) & 8191;
    p[22] = (w[8] << 11) & 8191;
    p[22] |= (w[9] >> 21);
    p[23] = (w[9] >> 8) & 8191;
    p[24] = (w[9] << 5) & 8191;
    p[24] |= (w[10] >> 27);
    p[25] = (w[10] >> 14) & 8191;
    p[26] = (w[10] >> 1) & 8191;
    p[27] = (w[10] << 12) & 8191;
    p[27] |= (w[11] >> 20);
    p[28] = (w[11] >> 7) & 8191;
    p[29] = (w[11] << 6) & 8191;
    p[29] |= (w[12] >> 26);
    p[30] = (w[12] >> 13) & 8191;
    p[31] = (w[12]) & 8191;
  }
}


x86 assembly (clang, -O0):
<unpack13>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x80,-0x14(%rbp)
jge    150b <unpack13+0x40b>
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
shr    $0x13,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
shr    $0x6,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
shl    $0x7,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x8(%rax)
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%ecx
shr    $0x19,%ecx
mov    -0x8(%rbp),%rax
or     0x8(%rax),%ecx
mov    %ecx,0x8(%rax)
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%ecx
shr    $0xc,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0xc(%rax)
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%ecx
shl    $0x1,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x10(%rax)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%ecx
shr    $0x1f,%ecx
mov    -0x8(%rbp),%rax
or     0x10(%rax),%ecx
mov    %ecx,0x10(%rax)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%ecx
shr    $0x12,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x14(%rax)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%ecx
shr    $0x5,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x18(%rax)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%ecx
shl    $0x8,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x1c(%rax)
mov    -0x10(%rbp),%rax
mov    0xc(%rax),%ecx
shr    $0x18,%ecx
mov    -0x8(%rbp),%rax
or     0x1c(%rax),%ecx
mov    %ecx,0x1c(%rax)
mov    -0x10(%rbp),%rax
mov    0xc(%rax),%ecx
shr    $0xb,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x20(%rax)
mov    -0x10(%rbp),%rax
mov    0xc(%rax),%ecx
shl    $0x2,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x24(%rax)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%ecx
shr    $0x1e,%ecx
mov    -0x8(%rbp),%rax
or     0x24(%rax),%ecx
mov    %ecx,0x24(%rax)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%ecx
shr    $0x11,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x28(%rax)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%ecx
shr    $0x4,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x2c(%rax)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%ecx
shl    $0x9,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x30(%rax)
mov    -0x10(%rbp),%rax
mov    0x14(%rax),%ecx
shr    $0x17,%ecx
mov    -0x8(%rbp),%rax
or     0x30(%rax),%ecx
mov    %ecx,0x30(%rax)
mov    -0x10(%rbp),%rax
mov    0x14(%rax),%ecx
shr    $0xa,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x34(%rax)
mov    -0x10(%rbp),%rax
mov    0x14(%rax),%ecx
shl    $0x3,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x38(%rax)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%ecx
shr    $0x1d,%ecx
mov    -0x8(%rbp),%rax
or     0x38(%rax),%ecx
mov    %ecx,0x38(%rax)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%ecx
shr    $0x10,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x3c(%rax)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%ecx
shr    $0x3,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x40(%rax)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%ecx
shl    $0xa,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x44(%rax)
mov    -0x10(%rbp),%rax
mov    0x1c(%rax),%ecx
shr    $0x16,%ecx
mov    -0x8(%rbp),%rax
or     0x44(%rax),%ecx
mov    %ecx,0x44(%rax)
mov    -0x10(%rbp),%rax
mov    0x1c(%rax),%ecx
shr    $0x9,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x48(%rax)
mov    -0x10(%rbp),%rax
mov    0x1c(%rax),%ecx
shl    $0x4,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x4c(%rax)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%ecx
shr    $0x1c,%ecx
mov    -0x8(%rbp),%rax
or     0x4c(%rax),%ecx
mov    %ecx,0x4c(%rax)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%ecx
shr    $0xf,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x50(%rax)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%ecx
shr    $0x2,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x54(%rax)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%ecx
shl    $0xb,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x58(%rax)
mov    -0x10(%rbp),%rax
mov    0x24(%rax),%ecx
shr    $0x15,%ecx
mov    -0x8(%rbp),%rax
or     0x58(%rax),%ecx
mov    %ecx,0x58(%rax)
mov    -0x10(%rbp),%rax
mov    0x24(%rax),%ecx
shr    $0x8,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x5c(%rax)
mov    -0x10(%rbp),%rax
mov    0x24(%rax),%ecx
shl    $0x5,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x60(%rax)
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%ecx
shr    $0x1b,%ecx
mov    -0x8(%rbp),%rax
or     0x60(%rax),%ecx
mov    %ecx,0x60(%rax)
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%ecx
shr    $0xe,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x64(%rax)
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%ecx
shr    $0x1,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x68(%rax)
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%ecx
shl    $0xc,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x6c(%rax)
mov    -0x10(%rbp),%rax
mov    0x2c(%rax),%ecx
shr    $0x14,%ecx
mov    -0x8(%rbp),%rax
or     0x6c(%rax),%ecx
mov    %ecx,0x6c(%rax)
mov    -0x10(%rbp),%rax
mov    0x2c(%rax),%ecx
shr    $0x7,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x70(%rax)
mov    -0x10(%rbp),%rax
mov    0x2c(%rax),%ecx
shl    $0x6,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x74(%rax)
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%ecx
shr    $0x1a,%ecx
mov    -0x8(%rbp),%rax
or     0x74(%rax),%ecx
mov    %ecx,0x74(%rax)
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%ecx
shr    $0xd,%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x78(%rax)
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%ecx
and    $0x1fff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x7c(%rax)
mov    -0x14(%rbp),%eax
add    $0x20,%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rax
add    $0x80,%rax
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0x34,%rax
mov    %rax,-0x10(%rbp)
jmp    1113 <unpack13+0x13>
pop    %rbp
ret

x86 assembly (clang, -O2):
<unpack13>:
mov    $0xffffffe0,%eax
mov    $0x1fff,%r8d
nopl   0x0(%rax,%rax,1)
mov    (%rsi),%edx
shr    $0x13,%edx
mov    %edx,(%rdi)
mov    (%rsi),%edx
shr    $0x6,%edx
and    $0x1fff,%edx
mov    %edx,0x4(%rdi)
mov    (%rsi),%ecx
mov    %ecx,%edx
and    $0x3f,%edx
shl    $0x7,%edx
mov    %edx,0x8(%rdi)
mov    0x4(%rsi),%edx
shrd   $0x19,%ecx,%edx
and    $0x1fff,%edx
mov    %edx,0x8(%rdi)
mov    0x4(%rsi),%ecx
shr    $0xc,%ecx
and    $0x1fff,%ecx
mov    %ecx,0xc(%rdi)
mov    0x4(%rsi),%ecx
lea    (%rcx,%rcx,1),%edx
and    $0x1ffe,%edx
mov    %edx,0x10(%rdi)
mov    0x8(%rsi),%edx
shrd   $0x1f,%ecx,%edx
and    $0x1fff,%edx
mov    %edx,0x10(%rdi)
mov    0x8(%rsi),%ecx
shr    $0x12,%ecx
and    $0x1fff,%ecx
mov    %ecx,0x14(%rdi)
mov    0x8(%rsi),%ecx
shr    $0x5,%ecx
and    $0x1fff,%ecx
mov    %ecx,0x18(%rdi)
mov    0x8(%rsi),%ecx
mov    %ecx,%edx
and    $0x1f,%edx
shl    $0x8,%edx
mov    %edx,0x1c(%rdi)
mov    0xc(%rsi),%edx
shrd   $0x18,%ecx,%edx
and    $0x1fff,%edx
mov    %edx,0x1c(%rdi)
mov    0xc(%rsi),%ecx
shr    $0xb,%ecx
and    $0x1fff,%ecx
mov    %ecx,0x20(%rdi)
mov    0xc(%rsi),%ecx
lea    0x0(,%rcx,4),%edx
and    $0x1ffc,%edx
mov    %edx,0x24(%rdi)
mov    0x10(%rsi),%edx
shrd   $0x1e,%ecx,%edx
and    $0x1fff,%edx
mov    %edx,0x24(%rdi)
mov    0x10(%rsi),%ecx
shr    $0x11,%ecx
and    $0x1fff,%ecx
mov    %ecx,0x28(%rdi)
mov    0x10(%rsi),%ecx
shr    $0x4,%ecx
and    $0x1fff,%ecx
mov    %ecx,0x2c(%rdi)
mov    0x10(%rsi),%ecx
mov    %ecx,%edx
and    $0xf,%edx
shl    $0x9,%edx
mov    %edx,0x30(%rdi)
mov    0x14(%rsi),%edx
shrd   $0x17,%ecx,%edx
and    $0x1fff,%edx
mov    %edx,0x30(%rdi)
mov    0x14(%rsi),%ecx
shr    $0xa,%ecx
and    $0x1fff,%ecx
mov    %ecx,0x34(%rdi)
mov    0x14(%rsi),%ecx
lea    0x0(,%rcx,8),%edx
and    $0x1ff8,%edx
mov    %edx,0x38(%rdi)
mov    0x18(%rsi),%edx
shrd   $0x1d,%ecx,%edx
and    $0x1fff,%edx
mov    %edx,0x38(%rdi)
movzwl 0x1a(%rsi),%ecx
and    $0x1fff,%ecx
mov    %ecx,0x3c(%rdi)
mov    0x18(%rsi),%ecx
shr    $0x3,%ecx
and    $0x1fff,%ecx
mov    %ecx,0x40(%rdi)
mov    0x18(%rsi),%ecx
mov    %ecx,%edx
and    $0x7,%edx
shl    $0xa,%edx
mov    %edx,0x44(%rdi)
mov    0x1c(%rsi),%edx
shrd   $0x16,%ecx,%edx
and    $0x1fff,%edx
mov    %edx,0x44(%rdi)
mov    0x1c(%rsi),%ecx
shr    $0x9,%ecx
and    $0x1fff,%ecx
mov    %ecx,0x48(%rdi)
mov    0x1c(%rsi),%ecx
mov    %ecx,%edx
shl    $0x4,%edx
and    $0x1ff0,%edx
mov    %edx,0x4c(%rdi)
mov    0x20(%rsi),%edx
shrd   $0x1c,%ecx,%edx
and    $0x1fff,%edx
mov    %edx,0x4c(%rdi)
mov    0x20(%rsi),%ecx
shr    $0xf,%ecx
and    $0x1fff,%ecx
mov    %ecx,0x50(%rdi)
mov    0x20(%rsi),%ecx
shr    $0x2,%ecx
and    $0x1fff,%ecx
mov    %ecx,0x54(%rdi)
mov    0x20(%rsi),%ecx
mov    %ecx,%edx
and    $0x3,%edx
shl    $0xb,%edx
mov    %edx,0x58(%rdi)
mov    0x24(%rsi),%edx
shrd   $0x15,%ecx,%edx
and    $0x1fff,%edx
mov    %edx,0x58(%rdi)
mov    0x24(%rsi),%ecx
shr    $0x8,%ecx
and    $0x1fff,%ecx
mov    %ecx,0x5c(%rdi)
mov    0x24(%rsi),%ecx
movzbl %cl,%edx
shl    $0x5,%edx
mov    %edx,0x60(%rdi)
mov    0x28(%rsi),%edx
shrd   $0x1b,%ecx,%edx
and    $0x1fff,%edx
mov    %edx,0x60(%rdi)
mov    0x28(%rsi),%ecx
shr    $0xe,%ecx
and    $0x1fff,%ecx
mov    %ecx,0x64(%rdi)
mov    0x28(%rsi),%ecx
shr    %ecx
and    $0x1fff,%ecx
mov    %ecx,0x68(%rdi)
mov    0x28(%rsi),%ecx
mov    %ecx,%edx
and    $0x1,%edx
shl    $0xc,%edx
mov    %edx,0x6c(%rdi)
mov    0x2c(%rsi),%edx
shrd   $0x14,%ecx,%edx
and    $0x1fff,%edx
mov    %edx,0x6c(%rdi)
mov    0x2c(%rsi),%ecx
shr    $0x7,%ecx
and    $0x1fff,%ecx
mov    %ecx,0x70(%rdi)
mov    0x2c(%rsi),%ecx
mov    %ecx,%edx
and    $0x7f,%edx
shl    $0x6,%edx
mov    %edx,0x74(%rdi)
mov    0x30(%rsi),%edx
shrd   $0x1a,%ecx,%edx
and    $0x1fff,%edx
mov    %edx,0x74(%rdi)
mov    0x30(%rsi),%ecx
shr    $0xd,%ecx
and    $0x1fff,%ecx
mov    %ecx,0x78(%rdi)
mov    0x30(%rsi),%ecx
and    %r8d,%ecx
mov    %ecx,0x7c(%rdi)
add    $0x20,%eax
add    $0x34,%rsi
sub    $0xffffffffffffff80,%rdi
cmp    $0x60,%eax
jb     1110 <unpack13+0x10>
ret

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

LLVM IR (-O2):
define void @unpack13(i32* writeonly %0, i32* nocapture %1) {
br label %3
3: ; preds = %2, %3
%4 = phi i32 [ 0, %2 ], [ %180, %3 ]
%5 = phi i32* [ %1, %2 ], [ %182, %3 ]
%6 = phi i32* [ %0, %2 ], [ %181, %3 ]
%7 = load i32, i32* %5
%8 = lshr i32 %7, 19
store i32 %8, i32* %6
%9 = load i32, i32* %5
%10 = lshr i32 %9, 6
%11 = and i32 %10, 8191
%12 = getelementptr inbounds i32, i32* %6, i64 1
store i32 %11, i32* %12
%13 = load i32, i32* %5
%14 = shl i32 %13, 7
%15 = and i32 %14, 8064
%16 = getelementptr inbounds i32, i32* %6, i64 2
store i32 %15, i32* %16
%17 = getelementptr inbounds i32, i32* %5, i64 1
%18 = load i32, i32* %17
%19 = lshr i32 %18, 25
%20 = or i32 %19, %15
store i32 %20, i32* %16
%21 = load i32, i32* %17
%22 = lshr i32 %21, 12
%23 = and i32 %22, 8191
%24 = getelementptr inbounds i32, i32* %6, i64 3
store i32 %23, i32* %24
%25 = load i32, i32* %17
%26 = shl i32 %25, 1
%27 = and i32 %26, 8190
%28 = getelementptr inbounds i32, i32* %6, i64 4
store i32 %27, i32* %28
%29 = getelementptr inbounds i32, i32* %5, i64 2
%30 = load i32, i32* %29
%31 = lshr i32 %30, 31
%32 = or i32 %31, %27
store i32 %32, i32* %28
%33 = load i32, i32* %29
%34 = lshr i32 %33, 18
%35 = and i32 %34, 8191
%36 = getelementptr inbounds i32, i32* %6, i64 5
store i32 %35, i32* %36
%37 = load i32, i32* %29
%38 = lshr i32 %37, 5
%39 = and i32 %38, 8191
%40 = getelementptr inbounds i32, i32* %6, i64 6
store i32 %39, i32* %40
%41 = load i32, i32* %29
%42 = shl i32 %41, 8
%43 = and i32 %42, 7936
%44 = getelementptr inbounds i32, i32* %6, i64 7
store i32 %43, i32* %44
%45 = getelementptr inbounds i32, i32* %5, i64 3
%46 = load i32, i32* %45
%47 = lshr i32 %46, 24
%48 = or i32 %47, %43
store i32 %48, i32* %44
%49 = load i32, i32* %45
%50 = lshr i32 %49, 11
%51 = and i32 %50, 8191
%52 = getelementptr inbounds i32, i32* %6, i64 8
store i32 %51, i32* %52
%53 = load i32, i32* %45
%54 = shl i32 %53, 2
%55 = and i32 %54, 8188
%56 = getelementptr inbounds i32, i32* %6, i64 9
store i32 %55, i32* %56
%57 = getelementptr inbounds i32, i32* %5, i64 4
%58 = load i32, i32* %57
%59 = lshr i32 %58, 30
%60 = or i32 %59, %55
store i32 %60, i32* %56
%61 = load i32, i32* %57
%62 = lshr i32 %61, 17
%63 = and i32 %62, 8191
%64 = getelementptr inbounds i32, i32* %6, i64 10
store i32 %63, i32* %64
%65 = load i32, i32* %57
%66 = lshr i32 %65, 4
%67 = and i32 %66, 8191
%68 = getelementptr inbounds i32, i32* %6, i64 11
store i32 %67, i32* %68
%69 = load i32, i32* %57
%70 = shl i32 %69, 9
%71 = and i32 %70, 7680
%72 = getelementptr inbounds i32, i32* %6, i64 12
store i32 %71, i32* %72
%73 = getelementptr inbounds i32, i32* %5, i64 5
%74 = load i32, i32* %73
%75 = lshr i32 %74, 23
%76 = or i32 %75, %71
store i32 %76, i32* %72
%77 = load i32, i32* %73
%78 = lshr i32 %77, 10
%79 = and i32 %78, 8191
%80 = getelementptr inbounds i32, i32* %6, i64 13
store i32 %79, i32* %80
%81 = load i32, i32* %73
%82 = shl i32 %81, 3
%83 = and i32 %82, 8184
%84 = getelementptr inbounds i32, i32* %6, i64 14
store i32 %83, i32* %84
%85 = getelementptr inbounds i32, i32* %5, i64 6
%86 = load i32, i32* %85
%87 = lshr i32 %86, 29
%88 = or i32 %87, %83
store i32 %88, i32* %84
%89 = load i32, i32* %85
%90 = lshr i32 %89, 16
%91 = and i32 %90, 8191
%92 = getelementptr inbounds i32, i32* %6, i64 15
store i32 %91, i32* %92
%93 = load i32, i32* %85
%94 = lshr i32 %93, 3
%95 = and i32 %94, 8191
%96 = getelementptr inbounds i32, i32* %6, i64 16
store i32 %95, i32* %96
%97 = load i32, i32* %85
%98 = shl i32 %97, 10
%99 = and i32 %98, 7168
%100 = getelementptr inbounds i32, i32* %6, i64 17
store i32 %99, i32* %100
%101 = getelementptr inbounds i32, i32* %5, i64 7
%102 = load i32, i32* %101
%103 = lshr i32 %102, 22
%104 = or i32 %103, %99
store i32 %104, i32* %100
%105 = load i32, i32* %101
%106 = lshr i32 %105, 9
%107 = and i32 %106, 8191
%108 = getelementptr inbounds i32, i32* %6, i64 18
store i32 %107, i32* %108
%109 = load i32, i32* %101
%110 = shl i32 %109, 4
%111 = and i32 %110, 8176
%112 = getelementptr inbounds i32, i32* %6, i64 19
store i32 %111, i32* %112
%113 = getelementptr inbounds i32, i32* %5, i64 8
%114 = load i32, i32* %113
%115 = lshr i32 %114, 28
%116 = or i32 %115, %111
store i32 %116, i32* %112
%117 = load i32, i32* %113
%118 = lshr i32 %117, 15
%119 = and i32 %118, 8191
%120 = getelementptr inbounds i32, i32* %6, i64 20
store i32 %119, i32* %120
%121 = load i32, i32* %113
%122 = lshr i32 %121, 2
%123 = and i32 %122, 8191
%124 = getelementptr inbounds i32, i32* %6, i64 21
store i32 %123, i32* %124
%125 = load i32, i32* %113
%126 = shl i32 %125, 11
%127 = and i32 %126, 6144
%128 = getelementptr inbounds i32, i32* %6, i64 22
store i32 %127, i32* %128
%129 = getelementptr inbounds i32, i32* %5, i64 9
%130 = load i32, i32* %129
%131 = lshr i32 %130, 21
%132 = or i32 %131, %127
store i32 %132, i32* %128
%133 = load i32, i32* %129
%134 = lshr i32 %133, 8
%135 = and i32 %134, 8191
%136 = getelementptr inbounds i32, i32* %6, i64 23
store i32 %135, i32* %136
%137 = load i32, i32* %129
%138 = shl i32 %137, 5
%139 = and i32 %138, 8160
%140 = getelementptr inbounds i32, i32* %6, i64 24
store i32 %139, i32* %140
%141 = getelementptr inbounds i32, i32* %5, i64 10
%142 = load i32, i32* %141
%143 = lshr i32 %142, 27
%144 = or i32 %143, %139
store i32 %144, i32* %140
%145 = load i32, i32* %141
%146 = lshr i32 %145, 14
%147 = and i32 %146, 8191
%148 = getelementptr inbounds i32, i32* %6, i64 25
store i32 %147, i32* %148
%149 = load i32, i32* %141
%150 = lshr i32 %149, 1
%151 = and i32 %150, 8191
%152 = getelementptr inbounds i32, i32* %6, i64 26
store i32 %151, i32* %152
%153 = load i32, i32* %141
%154 = shl i32 %153, 12
%155 = and i32 %154, 4096
%156 = getelementptr inbounds i32, i32* %6, i64 27
store i32 %155, i32* %156
%157 = getelementptr inbounds i32, i32* %5, i64 11
%158 = load i32, i32* %157
%159 = lshr i32 %158, 20
%160 = or i32 %159, %155
store i32 %160, i32* %156
%161 = load i32, i32* %157
%162 = lshr i32 %161, 7
%163 = and i32 %162, 8191
%164 = getelementptr inbounds i32, i32* %6, i64 28
store i32 %163, i32* %164
%165 = load i32, i32* %157
%166 = shl i32 %165, 6
%167 = and i32 %166, 8128
%168 = getelementptr inbounds i32, i32* %6, i64 29
store i32 %167, i32* %168
%169 = getelementptr inbounds i32, i32* %5, i64 12
%170 = load i32, i32* %169
%171 = lshr i32 %170, 26
%172 = or i32 %171, %167
store i32 %172, i32* %168
%173 = load i32, i32* %169
%174 = lshr i32 %173, 13
%175 = and i32 %174, 8191
%176 = getelementptr inbounds i32, i32* %6, i64 30
store i32 %175, i32* %176
%177 = load i32, i32* %169
%178 = and i32 %177, 8191
%179 = getelementptr inbounds i32, i32* %6, i64 31
store i32 %178, i32* %179
%180 = add nuw nsw i32 %4, 32
%181 = getelementptr inbounds i32, i32* %6, i64 32
%182 = getelementptr inbounds i32, i32* %5, i64 13
%183 = icmp ult i32 %4, 96
br i1 %183, label %3, label %184
184: ; preds = %3
ret void
}