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


x86 assembly (clang, -O0):
<unpack12>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x80,-0x14(%rbp)
jge    14a0 <unpack12+0x3a0>
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
shr    $0x14,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
shr    $0x8,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
shl    $0x4,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x8(%rax)
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%ecx
shr    $0x1c,%ecx
mov    -0x8(%rbp),%rax
or     0x8(%rax),%ecx
mov    %ecx,0x8(%rax)
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%ecx
shr    $0x10,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0xc(%rax)
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%ecx
shr    $0x4,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x10(%rax)
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%ecx
shl    $0x8,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x14(%rax)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%ecx
shr    $0x18,%ecx
mov    -0x8(%rbp),%rax
or     0x14(%rax),%ecx
mov    %ecx,0x14(%rax)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%ecx
shr    $0xc,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x18(%rax)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x1c(%rax)
mov    -0x10(%rbp),%rax
mov    0xc(%rax),%ecx
shr    $0x14,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x20(%rax)
mov    -0x10(%rbp),%rax
mov    0xc(%rax),%ecx
shr    $0x8,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x24(%rax)
mov    -0x10(%rbp),%rax
mov    0xc(%rax),%ecx
shl    $0x4,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x28(%rax)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%ecx
shr    $0x1c,%ecx
mov    -0x8(%rbp),%rax
or     0x28(%rax),%ecx
mov    %ecx,0x28(%rax)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%ecx
shr    $0x10,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x2c(%rax)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%ecx
shr    $0x4,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x30(%rax)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%ecx
shl    $0x8,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x34(%rax)
mov    -0x10(%rbp),%rax
mov    0x14(%rax),%ecx
shr    $0x18,%ecx
mov    -0x8(%rbp),%rax
or     0x34(%rax),%ecx
mov    %ecx,0x34(%rax)
mov    -0x10(%rbp),%rax
mov    0x14(%rax),%ecx
shr    $0xc,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x38(%rax)
mov    -0x10(%rbp),%rax
mov    0x14(%rax),%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x3c(%rax)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%ecx
shr    $0x14,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x40(%rax)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%ecx
shr    $0x8,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x44(%rax)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%ecx
shl    $0x4,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x48(%rax)
mov    -0x10(%rbp),%rax
mov    0x1c(%rax),%ecx
shr    $0x1c,%ecx
mov    -0x8(%rbp),%rax
or     0x48(%rax),%ecx
mov    %ecx,0x48(%rax)
mov    -0x10(%rbp),%rax
mov    0x1c(%rax),%ecx
shr    $0x10,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x4c(%rax)
mov    -0x10(%rbp),%rax
mov    0x1c(%rax),%ecx
shr    $0x4,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x50(%rax)
mov    -0x10(%rbp),%rax
mov    0x1c(%rax),%ecx
shl    $0x8,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x54(%rax)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%ecx
shr    $0x18,%ecx
mov    -0x8(%rbp),%rax
or     0x54(%rax),%ecx
mov    %ecx,0x54(%rax)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%ecx
shr    $0xc,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x58(%rax)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x5c(%rax)
mov    -0x10(%rbp),%rax
mov    0x24(%rax),%ecx
shr    $0x14,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x60(%rax)
mov    -0x10(%rbp),%rax
mov    0x24(%rax),%ecx
shr    $0x8,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x64(%rax)
mov    -0x10(%rbp),%rax
mov    0x24(%rax),%ecx
shl    $0x4,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x68(%rax)
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%ecx
shr    $0x1c,%ecx
mov    -0x8(%rbp),%rax
or     0x68(%rax),%ecx
mov    %ecx,0x68(%rax)
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%ecx
shr    $0x10,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x6c(%rax)
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%ecx
shr    $0x4,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x70(%rax)
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%ecx
shl    $0x8,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x74(%rax)
mov    -0x10(%rbp),%rax
mov    0x2c(%rax),%ecx
shr    $0x18,%ecx
mov    -0x8(%rbp),%rax
or     0x74(%rax),%ecx
mov    %ecx,0x74(%rax)
mov    -0x10(%rbp),%rax
mov    0x2c(%rax),%ecx
shr    $0xc,%ecx
and    $0xfff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x78(%rax)
mov    -0x10(%rbp),%rax
mov    0x2c(%rax),%ecx
and    $0xfff,%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    $0x30,%rax
mov    %rax,-0x10(%rbp)
jmp    1113 <unpack12+0x13>
pop    %rbp
ret

