void dblineXRGBtoRGB24x2(unsigned char *d1, unsigned char *d2, int dest_x,
                         unsigned char *s1, unsigned char *s2, int src_x,
                         int dx) {
  register unsigned int a, b, c, d, e, f;
  register unsigned int w, x, y, z;
  if (dest_x & 1) {
    a = *(unsigned int *)s1;
    b = *(unsigned int *)(s1 + 4);
    w = a;
    x = a + b + 0x00400801;
    *(unsigned int *)d1 = ((w & 0x000000ff) >> 0) | ((w & 0x0007f800) >> 3) |
                          ((w & 0x3fc00000) >> 6) | ((x & 0x000001fe) << 23);
    *(unsigned short *)(d1 + 4) =
        ((x & 0x000ff000) >> 12) | ((x & 0x7f800000) >> 15);
    c = *(unsigned int *)s2;
    d = *(unsigned int *)(s2 + 4);
    w = a + c + 0x00400801;
    x = a + b + c + d + (0x00400801 << 1);
    *(unsigned int *)d2 = ((w & 0x000001fe) >> 1) | ((w & 0x000ff000) >> 4) |
                          ((w & 0x7f800000) >> 7) | ((x & 0x000003fc) << 22);
    *(unsigned short *)(d2 + 4) =
        ((x & 0x001fe000) >> 13) | ((x & 0xff000000) >> 16);
    s1 += 4;
    s2 += 4;
    d1 += 2 * 3;
    d2 += 2 * 3;
    dx -= 1;
  }
  while (dx > 2) {
    a = *(unsigned int *)s1;
    b = *(unsigned int *)(s1 + 4);
    e = *(unsigned int *)(s1 + 2 * 4);
    w = a;
    x = a + b + 0x00400801;
    y = b;
    z = b + e + 0x00400801;
    *(unsigned int *)d1 = ((w & 0x000000ff) >> 0) | ((w & 0x0007f800) >> 3) |
                          ((w & 0x3fc00000) >> 6) | ((x & 0x000001fe) << 23);
    *(unsigned int *)(d1 + 4) =
        ((x & 0x000ff000) >> 12) | ((x & 0x7f800000) >> 15) |
        ((y & 0x000000ff) << 16) | ((y & 0x0007f800) << 13);
    *(unsigned int *)(d1 + 8) =
        ((y & 0x3fc00000) >> 22) | ((z & 0x000001fe) << 7) |
        ((z & 0x000ff000) << 4) | ((z & 0x7f800000) << 1);
    c = *(unsigned int *)s2;
    d = *(unsigned int *)(s2 + 4);
    f = *(unsigned int *)(s2 + 2 * 4);
    w = a + c + 0x00400801;
    x = a + b + c + d + (0x00400801 << 1);
    y = b + d + 0x00400801;
    z = b + e + d + f + (0x00400801 << 1);
    *(unsigned int *)d2 = ((w & 0x000001fe) >> 1) | ((w & 0x000ff000) >> 4) |
                          ((w & 0x7f800000) >> 7) | ((x & 0x000003fc) << 22);
    *(unsigned int *)(d2 + 4) =
        ((x & 0x001fe000) >> 13) | ((x & 0xff000000) >> 16) |
        ((y & 0x000001fe) << 15) | ((y & 0x000ff000) << 12);
    *(unsigned int *)(d2 + 8) =
        ((y & 0x7f800000) >> 23) | ((z & 0x000003fc) << 6) |
        ((z & 0x001fe000) << 3) | ((z & 0xff000000) << 0);
    s1 += 2 * 4;
    s2 += 2 * 4;
    d1 += 4 * 3;
    d2 += 4 * 3;
    dx -= 2;
  }
  if (dx > 1) {
    a = *(unsigned int *)s1;
    b = *(unsigned int *)(s1 + 4);
    e = b;
    w = a;
    x = a + b + 0x00400801;
    y = b;
    z = b + e + 0x00400801;
    *(unsigned int *)(d1 + 0) =
        ((w & 0x000000ff) >> 0) | ((w & 0x0007f800) >> 3) |
        ((w & 0x3fc00000) >> 6) | ((x & 0x000001fe) << 23);
    *(unsigned int *)(d1 + 4) =
        ((x & 0x000ff000) >> 12) | ((x & 0x7f800000) >> 15) |
        ((y & 0x000000ff) << 16) | ((y & 0x0007f800) << 13);
    *(unsigned int *)(d1 + 8) =
        ((y & 0x3fc00000) >> 22) | ((z & 0x000001fe) << 7) |
        ((z & 0x000ff000) << 4) | ((z & 0x7f800000) << 1);
    c = *(unsigned int *)s2;
    d = *(unsigned int *)(s2 + 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 *)(d2 + 0) =
        ((w & 0x000001fe) >> 1) | ((w & 0x000ff000) >> 4) |
        ((w & 0x7f800000) >> 7) | ((x & 0x000003fc) << 22);
    *(unsigned int *)(d2 + 4) =
        ((x & 0x001fe000) >> 13) | ((x & 0xff000000) >> 16) |
        ((y & 0x000001fe) << 15) | ((y & 0x000ff000) << 12);
    *(unsigned int *)(d2 + 8) =
        ((y & 0x7f800000) >> 23) | ((z & 0x000003fc) << 6) |
        ((z & 0x001fe000) << 3) | ((z & 0xff000000) << 0);
  } else {
    a = *(unsigned int *)s1;
    b = a;
    w = a;
    x = a + b + 0x00400801;
    *(unsigned int *)d1 = ((w & 0x000000ff) >> 0) | ((w & 0x0007f800) >> 3) |
                          ((w & 0x3fc00000) >> 6) | ((x & 0x000001fe) << 23);
    *(unsigned short *)(d1 + 4) =
        ((x & 0x000ff000) >> 12) | ((x & 0x7f800000) >> 15);
    c = *(unsigned int *)s2;
    d = c;
    w = a + c + 0x00400801;
    x = a + b + c + d + (0x00400801 << 1);
    *(unsigned int *)d2 = ((w & 0x000001fe) >> 1) | ((w & 0x000ff000) >> 4) |
                          ((w & 0x7f800000) >> 7) | ((x & 0x000003fc) << 22);
    *(unsigned short *)(d2 + 4) =
        ((x & 0x001fe000) >> 13) | ((x & 0xff000000) >> 16);
  }
}


