void interpRGB24(unsigned char *src1, unsigned char *src2, unsigned char *dst1,
                 unsigned char *dst2, int width) {
  unsigned int a, b, c, d, e, f;
  unsigned int w, x, y, z;
  width >>= 1;
  while (--width) {
    a = *(unsigned int *)(src1 + 0);
    b = *(unsigned int *)(src1 + 4);
    e = *(unsigned int *)(src1 + 8);
    w = a;
    x = a + b + 0x00400801;
    y = b;
    z = b + e + 0x00400801;
    *(unsigned int *)(dst1 + 0) =
        ((w & 0x000000ff) >> 0) | ((w & 0x0007f800) >> 3) |
        ((w & 0x3fc00000) >> 6) | ((x & 0x000001fe) << 23);
    *(unsigned int *)(dst1 + 4) =
        ((x & 0x000ff000) >> 12) | ((x & 0x7f800000) >> 15) |
        ((y & 0x000000ff) << 16) | ((y & 0x0007f800) << 13);
    *(unsigned int *)(dst1 + 8) =
        ((y & 0x3fc00000) >> 22) | ((z & 0x000001fe) << 7) |
        ((z & 0x000ff000) << 4) | ((z & 0x7f800000) << 1);
    c = *(unsigned int *)(src2 + 0);
    d = *(unsigned int *)(src2 + 4);
    f = *(unsigned int *)(src2 + 8);
    w = a + c + 0x00400801;
    x = a + b + c + d + (0x00400801 << 1);
    y = b + d + 0x00400801;
    z = b + e + d + f + (0x00400801 << 1);
    *(unsigned int *)(dst2 + 0) =
        ((w & 0x000001fe) >> 1) | ((w & 0x000ff000) >> 4) |
        ((w & 0x7f800000) >> 7) | ((x & 0x000003fc) << 22);
    *(unsigned int *)(dst2 + 4) =
        ((x & 0x001fe000) >> 13) | ((x & 0xff000000) >> 16) |
        ((y & 0x000001fe) << 15) | ((y & 0x000ff000) << 12);
    *(unsigned int *)(dst2 + 8) =
        ((y & 0x7f800000) >> 23) | ((z & 0x000003fc) << 6) |
        ((z & 0x001fe000) << 3) | ((z & 0xff000000) << 0);
    src1 += 8;
    src2 += 8;
    dst1 += 12;
    dst2 += 12;
  }
  a = *(unsigned int *)(src1 + 0);
  b = *(unsigned int *)(src1 + 4);
  e = b;
  w = a;
  x = a + b + 0x00400801;
  y = b;
  z = b + e + 0x00400801;
  *(unsigned int *)(dst1 + 0) =
      ((w & 0x000000ff) >> 0) | ((w & 0x0007f800) >> 3) |
      ((w & 0x3fc00000) >> 6) | ((x & 0x000001fe) << 23);
  *(unsigned int *)(dst1 + 4) =
      ((x & 0x000ff000) >> 12) | ((x & 0x7f800000) >> 15) |
      ((y & 0x000000ff) << 16) | ((y & 0x0007f800) << 13);
  *(unsigned int *)(dst1 + 8) =
      ((y & 0x3fc00000) >> 22) | ((z & 0x000001fe) << 7) |
      ((z & 0x000ff000) << 4) | ((z & 0x7f800000) << 1);
  c = *(unsigned int *)(src2 + 0);
  d = *(unsigned int *)(src2 + 4);
  f = d;
  w = a + c + 0x00400801;
  x = a + b + c + d + (0x00400801 << 1);
  y = b + d + 0x00400801;
  z = b + e + d + f + (0x00400801 << 1);
  *(unsigned int *)(dst2 + 0) =
      ((w & 0x000001fe) >> 1) | ((w & 0x000ff000) >> 4) |
      ((w & 0x7f800000) >> 7) | ((x & 0x000003fc) << 22);
  *(unsigned int *)(dst2 + 4) =
      ((x & 0x001fe000) >> 13) | ((x & 0xff000000) >> 16) |
      ((y & 0x000001fe) << 15) | ((y & 0x000ff000) << 12);
  *(unsigned int *)(dst2 + 8) =
      ((y & 0x7f800000) >> 23) | ((z & 0x000003fc) << 6) |
      ((z & 0x001fe000) << 3) | ((z & 0xff000000) << 0);
}