x86 assembly (clang, -O2):
<unpack12>:
mov    $0xffffffe0,%eax
mov    $0xfff,%r8d
nopl   0x0(%rax,%rax,1)
mov    (%rsi),%edx
shr    $0x14,%edx
mov    %edx,(%rdi)
mov    (%rsi),%edx
shr    $0x8,%edx
and    $0xfff,%edx
mov    %edx,0x4(%rdi)
mov    (%rsi),%edx
movzbl %dl,%ecx
shl    $0x4,%ecx
mov    %ecx,0x8(%rdi)
mov    0x4(%rsi),%ecx
shrd   $0x1c,%edx,%ecx
and    $0xfff,%ecx
mov    %ecx,0x8(%rdi)
movzwl 0x6(%rsi),%ecx
and    $0xfff,%ecx
mov    %ecx,0xc(%rdi)
mov    0x4(%rsi),%ecx
shr    $0x4,%ecx
and    $0xfff,%ecx
mov    %ecx,0x10(%rdi)
mov    0x4(%rsi),%ecx
mov    %ecx,%edx
and    $0xf,%edx
shl    $0x8,%edx
mov    %edx,0x14(%rdi)
mov    0x8(%rsi),%edx
shrd   $0x18,%ecx,%edx
and    $0xfff,%edx
mov    %edx,0x14(%rdi)
mov    0x8(%rsi),%ecx
shr    $0xc,%ecx
and    $0xfff,%ecx
mov    %ecx,0x18(%rdi)
mov    0x8(%rsi),%ecx
and    %r8d,%ecx
mov    %ecx,0x1c(%rdi)
mov    0xc(%rsi),%ecx
shr    $0x14,%ecx
mov    %ecx,0x20(%rdi)
mov    0xc(%rsi),%ecx
shr    $0x8,%ecx
and    $0xfff,%ecx
mov    %ecx,0x24(%rdi)
mov    0xc(%rsi),%ecx
movzbl %cl,%edx
shl    $0x4,%edx
mov    %edx,0x28(%rdi)
mov    0x10(%rsi),%edx
shrd   $0x1c,%ecx,%edx
and    $0xfff,%edx
mov    %edx,0x28(%rdi)
movzwl 0x12(%rsi),%ecx
and    $0xfff,%ecx
mov    %ecx,0x2c(%rdi)
mov    0x10(%rsi),%ecx
shr    $0x4,%ecx
and    $0xfff,%ecx
mov    %ecx,0x30(%rdi)
mov    0x10(%rsi),%ecx
mov    %ecx,%edx
and    $0xf,%edx
shl    $0x8,%edx
mov    %edx,0x34(%rdi)
mov    0x14(%rsi),%edx
shrd   $0x18,%ecx,%edx
and    $0xfff,%edx
mov    %edx,0x34(%rdi)
mov    0x14(%rsi),%ecx
shr    $0xc,%ecx
and    $0xfff,%ecx
mov    %ecx,0x38(%rdi)
mov    0x14(%rsi),%ecx
and    %r8d,%ecx
mov    %ecx,0x3c(%rdi)
mov    0x18(%rsi),%ecx
shr    $0x14,%ecx
mov    %ecx,0x40(%rdi)
mov    0x18(%rsi),%ecx
shr    $0x8,%ecx
and    $0xfff,%ecx
mov    %ecx,0x44(%rdi)
mov    0x18(%rsi),%ecx
movzbl %cl,%edx
shl    $0x4,%edx
mov    %edx,0x48(%rdi)
mov    0x1c(%rsi),%edx
shrd   $0x1c,%ecx,%edx
and    $0xfff,%edx
mov    %edx,0x48(%rdi)
movzwl 0x1e(%rsi),%ecx
and    $0xfff,%ecx
mov    %ecx,0x4c(%rdi)
mov    0x1c(%rsi),%ecx
shr    $0x4,%ecx
and    $0xfff,%ecx
mov    %ecx,0x50(%rdi)
mov    0x1c(%rsi),%ecx
mov    %ecx,%edx
and    $0xf,%edx
shl    $0x8,%edx
mov    %edx,0x54(%rdi)
mov    0x20(%rsi),%edx
shrd   $0x18,%ecx,%edx
and    $0xfff,%edx
mov    %edx,0x54(%rdi)
mov    0x20(%rsi),%ecx
shr    $0xc,%ecx
and    $0xfff,%ecx
mov    %ecx,0x58(%rdi)
mov    0x20(%rsi),%ecx
and    %r8d,%ecx
mov    %ecx,0x5c(%rdi)
mov    0x24(%rsi),%ecx
shr    $0x14,%ecx
mov    %ecx,0x60(%rdi)
mov    0x24(%rsi),%ecx
shr    $0x8,%ecx
and    $0xfff,%ecx
mov    %ecx,0x64(%rdi)
mov    0x24(%rsi),%ecx
movzbl %cl,%edx
shl    $0x4,%edx
mov    %edx,0x68(%rdi)
mov    0x28(%rsi),%edx
shrd   $0x1c,%ecx,%edx
and    $0xfff,%edx
mov    %edx,0x68(%rdi)
movzwl 0x2a(%rsi),%ecx
and    $0xfff,%ecx
mov    %ecx,0x6c(%rdi)
mov    0x28(%rsi),%ecx
shr    $0x4,%ecx
and    $0xfff,%ecx
mov    %ecx,0x70(%rdi)
mov    0x28(%rsi),%ecx
mov    %ecx,%edx
and    $0xf,%edx
shl    $0x8,%edx
mov    %edx,0x74(%rdi)
mov    0x2c(%rsi),%edx
shrd   $0x18,%ecx,%edx
and    $0xfff,%edx
mov    %edx,0x74(%rdi)
mov    0x2c(%rsi),%ecx
shr    $0xc,%ecx
and    $0xfff,%ecx
mov    %ecx,0x78(%rdi)
mov    0x2c(%rsi),%ecx
and    %r8d,%ecx
mov    %ecx,0x7c(%rdi)
add    $0x20,%eax
add    $0x30,%rsi
sub    $0xffffffffffffff80,%rdi
cmp    $0x60,%eax
jb     1110 <unpack12+0x10>
ret

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

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