x86 assembly (clang, -O0):
<dblineXRGBtoRGB24x2>:
push   %rbp
mov    %rsp,%rbp
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
mov    -0x14(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     127c <dblineXRGBtoRGB24x2+0x17c>
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0x34(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x30(%rbp),%eax
add    -0x34(%rbp),%eax
add    $0x400801,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x48(%rbp),%ecx
and    $0xff,%ecx
shr    $0x0,%ecx
mov    -0x48(%rbp),%eax
and    $0x7f800,%eax
shr    $0x3,%eax
or     %eax,%ecx
mov    -0x48(%rbp),%eax
and    $0x3fc00000,%eax
shr    $0x6,%eax
or     %eax,%ecx
mov    -0x4c(%rbp),%eax
and    $0x1fe,%eax
shl    $0x17,%eax
or     %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x4c(%rbp),%eax
and    $0xff000,%eax
shr    $0xc,%eax
mov    -0x4c(%rbp),%ecx
and    $0x7f800000,%ecx
shr    $0xf,%ecx
or     %ecx,%eax
mov    %ax,%cx
mov    -0x8(%rbp),%rax
mov    %cx,0x4(%rax)
mov    -0x28(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x30(%rbp),%eax
add    -0x38(%rbp),%eax
add    $0x400801,%eax
mov    %eax,-0x48(%rbp)
mov    -0x30(%rbp),%eax
add    -0x34(%rbp),%eax
add    -0x38(%rbp),%eax
add    -0x3c(%rbp),%eax
add    $0x801002,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x48(%rbp),%ecx
and    $0x1fe,%ecx
shr    $0x1,%ecx
mov    -0x48(%rbp),%eax
and    $0xff000,%eax
shr    $0x4,%eax
or     %eax,%ecx
mov    -0x48(%rbp),%eax
and    $0x7f800000,%eax
shr    $0x7,%eax
or     %eax,%ecx
mov    -0x4c(%rbp),%eax
and    $0x3fc,%eax
shl    $0x16,%eax
or     %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x4c(%rbp),%eax
and    $0x1fe000,%eax
shr    $0xd,%eax
mov    -0x4c(%rbp),%ecx
and    $0xff000000,%ecx
shr    $0x10,%ecx
or     %ecx,%eax
mov    %ax,%cx
mov    -0x10(%rbp),%rax
mov    %cx,0x4(%rax)
mov    -0x20(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x20(%rbp)
mov    -0x28(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rax
add    $0x6,%rax
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0x6,%rax
mov    %rax,-0x10(%rbp)
mov    0x10(%rbp),%eax
sub    $0x1,%eax
mov    %eax,0x10(%rbp)
jmp    1281 <dblineXRGBtoRGB24x2+0x181>
cmpl   $0x2,0x10(%rbp)
jle    14c9 <dblineXRGBtoRGB24x2+0x3c9>
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%rax
mov    0x8(%rax),%eax
mov    %eax,-0x40(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x30(%rbp),%eax
add    -0x34(%rbp),%eax
add    $0x400801,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x34(%rbp),%eax
add    -0x40(%rbp),%eax
add    $0x400801,%eax
mov    %eax,-0x54(%rbp)
mov    -0x48(%rbp),%ecx
and    $0xff,%ecx
shr    $0x0,%ecx
mov    -0x48(%rbp),%eax
and    $0x7f800,%eax
shr    $0x3,%eax
or     %eax,%ecx
mov    -0x48(%rbp),%eax
and    $0x3fc00000,%eax
shr    $0x6,%eax
or     %eax,%ecx
mov    -0x4c(%rbp),%eax
and    $0x1fe,%eax
shl    $0x17,%eax
or     %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x4c(%rbp),%ecx
and    $0xff000,%ecx
shr    $0xc,%ecx
mov    -0x4c(%rbp),%eax
and    $0x7f800000,%eax
shr    $0xf,%eax
or     %eax,%ecx
mov    -0x50(%rbp),%eax
and    $0xff,%eax
shl    $0x10,%eax
or     %eax,%ecx
mov    -0x50(%rbp),%eax
and    $0x7f800,%eax
shl    $0xd,%eax
or     %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x50(%rbp),%ecx
and    $0x3fc00000,%ecx
shr    $0x16,%ecx
mov    -0x54(%rbp),%eax
and    $0x1fe,%eax
shl    $0x7,%eax
or     %eax,%ecx
mov    -0x54(%rbp),%eax
and    $0xff000,%eax
shl    $0x4,%eax
or     %eax,%ecx
mov    -0x54(%rbp),%eax
and    $0x7f800000,%eax
shl    $0x1,%eax
or     %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x8(%rax)
mov    -0x28(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x28(%rbp),%rax
mov    0x8(%rax),%eax
mov    %eax,-0x44(%rbp)
mov    -0x30(%rbp),%eax
add    -0x38(%rbp),%eax
add    $0x400801,%eax
mov    %eax,-0x48(%rbp)
mov    -0x30(%rbp),%eax
add    -0x34(%rbp),%eax
add    -0x38(%rbp),%eax
add    -0x3c(%rbp),%eax
add    $0x801002,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x34(%rbp),%eax
add    -0x3c(%rbp),%eax
add    $0x400801,%eax
mov    %eax,-0x50(%rbp)
mov    -0x34(%rbp),%eax
add    -0x40(%rbp),%eax
add    -0x3c(%rbp),%eax
add    -0x44(%rbp),%eax
add    $0x801002,%eax
mov    %eax,-0x54(%rbp)
mov    -0x48(%rbp),%ecx
and    $0x1fe,%ecx
shr    $0x1,%ecx
mov    -0x48(%rbp),%eax
and    $0xff000,%eax
shr    $0x4,%eax
or     %eax,%ecx
mov    -0x48(%rbp),%eax
and    $0x7f800000,%eax
shr    $0x7,%eax
or     %eax,%ecx
mov    -0x4c(%rbp),%eax
and    $0x3fc,%eax
shl    $0x16,%eax
or     %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x4c(%rbp),%ecx
and    $0x1fe000,%ecx
shr    $0xd,%ecx
mov    -0x4c(%rbp),%eax
and    $0xff000000,%eax
shr    $0x10,%eax
or     %eax,%ecx
mov    -0x50(%rbp),%eax
and    $0x1fe,%eax
shl    $0xf,%eax
or     %eax,%ecx
mov    -0x50(%rbp),%eax
and    $0xff000,%eax
shl    $0xc,%eax
or     %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x50(%rbp),%ecx
and    $0x7f800000,%ecx
shr    $0x17,%ecx
mov    -0x54(%rbp),%eax
and    $0x3fc,%eax
shl    $0x6,%eax
or     %eax,%ecx
mov    -0x54(%rbp),%eax
and    $0x1fe000,%eax
shl    $0x3,%eax
or     %eax,%ecx
mov    -0x54(%rbp),%eax
and    $0xff000000,%eax
shl    $0x0,%eax
or     %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,0x8(%rax)
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
mov    -0x28(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rax
add    $0xc,%rax
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0xc,%rax
mov    %rax,-0x10(%rbp)
mov    0x10(%rbp),%eax
sub    $0x2,%eax
mov    %eax,0x10(%rbp)
jmp    1281 <dblineXRGBtoRGB24x2+0x181>
cmpl   $0x1,0x10(%rbp)
jle    16d0 <dblineXRGBtoRGB24x2+0x5d0>
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x30(%rbp),%eax
add    -0x34(%rbp),%eax
add    $0x400801,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x34(%rbp),%eax
add    -0x40(%rbp),%eax
add    $0x400801,%eax
mov    %eax,-0x54(%rbp)
mov    -0x48(%rbp),%ecx
and    $0xff,%ecx
shr    $0x0,%ecx
mov    -0x48(%rbp),%eax
and    $0x7f800,%eax
shr    $0x3,%eax
or     %eax,%ecx
mov    -0x48(%rbp),%eax
and    $0x3fc00000,%eax
shr    $0x6,%eax
or     %eax,%ecx
mov    -0x4c(%rbp),%eax
and    $0x1fe,%eax
shl    $0x17,%eax
or     %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x4c(%rbp),%ecx
and    $0xff000,%ecx
shr    $0xc,%ecx
mov    -0x4c(%rbp),%eax
and    $0x7f800000,%eax
shr    $0xf,%eax
or     %eax,%ecx
mov    -0x50(%rbp),%eax
and    $0xff,%eax
shl    $0x10,%eax
or     %eax,%ecx
mov    -0x50(%rbp),%eax
and    $0x7f800,%eax
shl    $0xd,%eax
or     %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x50(%rbp),%ecx
and    $0x3fc00000,%ecx
shr    $0x16,%ecx
mov    -0x54(%rbp),%eax
and    $0x1fe,%eax
shl    $0x7,%eax
or     %eax,%ecx
mov    -0x54(%rbp),%eax
and    $0xff000,%eax
shl    $0x4,%eax
or     %eax,%ecx
mov    -0x54(%rbp),%eax
and    $0x7f800000,%eax
shl    $0x1,%eax
or     %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x8(%rax)
mov    -0x28(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x30(%rbp),%eax
add    -0x38(%rbp),%eax
add    $0x400801,%eax
mov    %eax,-0x48(%rbp)
mov    -0x30(%rbp),%eax
add    -0x34(%rbp),%eax
add    -0x38(%rbp),%eax
add    -0x3c(%rbp),%eax
add    $0x801002,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x34(%rbp),%eax
add    -0x3c(%rbp),%eax
add    $0x400801,%eax
mov    %eax,-0x50(%rbp)
mov    -0x34(%rbp),%eax
add    -0x40(%rbp),%eax
add    -0x3c(%rbp),%eax
add    -0x44(%rbp),%eax
add    $0x801002,%eax
mov    %eax,-0x54(%rbp)
mov    -0x48(%rbp),%ecx
and    $0x1fe,%ecx
shr    $0x1,%ecx
mov    -0x48(%rbp),%eax
and    $0xff000,%eax
shr    $0x4,%eax
or     %eax,%ecx
mov    -0x48(%rbp),%eax
and    $0x7f800000,%eax
shr    $0x7,%eax
or     %eax,%ecx
mov    -0x4c(%rbp),%eax
and    $0x3fc,%eax
shl    $0x16,%eax
or     %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x4c(%rbp),%ecx
and    $0x1fe000,%ecx
shr    $0xd,%ecx
mov    -0x4c(%rbp),%eax
and    $0xff000000,%eax
shr    $0x10,%eax
or     %eax,%ecx
mov    -0x50(%rbp),%eax
and    $0x1fe,%eax
shl    $0xf,%eax
or     %eax,%ecx
mov    -0x50(%rbp),%eax
and    $0xff000,%eax
shl    $0xc,%eax
or     %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x50(%rbp),%ecx
and    $0x7f800000,%ecx
shr    $0x17,%ecx
mov    -0x54(%rbp),%eax
and    $0x3fc,%eax
shl    $0x6,%eax
or     %eax,%ecx
mov    -0x54(%rbp),%eax
and    $0x1fe000,%eax
shl    $0x3,%eax
or     %eax,%ecx
mov    -0x54(%rbp),%eax
and    $0xff000000,%eax
shl    $0x0,%eax
or     %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,0x8(%rax)
jmp    17de <dblineXRGBtoRGB24x2+0x6de>
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x30(%rbp),%eax
add    -0x34(%rbp),%eax
add    $0x400801,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x48(%rbp),%ecx
and    $0xff,%ecx
shr    $0x0,%ecx
mov    -0x48(%rbp),%eax
and    $0x7f800,%eax
shr    $0x3,%eax
or     %eax,%ecx
mov    -0x48(%rbp),%eax
and    $0x3fc00000,%eax
shr    $0x6,%eax
or     %eax,%ecx
mov    -0x4c(%rbp),%eax
and    $0x1fe,%eax
shl    $0x17,%eax
or     %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x4c(%rbp),%eax
and    $0xff000,%eax
shr    $0xc,%eax
mov    -0x4c(%rbp),%ecx
and    $0x7f800000,%ecx
shr    $0xf,%ecx
or     %ecx,%eax
mov    %ax,%cx
mov    -0x8(%rbp),%rax
mov    %cx,0x4(%rax)
mov    -0x28(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x30(%rbp),%eax
add    -0x38(%rbp),%eax
add    $0x400801,%eax
mov    %eax,-0x48(%rbp)
mov    -0x30(%rbp),%eax
add    -0x34(%rbp),%eax
add    -0x38(%rbp),%eax
add    -0x3c(%rbp),%eax
add    $0x801002,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x48(%rbp),%ecx
and    $0x1fe,%ecx
shr    $0x1,%ecx
mov    -0x48(%rbp),%eax
and    $0xff000,%eax
shr    $0x4,%eax
or     %eax,%ecx
mov    -0x48(%rbp),%eax
and    $0x7f800000,%eax
shr    $0x7,%eax
or     %eax,%ecx
mov    -0x4c(%rbp),%eax
and    $0x3fc,%eax
shl    $0x16,%eax
or     %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x4c(%rbp),%eax
and    $0x1fe000,%eax
shr    $0xd,%eax
mov    -0x4c(%rbp),%ecx
and    $0xff000000,%ecx
shr    $0x10,%ecx
or     %ecx,%eax
mov    %ax,%cx
mov    -0x10(%rbp),%rax
mov    %cx,0x4(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<dblineXRGBtoRGB24x2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    0x38(%rsp),%eax
test   $0x1,%dl
je     11ec <dblineXRGBtoRGB24x2+0xec>
mov    (%rcx),%r10d
mov    0x4(%rcx),%ebp
add    $0x4,%rcx
lea    (%r10,%rbp,1),%r11d
add    $0x400801,%r11d
add    %r10d,%ebp
movzbl %r10b,%r9d
mov    %r10d,%edx
shr    $0x3,%edx
and    $0xff00,%edx
or     %r9d,%edx
mov    %r10d,%ebx
shr    $0x6,%ebx
and    $0xff0000,%ebx
or     %edx,%ebx
mov    %r11d,%edx
and    $0xfffffffe,%edx
shl    $0x17,%edx
or     %ebx,%edx
mov    %edx,(%rdi)
mov    %r11d,%edx
shr    $0xc,%edx
movzbl %dl,%edx
shr    $0xf,%r11d
and    $0xff00,%r11d
or     %edx,%r11d
mov    %r11w,0x4(%rdi)
mov    (%r8),%ebx
mov    0x4(%r8),%r9d
add    $0x4,%r8
add    %ebx,%r10d
add    $0x400801,%r10d
add    %ebx,%ebp
add    %r9d,%ebp
add    $0x801002,%ebp
mov    %r10d,%ebx
shr    %ebx
movzbl %bl,%ebx
mov    %r10d,%edx
shr    $0x4,%edx
and    $0xff00,%edx
or     %ebx,%edx
shr    $0x7,%r10d
and    $0xff0000,%r10d
or     %edx,%r10d
mov    %ebp,%edx
and    $0xfffffffc,%edx
shl    $0x16,%edx
or     %r10d,%edx
mov    %edx,(%rsi)
mov    %ebp,%edx
shr    $0xd,%edx
movzbl %dl,%edx
shr    $0x10,%ebp
and    $0xff00,%ebp
or     %edx,%ebp
mov    %bp,0x4(%rsi)
add    $0x6,%rdi
add    $0x6,%rsi
add    $0xffffffff,%eax
cmp    $0x3,%eax
jl     1788 <dblineXRGBtoRGB24x2+0x688>
xor    %edx,%edx
mov    %eax,%r15d
sub    $0x4,%r15d
cmovb  %edx,%r15d
add    $0x1,%r15d
cmp    $0x8,%r15d
jb     15f0 <dblineXRGBtoRGB24x2+0x4f0>
mov    %eax,%ebp
sub    $0x4,%ebp
cmovb  %edx,%ebp
add    $0x1,%ebp
shr    %ebp
lea    0x0(,%rbp,2),%rdx
add    %rbp,%rdx
lea    0xc(%rdi,%rdx,4),%rbx
lea    (%rsi,%rdx,4),%rdx
add    $0xc,%rdx
lea    (%rcx,%rbp,8),%r9
add    $0xc,%r9
lea    (%r8,%rbp,8),%rbp
add    $0xc,%rbp
cmp    %rdx,%rdi
setb   -0x1(%rsp)
cmp    %rbx,%rsi
setb   %r11b
cmp    %r9,%rdi
setb   %r12b
cmp    %rbx,%rcx
setb   %r14b
cmp    %rbp,%rdi
setb   %r13b
cmp    %rbx,%r8
setb   %bl
cmp    %r9,%rsi
setb   %r9b
cmp    %rdx,%rcx
setb   -0x2(%rsp)
cmp    %rbp,%rsi
setb   %r10b
cmp    %rdx,%r8
setb   %dl
test   %r11b,-0x1(%rsp)
jne    15f0 <dblineXRGBtoRGB24x2+0x4f0>
and    %r14b,%r12b
jne    15f0 <dblineXRGBtoRGB24x2+0x4f0>
and    %bl,%r13b
jne    15f0 <dblineXRGBtoRGB24x2+0x4f0>
and    -0x2(%rsp),%r9b
jne    15f0 <dblineXRGBtoRGB24x2+0x4f0>
and    %dl,%r10b
jne    15f0 <dblineXRGBtoRGB24x2+0x4f0>
shr    %r15d
add    $0x1,%r15d
mov    %r15d,%edx
and    $0x3,%edx
test   %rdx,%rdx
mov    $0x4,%ebp
cmovne %rdx,%rbp
sub    %rbp,%r15
sub    %r15d,%eax
sub    %r15d,%eax
lea    0x0(,%r15,4),%rdx
lea    (%rdx,%rdx,2),%r9
lea    (%rdi,%r9,1),%r10
lea    (%r8,%r15,8),%r11
lea    (%rcx,%r15,8),%r14
add    %rsi,%r9
xor    %ebx,%ebx
movdqa 0xcfc(%rip),%xmm9
movdqa 0xd03(%rip),%xmm10
movdqa 0xd0a(%rip),%xmm11
movdqa 0xd11(%rip),%xmm12
movdqa 0xd18(%rip),%xmm13
movdqa 0xd1f(%rip),%xmm8
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movups (%rcx,%rdx,8),%xmm4
movups 0x4(%rcx,%rdx,8),%xmm3
movups 0x10(%rcx,%rdx,8),%xmm0
shufps $0x88,%xmm0,%xmm4
movups 0x14(%rcx,%rdx,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(%rdi,%rbx,1)
movups %xmm7,0x20(%rdi,%rbx,1)
movups %xmm0,(%rdi,%rbx,1)
movups (%r8,%rdx,8),%xmm2
movups 0x4(%r8,%rdx,8),%xmm1
movups 0x10(%r8,%rdx,8),%xmm0
shufps $0x88,%xmm0,%xmm2
movups 0x14(%r8,%rdx,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(%rsi,%rbx,1)
movups %xmm5,0x20(%rsi,%rbx,1)
movups %xmm4,(%rsi,%rbx,1)
add    $0x4,%rdx
add    $0x30,%rbx
cmp    %rdx,%r15
jne    1340 <dblineXRGBtoRGB24x2+0x240>
mov    %r10,%rdi
mov    %r11,%r8
mov    %r14,%rcx
mov    %r9,%rsi
nopl   (%rax)
mov    %eax,%r9d
mov    (%rcx),%r14d
mov    0x4(%rcx),%r13d
mov    0x8(%rcx),%r11d
add    $0x8,%rcx
lea    (%r14,%r13,1),%r10d
lea    (%r14,%r13,1),%ebp
add    $0x400801,%ebp
lea    (%r11,%r13,1),%r12d
add    $0x400801,%r12d
add    %r13d,%r11d
movzbl %r14b,%r15d
mov    %r14d,%ebx
shr    $0x3,%ebx
and    $0xff00,%ebx
or     %r15d,%ebx
mov    %r14d,%edx
shr    $0x6,%edx
and    $0xff0000,%edx
or     %ebx,%edx
mov    %ebp,%ebx
and    $0xfffffffe,%ebx
shl    $0x17,%ebx
or     %edx,%ebx
mov    %ebx,(%rdi)
mov    %ebp,%edx
shr    $0xc,%edx
movzbl %dl,%r15d
shr    $0xf,%ebp
and    $0xff00,%ebp
movzbl %r13b,%ebx
shl    $0x10,%ebx
mov    %r13d,%edx
shl    $0xd,%edx
and    $0xff000000,%edx
or     %ebx,%edx
or     %ebp,%edx
or     %r15d,%edx
mov    %edx,0x4(%rdi)
mov    %r13d,%edx
shr    $0x16,%edx
movzbl %dl,%edx
mov    %r12d,%ebx
shl    $0x7,%ebx
and    $0xff00,%ebx
or     %edx,%ebx
mov    %r12d,%edx
shl    $0x4,%edx
and    $0xff0000,%edx
or     %ebx,%edx
and    $0xff800000,%r12d
lea    (%rdx,%r12,2),%edx
mov    %edx,0x8(%rdi)
mov    (%r8),%eax
mov    0x4(%r8),%ebp
lea    (%r14,%rax,1),%edx
add    $0x400801,%edx
lea    (%r10,%rbp,1),%ebx
add    $0x801002,%ebx
add    %eax,%ebx
add    %ebp,%r11d
add    $0x801002,%r11d
add    0x8(%r8),%r11d
lea    0x400801(%r13,%rbp,1),%r10d
add    $0x8,%r8
mov    %edx,%ebp
shr    %ebp
movzbl %bpl,%ebp
mov    %edx,%eax
shr    $0x4,%eax
and    $0xff00,%eax
or     %ebp,%eax
shr    $0x7,%edx
and    $0xff0000,%edx
or     %eax,%edx
mov    %ebx,%eax
and    $0xfffffffc,%eax
shl    $0x16,%eax
or     %edx,%eax
mov    %eax,(%rsi)
mov    %ebx,%eax
shr    $0xd,%eax
movzbl %al,%eax
shr    $0x10,%ebx
and    $0xff00,%ebx
mov    %r10d,%edx
shl    $0xf,%edx
and    $0xff0000,%edx
mov    %r10d,%ebp
shl    $0xc,%ebp
and    $0xff000000,%ebp
or     %edx,%ebp
or     %ebx,%ebp
or     %eax,%ebp
mov    %ebp,0x4(%rsi)
shr    $0x17,%r10d
movzbl %r10b,%eax
mov    %r11d,%edx
shl    $0x6,%edx
and    $0xff00,%edx
mov    %r11d,%ebp
and    $0x1fe000,%ebp
and    $0xff000000,%r11d
or     %eax,%r11d
or     %edx,%r11d
lea    (%r11,%rbp,8),%eax
mov    %eax,0x8(%rsi)
add    $0xc,%rdi
add    $0xc,%rsi
lea    -0x2(%r9),%eax
cmp    $0x4,%r9d
ja     15f0 <dblineXRGBtoRGB24x2+0x4f0>
mov    (%rcx),%edx
cmp    $0x2,%eax
jne    18f6 <dblineXRGBtoRGB24x2+0x7f6>
mov    0x4(%rcx),%eax
lea    (%rax,%rdx,1),%r9d
lea    (%rax,%rdx,1),%ebp
add    $0x400801,%ebp
lea    (%rax,%rax,1),%r11d
add    $0x400801,%r11d
movzbl %dl,%r10d
mov    %edx,%ecx
shr    $0x3,%ecx
and    $0xff00,%ecx
or     %r10d,%ecx
mov    %edx,%ebx
shr    $0x6,%ebx
and    $0xff0000,%ebx
or     %ecx,%ebx
mov    %ebp,%ecx
and    $0xfffffffe,%ecx
shl    $0x17,%ecx
or     %ebx,%ecx
mov    %ecx,(%rdi)
mov    %ebp,%ecx
shr    $0xc,%ecx
movzbl %cl,%r10d
shr    $0xf,%ebp
and    $0xff00,%ebp
movzbl %al,%ebx
shl    $0x10,%ebx
mov    %eax,%ecx
shl    $0xd,%ecx
and    $0xff000000,%ecx
or     %ebx,%ecx
or     %ebp,%ecx
or     %r10d,%ecx
mov    %ecx,0x4(%rdi)
mov    %eax,%ecx
shr    $0x16,%ecx
movzbl %cl,%ecx
mov    %r11d,%ebp
shl    $0x7,%ebp
and    $0xff00,%ebp
or     %ecx,%ebp
mov    %r11d,%ecx
shl    $0x4,%ecx
and    $0xff0000,%ecx
or     %ebp,%ecx
and    $0xff800000,%r11d
lea    (%rcx,%r11,2),%ecx
mov    %ecx,0x8(%rdi)
mov    (%r8),%edi
mov    0x4(%r8),%ebp
lea    (%rdx,%rdi,1),%ecx
add    $0x400801,%ecx
add    %edi,%r9d
lea    (%r9,%rbp,1),%edx
add    $0x801002,%edx
lea    (%rax,%rbp,1),%r8d
add    $0x400801,%r8d
add    %eax,%ebp
lea    0x801002(%rbp,%rbp,1),%eax
mov    %ecx,%edi
shr    %edi
movzbl %dil,%edi
mov    %ecx,%ebx
shr    $0x4,%ebx
and    $0xff00,%ebx
or     %edi,%ebx
shr    $0x7,%ecx
and    $0xff0000,%ecx
or     %ebx,%ecx
mov    %edx,%edi
and    $0xfffffffc,%edi
shl    $0x16,%edi
or     %ecx,%edi
mov    %edi,(%rsi)
mov    %edx,%ecx
shr    $0xd,%ecx
movzbl %cl,%ecx
shr    $0x10,%edx
and    $0xff00,%edx
or     %ecx,%edx
mov    %r8d,%ecx
shl    $0xf,%ecx
and    $0xff0000,%ecx
or     %edx,%ecx
mov    %r8d,%edx
shl    $0xc,%edx
and    $0xff000000,%edx
or     %ecx,%edx
mov    %edx,0x4(%rsi)
shr    $0x17,%r8d
movzbl %r8b,%ecx
mov    %eax,%edx
shl    $0x6,%edx
and    $0xff00,%edx
mov    %eax,%edi
and    $0x1fe000,%edi
and    $0xff000000,%eax
or     %ecx,%eax
or     %edx,%eax
lea    (%rax,%rdi,8),%eax
mov    %eax,0x8(%rsi)
jmp    1997 <dblineXRGBtoRGB24x2+0x897>
lea    (%rdx,%rdx,1),%ebx
add    $0x400801,%ebx
movzbl %dl,%ecx
mov    %edx,%ebp
shr    $0x3,%ebp
and    $0xff00,%ebp
or     %ecx,%ebp
mov    %edx,%ecx
shr    $0x6,%ecx
and    $0xff0000,%ecx
or     %ebp,%ecx
mov    %ebx,%eax
and    $0xfffffffe,%eax
shl    $0x17,%eax
or     %ecx,%eax
mov    %eax,(%rdi)
mov    %ebx,%eax
shr    $0xc,%eax
movzbl %al,%eax
shr    $0xf,%ebx
and    $0xff00,%ebx
or     %eax,%ebx
mov    %bx,0x4(%rdi)
mov    (%r8),%eax
mov    %edx,%ecx
add    %eax,%ecx
add    %eax,%edx
add    $0x400801,%edx
lea    (%rcx,%rcx,1),%eax
add    $0x801002,%eax
mov    %edx,%ecx
shr    %ecx
movzbl %cl,%ecx
mov    %edx,%edi
shr    $0x4,%edi
and    $0xff00,%edi
or     %ecx,%edi
shr    $0x7,%edx
and    $0xff0000,%edx
or     %edi,%edx
mov    %eax,%ecx
and    $0xfffffffc,%ecx
shl    $0x16,%ecx
or     %edx,%ecx
mov    %ecx,(%rsi)
mov    %eax,%ecx
shr    $0xd,%ecx
movzbl %cl,%ecx
shr    $0x10,%eax
and    $0xff00,%eax
or     %ecx,%eax
mov    %ax,0x4(%rsi)
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @dblineXRGBtoRGB24x2(i8* %0, i8* %1, i32 %2, i8* %3, i8* %4, i32 %5, i32 %6) {
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
store i8* %0, i8** %8
store i8* %1, i8** %9
store i32 %2, i32* %10
store i8* %3, i8** %11
store i8* %4, i8** %12
store i32 %5, i32* %13
store i32 %6, i32* %14
%25 = load i32, i32* %10
%26 = and i32 %25, 1
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %126
28: ; preds = %7
%29 = load i8*, i8** %11
%30 = bitcast i8* %29 to i32*
%31 = load i32, i32* %30
store i32 %31, i32* %15
%32 = load i8*, i8** %11
%33 = getelementptr inbounds i8, i8* %32, i64 4
%34 = bitcast i8* %33 to i32*
%35 = load i32, i32* %34
store i32 %35, i32* %16
%36 = load i32, i32* %15
store i32 %36, i32* %21
%37 = load i32, i32* %15
%38 = load i32, i32* %16
%39 = add i32 %37, %38
%40 = add i32 %39, 4196353
store i32 %40, i32* %22
%41 = load i32, i32* %21
%42 = and i32 %41, 255
%43 = lshr i32 %42, 0
%44 = load i32, i32* %21
%45 = and i32 %44, 522240
%46 = lshr i32 %45, 3
%47 = or i32 %43, %46
%48 = load i32, i32* %21
%49 = and i32 %48, 1069547520
%50 = lshr i32 %49, 6
%51 = or i32 %47, %50
%52 = load i32, i32* %22
%53 = and i32 %52, 510
%54 = shl i32 %53, 23
%55 = or i32 %51, %54
%56 = load i8*, i8** %8
%57 = bitcast i8* %56 to i32*
store i32 %55, i32* %57
%58 = load i32, i32* %22
%59 = and i32 %58, 1044480
%60 = lshr i32 %59, 12
%61 = load i32, i32* %22
%62 = and i32 %61, 2139095040
%63 = lshr i32 %62, 15
%64 = or i32 %60, %63
%65 = trunc i32 %64 to i16
%66 = load i8*, i8** %8
%67 = getelementptr inbounds i8, i8* %66, i64 4
%68 = bitcast i8* %67 to i16*
store i16 %65, i16* %68
%69 = load i8*, i8** %12
%70 = bitcast i8* %69 to i32*
%71 = load i32, i32* %70
store i32 %71, i32* %17
%72 = load i8*, i8** %12
%73 = getelementptr inbounds i8, i8* %72, i64 4
%74 = bitcast i8* %73 to i32*
%75 = load i32, i32* %74
store i32 %75, i32* %18
%76 = load i32, i32* %15
%77 = load i32, i32* %17
%78 = add i32 %76, %77
%79 = add i32 %78, 4196353
store i32 %79, i32* %21
%80 = load i32, i32* %15
%81 = load i32, i32* %16
%82 = add i32 %80, %81
%83 = load i32, i32* %17
%84 = add i32 %82, %83
%85 = load i32, i32* %18
%86 = add i32 %84, %85
%87 = add i32 %86, 8392706
store i32 %87, i32* %22
%88 = load i32, i32* %21
%89 = and i32 %88, 510
%90 = lshr i32 %89, 1
%91 = load i32, i32* %21
%92 = and i32 %91, 1044480
%93 = lshr i32 %92, 4
%94 = or i32 %90, %93
%95 = load i32, i32* %21
%96 = and i32 %95, 2139095040
%97 = lshr i32 %96, 7
%98 = or i32 %94, %97
%99 = load i32, i32* %22
%100 = and i32 %99, 1020
%101 = shl i32 %100, 22
%102 = or i32 %98, %101
%103 = load i8*, i8** %9
%104 = bitcast i8* %103 to i32*
store i32 %102, i32* %104
%105 = load i32, i32* %22
%106 = and i32 %105, 2088960
%107 = lshr i32 %106, 13
%108 = load i32, i32* %22
%109 = and i32 %108, -16777216
%110 = lshr i32 %109, 16
%111 = or i32 %107, %110
%112 = trunc i32 %111 to i16
%113 = load i8*, i8** %9
%114 = getelementptr inbounds i8, i8* %113, i64 4
%115 = bitcast i8* %114 to i16*
store i16 %112, i16* %115
%116 = load i8*, i8** %11
%117 = getelementptr inbounds i8, i8* %116, i64 4
store i8* %117, i8** %11
%118 = load i8*, i8** %12
%119 = getelementptr inbounds i8, i8* %118, i64 4
store i8* %119, i8** %12
%120 = load i8*, i8** %8
%121 = getelementptr inbounds i8, i8* %120, i64 6
store i8* %121, i8** %8
%122 = load i8*, i8** %9
%123 = getelementptr inbounds i8, i8* %122, i64 6
store i8* %123, i8** %9
%124 = load i32, i32* %14
%125 = sub nsw i32 %124, 1
store i32 %125, i32* %14
br label %126
126: ; preds = %28, %7
br label %127
127: ; preds = %130, %126
%128 = load i32, i32* %14
%129 = icmp sgt i32 %128, 2
br i1 %129, label %130, label %303
130: ; preds = %127
%131 = load i8*, i8** %11
%132 = bitcast i8* %131 to i32*
%133 = load i32, i32* %132
store i32 %133, i32* %15
%134 = load i8*, i8** %11
%135 = getelementptr inbounds i8, i8* %134, i64 4
%136 = bitcast i8* %135 to i32*
%137 = load i32, i32* %136
store i32 %137, i32* %16
%138 = load i8*, i8** %11
%139 = getelementptr inbounds i8, i8* %138, i64 8
%140 = bitcast i8* %139 to i32*
%141 = load i32, i32* %140
store i32 %141, i32* %19
%142 = load i32, i32* %15
store i32 %142, i32* %21
%143 = load i32, i32* %15
%144 = load i32, i32* %16
%145 = add i32 %143, %144
%146 = add i32 %145, 4196353
store i32 %146, i32* %22
%147 = load i32, i32* %16
store i32 %147, i32* %23
%148 = load i32, i32* %16
%149 = load i32, i32* %19
%150 = add i32 %148, %149
%151 = add i32 %150, 4196353
store i32 %151, i32* %24
%152 = load i32, i32* %21
%153 = and i32 %152, 255
%154 = lshr i32 %153, 0
%155 = load i32, i32* %21
%156 = and i32 %155, 522240
%157 = lshr i32 %156, 3
%158 = or i32 %154, %157
%159 = load i32, i32* %21
%160 = and i32 %159, 1069547520
%161 = lshr i32 %160, 6
%162 = or i32 %158, %161
%163 = load i32, i32* %22
%164 = and i32 %163, 510
%165 = shl i32 %164, 23
%166 = or i32 %162, %165
%167 = load i8*, i8** %8
%168 = bitcast i8* %167 to i32*
store i32 %166, i32* %168
%169 = load i32, i32* %22
%170 = and i32 %169, 1044480
%171 = lshr i32 %170, 12
%172 = load i32, i32* %22
%173 = and i32 %172, 2139095040
%174 = lshr i32 %173, 15
%175 = or i32 %171, %174
%176 = load i32, i32* %23
%177 = and i32 %176, 255
%178 = shl i32 %177, 16
%179 = or i32 %175, %178
%180 = load i32, i32* %23
%181 = and i32 %180, 522240
%182 = shl i32 %181, 13
%183 = or i32 %179, %182
%184 = load i8*, i8** %8
%185 = getelementptr inbounds i8, i8* %184, i64 4
%186 = bitcast i8* %185 to i32*
store i32 %183, i32* %186
%187 = load i32, i32* %23
%188 = and i32 %187, 1069547520
%189 = lshr i32 %188, 22
%190 = load i32, i32* %24
%191 = and i32 %190, 510
%192 = shl i32 %191, 7
%193 = or i32 %189, %192
%194 = load i32, i32* %24
%195 = and i32 %194, 1044480
%196 = shl i32 %195, 4
%197 = or i32 %193, %196
%198 = load i32, i32* %24
%199 = and i32 %198, 2139095040
%200 = shl i32 %199, 1
%201 = or i32 %197, %200
%202 = load i8*, i8** %8
%203 = getelementptr inbounds i8, i8* %202, i64 8
%204 = bitcast i8* %203 to i32*
store i32 %201, i32* %204
%205 = load i8*, i8** %12
%206 = bitcast i8* %205 to i32*
%207 = load i32, i32* %206
store i32 %207, i32* %17
%208 = load i8*, i8** %12
%209 = getelementptr inbounds i8, i8* %208, i64 4
%210 = bitcast i8* %209 to i32*
%211 = load i32, i32* %210
store i32 %211, i32* %18
%212 = load i8*, i8** %12
%213 = getelementptr inbounds i8, i8* %212, i64 8
%214 = bitcast i8* %213 to i32*
%215 = load i32, i32* %214
store i32 %215, i32* %20
%216 = load i32, i32* %15
%217 = load i32, i32* %17
%218 = add i32 %216, %217
%219 = add i32 %218, 4196353
store i32 %219, i32* %21
%220 = load i32, i32* %15
%221 = load i32, i32* %16
%222 = add i32 %220, %221
%223 = load i32, i32* %17
%224 = add i32 %222, %223
%225 = load i32, i32* %18
%226 = add i32 %224, %225
%227 = add i32 %226, 8392706
store i32 %227, i32* %22
%228 = load i32, i32* %16
%229 = load i32, i32* %18
%230 = add i32 %228, %229
%231 = add i32 %230, 4196353
store i32 %231, i32* %23
%232 = load i32, i32* %16
%233 = load i32, i32* %19
%234 = add i32 %232, %233
%235 = load i32, i32* %18
%236 = add i32 %234, %235
%237 = load i32, i32* %20
%238 = add i32 %236, %237
%239 = add i32 %238, 8392706
store i32 %239, i32* %24
%240 = load i32, i32* %21
%241 = and i32 %240, 510
%242 = lshr i32 %241, 1
%243 = load i32, i32* %21
%244 = and i32 %243, 1044480
%245 = lshr i32 %244, 4
%246 = or i32 %242, %245
%247 = load i32, i32* %21
%248 = and i32 %247, 2139095040
%249 = lshr i32 %248, 7
%250 = or i32 %246, %249
%251 = load i32, i32* %22
%252 = and i32 %251, 1020
%253 = shl i32 %252, 22
%254 = or i32 %250, %253
%255 = load i8*, i8** %9
%256 = bitcast i8* %255 to i32*
store i32 %254, i32* %256
%257 = load i32, i32* %22
%258 = and i32 %257, 2088960
%259 = lshr i32 %258, 13
%260 = load i32, i32* %22
%261 = and i32 %260, -16777216
%262 = lshr i32 %261, 16
%263 = or i32 %259, %262
%264 = load i32, i32* %23
%265 = and i32 %264, 510
%266 = shl i32 %265, 15
%267 = or i32 %263, %266
%268 = load i32, i32* %23
%269 = and i32 %268, 1044480
%270 = shl i32 %269, 12
%271 = or i32 %267, %270
%272 = load i8*, i8** %9
%273 = getelementptr inbounds i8, i8* %272, i64 4
%274 = bitcast i8* %273 to i32*
store i32 %271, i32* %274
%275 = load i32, i32* %23
%276 = and i32 %275, 2139095040
%277 = lshr i32 %276, 23
%278 = load i32, i32* %24
%279 = and i32 %278, 1020
%280 = shl i32 %279, 6
%281 = or i32 %277, %280
%282 = load i32, i32* %24
%283 = and i32 %282, 2088960
%284 = shl i32 %283, 3
%285 = or i32 %281, %284
%286 = load i32, i32* %24
%287 = and i32 %286, -16777216
%288 = shl i32 %287, 0
%289 = or i32 %285, %288
%290 = load i8*, i8** %9
%291 = getelementptr inbounds i8, i8* %290, i64 8
%292 = bitcast i8* %291 to i32*
store i32 %289, i32* %292
%293 = load i8*, i8** %11
%294 = getelementptr inbounds i8, i8* %293, i64 8
store i8* %294, i8** %11
%295 = load i8*, i8** %12
%296 = getelementptr inbounds i8, i8* %295, i64 8
store i8* %296, i8** %12
%297 = load i8*, i8** %8
%298 = getelementptr inbounds i8, i8* %297, i64 12
store i8* %298, i8** %8
%299 = load i8*, i8** %9
%300 = getelementptr inbounds i8, i8* %299, i64 12
store i8* %300, i8** %9
%301 = load i32, i32* %14
%302 = sub nsw i32 %301, 2
store i32 %302, i32* %14
br label %127
303: ; preds = %127
%304 = load i32, i32* %14
%305 = icmp sgt i32 %304, 1
br i1 %305, label %306, label %465
306: ; preds = %303
%307 = load i8*, i8** %11
%308 = bitcast i8* %307 to i32*
%309 = load i32, i32* %308
store i32 %309, i32* %15
%310 = load i8*, i8** %11
%311 = getelementptr inbounds i8, i8* %310, i64 4
%312 = bitcast i8* %311 to i32*
%313 = load i32, i32* %312
store i32 %313, i32* %16
%314 = load i32, i32* %16
store i32 %314, i32* %19
%315 = load i32, i32* %15
store i32 %315, i32* %21
%316 = load i32, i32* %15
%317 = load i32, i32* %16
%318 = add i32 %316, %317
%319 = add i32 %318, 4196353
store i32 %319, i32* %22
%320 = load i32, i32* %16
store i32 %320, i32* %23
%321 = load i32, i32* %16
%322 = load i32, i32* %19
%323 = add i32 %321, %322
%324 = add i32 %323, 4196353
store i32 %324, i32* %24
%325 = load i32, i32* %21
%326 = and i32 %325, 255
%327 = lshr i32 %326, 0
%328 = load i32, i32* %21
%329 = and i32 %328, 522240
%330 = lshr i32 %329, 3
%331 = or i32 %327, %330
%332 = load i32, i32* %21
%333 = and i32 %332, 1069547520
%334 = lshr i32 %333, 6
%335 = or i32 %331, %334
%336 = load i32, i32* %22
%337 = and i32 %336, 510
%338 = shl i32 %337, 23
%339 = or i32 %335, %338
%340 = load i8*, i8** %8
%341 = getelementptr inbounds i8, i8* %340, i64 0
%342 = bitcast i8* %341 to i32*
store i32 %339, i32* %342
%343 = load i32, i32* %22
%344 = and i32 %343, 1044480
%345 = lshr i32 %344, 12
%346 = load i32, i32* %22
%347 = and i32 %346, 2139095040
%348 = lshr i32 %347, 15
%349 = or i32 %345, %348
%350 = load i32, i32* %23
%351 = and i32 %350, 255
%352 = shl i32 %351, 16
%353 = or i32 %349, %352
%354 = load i32, i32* %23
%355 = and i32 %354, 522240
%356 = shl i32 %355, 13
%357 = or i32 %353, %356
%358 = load i8*, i8** %8
%359 = getelementptr inbounds i8, i8* %358, i64 4
%360 = bitcast i8* %359 to i32*
store i32 %357, i32* %360
%361 = load i32, i32* %23
%362 = and i32 %361, 1069547520
%363 = lshr i32 %362, 22
%364 = load i32, i32* %24
%365 = and i32 %364, 510
%366 = shl i32 %365, 7
%367 = or i32 %363, %366
%368 = load i32, i32* %24
%369 = and i32 %368, 1044480
%370 = shl i32 %369, 4
%371 = or i32 %367, %370
%372 = load i32, i32* %24
%373 = and i32 %372, 2139095040
%374 = shl i32 %373, 1
%375 = or i32 %371, %374
%376 = load i8*, i8** %8
%377 = getelementptr inbounds i8, i8* %376, i64 8
%378 = bitcast i8* %377 to i32*
store i32 %375, i32* %378
%379 = load i8*, i8** %12
%380 = bitcast i8* %379 to i32*
%381 = load i32, i32* %380
store i32 %381, i32* %17
%382 = load i8*, i8** %12
%383 = getelementptr inbounds i8, i8* %382, i64 4
%384 = bitcast i8* %383 to i32*
%385 = load i32, i32* %384
store i32 %385, i32* %18
%386 = load i32, i32* %18
store i32 %386, i32* %20
%387 = load i32, i32* %15
%388 = load i32, i32* %17
%389 = add i32 %387, %388
%390 = add i32 %389, 4196353
store i32 %390, i32* %21
%391 = load i32, i32* %15
%392 = load i32, i32* %16
%393 = add i32 %391, %392
%394 = load i32, i32* %17
%395 = add i32 %393, %394
%396 = load i32, i32* %18
%397 = add i32 %395, %396
%398 = add i32 %397, 8392706
store i32 %398, i32* %22
%399 = load i32, i32* %16
%400 = load i32, i32* %18
%401 = add i32 %399, %400
%402 = add i32 %401, 4196353
store i32 %402, i32* %23
%403 = load i32, i32* %16
%404 = load i32, i32* %19
%405 = add i32 %403, %404
%406 = load i32, i32* %18
%407 = add i32 %405, %406
%408 = load i32, i32* %20
%409 = add i32 %407, %408
%410 = add i32 %409, 8392706
store i32 %410, i32* %24
%411 = load i32, i32* %21
%412 = and i32 %411, 510
%413 = lshr i32 %412, 1
%414 = load i32, i32* %21
%415 = and i32 %414, 1044480
%416 = lshr i32 %415, 4
%417 = or i32 %413, %416
%418 = load i32, i32* %21
%419 = and i32 %418, 2139095040
%420 = lshr i32 %419, 7
%421 = or i32 %417, %420
%422 = load i32, i32* %22
%423 = and i32 %422, 1020
%424 = shl i32 %423, 22
%425 = or i32 %421, %424
%426 = load i8*, i8** %9
%427 = getelementptr inbounds i8, i8* %426, i64 0
%428 = bitcast i8* %427 to i32*
store i32 %425, i32* %428
%429 = load i32, i32* %22
%430 = and i32 %429, 2088960
%431 = lshr i32 %430, 13
%432 = load i32, i32* %22
%433 = and i32 %432, -16777216
%434 = lshr i32 %433, 16
%435 = or i32 %431, %434
%436 = load i32, i32* %23
%437 = and i32 %436, 510
%438 = shl i32 %437, 15
%439 = or i32 %435, %438
%440 = load i32, i32* %23
%441 = and i32 %440, 1044480
%442 = shl i32 %441, 12
%443 = or i32 %439, %442
%444 = load i8*, i8** %9
%445 = getelementptr inbounds i8, i8* %444, i64 4
%446 = bitcast i8* %445 to i32*
store i32 %443, i32* %446
%447 = load i32, i32* %23
%448 = and i32 %447, 2139095040
%449 = lshr i32 %448, 23
%450 = load i32, i32* %24
%451 = and i32 %450, 1020
%452 = shl i32 %451, 6
%453 = or i32 %449, %452
%454 = load i32, i32* %24
%455 = and i32 %454, 2088960
%456 = shl i32 %455, 3
%457 = or i32 %453, %456
%458 = load i32, i32* %24
%459 = and i32 %458, -16777216
%460 = shl i32 %459, 0
%461 = or i32 %457, %460
%462 = load i8*, i8** %9
%463 = getelementptr inbounds i8, i8* %462, i64 8
%464 = bitcast i8* %463 to i32*
store i32 %461, i32* %464
br label %547
465: ; preds = %303
%466 = load i8*, i8** %11
%467 = bitcast i8* %466 to i32*
%468 = load i32, i32* %467
store i32 %468, i32* %15
%469 = load i32, i32* %15
store i32 %469, i32* %16
%470 = load i32, i32* %15
store i32 %470, i32* %21
%471 = load i32, i32* %15
%472 = load i32, i32* %16
%473 = add i32 %471, %472
%474 = add i32 %473, 4196353
store i32 %474, i32* %22
%475 = load i32, i32* %21
%476 = and i32 %475, 255
%477 = lshr i32 %476, 0
%478 = load i32, i32* %21
%479 = and i32 %478, 522240
%480 = lshr i32 %479, 3
%481 = or i32 %477, %480
%482 = load i32, i32* %21
%483 = and i32 %482, 1069547520
%484 = lshr i32 %483, 6
%485 = or i32 %481, %484
%486 = load i32, i32* %22
%487 = and i32 %486, 510
%488 = shl i32 %487, 23
%489 = or i32 %485, %488
%490 = load i8*, i8** %8
%491 = bitcast i8* %490 to i32*
store i32 %489, i32* %491
%492 = load i32, i32* %22
%493 = and i32 %492, 1044480
%494 = lshr i32 %493, 12
%495 = load i32, i32* %22
%496 = and i32 %495, 2139095040
%497 = lshr i32 %496, 15
%498 = or i32 %494, %497
%499 = trunc i32 %498 to i16
%500 = load i8*, i8** %8
%501 = getelementptr inbounds i8, i8* %500, i64 4
%502 = bitcast i8* %501 to i16*
store i16 %499, i16* %502
%503 = load i8*, i8** %12
%504 = bitcast i8* %503 to i32*
%505 = load i32, i32* %504
store i32 %505, i32* %17
%506 = load i32, i32* %17
store i32 %506, i32* %18
%507 = load i32, i32* %15
%508 = load i32, i32* %17
%509 = add i32 %507, %508
%510 = add i32 %509, 4196353
store i32 %510, i32* %21
%511 = load i32, i32* %15
%512 = load i32, i32* %16
%513 = add i32 %511, %512
%514 = load i32, i32* %17
%515 = add i32 %513, %514
%516 = load i32, i32* %18
%517 = add i32 %515, %516
%518 = add i32 %517, 8392706
store i32 %518, i32* %22
%519 = load i32, i32* %21
%520 = and i32 %519, 510
%521 = lshr i32 %520, 1
%522 = load i32, i32* %21
%523 = and i32 %522, 1044480
%524 = lshr i32 %523, 4
%525 = or i32 %521, %524
%526 = load i32, i32* %21
%527 = and i32 %526, 2139095040
%528 = lshr i32 %527, 7
%529 = or i32 %525, %528
%530 = load i32, i32* %22
%531 = and i32 %530, 1020
%532 = shl i32 %531, 22
%533 = or i32 %529, %532
%534 = load i8*, i8** %9
%535 = bitcast i8* %534 to i32*
store i32 %533, i32* %535
%536 = load i32, i32* %22
%537 = and i32 %536, 2088960
%538 = lshr i32 %537, 13
%539 = load i32, i32* %22
%540 = and i32 %539, -16777216
%541 = lshr i32 %540, 16
%542 = or i32 %538, %541
%543 = trunc i32 %542 to i16
%544 = load i8*, i8** %9
%545 = getelementptr inbounds i8, i8* %544, i64 4
%546 = bitcast i8* %545 to i16*
store i16 %543, i16* %546
br label %547
547: ; preds = %465, %306
ret void
}

LLVM IR (-O2):
define void @dblineXRGBtoRGB24x2(i8* nocapture writeonly %0, i8* nocapture writeonly %1, i32 %2, i8* nocapture %3, i8* nocapture %4, i32 %5, i32 %6) {
%8 = and i32 %2, 1
%9 = icmp eq i32 %8, 0
br i1 %9, label %70, label %10
10: ; preds = %7
%11 = bitcast i8* %3 to i32*
%12 = load i32, i32* %11
%13 = getelementptr inbounds i8, i8* %3, i64 4
%14 = bitcast i8* %13 to i32*
%15 = load i32, i32* %14
%16 = add i32 %15, %12
%17 = add i32 %16, 4196353
%18 = and i32 %12, 255
%19 = lshr i32 %12, 3
%20 = and i32 %19, 65280
%21 = or i32 %20, %18
%22 = lshr i32 %12, 6
%23 = and i32 %22, 16711680
%24 = or i32 %21, %23
%25 = shl i32 %17, 23
%26 = and i32 %25, -16777216
%27 = or i32 %24, %26
%28 = bitcast i8* %0 to i32*
store i32 %27, i32* %28
%29 = lshr i32 %17, 12
%30 = and i32 %29, 255
%31 = lshr i32 %17, 15
%32 = and i32 %31, 65280
%33 = or i32 %30, %32
%34 = trunc i32 %33 to i16
%35 = getelementptr inbounds i8, i8* %0, i64 4
%36 = bitcast i8* %35 to i16*
store i16 %34, i16* %36
%37 = bitcast i8* %4 to i32*
%38 = load i32, i32* %37
%39 = getelementptr inbounds i8, i8* %4, i64 4
%40 = bitcast i8* %39 to i32*
%41 = load i32, i32* %40
%42 = add i32 %12, 4196353
%43 = add i32 %42, %38
%44 = add i32 %16, 8392706
%45 = add i32 %44, %38
%46 = add i32 %45, %41
%47 = lshr i32 %43, 1
%48 = and i32 %47, 255
%49 = lshr i32 %43, 4
%50 = and i32 %49, 65280
%51 = or i32 %48, %50
%52 = lshr i32 %43, 7
%53 = and i32 %52, 16711680
%54 = or i32 %51, %53
%55 = shl i32 %46, 22
%56 = and i32 %55, -16777216
%57 = or i32 %54, %56
%58 = bitcast i8* %1 to i32*
store i32 %57, i32* %58
%59 = lshr i32 %46, 13
%60 = and i32 %59, 255
%61 = lshr i32 %46, 16
%62 = and i32 %61, 65280
%63 = or i32 %60, %62
%64 = trunc i32 %63 to i16
%65 = getelementptr inbounds i8, i8* %1, i64 4
%66 = bitcast i8* %65 to i16*
store i16 %64, i16* %66
%67 = getelementptr inbounds i8, i8* %0, i64 6
%68 = getelementptr inbounds i8, i8* %1, i64 6
%69 = add nsw i32 %6, -1
br label %70
70: ; preds = %10, %7
%71 = phi i8* [ %68, %10 ], [ %1, %7 ]
%72 = phi i8* [ %13, %10 ], [ %3, %7 ]
%73 = phi i8* [ %39, %10 ], [ %4, %7 ]
%74 = phi i8* [ %67, %10 ], [ %0, %7 ]
%75 = phi i32 [ %69, %10 ], [ %6, %7 ]
%76 = icmp sgt i32 %75, 2
br i1 %76, label %77, label %366
77: ; preds = %70
%78 = add i32 %75, 1
%79 = call i32 @llvm.umin.i32(i32 %75, i32 4)
%80 = sub i32 %78, %79
%81 = lshr i32 %80, 1
%82 = add nuw i32 %81, 1
%83 = zext i32 %82 to i64
%84 = icmp ult i32 %80, 8
br i1 %84, label %247, label %85
85: ; preds = %77
%86 = add i32 %75, 1
%87 = call i32 @llvm.umin.i32(i32 %75, i32 4)
%88 = sub i32 %86, %87
%89 = lshr i32 %88, 1
%90 = zext i32 %89 to i64
%91 = mul nuw nsw i64 %90, 12
%92 = add nuw nsw i64 %91, 12
%93 = getelementptr i8, i8* %74, i64 %92
%94 = getelementptr i8, i8* %71, i64 %92
%95 = shl nuw nsw i64 %90, 3
%96 = add nuw nsw i64 %95, 12
%97 = getelementptr i8, i8* %72, i64 %96
%98 = getelementptr i8, i8* %73, i64 %96
%99 = icmp ult i8* %74, %94
%100 = icmp ult i8* %71, %93
%101 = and i1 %99, %100
%102 = icmp ult i8* %74, %97
%103 = icmp ult i8* %72, %93
%104 = and i1 %102, %103
%105 = or i1 %101, %104
%106 = icmp ult i8* %74, %98
%107 = icmp ult i8* %73, %93
%108 = and i1 %106, %107
%109 = or i1 %105, %108
%110 = icmp ult i8* %71, %97
%111 = icmp ult i8* %72, %94
%112 = and i1 %110, %111
%113 = or i1 %109, %112
%114 = icmp ult i8* %71, %98
%115 = icmp ult i8* %73, %94
%116 = and i1 %114, %115
%117 = or i1 %113, %116
br i1 %117, label %247, label %118
118: ; preds = %85
%119 = and i64 %83, 3
%120 = icmp eq i64 %119, 0
%121 = select i1 %120, i64 4, i64 %119
%122 = sub nsw i64 %83, %121
%123 = trunc i64 %122 to i32
%124 = mul i32 %123, -2
%125 = add i32 %75, %124
%126 = mul nsw i64 %122, 12
%127 = getelementptr i8, i8* %74, i64 %126
%128 = shl nsw i64 %122, 3
%129 = getelementptr i8, i8* %73, i64 %128
%130 = shl nsw i64 %122, 3
%131 = getelementptr i8, i8* %72, i64 %130
%132 = mul nsw i64 %122, 12
%133 = getelementptr i8, i8* %71, i64 %132
br label %134
134: ; preds = %134, %118
%135 = phi i64 [ 0, %118 ], [ %245, %134 ]
%136 = mul i64 %135, 12
%137 = shl i64 %135, 3
%138 = getelementptr i8, i8* %73, i64 %137
%139 = shl i64 %135, 3
%140 = getelementptr i8, i8* %72, i64 %139
%141 = mul i64 %135, 12
%142 = bitcast i8* %140 to <8 x i32>*
%143 = load <8 x i32>, <8 x i32>* %142
%144 = shufflevector <8 x i32> %143, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
%145 = getelementptr inbounds i8, i8* %140, i64 4
%146 = bitcast i8* %145 to <8 x i32>*
%147 = load <8 x i32>, <8 x i32>* %146
%148 = shufflevector <8 x i32> %147, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
%149 = shufflevector <8 x i32> %147, <8 x i32> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
%150 = add <4 x i32> %148, %144
%151 = add <4 x i32> %150, <i32 4196353, i32 4196353, i32 4196353, i32 4196353>
%152 = add <4 x i32> %149, %148
%153 = add <4 x i32> %152, <i32 4196353, i32 4196353, i32 4196353, i32 4196353>
%154 = and <4 x i32> %144, <i32 255, i32 255, i32 255, i32 255>
%155 = lshr <4 x i32> %144, <i32 3, i32 3, i32 3, i32 3>
%156 = and <4 x i32> %155, <i32 65280, i32 65280, i32 65280, i32 65280>
%157 = or <4 x i32> %156, %154
%158 = lshr <4 x i32> %144, <i32 6, i32 6, i32 6, i32 6>
%159 = and <4 x i32> %158, <i32 16711680, i32 16711680, i32 16711680, i32 16711680>
%160 = or <4 x i32> %157, %159
%161 = shl <4 x i32> %151, <i32 23, i32 23, i32 23, i32 23>
%162 = and <4 x i32> %161, <i32 -16777216, i32 -16777216, i32 -16777216, i32 -16777216>
%163 = or <4 x i32> %160, %162
%164 = lshr <4 x i32> %151, <i32 12, i32 12, i32 12, i32 12>
%165 = and <4 x i32> %164, <i32 255, i32 255, i32 255, i32 255>
%166 = lshr <4 x i32> %151, <i32 15, i32 15, i32 15, i32 15>
%167 = and <4 x i32> %166, <i32 65280, i32 65280, i32 65280, i32 65280>
%168 = shl <4 x i32> %148, <i32 16, i32 16, i32 16, i32 16>
%169 = and <4 x i32> %168, <i32 16711680, i32 16711680, i32 16711680, i32 16711680>
%170 = shl <4 x i32> %148, <i32 13, i32 13, i32 13, i32 13>
%171 = and <4 x i32> %170, <i32 -16777216, i32 -16777216, i32 -16777216, i32 -16777216>
%172 = or <4 x i32> %171, %169
%173 = or <4 x i32> %172, %167
%174 = or <4 x i32> %173, %165
%175 = lshr <4 x i32> %148, <i32 22, i32 22, i32 22, i32 22>
%176 = and <4 x i32> %175, <i32 255, i32 255, i32 255, i32 255>
%177 = shl <4 x i32> %153, <i32 7, i32 7, i32 7, i32 7>
%178 = and <4 x i32> %177, <i32 65280, i32 65280, i32 65280, i32 65280>
%179 = or <4 x i32> %178, %176
%180 = shl <4 x i32> %153, <i32 4, i32 4, i32 4, i32 4>
%181 = and <4 x i32> %180, <i32 16711680, i32 16711680, i32 16711680, i32 16711680>
%182 = or <4 x i32> %179, %181
%183 = shl <4 x i32> %153, <i32 1, i32 1, i32 1, i32 1>
%184 = and <4 x i32> %183, <i32 -16777216, i32 -16777216, i32 -16777216, i32 -16777216>
%185 = or <4 x i32> %182, %184
%186 = getelementptr inbounds i8, i8* %74, i64 %136
%187 = bitcast i8* %186 to <12 x i32>*
%188 = shufflevector <4 x i32> %163, <4 x i32> %174, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7>
%189 = shufflevector <4 x i32> %185, <4 x i32> poison, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 undef, i32 undef, i32 undef, i32 undef>
%190 = shufflevector <8 x i32> %188, <8 x i32> %189, <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> %190, <12 x i32>* %187
%191 = bitcast i8* %138 to <8 x i32>*
%192 = load <8 x i32>, <8 x i32>* %191
%193 = shufflevector <8 x i32> %192, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
%194 = getelementptr inbounds i8, i8* %138, i64 4
%195 = bitcast i8* %194 to <8 x i32>*
%196 = load <8 x i32>, <8 x i32>* %195
%197 = shufflevector <8 x i32> %196, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
%198 = shufflevector <8 x i32> %196, <8 x i32> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
%199 = add <4 x i32> %144, <i32 4196353, i32 4196353, i32 4196353, i32 4196353>
%200 = add <4 x i32> %199, %193
%201 = add <4 x i32> %197, <i32 8392706, i32 8392706, i32 8392706, i32 8392706>
%202 = add <4 x i32> %201, %150
%203 = add <4 x i32> %202, %193
%204 = add <4 x i32> %148, <i32 4196353, i32 4196353, i32 4196353, i32 4196353>
%205 = add <4 x i32> %204, %197
%206 = add <4 x i32> %201, %152
%207 = add <4 x i32> %206, %198
%208 = lshr <4 x i32> %200, <i32 1, i32 1, i32 1, i32 1>
%209 = and <4 x i32> %208, <i32 255, i32 255, i32 255, i32 255>
%210 = lshr <4 x i32> %200, <i32 4, i32 4, i32 4, i32 4>
%211 = and <4 x i32> %210, <i32 65280, i32 65280, i32 65280, i32 65280>
%212 = or <4 x i32> %209, %211
%213 = lshr <4 x i32> %200, <i32 7, i32 7, i32 7, i32 7>
%214 = and <4 x i32> %213, <i32 16711680, i32 16711680, i32 16711680, i32 16711680>
%215 = or <4 x i32> %212, %214
%216 = shl <4 x i32> %203, <i32 22, i32 22, i32 22, i32 22>
%217 = and <4 x i32> %216, <i32 -16777216, i32 -16777216, i32 -16777216, i32 -16777216>
%218 = or <4 x i32> %215, %217
%219 = lshr <4 x i32> %203, <i32 13, i32 13, i32 13, i32 13>
%220 = and <4 x i32> %219, <i32 255, i32 255, i32 255, i32 255>
%221 = lshr <4 x i32> %203, <i32 16, i32 16, i32 16, i32 16>
%222 = and <4 x i32> %221, <i32 65280, i32 65280, i32 65280, i32 65280>
%223 = shl <4 x i32> %205, <i32 15, i32 15, i32 15, i32 15>
%224 = and <4 x i32> %223, <i32 16711680, i32 16711680, i32 16711680, i32 16711680>
%225 = shl <4 x i32> %205, <i32 12, i32 12, i32 12, i32 12>
%226 = and <4 x i32> %225, <i32 -16777216, i32 -16777216, i32 -16777216, i32 -16777216>
%227 = or <4 x i32> %226, %224
%228 = or <4 x i32> %227, %222
%229 = or <4 x i32> %228, %220
%230 = lshr <4 x i32> %205, <i32 23, i32 23, i32 23, i32 23>
%231 = and <4 x i32> %230, <i32 255, i32 255, i32 255, i32 255>
%232 = shl <4 x i32> %207, <i32 6, i32 6, i32 6, i32 6>
%233 = and <4 x i32> %232, <i32 65280, i32 65280, i32 65280, i32 65280>
%234 = shl <4 x i32> %207, <i32 3, i32 3, i32 3, i32 3>
%235 = and <4 x i32> %234, <i32 16711680, i32 16711680, i32 16711680, i32 16711680>
%236 = and <4 x i32> %207, <i32 -16777216, i32 -16777216, i32 -16777216, i32 -16777216>
%237 = or <4 x i32> %236, %231
%238 = or <4 x i32> %237, %233
%239 = or <4 x i32> %238, %235
%240 = getelementptr inbounds i8, i8* %71, i64 %141
%241 = bitcast i8* %240 to <12 x i32>*
%242 = shufflevector <4 x i32> %218, <4 x i32> %229, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7>
%243 = shufflevector <4 x i32> %239, <4 x i32> poison, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 undef, i32 undef, i32 undef, i32 undef>
%244 = shufflevector <8 x i32> %242, <8 x i32> %243, <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> %244, <12 x i32>* %241
%245 = add nuw i64 %135, 4
%246 = icmp eq i64 %245, %122
br i1 %246, label %247, label %134
247: ; preds = %134, %85, %77
%248 = phi i32 [ %75, %85 ], [ %75, %77 ], [ %125, %134 ]
%249 = phi i8* [ %74, %85 ], [ %74, %77 ], [ %127, %134 ]
%250 = phi i8* [ %73, %85 ], [ %73, %77 ], [ %129, %134 ]
%251 = phi i8* [ %72, %85 ], [ %72, %77 ], [ %131, %134 ]
%252 = phi i8* [ %71, %85 ], [ %71, %77 ], [ %133, %134 ]
br label %253
253: ; preds = %247, %253
%254 = phi i32 [ %364, %253 ], [ %248, %247 ]
%255 = phi i8* [ %362, %253 ], [ %249, %247 ]
%256 = phi i8* [ %313, %253 ], [ %250, %247 ]
%257 = phi i8* [ %264, %253 ], [ %251, %247 ]
%258 = phi i8* [ %363, %253 ], [ %252, %247 ]
%259 = bitcast i8* %257 to i32*
%260 = load i32, i32* %259
%261 = getelementptr inbounds i8, i8* %257, i64 4
%262 = bitcast i8* %261 to i32*
%263 = load i32, i32* %262
%264 = getelementptr inbounds i8, i8* %257, i64 8
%265 = bitcast i8* %264 to i32*
%266 = load i32, i32* %265
%267 = add i32 %263, %260
%268 = add i32 %267, 4196353
%269 = add i32 %266, %263
%270 = add i32 %269, 4196353
%271 = and i32 %260, 255
%272 = lshr i32 %260, 3
%273 = and i32 %272, 65280
%274 = or i32 %273, %271
%275 = lshr i32 %260, 6
%276 = and i32 %275, 16711680
%277 = or i32 %274, %276
%278 = shl i32 %268, 23
%279 = and i32 %278, -16777216
%280 = or i32 %277, %279
%281 = bitcast i8* %255 to i32*
store i32 %280, i32* %281
%282 = lshr i32 %268, 12
%283 = and i32 %282, 255
%284 = lshr i32 %268, 15
%285 = and i32 %284, 65280
%286 = shl i32 %263, 16
%287 = and i32 %286, 16711680
%288 = shl i32 %263, 13
%289 = and i32 %288, -16777216
%290 = or i32 %289, %287
%291 = or i32 %290, %285
%292 = or i32 %291, %283
%293 = getelementptr inbounds i8, i8* %255, i64 4
%294 = bitcast i8* %293 to i32*
store i32 %292, i32* %294
%295 = lshr i32 %263, 22
%296 = and i32 %295, 255
%297 = shl i32 %270, 7
%298 = and i32 %297, 65280
%299 = or i32 %298, %296
%300 = shl i32 %270, 4
%301 = and i32 %300, 16711680
%302 = or i32 %299, %301
%303 = shl i32 %270, 1
%304 = and i32 %303, -16777216
%305 = or i32 %302, %304
%306 = getelementptr inbounds i8, i8* %255, i64 8
%307 = bitcast i8* %306 to i32*
store i32 %305, i32* %307
%308 = bitcast i8* %256 to i32*
%309 = load i32, i32* %308
%310 = getelementptr inbounds i8, i8* %256, i64 4
%311 = bitcast i8* %310 to i32*
%312 = load i32, i32* %311
%313 = getelementptr inbounds i8, i8* %256, i64 8
%314 = bitcast i8* %313 to i32*
%315 = load i32, i32* %314
%316 = add i32 %260, 4196353
%317 = add i32 %316, %309
%318 = add i32 %312, 8392706
%319 = add i32 %318, %267
%320 = add i32 %319, %309
%321 = add i32 %263, 4196353
%322 = add i32 %321, %312
%323 = add i32 %318, %269
%324 = add i32 %323, %315
%325 = lshr i32 %317, 1
%326 = and i32 %325, 255
%327 = lshr i32 %317, 4
%328 = and i32 %327, 65280
%329 = or i32 %326, %328
%330 = lshr i32 %317, 7
%331 = and i32 %330, 16711680
%332 = or i32 %329, %331
%333 = shl i32 %320, 22
%334 = and i32 %333, -16777216
%335 = or i32 %332, %334
%336 = bitcast i8* %258 to i32*
store i32 %335, i32* %336
%337 = lshr i32 %320, 13
%338 = and i32 %337, 255
%339 = lshr i32 %320, 16
%340 = and i32 %339, 65280
%341 = shl i32 %322, 15
%342 = and i32 %341, 16711680
%343 = shl i32 %322, 12
%344 = and i32 %343, -16777216
%345 = or i32 %344, %342
%346 = or i32 %345, %340
%347 = or i32 %346, %338
%348 = getelementptr inbounds i8, i8* %258, i64 4
%349 = bitcast i8* %348 to i32*
store i32 %347, i32* %349
%350 = lshr i32 %322, 23
%351 = and i32 %350, 255
%352 = shl i32 %324, 6
%353 = and i32 %352, 65280
%354 = shl i32 %324, 3
%355 = and i32 %354, 16711680
%356 = and i32 %324, -16777216
%357 = or i32 %356, %351
%358 = or i32 %357, %353
%359 = or i32 %358, %355
%360 = getelementptr inbounds i8, i8* %258, i64 8
%361 = bitcast i8* %360 to i32*
store i32 %359, i32* %361
%362 = getelementptr inbounds i8, i8* %255, i64 12
%363 = getelementptr inbounds i8, i8* %258, i64 12
%364 = add nsw i32 %254, -2
%365 = icmp ugt i32 %254, 4
br i1 %365, label %253, label %366
366: ; preds = %253, %70
%367 = phi i8* [ %71, %70 ], [ %363, %253 ]
%368 = phi i8* [ %72, %70 ], [ %264, %253 ]
%369 = phi i8* [ %73, %70 ], [ %313, %253 ]
%370 = phi i8* [ %74, %70 ], [ %362, %253 ]
%371 = phi i32 [ %75, %70 ], [ %364, %253 ]
%372 = icmp eq i32 %371, 2
%373 = bitcast i8* %368 to i32*
%374 = load i32, i32* %373
br i1 %372, label %375, label %471
375: ; preds = %366
%376 = getelementptr inbounds i8, i8* %368, i64 4
%377 = bitcast i8* %376 to i32*
%378 = load i32, i32* %377
%379 = add i32 %378, %374
%380 = add i32 %379, 4196353
%381 = shl i32 %378, 1
%382 = add i32 %381, 4196353
%383 = and i32 %374, 255
%384 = lshr i32 %374, 3
%385 = and i32 %384, 65280
%386 = or i32 %385, %383
%387 = lshr i32 %374, 6
%388 = and i32 %387, 16711680
%389 = or i32 %386, %388
%390 = shl i32 %380, 23
%391 = and i32 %390, -16777216
%392 = or i32 %389, %391
%393 = bitcast i8* %370 to i32*
store i32 %392, i32* %393
%394 = lshr i32 %380, 12
%395 = and i32 %394, 255
%396 = lshr i32 %380, 15
%397 = and i32 %396, 65280
%398 = shl i32 %378, 16
%399 = and i32 %398, 16711680
%400 = shl i32 %378, 13
%401 = and i32 %400, -16777216
%402 = or i32 %401, %399
%403 = or i32 %402, %397
%404 = or i32 %403, %395
%405 = getelementptr inbounds i8, i8* %370, i64 4
%406 = bitcast i8* %405 to i32*
store i32 %404, i32* %406
%407 = lshr i32 %378, 22
%408 = and i32 %407, 255
%409 = shl i32 %382, 7
%410 = and i32 %409, 65280
%411 = or i32 %410, %408
%412 = shl i32 %382, 4
%413 = and i32 %412, 16711680
%414 = or i32 %411, %413
%415 = shl i32 %382, 1
%416 = and i32 %415, -16777216
%417 = or i32 %414, %416
%418 = getelementptr inbounds i8, i8* %370, i64 8
%419 = bitcast i8* %418 to i32*
store i32 %417, i32* %419
%420 = bitcast i8* %369 to i32*
%421 = load i32, i32* %420
%422 = getelementptr inbounds i8, i8* %369, i64 4
%423 = bitcast i8* %422 to i32*
%424 = load i32, i32* %423
%425 = add i32 %374, 4196353
%426 = add i32 %425, %421
%427 = add i32 %379, 8392706
%428 = add i32 %427, %421
%429 = add i32 %428, %424
%430 = add i32 %424, %378
%431 = add i32 %430, 4196353
%432 = shl i32 %430, 1
%433 = add i32 %432, 8392706
%434 = lshr i32 %426, 1
%435 = and i32 %434, 255
%436 = lshr i32 %426, 4
%437 = and i32 %436, 65280
%438 = or i32 %435, %437
%439 = lshr i32 %426, 7
%440 = and i32 %439, 16711680
%441 = or i32 %438, %440
%442 = shl i32 %429, 22
%443 = and i32 %442, -16777216
%444 = or i32 %441, %443
%445 = bitcast i8* %367 to i32*
store i32 %444, i32* %445
%446 = lshr i32 %429, 13
%447 = and i32 %446, 255
%448 = lshr i32 %429, 16
%449 = and i32 %448, 65280
%450 = or i32 %447, %449
%451 = shl i32 %431, 15
%452 = and i32 %451, 16711680
%453 = or i32 %450, %452
%454 = shl i32 %431, 12
%455 = and i32 %454, -16777216
%456 = or i32 %453, %455
%457 = getelementptr inbounds i8, i8* %367, i64 4
%458 = bitcast i8* %457 to i32*
store i32 %456, i32* %458
%459 = lshr i32 %431, 23
%460 = and i32 %459, 255
%461 = shl i32 %433, 6
%462 = and i32 %461, 65280
%463 = shl i32 %433, 3
%464 = and i32 %463, 16711680
%465 = and i32 %433, -16777216
%466 = or i32 %465, %460
%467 = or i32 %466, %462
%468 = or i32 %467, %464
%469 = getelementptr inbounds i8, i8* %367, i64 8
%470 = bitcast i8* %469 to i32*
store i32 %468, i32* %470
br label %519
471: ; preds = %366
%472 = shl i32 %374, 1
%473 = add i32 %472, 4196353
%474 = and i32 %374, 255
%475 = lshr i32 %374, 3
%476 = and i32 %475, 65280
%477 = or i32 %476, %474
%478 = lshr i32 %374, 6
%479 = and i32 %478, 16711680
%480 = or i32 %477, %479
%481 = shl i32 %473, 23
%482 = and i32 %481, -16777216
%483 = or i32 %480, %482
%484 = bitcast i8* %370 to i32*
store i32 %483, i32* %484
%485 = lshr i32 %473, 12
%486 = and i32 %485, 255
%487 = lshr i32 %473, 15
%488 = and i32 %487, 65280
%489 = or i32 %486, %488
%490 = trunc i32 %489 to i16
%491 = getelementptr inbounds i8, i8* %370, i64 4
%492 = bitcast i8* %491 to i16*
store i16 %490, i16* %492
%493 = bitcast i8* %369 to i32*
%494 = load i32, i32* %493
%495 = add i32 %494, %374
%496 = add i32 %495, 4196353
%497 = shl i32 %495, 1
%498 = add i32 %497, 8392706
%499 = lshr i32 %496, 1
%500 = and i32 %499, 255
%501 = lshr i32 %496, 4
%502 = and i32 %501, 65280
%503 = or i32 %500, %502
%504 = lshr i32 %496, 7
%505 = and i32 %504, 16711680
%506 = or i32 %503, %505
%507 = shl i32 %498, 22
%508 = and i32 %507, -16777216
%509 = or i32 %506, %508
%510 = bitcast i8* %367 to i32*
store i32 %509, i32* %510
%511 = lshr i32 %498, 13
%512 = and i32 %511, 255
%513 = lshr i32 %498, 16
%514 = and i32 %513, 65280
%515 = or i32 %512, %514
%516 = trunc i32 %515 to i16
%517 = getelementptr inbounds i8, i8* %367, i64 4
%518 = bitcast i8* %517 to i16*
store i16 %516, i16* %518
br label %519
519: ; preds = %471, %375
ret void
}