x86 assembly (clang, -O0):
<interpRGB24>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    -0x24(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
cmp    $0x0,%eax
je     1368 <interpRGB24+0x268>
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x28(%rbp)
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x28(%rbp),%eax
add    -0x2c(%rbp),%eax
add    $0x400801,%eax
mov    %eax,-0x44(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x2c(%rbp),%eax
add    -0x38(%rbp),%eax
add    $0x400801,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x40(%rbp),%ecx
and    $0xff,%ecx
shr    $0x0,%ecx
mov    -0x40(%rbp),%eax
and    $0x7f800,%eax
shr    $0x3,%eax
or     %eax,%ecx
mov    -0x40(%rbp),%eax
and    $0x3fc00000,%eax
shr    $0x6,%eax
or     %eax,%ecx
mov    -0x44(%rbp),%eax
and    $0x1fe,%eax
shl    $0x17,%eax
or     %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x44(%rbp),%ecx
and    $0xff000,%ecx
shr    $0xc,%ecx
mov    -0x44(%rbp),%eax
and    $0x7f800000,%eax
shr    $0xf,%eax
or     %eax,%ecx
mov    -0x48(%rbp),%eax
and    $0xff,%eax
shl    $0x10,%eax
or     %eax,%ecx
mov    -0x48(%rbp),%eax
and    $0x7f800,%eax
shl    $0xd,%eax
or     %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x48(%rbp),%ecx
and    $0x3fc00000,%ecx
shr    $0x16,%ecx
mov    -0x4c(%rbp),%eax
and    $0x1fe,%eax
shl    $0x7,%eax
or     %eax,%ecx
mov    -0x4c(%rbp),%eax
and    $0xff000,%eax
shl    $0x4,%eax
or     %eax,%ecx
mov    -0x4c(%rbp),%eax
and    $0x7f800000,%eax
shl    $0x1,%eax
or     %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,0x8(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0x34(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x28(%rbp),%eax
add    -0x30(%rbp),%eax
add    $0x400801,%eax
mov    %eax,-0x40(%rbp)
mov    -0x28(%rbp),%eax
add    -0x2c(%rbp),%eax
add    -0x30(%rbp),%eax
add    -0x34(%rbp),%eax
add    $0x801002,%eax
mov    %eax,-0x44(%rbp)
mov    -0x2c(%rbp),%eax
add    -0x34(%rbp),%eax
add    $0x400801,%eax
mov    %eax,-0x48(%rbp)
mov    -0x2c(%rbp),%eax
add    -0x38(%rbp),%eax
add    -0x34(%rbp),%eax
add    -0x3c(%rbp),%eax
add    $0x801002,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x40(%rbp),%ecx
and    $0x1fe,%ecx
shr    $0x1,%ecx
mov    -0x40(%rbp),%eax
and    $0xff000,%eax
shr    $0x4,%eax
or     %eax,%ecx
mov    -0x40(%rbp),%eax
and    $0x7f800000,%eax
shr    $0x7,%eax
or     %eax,%ecx
mov    -0x44(%rbp),%eax
and    $0x3fc,%eax
shl    $0x16,%eax
or     %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x44(%rbp),%ecx
and    $0x1fe000,%ecx
shr    $0xd,%ecx
mov    -0x44(%rbp),%eax
and    $0xff000000,%eax
shr    $0x10,%eax
or     %eax,%ecx
mov    -0x48(%rbp),%eax
and    $0x1fe,%eax
shl    $0xf,%eax
or     %eax,%ecx
mov    -0x48(%rbp),%eax
and    $0xff000,%eax
shl    $0xc,%eax
or     %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x48(%rbp),%ecx
and    $0x7f800000,%ecx
shr    $0x17,%ecx
mov    -0x4c(%rbp),%eax
and    $0x3fc,%eax
shl    $0x6,%eax
or     %eax,%ecx
mov    -0x4c(%rbp),%eax
and    $0x1fe000,%eax
shl    $0x3,%eax
or     %eax,%ecx
mov    -0x4c(%rbp),%eax
and    $0xff000000,%eax
shl    $0x0,%eax
or     %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,0x8(%rax)
mov    -0x8(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rax
add    $0xc,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
add    $0xc,%rax
mov    %rax,-0x20(%rbp)
jmp    1121 <interpRGB24+0x21>
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x28(%rbp)
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x28(%rbp),%eax
add    -0x2c(%rbp),%eax
add    $0x400801,%eax
mov    %eax,-0x44(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x2c(%rbp),%eax
add    -0x38(%rbp),%eax
add    $0x400801,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x40(%rbp),%ecx
and    $0xff,%ecx
shr    $0x0,%ecx
mov    -0x40(%rbp),%eax
and    $0x7f800,%eax
shr    $0x3,%eax
or     %eax,%ecx
mov    -0x40(%rbp),%eax
and    $0x3fc00000,%eax
shr    $0x6,%eax
or     %eax,%ecx
mov    -0x44(%rbp),%eax
and    $0x1fe,%eax
shl    $0x17,%eax
or     %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x44(%rbp),%ecx
and    $0xff000,%ecx
shr    $0xc,%ecx
mov    -0x44(%rbp),%eax
and    $0x7f800000,%eax
shr    $0xf,%eax
or     %eax,%ecx
mov    -0x48(%rbp),%eax
and    $0xff,%eax
shl    $0x10,%eax
or     %eax,%ecx
mov    -0x48(%rbp),%eax
and    $0x7f800,%eax
shl    $0xd,%eax
or     %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x48(%rbp),%ecx
and    $0x3fc00000,%ecx
shr    $0x16,%ecx
mov    -0x4c(%rbp),%eax
and    $0x1fe,%eax
shl    $0x7,%eax
or     %eax,%ecx
mov    -0x4c(%rbp),%eax
and    $0xff000,%eax
shl    $0x4,%eax
or     %eax,%ecx
mov    -0x4c(%rbp),%eax
and    $0x7f800000,%eax
shl    $0x1,%eax
or     %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,0x8(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x28(%rbp),%eax
add    -0x30(%rbp),%eax
add    $0x400801,%eax
mov    %eax,-0x40(%rbp)
mov    -0x28(%rbp),%eax
add    -0x2c(%rbp),%eax
add    -0x30(%rbp),%eax
add    -0x34(%rbp),%eax
add    $0x801002,%eax
mov    %eax,-0x44(%rbp)
mov    -0x2c(%rbp),%eax
add    -0x34(%rbp),%eax
add    $0x400801,%eax
mov    %eax,-0x48(%rbp)
mov    -0x2c(%rbp),%eax
add    -0x38(%rbp),%eax
add    -0x34(%rbp),%eax
add    -0x3c(%rbp),%eax
add    $0x801002,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x40(%rbp),%ecx
and    $0x1fe,%ecx
shr    $0x1,%ecx
mov    -0x40(%rbp),%eax
and    $0xff000,%eax
shr    $0x4,%eax
or     %eax,%ecx
mov    -0x40(%rbp),%eax
and    $0x7f800000,%eax
shr    $0x7,%eax
or     %eax,%ecx
mov    -0x44(%rbp),%eax
and    $0x3fc,%eax
shl    $0x16,%eax
or     %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x44(%rbp),%ecx
and    $0x1fe000,%ecx
shr    $0xd,%ecx
mov    -0x44(%rbp),%eax
and    $0xff000000,%eax
shr    $0x10,%eax
or     %eax,%ecx
mov    -0x48(%rbp),%eax
and    $0x1fe,%eax
shl    $0xf,%eax
or     %eax,%ecx
mov    -0x48(%rbp),%eax
and    $0xff000,%eax
shl    $0xc,%eax
or     %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x48(%rbp),%ecx
and    $0x7f800000,%ecx
shr    $0x17,%ecx
mov    -0x4c(%rbp),%eax
and    $0x3fc,%eax
shl    $0x6,%eax
or     %eax,%ecx
mov    -0x4c(%rbp),%eax
and    $0x1fe000,%eax
shl    $0x3,%eax
or     %eax,%ecx
mov    -0x4c(%rbp),%eax
and    $0xff000000,%eax
shl    $0x0,%eax
or     %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,0x8(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<interpRGB24>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sar    %r8d
mov    %r8d,%ebp
add    $0xffffffff,%ebp
je     16a0 <interpRGB24+0x5a0>
add    $0xfffffffe,%r8d
cmp    $0x4,%r8d
jb     14ef <interpRGB24+0x3ef>
mov    %ebp,-0xc(%rsp)
lea    (%r8,%r8,2),%rax
lea    (%rcx,%rax,4),%rbp
add    $0xc,%rbp
cmp    %rdx,%rbp
seta   -0x8(%rsp)
lea    (%rdx,%rax,4),%rbx
add    $0xc,%rbx
cmp    %rcx,%rbx
seta   %r15b
lea    (%rdi,%r8,8),%rax
add    $0xc,%rax
cmp    %rdx,%rax
seta   %r13b
cmp    %rdi,%rbx
seta   %r11b
lea    (%rsi,%r8,8),%r10
add    $0xc,%r10
cmp    %rdx,%r10
seta   %r12b
cmp    %rsi,%rbx
seta   %r14b
cmp    %rcx,%rax
seta   %r9b
cmp    %rdi,%rbp
seta   %bl
cmp    %rcx,%r10
seta   %r10b
cmp    %rsi,%rbp
seta   %bpl
test   %r15b,-0x8(%rsp)
jne    14eb <interpRGB24+0x3eb>
and    %r11b,%r13b
jne    14eb <interpRGB24+0x3eb>
and    %r14b,%r12b
jne    14eb <interpRGB24+0x3eb>
and    %bl,%r9b
jne    14eb <interpRGB24+0x3eb>
and    %bpl,%r10b
jne    14eb <interpRGB24+0x3eb>
add    $0x1,%r8
mov    %r8d,%eax
and    $0x3,%eax
test   %rax,%rax
mov    $0x4,%ebp
cmovne %rax,%rbp
sub    %rbp,%r8
mov    -0xc(%rsp),%ebp
sub    %r8d,%ebp
lea    0x0(,%r8,4),%rax
lea    (%rax,%rax,2),%r9
lea    (%rcx,%r9,1),%r10
add    %rdx,%r9
lea    (%rsi,%r8,8),%r11
lea    (%rdi,%r8,8),%r14
xor    %ebx,%ebx
movdqa 0xdf6(%rip),%xmm9
movdqa 0xdfd(%rip),%xmm10
movdqa 0xe04(%rip),%xmm11
movdqa 0xe0b(%rip),%xmm12
movdqa 0xe12(%rip),%xmm13
movdqa 0xe19(%rip),%xmm8
xor    %eax,%eax
nopl   0x0(%rax)
movups (%rdi,%rax,8),%xmm4
movups 0x4(%rdi,%rax,8),%xmm3
movups 0x10(%rdi,%rax,8),%xmm0
shufps $0x88,%xmm0,%xmm4
movups 0x14(%rdi,%rax,8),%xmm0
movaps %xmm3,%xmm15
shufps $0x88,%xmm0,%xmm15
shufps $0xdd,%xmm0,%xmm3
movaps %xmm15,%xmm14
paddd  %xmm4,%xmm14
movdqa %xmm14,%xmm0
paddd  %xmm9,%xmm0
paddd  %xmm15,%xmm3
movdqa %xmm3,%xmm1
paddd  %xmm9,%xmm1
movdqa %xmm4,%xmm2
pand   %xmm10,%xmm2
movdqa %xmm4,%xmm6
psrld  $0x3,%xmm6
pand   %xmm11,%xmm6
por    %xmm2,%xmm6
movdqa %xmm4,%xmm7
psrld  $0x6,%xmm7
pand   %xmm12,%xmm7
por    %xmm6,%xmm7
movdqa %xmm0,%xmm2
pslld  $0x17,%xmm2
pand   %xmm13,%xmm2
por    %xmm7,%xmm2
movdqa %xmm0,%xmm7
psrld  $0xc,%xmm7
pand   %xmm10,%xmm7
psrld  $0xf,%xmm0
pand   %xmm11,%xmm0
movdqa %xmm15,%xmm5
pslld  $0x10,%xmm5
pand   %xmm12,%xmm5
movdqa %xmm15,%xmm6
pslld  $0xd,%xmm6
pand   %xmm13,%xmm6
por    %xmm5,%xmm6
por    %xmm0,%xmm6
por    %xmm7,%xmm6
movdqa %xmm15,%xmm0
psrld  $0x16,%xmm0
pand   %xmm10,%xmm0
movdqa %xmm1,%xmm5
pslld  $0x7,%xmm5
pand   %xmm11,%xmm5
por    %xmm0,%xmm5
movdqa %xmm1,%xmm0
pslld  $0x4,%xmm0
pand   %xmm12,%xmm0
paddd  %xmm1,%xmm1
pand   %xmm13,%xmm1
por    %xmm0,%xmm1
por    %xmm5,%xmm1
movdqa %xmm2,%xmm0
punpckldq %xmm6,%xmm0
movdqa %xmm1,%xmm5
shufps $0xd4,%xmm2,%xmm5
shufps $0x84,%xmm5,%xmm0
movdqa %xmm6,%xmm5
shufps $0xff,%xmm1,%xmm5
movaps %xmm1,%xmm7
unpckhps %xmm2,%xmm7
shufps $0x8c,%xmm5,%xmm7
punpckhqdq %xmm6,%xmm2
shufps $0x11,%xmm6,%xmm1
shufps $0x82,%xmm2,%xmm1
movups %xmm1,0x10(%rdx,%rbx,1)
movups %xmm7,0x20(%rdx,%rbx,1)
movups %xmm0,(%rdx,%rbx,1)
movups (%rsi,%rax,8),%xmm2
movups 0x4(%rsi,%rax,8),%xmm1
movups 0x10(%rsi,%rax,8),%xmm0
shufps $0x88,%xmm0,%xmm2
movups 0x14(%rsi,%rax,8),%xmm0
movaps %xmm1,%xmm5
shufps $0x88,%xmm0,%xmm5
shufps $0xdd,%xmm0,%xmm1
paddd  %xmm2,%xmm4
paddd  %xmm9,%xmm4
paddd  %xmm5,%xmm15
paddd  %xmm8,%xmm5
paddd  %xmm14,%xmm2
paddd  %xmm5,%xmm2
paddd  %xmm9,%xmm15
paddd  %xmm3,%xmm1
paddd  %xmm5,%xmm1
movdqa %xmm4,%xmm0
psrld  $0x1,%xmm0
pand   %xmm10,%xmm0
movdqa %xmm4,%xmm3
psrld  $0x4,%xmm3
pand   %xmm11,%xmm3
por    %xmm0,%xmm3
psrld  $0x7,%xmm4
pand   %xmm12,%xmm4
por    %xmm3,%xmm4
movdqa %xmm2,%xmm0
pslld  $0x16,%xmm0
pand   %xmm13,%xmm0
por    %xmm4,%xmm0
movdqa %xmm2,%xmm4
psrld  $0xd,%xmm4
pand   %xmm10,%xmm4
psrld  $0x10,%xmm2
pand   %xmm11,%xmm2
movdqa %xmm15,%xmm5
pslld  $0xf,%xmm5
pand   %xmm12,%xmm5
movdqa %xmm15,%xmm3
pslld  $0xc,%xmm3
pand   %xmm13,%xmm3
por    %xmm5,%xmm3
por    %xmm2,%xmm3
por    %xmm4,%xmm3
psrld  $0x17,%xmm15
pand   %xmm10,%xmm15
movdqa %xmm1,%xmm2
pslld  $0x6,%xmm2
pand   %xmm11,%xmm2
movdqa %xmm1,%xmm4
pslld  $0x3,%xmm4
pand   %xmm12,%xmm4
pand   %xmm13,%xmm1
por    %xmm15,%xmm1
por    %xmm2,%xmm1
por    %xmm4,%xmm1
movdqa %xmm1,%xmm2
shufps $0xd4,%xmm0,%xmm2
movdqa %xmm0,%xmm4
punpckldq %xmm3,%xmm4
shufps $0x84,%xmm2,%xmm4
movdqa %xmm3,%xmm2
shufps $0xff,%xmm1,%xmm2
movaps %xmm1,%xmm5
unpckhps %xmm0,%xmm5
shufps $0x8c,%xmm2,%xmm5
punpckhqdq %xmm3,%xmm0
shufps $0x11,%xmm3,%xmm1
shufps $0x82,%xmm0,%xmm1
movups %xmm1,0x10(%rcx,%rbx,1)
movups %xmm5,0x20(%rcx,%rbx,1)
movups %xmm4,(%rcx,%rbx,1)
add    $0x4,%rax
add    $0x30,%rbx
cmp    %rax,%r8
jne    1240 <interpRGB24+0x140>
mov    %r10,%rcx
mov    %r9,%rdx
mov    %r11,%rsi
mov    %r14,%rdi
jmp    14ef <interpRGB24+0x3ef>
mov    -0xc(%rsp),%ebp
mov    %ebp,%eax
mov    %rax,-0x8(%rsp)
xor    %r9d,%r9d
xor    %r11d,%r11d
nopl   0x0(%rax)
mov    (%rdi,%r11,8),%r15d
mov    0x4(%rdi,%r11,8),%r12d
mov    0x8(%rdi,%r11,8),%r10d
lea    (%r12,%r15,1),%ebx
add    $0x400801,%ebx
movzbl %r15b,%r14d
mov    %r15d,%ebp
shr    $0x3,%ebp
and    $0xff00,%ebp
or     %r14d,%ebp
mov    %r15d,%eax
shr    $0x6,%eax
and    $0xff0000,%eax
or     %ebp,%eax
mov    %ebx,%ebp
and    $0xfffffffe,%ebp
shl    $0x17,%ebp
or     %eax,%ebp
mov    %ebp,(%rdx)
movzbl %r12b,%eax
shl    $0x10,%eax
mov    %r12d,%ebp
shl    $0xd,%ebp
and    $0xff000000,%ebp
or     %eax,%ebp
mov    %ebx,%eax
shr    $0xf,%ebx
and    $0xff00,%ebx
or     %ebx,%ebp
lea    (%r10,%r12,1),%ebx
add    $0x400801,%ebx
shr    $0xc,%eax
movzbl %al,%eax
or     %eax,%ebp
mov    %ebp,0x4(%rdx)
mov    %r12d,%eax
shr    $0x16,%eax
movzbl %al,%eax
mov    %ebx,%ebp
shl    $0x7,%ebp
and    $0xff00,%ebp
or     %eax,%ebp
mov    %ebx,%eax
shl    $0x4,%eax
and    $0xff0000,%eax
or     %ebp,%eax
lea    (%r12,%r15,1),%r14d
mov    %r10d,%r13d
add    %r12d,%r13d
and    $0xff800000,%ebx
lea    (%rax,%rbx,2),%eax
mov    %eax,0x8(%rdx)
mov    (%rsi,%r11,8),%ebp
mov    0x4(%rsi,%r11,8),%r8d
lea    (%r15,%rbp,1),%ebx
add    $0x400801,%ebx
add    %r8d,%r14d
add    $0x801002,%r14d
add    %ebp,%r14d
lea    (%r12,%r8,1),%r10d
add    $0x400801,%r10d
add    %r13d,%r8d
add    $0x801002,%r8d
mov    %ebx,%ebp
shr    %ebp
movzbl %bpl,%ebp
mov    %ebx,%eax
shr    $0x4,%eax
and    $0xff00,%eax
or     %ebp,%eax
add    0x8(%rsi,%r11,8),%r8d
shr    $0x7,%ebx
and    $0xff0000,%ebx
or     %eax,%ebx
mov    %r14d,%eax
and    $0xfffffffc,%eax
shl    $0x16,%eax
or     %ebx,%eax
mov    %eax,(%rcx)
mov    %r10d,%eax
shl    $0xf,%eax
and    $0xff0000,%eax
mov    %r10d,%ebx
shl    $0xc,%ebx
and    $0xff000000,%ebx
or     %eax,%ebx
mov    %r14d,%eax
shr    $0x10,%r14d
and    $0xff00,%r14d
or     %r14d,%ebx
shr    $0xd,%eax
movzbl %al,%eax
or     %eax,%ebx
mov    %ebx,0x4(%rcx)
shr    $0x17,%r10d
movzbl %r10b,%eax
mov    %r8d,%ebp
mov    %r8d,%ebx
and    $0xff000000,%r8d
or     %eax,%r8d
shl    $0x6,%ebp
and    $0xff00,%ebp
or     %ebp,%r8d
and    $0x1fe000,%ebx
lea    (%r8,%rbx,8),%eax
mov    %eax,0x8(%rcx)
add    $0xc,%rdx
add    $0xc,%rcx
add    $0x1,%r11
add    $0xfffffffffffffff8,%r9
cmp    %r11d,-0x8(%rsp)
jne    1500 <interpRGB24+0x400>
sub    %r9,%rsi
sub    %r9,%rdi
mov    (%rdi),%r11d
mov    0x4(%rdi),%r14d
lea    (%r14,%r11,1),%r8d
lea    (%r14,%r11,1),%eax
add    $0x400801,%eax
lea    (%r14,%r14,1),%r10d
add    $0x400801,%r10d
movzbl %r11b,%r9d
mov    %r11d,%ebx
shr    $0x3,%ebx
and    $0xff00,%ebx
or     %r9d,%ebx
mov    %r11d,%ebp
shr    $0x6,%ebp
and    $0xff0000,%ebp
or     %ebx,%ebp
mov    %eax,%edi
and    $0xfffffffe,%edi
shl    $0x17,%edi
or     %ebp,%edi
mov    %edi,(%rdx)
mov    %eax,%edi
shr    $0xc,%edi
movzbl %dil,%edi
shr    $0xf,%eax
and    $0xff00,%eax
movzbl %r14b,%ebp
shl    $0x10,%ebp
mov    %r14d,%ebx
shl    $0xd,%ebx
and    $0xff000000,%ebx
or     %ebp,%ebx
or     %eax,%ebx
or     %edi,%ebx
mov    %ebx,0x4(%rdx)
mov    %r14d,%eax
shr    $0x16,%eax
movzbl %al,%eax
mov    %r10d,%edi
shl    $0x7,%edi
and    $0xff00,%edi
or     %eax,%edi
mov    %r10d,%eax
shl    $0x4,%eax
and    $0xff0000,%eax
or     %edi,%eax
and    $0xff800000,%r10d
lea    (%rax,%r10,2),%eax
mov    %eax,0x8(%rdx)
mov    (%rsi),%eax
mov    0x4(%rsi),%ebp
lea    (%r11,%rax,1),%edx
add    $0x400801,%edx
add    %eax,%r8d
lea    (%r8,%rbp,1),%esi
add    $0x801002,%esi
lea    (%r14,%rbp,1),%r8d
add    $0x400801,%r8d
add    %r14d,%ebp
lea    0x801002(%rbp,%rbp,1),%eax
mov    %edx,%edi
shr    %edi
movzbl %dil,%edi
mov    %edx,%ebx
shr    $0x4,%ebx
and    $0xff00,%ebx
or     %edi,%ebx
shr    $0x7,%edx
and    $0xff0000,%edx
or     %ebx,%edx
mov    %esi,%edi
and    $0xfffffffc,%edi
shl    $0x16,%edi
or     %edx,%edi
mov    %edi,(%rcx)
mov    %esi,%edx
shr    $0xd,%edx
movzbl %dl,%edx
shr    $0x10,%esi
and    $0xff00,%esi
or     %edx,%esi
mov    %r8d,%edx
shl    $0xf,%edx
and    $0xff0000,%edx
or     %esi,%edx
mov    %r8d,%esi
shl    $0xc,%esi
and    $0xff000000,%esi
or     %edx,%esi
mov    %esi,0x4(%rcx)
shr    $0x17,%r8d
movzbl %r8b,%edx
mov    %eax,%esi
shl    $0x6,%esi
and    $0xff00,%esi
mov    %eax,%edi
and    $0x1fe000,%edi
and    $0xff000000,%eax
or     %edx,%eax
or     %esi,%eax
lea    (%rax,%rdi,8),%eax
mov    %eax,0x8(%rcx)
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @interpRGB24(i8* nocapture %0, i8* nocapture %1, i8* nocapture writeonly %2, i8* nocapture writeonly %3, i32 %4) {
%6 = ashr i32 %4, 1
%7 = add nsw i32 %6, -1
%8 = icmp eq i32 %7, 0
br i1 %8, label %291, label %9
9: ; preds = %5
%10 = add nsw i32 %6, -2
%11 = zext i32 %10 to i64
%12 = add nuw nsw i64 %11, 1
%13 = icmp ult i32 %10, 4
br i1 %13, label %172, label %14
14: ; preds = %9
%15 = add nsw i32 %6, -2
%16 = zext i32 %15 to i64
%17 = mul nuw nsw i64 %16, 12
%18 = add nuw nsw i64 %17, 12
%19 = getelementptr i8, i8* %2, i64 %18
%20 = getelementptr i8, i8* %3, i64 %18
%21 = shl nuw nsw i64 %16, 3
%22 = add nuw nsw i64 %21, 12
%23 = getelementptr i8, i8* %0, i64 %22
%24 = getelementptr i8, i8* %1, i64 %22
%25 = icmp ugt i8* %20, %2
%26 = icmp ugt i8* %19, %3
%27 = and i1 %25, %26
%28 = icmp ugt i8* %23, %2
%29 = icmp ugt i8* %19, %0
%30 = and i1 %28, %29
%31 = or i1 %27, %30
%32 = icmp ugt i8* %24, %2
%33 = icmp ugt i8* %19, %1
%34 = and i1 %32, %33
%35 = or i1 %31, %34
%36 = icmp ugt i8* %23, %3
%37 = icmp ugt i8* %20, %0
%38 = and i1 %36, %37
%39 = or i1 %35, %38
%40 = icmp ugt i8* %24, %3
%41 = icmp ugt i8* %20, %1
%42 = and i1 %40, %41
%43 = or i1 %39, %42
br i1 %43, label %172, label %44
44: ; preds = %14
%45 = and i64 %12, 3
%46 = icmp eq i64 %45, 0
%47 = select i1 %46, i64 4, i64 %45
%48 = sub nsw i64 %12, %47
%49 = trunc i64 %48 to i32
%50 = sub i32 %7, %49
%51 = mul nsw i64 %48, 12
%52 = getelementptr i8, i8* %3, i64 %51
%53 = mul nsw i64 %48, 12
%54 = getelementptr i8, i8* %2, i64 %53
%55 = shl nsw i64 %48, 3
%56 = getelementptr i8, i8* %1, i64 %55
%57 = shl nsw i64 %48, 3
%58 = getelementptr i8, i8* %0, i64 %57
br label %59
59: ; preds = %59, %44
%60 = phi i64 [ 0, %44 ], [ %170, %59 ]
%61 = mul i64 %60, 12
%62 = mul i64 %60, 12
%63 = shl i64 %60, 3
%64 = getelementptr i8, i8* %1, i64 %63
%65 = shl i64 %60, 3
%66 = getelementptr i8, i8* %0, i64 %65
%67 = bitcast i8* %66 to <8 x i32>*
%68 = load <8 x i32>, <8 x i32>* %67
%69 = shufflevector <8 x i32> %68, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
%70 = getelementptr inbounds i8, i8* %66, i64 4
%71 = bitcast i8* %70 to <8 x i32>*
%72 = load <8 x i32>, <8 x i32>* %71
%73 = shufflevector <8 x i32> %72, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
%74 = shufflevector <8 x i32> %72, <8 x i32> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
%75 = add <4 x i32> %73, %69
%76 = add <4 x i32> %75, <i32 4196353, i32 4196353, i32 4196353, i32 4196353>
%77 = add <4 x i32> %74, %73
%78 = add <4 x i32> %77, <i32 4196353, i32 4196353, i32 4196353, i32 4196353>
%79 = and <4 x i32> %69, <i32 255, i32 255, i32 255, i32 255>
%80 = lshr <4 x i32> %69, <i32 3, i32 3, i32 3, i32 3>
%81 = and <4 x i32> %80, <i32 65280, i32 65280, i32 65280, i32 65280>
%82 = or <4 x i32> %81, %79
%83 = lshr <4 x i32> %69, <i32 6, i32 6, i32 6, i32 6>
%84 = and <4 x i32> %83, <i32 16711680, i32 16711680, i32 16711680, i32 16711680>
%85 = or <4 x i32> %82, %84
%86 = shl <4 x i32> %76, <i32 23, i32 23, i32 23, i32 23>
%87 = and <4 x i32> %86, <i32 -16777216, i32 -16777216, i32 -16777216, i32 -16777216>
%88 = or <4 x i32> %85, %87
%89 = lshr <4 x i32> %76, <i32 12, i32 12, i32 12, i32 12>
%90 = and <4 x i32> %89, <i32 255, i32 255, i32 255, i32 255>
%91 = lshr <4 x i32> %76, <i32 15, i32 15, i32 15, i32 15>
%92 = and <4 x i32> %91, <i32 65280, i32 65280, i32 65280, i32 65280>
%93 = shl <4 x i32> %73, <i32 16, i32 16, i32 16, i32 16>
%94 = and <4 x i32> %93, <i32 16711680, i32 16711680, i32 16711680, i32 16711680>
%95 = shl <4 x i32> %73, <i32 13, i32 13, i32 13, i32 13>
%96 = and <4 x i32> %95, <i32 -16777216, i32 -16777216, i32 -16777216, i32 -16777216>
%97 = or <4 x i32> %96, %94
%98 = or <4 x i32> %97, %92
%99 = or <4 x i32> %98, %90
%100 = lshr <4 x i32> %73, <i32 22, i32 22, i32 22, i32 22>
%101 = and <4 x i32> %100, <i32 255, i32 255, i32 255, i32 255>
%102 = shl <4 x i32> %78, <i32 7, i32 7, i32 7, i32 7>
%103 = and <4 x i32> %102, <i32 65280, i32 65280, i32 65280, i32 65280>
%104 = or <4 x i32> %103, %101
%105 = shl <4 x i32> %78, <i32 4, i32 4, i32 4, i32 4>
%106 = and <4 x i32> %105, <i32 16711680, i32 16711680, i32 16711680, i32 16711680>
%107 = or <4 x i32> %104, %106
%108 = shl <4 x i32> %78, <i32 1, i32 1, i32 1, i32 1>
%109 = and <4 x i32> %108, <i32 -16777216, i32 -16777216, i32 -16777216, i32 -16777216>
%110 = or <4 x i32> %107, %109
%111 = getelementptr inbounds i8, i8* %2, i64 %62
%112 = bitcast i8* %111 to <12 x i32>*
%113 = shufflevector <4 x i32> %88, <4 x i32> %99, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7>
%114 = shufflevector <4 x i32> %110, <4 x i32> poison, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 undef, i32 undef, i32 undef, i32 undef>
%115 = shufflevector <8 x i32> %113, <8 x i32> %114, <12 x i32> <i32 0, i32 4, i32 8, i32 1, i32 5, i32 9, i32 2, i32 6, i32 10, i32 3, i32 7, i32 11>
store <12 x i32> %115, <12 x i32>* %112
%116 = bitcast i8* %64 to <8 x i32>*
%117 = load <8 x i32>, <8 x i32>* %116
%118 = shufflevector <8 x i32> %117, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
%119 = getelementptr inbounds i8, i8* %64, i64 4
%120 = bitcast i8* %119 to <8 x i32>*
%121 = load <8 x i32>, <8 x i32>* %120
%122 = shufflevector <8 x i32> %121, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
%123 = shufflevector <8 x i32> %121, <8 x i32> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
%124 = add <4 x i32> %69, <i32 4196353, i32 4196353, i32 4196353, i32 4196353>
%125 = add <4 x i32> %124, %118
%126 = add <4 x i32> %122, <i32 8392706, i32 8392706, i32 8392706, i32 8392706>
%127 = add <4 x i32> %126, %75
%128 = add <4 x i32> %127, %118
%129 = add <4 x i32> %73, <i32 4196353, i32 4196353, i32 4196353, i32 4196353>
%130 = add <4 x i32> %129, %122
%131 = add <4 x i32> %126, %77
%132 = add <4 x i32> %131, %123
%133 = lshr <4 x i32> %125, <i32 1, i32 1, i32 1, i32 1>
%134 = and <4 x i32> %133, <i32 255, i32 255, i32 255, i32 255>
%135 = lshr <4 x i32> %125, <i32 4, i32 4, i32 4, i32 4>
%136 = and <4 x i32> %135, <i32 65280, i32 65280, i32 65280, i32 65280>
%137 = or <4 x i32> %134, %136
%138 = lshr <4 x i32> %125, <i32 7, i32 7, i32 7, i32 7>
%139 = and <4 x i32> %138, <i32 16711680, i32 16711680, i32 16711680, i32 16711680>
%140 = or <4 x i32> %137, %139
%141 = shl <4 x i32> %128, <i32 22, i32 22, i32 22, i32 22>
%142 = and <4 x i32> %141, <i32 -16777216, i32 -16777216, i32 -16777216, i32 -16777216>
%143 = or <4 x i32> %140, %142
%144 = lshr <4 x i32> %128, <i32 13, i32 13, i32 13, i32 13>
%145 = and <4 x i32> %144, <i32 255, i32 255, i32 255, i32 255>
%146 = lshr <4 x i32> %128, <i32 16, i32 16, i32 16, i32 16>
%147 = and <4 x i32> %146, <i32 65280, i32 65280, i32 65280, i32 65280>
%148 = shl <4 x i32> %130, <i32 15, i32 15, i32 15, i32 15>
%149 = and <4 x i32> %148, <i32 16711680, i32 16711680, i32 16711680, i32 16711680>
%150 = shl <4 x i32> %130, <i32 12, i32 12, i32 12, i32 12>
%151 = and <4 x i32> %150, <i32 -16777216, i32 -16777216, i32 -16777216, i32 -16777216>
%152 = or <4 x i32> %151, %149
%153 = or <4 x i32> %152, %147
%154 = or <4 x i32> %153, %145
%155 = lshr <4 x i32> %130, <i32 23, i32 23, i32 23, i32 23>
%156 = and <4 x i32> %155, <i32 255, i32 255, i32 255, i32 255>
%157 = shl <4 x i32> %132, <i32 6, i32 6, i32 6, i32 6>
%158 = and <4 x i32> %157, <i32 65280, i32 65280, i32 65280, i32 65280>
%159 = shl <4 x i32> %132, <i32 3, i32 3, i32 3, i32 3>
%160 = and <4 x i32> %159, <i32 16711680, i32 16711680, i32 16711680, i32 16711680>
%161 = and <4 x i32> %132, <i32 -16777216, i32 -16777216, i32 -16777216, i32 -16777216>
%162 = or <4 x i32> %161, %156
%163 = or <4 x i32> %162, %158
%164 = or <4 x i32> %163, %160
%165 = getelementptr inbounds i8, i8* %3, i64 %61
%166 = bitcast i8* %165 to <12 x i32>*
%167 = shufflevector <4 x i32> %143, <4 x i32> %154, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7>
%168 = shufflevector <4 x i32> %164, <4 x i32> poison, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 undef, i32 undef, i32 undef, i32 undef>
%169 = shufflevector <8 x i32> %167, <8 x i32> %168, <12 x i32> <i32 0, i32 4, i32 8, i32 1, i32 5, i32 9, i32 2, i32 6, i32 10, i32 3, i32 7, i32 11>
store <12 x i32> %169, <12 x i32>* %166
%170 = add nuw i64 %60, 4
%171 = icmp eq i64 %170, %48
br i1 %171, label %172, label %59
172: ; preds = %59, %14, %9
%173 = phi i32 [ %7, %14 ], [ %7, %9 ], [ %50, %59 ]
%174 = phi i8* [ %3, %14 ], [ %3, %9 ], [ %52, %59 ]
%175 = phi i8* [ %2, %14 ], [ %2, %9 ], [ %54, %59 ]
%176 = phi i8* [ %1, %14 ], [ %1, %9 ], [ %56, %59 ]
%177 = phi i8* [ %0, %14 ], [ %0, %9 ], [ %58, %59 ]
br label %178
178: ; preds = %172, %178
%179 = phi i32 [ %289, %178 ], [ %173, %172 ]
%180 = phi i8* [ %288, %178 ], [ %174, %172 ]
%181 = phi i8* [ %287, %178 ], [ %175, %172 ]
%182 = phi i8* [ %238, %178 ], [ %176, %172 ]
%183 = phi i8* [ %189, %178 ], [ %177, %172 ]
%184 = bitcast i8* %183 to i32*
%185 = load i32, i32* %184
%186 = getelementptr inbounds i8, i8* %183, i64 4
%187 = bitcast i8* %186 to i32*
%188 = load i32, i32* %187
%189 = getelementptr inbounds i8, i8* %183, i64 8
%190 = bitcast i8* %189 to i32*
%191 = load i32, i32* %190
%192 = add i32 %188, %185
%193 = add i32 %192, 4196353
%194 = add i32 %191, %188
%195 = add i32 %194, 4196353
%196 = and i32 %185, 255
%197 = lshr i32 %185, 3
%198 = and i32 %197, 65280
%199 = or i32 %198, %196
%200 = lshr i32 %185, 6
%201 = and i32 %200, 16711680
%202 = or i32 %199, %201
%203 = shl i32 %193, 23
%204 = and i32 %203, -16777216
%205 = or i32 %202, %204
%206 = bitcast i8* %181 to i32*
store i32 %205, i32* %206
%207 = lshr i32 %193, 12
%208 = and i32 %207, 255
%209 = lshr i32 %193, 15
%210 = and i32 %209, 65280
%211 = shl i32 %188, 16
%212 = and i32 %211, 16711680
%213 = shl i32 %188, 13
%214 = and i32 %213, -16777216
%215 = or i32 %214, %212
%216 = or i32 %215, %210
%217 = or i32 %216, %208
%218 = getelementptr inbounds i8, i8* %181, i64 4
%219 = bitcast i8* %218 to i32*
store i32 %217, i32* %219
%220 = lshr i32 %188, 22
%221 = and i32 %220, 255
%222 = shl i32 %195, 7
%223 = and i32 %222, 65280
%224 = or i32 %223, %221
%225 = shl i32 %195, 4
%226 = and i32 %225, 16711680
%227 = or i32 %224, %226
%228 = shl i32 %195, 1
%229 = and i32 %228, -16777216
%230 = or i32 %227, %229
%231 = getelementptr inbounds i8, i8* %181, i64 8
%232 = bitcast i8* %231 to i32*
store i32 %230, i32* %232
%233 = bitcast i8* %182 to i32*
%234 = load i32, i32* %233
%235 = getelementptr inbounds i8, i8* %182, i64 4
%236 = bitcast i8* %235 to i32*
%237 = load i32, i32* %236
%238 = getelementptr inbounds i8, i8* %182, i64 8
%239 = bitcast i8* %238 to i32*
%240 = load i32, i32* %239
%241 = add i32 %185, 4196353
%242 = add i32 %241, %234
%243 = add i32 %237, 8392706
%244 = add i32 %243, %192
%245 = add i32 %244, %234
%246 = add i32 %188, 4196353
%247 = add i32 %246, %237
%248 = add i32 %243, %194
%249 = add i32 %248, %240
%250 = lshr i32 %242, 1
%251 = and i32 %250, 255
%252 = lshr i32 %242, 4
%253 = and i32 %252, 65280
%254 = or i32 %251, %253
%255 = lshr i32 %242, 7
%256 = and i32 %255, 16711680
%257 = or i32 %254, %256
%258 = shl i32 %245, 22
%259 = and i32 %258, -16777216
%260 = or i32 %257, %259
%261 = bitcast i8* %180 to i32*
store i32 %260, i32* %261
%262 = lshr i32 %245, 13
%263 = and i32 %262, 255
%264 = lshr i32 %245, 16
%265 = and i32 %264, 65280
%266 = shl i32 %247, 15
%267 = and i32 %266, 16711680
%268 = shl i32 %247, 12
%269 = and i32 %268, -16777216
%270 = or i32 %269, %267
%271 = or i32 %270, %265
%272 = or i32 %271, %263
%273 = getelementptr inbounds i8, i8* %180, i64 4
%274 = bitcast i8* %273 to i32*
store i32 %272, i32* %274
%275 = lshr i32 %247, 23
%276 = and i32 %275, 255
%277 = shl i32 %249, 6
%278 = and i32 %277, 65280
%279 = shl i32 %249, 3
%280 = and i32 %279, 16711680
%281 = and i32 %249, -16777216
%282 = or i32 %281, %276
%283 = or i32 %282, %278
%284 = or i32 %283, %280
%285 = getelementptr inbounds i8, i8* %180, i64 8
%286 = bitcast i8* %285 to i32*
store i32 %284, i32* %286
%287 = getelementptr inbounds i8, i8* %181, i64 12
%288 = getelementptr inbounds i8, i8* %180, i64 12
%289 = add nsw i32 %179, -1
%290 = icmp eq i32 %289, 0
br i1 %290, label %291, label %178
291: ; preds = %178, %5
%292 = phi i8* [ %0, %5 ], [ %189, %178 ]
%293 = phi i8* [ %1, %5 ], [ %238, %178 ]
%294 = phi i8* [ %2, %5 ], [ %287, %178 ]
%295 = phi i8* [ %3, %5 ], [ %288, %178 ]
%296 = bitcast i8* %292 to i32*
%297 = load i32, i32* %296
%298 = getelementptr inbounds i8, i8* %292, i64 4
%299 = bitcast i8* %298 to i32*
%300 = load i32, i32* %299
%301 = add i32 %300, %297
%302 = add i32 %301, 4196353
%303 = shl i32 %300, 1
%304 = add i32 %303, 4196353
%305 = and i32 %297, 255
%306 = lshr i32 %297, 3
%307 = and i32 %306, 65280
%308 = or i32 %307, %305
%309 = lshr i32 %297, 6
%310 = and i32 %309, 16711680
%311 = or i32 %308, %310
%312 = shl i32 %302, 23
%313 = and i32 %312, -16777216
%314 = or i32 %311, %313
%315 = bitcast i8* %294 to i32*
store i32 %314, i32* %315
%316 = lshr i32 %302, 12
%317 = and i32 %316, 255
%318 = lshr i32 %302, 15
%319 = and i32 %318, 65280
%320 = shl i32 %300, 16
%321 = and i32 %320, 16711680
%322 = shl i32 %300, 13
%323 = and i32 %322, -16777216
%324 = or i32 %323, %321
%325 = or i32 %324, %319
%326 = or i32 %325, %317
%327 = getelementptr inbounds i8, i8* %294, i64 4
%328 = bitcast i8* %327 to i32*
store i32 %326, i32* %328
%329 = lshr i32 %300, 22
%330 = and i32 %329, 255
%331 = shl i32 %304, 7
%332 = and i32 %331, 65280
%333 = or i32 %332, %330
%334 = shl i32 %304, 4
%335 = and i32 %334, 16711680
%336 = or i32 %333, %335
%337 = shl i32 %304, 1
%338 = and i32 %337, -16777216
%339 = or i32 %336, %338
%340 = getelementptr inbounds i8, i8* %294, i64 8
%341 = bitcast i8* %340 to i32*
store i32 %339, i32* %341
%342 = bitcast i8* %293 to i32*
%343 = load i32, i32* %342
%344 = getelementptr inbounds i8, i8* %293, i64 4
%345 = bitcast i8* %344 to i32*
%346 = load i32, i32* %345
%347 = add i32 %297, 4196353
%348 = add i32 %347, %343
%349 = add i32 %301, 8392706
%350 = add i32 %349, %343
%351 = add i32 %350, %346
%352 = add i32 %346, %300
%353 = add i32 %352, 4196353
%354 = shl i32 %352, 1
%355 = add i32 %354, 8392706
%356 = lshr i32 %348, 1
%357 = and i32 %356, 255
%358 = lshr i32 %348, 4
%359 = and i32 %358, 65280
%360 = or i32 %357, %359
%361 = lshr i32 %348, 7
%362 = and i32 %361, 16711680
%363 = or i32 %360, %362
%364 = shl i32 %351, 22
%365 = and i32 %364, -16777216
%366 = or i32 %363, %365
%367 = bitcast i8* %295 to i32*
store i32 %366, i32* %367
%368 = lshr i32 %351, 13
%369 = and i32 %368, 255
%370 = lshr i32 %351, 16
%371 = and i32 %370, 65280
%372 = or i32 %369, %371
%373 = shl i32 %353, 15
%374 = and i32 %373, 16711680
%375 = or i32 %372, %374
%376 = shl i32 %353, 12
%377 = and i32 %376, -16777216
%378 = or i32 %375, %377
%379 = getelementptr inbounds i8, i8* %295, i64 4
%380 = bitcast i8* %379 to i32*
store i32 %378, i32* %380
%381 = lshr i32 %353, 23
%382 = and i32 %381, 255
%383 = shl i32 %355, 6
%384 = and i32 %383, 65280
%385 = shl i32 %355, 3
%386 = and i32 %385, 16711680
%387 = and i32 %355, -16777216
%388 = or i32 %387, %382
%389 = or i32 %388, %384
%390 = or i32 %389, %386
%391 = getelementptr inbounds i8, i8* %295, i64 8
%392 = bitcast i8* %391 to i32*
store i32 %390, i32* %392
ret void
}