void RGB32toRGB444_ROW_STRETCH2XPLUS(unsigned char *dest_ptr, int dest_dx,
                                     unsigned char *src_ptr, int src_dx) {
  register unsigned char *d = dest_ptr;
  register unsigned char *s = src_ptr;
  register int count = dest_dx;
  register int limit = dest_dx >> 1;
  register int step = src_dx << 1;
  register int remainder = (2 * dest_dx - limit) / step;
  if (count) {
    register unsigned int da_rgb;
    register unsigned int db_rgb;
    register unsigned int sa_rgb;
    sa_rgb = *(unsigned int *)(s);
    da_rgb =
        ((8 + 4 < 8) ? (((((16 + 8 < 8) ? ((sa_rgb << ((8 - (16 + 8)) & 0x1F)) &
                                           (0x100 - (1U << (8 - 8))))
                                        : ((sa_rgb >> (((16 + 8) - 8) & 0x1F)) &
                                           (0x100 - (1U << (8 - 8)))))) &
                         (0x100 - (1U << (8 - 4)))) >>
                        ((8 - (8 + 4)) & 0x1F))
                     : (((((16 + 8 < 8) ? ((sa_rgb << ((8 - (16 + 8)) & 0x1F)) &
                                           (0x100 - (1U << (8 - 8))))
                                        : ((sa_rgb >> (((16 + 8) - 8) & 0x1F)) &
                                           (0x100 - (1U << (8 - 8)))))) &
                         (0x100 - (1U << (8 - 4))))
                        << (((8 + 4) - 8) & 0x1F))) |
        ((4 + 4 < 8) ? (((((8 + 8 < 8) ? ((sa_rgb << ((8 - (8 + 8)) & 0x1F)) &
                                          (0x100 - (1U << (8 - 8))))
                                       : ((sa_rgb >> (((8 + 8) - 8) & 0x1F)) &
                                          (0x100 - (1U << (8 - 8)))))) &
                         (0x100 - (1U << (8 - 4)))) >>
                        ((8 - (4 + 4)) & 0x1F))
                     : (((((8 + 8 < 8) ? ((sa_rgb << ((8 - (8 + 8)) & 0x1F)) &
                                          (0x100 - (1U << (8 - 8))))
                                       : ((sa_rgb >> (((8 + 8) - 8) & 0x1F)) &
                                          (0x100 - (1U << (8 - 8)))))) &
                         (0x100 - (1U << (8 - 4))))
                        << (((4 + 4) - 8) & 0x1F))) |
        ((0 + 4 < 8) ? (((((0 + 8 < 8) ? ((sa_rgb << ((8 - (0 + 8)) & 0x1F)) &
                                          (0x100 - (1U << (8 - 8))))
                                       : ((sa_rgb >> (((0 + 8) - 8) & 0x1F)) &
                                          (0x100 - (1U << (8 - 8)))))) &
                         (0x100 - (1U << (8 - 4)))) >>
                        ((8 - (0 + 4)) & 0x1F))
                     : (((((0 + 8 < 8) ? ((sa_rgb << ((8 - (0 + 8)) & 0x1F)) &
                                          (0x100 - (1U << (8 - 8))))
                                       : ((sa_rgb >> (((0 + 8) - 8) & 0x1F)) &
                                          (0x100 - (1U << (8 - 8)))))) &
                         (0x100 - (1U << (8 - 4))))
                        << (((0 + 4) - 8) & 0x1F)));
    s += 4;
    if (!(count -= remainder))
      goto end_of_row;
    while (1) {
      do {
        *(unsigned short *)(d) = da_rgb;
        d += 2;
        if (!(--count))
          goto end_of_row;
      } while ((limit -= step) >= 0);
      limit += dest_dx;
      register unsigned int sa_rgb;
      sa_rgb = *(unsigned int *)(s);
      db_rgb =
          ((8 + 4 < 8)
               ? (((((16 + 8 < 8) ? ((sa_rgb << ((8 - (16 + 8)) & 0x1F)) &
                                     (0x100 - (1U << (8 - 8))))
                                  : ((sa_rgb >> (((16 + 8) - 8) & 0x1F)) &
                                     (0x100 - (1U << (8 - 8)))))) &
                   (0x100 - (1U << (8 - 4)))) >>
                  ((8 - (8 + 4)) & 0x1F))
               : (((((16 + 8 < 8) ? ((sa_rgb << ((8 - (16 + 8)) & 0x1F)) &
                                     (0x100 - (1U << (8 - 8))))
                                  : ((sa_rgb >> (((16 + 8) - 8) & 0x1F)) &
                                     (0x100 - (1U << (8 - 8)))))) &
                   (0x100 - (1U << (8 - 4))))
                  << (((8 + 4) - 8) & 0x1F))) |
          ((4 + 4 < 8) ? (((((8 + 8 < 8) ? ((sa_rgb << ((8 - (8 + 8)) & 0x1F)) &
                                            (0x100 - (1U << (8 - 8))))
                                         : ((sa_rgb >> (((8 + 8) - 8) & 0x1F)) &
                                            (0x100 - (1U << (8 - 8)))))) &
                           (0x100 - (1U << (8 - 4)))) >>
                          ((8 - (4 + 4)) & 0x1F))
                       : (((((8 + 8 < 8) ? ((sa_rgb << ((8 - (8 + 8)) & 0x1F)) &
                                            (0x100 - (1U << (8 - 8))))
                                         : ((sa_rgb >> (((8 + 8) - 8) & 0x1F)) &
                                            (0x100 - (1U << (8 - 8)))))) &
                           (0x100 - (1U << (8 - 4))))
                          << (((4 + 4) - 8) & 0x1F))) |
          ((0 + 4 < 8) ? (((((0 + 8 < 8) ? ((sa_rgb << ((8 - (0 + 8)) & 0x1F)) &
                                            (0x100 - (1U << (8 - 8))))
                                         : ((sa_rgb >> (((0 + 8) - 8) & 0x1F)) &
                                            (0x100 - (1U << (8 - 8)))))) &
                           (0x100 - (1U << (8 - 4)))) >>
                          ((8 - (0 + 4)) & 0x1F))
                       : (((((0 + 8 < 8) ? ((sa_rgb << ((8 - (0 + 8)) & 0x1F)) &
                                            (0x100 - (1U << (8 - 8))))
                                         : ((sa_rgb >> (((0 + 8) - 8) & 0x1F)) &
                                            (0x100 - (1U << (8 - 8)))))) &
                           (0x100 - (1U << (8 - 4))))
                          << (((0 + 4) - 8) & 0x1F)));
      da_rgb =
          (((da_rgb ^ db_rgb) >> 1) & (((1U << (8 + 4 - 1)) - (1U << 8)) |
                                       ((1U << (4 + 4 - 1)) - (1U << 4)) |
                                       ((1U << (0 + 4 - 1)) - (1U << 0)))) +
          (da_rgb & db_rgb);
      do {
        *(unsigned short *)(d) = da_rgb;
        d += 2;
        if (!(--count))
          goto end_of_row;
      } while ((limit -= step) >= 0);
      limit += dest_dx;
      do {
        *(unsigned short *)(d) = db_rgb;
        d += 2;
        if (!(--count))
          goto end_of_row_2;
      } while ((limit -= step) >= 0);
      limit += dest_dx;
      sa_rgb = *(unsigned int *)(s + 4);
      da_rgb =
          ((8 + 4 < 8)
               ? (((((16 + 8 < 8) ? ((sa_rgb << ((8 - (16 + 8)) & 0x1F)) &
                                     (0x100 - (1U << (8 - 8))))
                                  : ((sa_rgb >> (((16 + 8) - 8) & 0x1F)) &
                                     (0x100 - (1U << (8 - 8)))))) &
                   (0x100 - (1U << (8 - 4)))) >>
                  ((8 - (8 + 4)) & 0x1F))
               : (((((16 + 8 < 8) ? ((sa_rgb << ((8 - (16 + 8)) & 0x1F)) &
                                     (0x100 - (1U << (8 - 8))))
                                  : ((sa_rgb >> (((16 + 8) - 8) & 0x1F)) &
                                     (0x100 - (1U << (8 - 8)))))) &
                   (0x100 - (1U << (8 - 4))))
                  << (((8 + 4) - 8) & 0x1F))) |
          ((4 + 4 < 8) ? (((((8 + 8 < 8) ? ((sa_rgb << ((8 - (8 + 8)) & 0x1F)) &
                                            (0x100 - (1U << (8 - 8))))
                                         : ((sa_rgb >> (((8 + 8) - 8) & 0x1F)) &
                                            (0x100 - (1U << (8 - 8)))))) &
                           (0x100 - (1U << (8 - 4)))) >>
                          ((8 - (4 + 4)) & 0x1F))
                       : (((((8 + 8 < 8) ? ((sa_rgb << ((8 - (8 + 8)) & 0x1F)) &
                                            (0x100 - (1U << (8 - 8))))
                                         : ((sa_rgb >> (((8 + 8) - 8) & 0x1F)) &
                                            (0x100 - (1U << (8 - 8)))))) &
                           (0x100 - (1U << (8 - 4))))
                          << (((4 + 4) - 8) & 0x1F))) |
          ((0 + 4 < 8) ? (((((0 + 8 < 8) ? ((sa_rgb << ((8 - (0 + 8)) & 0x1F)) &
                                            (0x100 - (1U << (8 - 8))))
                                         : ((sa_rgb >> (((0 + 8) - 8) & 0x1F)) &
                                            (0x100 - (1U << (8 - 8)))))) &
                           (0x100 - (1U << (8 - 4)))) >>
                          ((8 - (0 + 4)) & 0x1F))
                       : (((((0 + 8 < 8) ? ((sa_rgb << ((8 - (0 + 8)) & 0x1F)) &
                                            (0x100 - (1U << (8 - 8))))
                                         : ((sa_rgb >> (((0 + 8) - 8) & 0x1F)) &
                                            (0x100 - (1U << (8 - 8)))))) &
                           (0x100 - (1U << (8 - 4))))
                          << (((0 + 4) - 8) & 0x1F)));
      s += 2 * 4;
      db_rgb =
          (((db_rgb ^ da_rgb) >> 1) & (((1U << (8 + 4 - 1)) - (1U << 8)) |
                                       ((1U << (4 + 4 - 1)) - (1U << 4)) |
                                       ((1U << (0 + 4 - 1)) - (1U << 0)))) +
          (db_rgb & da_rgb);
      do {
        *(unsigned short *)(d) = db_rgb;
        d += 2;
        if (!(--count))
          goto end_of_row_2;
      } while ((limit -= step) >= 0);
      limit += dest_dx;
    }
  end_of_row_2:
    da_rgb = db_rgb;
  end_of_row:
    while (remainder--) {
      *(unsigned short *)(d) = da_rgb;
      d += 2;
    }
  }
}


x86 assembly (clang, -O0):
<RGB32toRGB444_ROW_STRETCH2XPLUS>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0xc(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x1c(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x3c(%rbp)
mov    -0xc(%rbp),%eax
shl    $0x1,%eax
sub    -0x38(%rbp),%eax
cltd
idivl  -0x3c(%rbp)
mov    %eax,-0x40(%rbp)
cmpl   $0x0,-0x34(%rbp)
je     1438 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x338>
mov    -0x30(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
shr    $0x10,%eax
and    $0xff,%eax
and    $0xf0,%eax
shl    $0x4,%eax
mov    -0x4c(%rbp),%ecx
shr    $0x8,%ecx
and    $0xff,%ecx
and    $0xf0,%ecx
shl    $0x0,%ecx
or     %ecx,%eax
mov    -0x4c(%rbp),%ecx
shr    $0x0,%ecx
and    $0xff,%ecx
and    $0xf0,%ecx
shr    $0x4,%ecx
or     %ecx,%eax
mov    %eax,-0x44(%rbp)
mov    -0x30(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x30(%rbp)
mov    -0x40(%rbp),%ecx
mov    -0x34(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x34(%rbp)
cmp    $0x0,%eax
jne    11c6 <RGB32toRGB444_ROW_STRETCH2XPLUS+0xc6>
jmp    13fc <RGB32toRGB444_ROW_STRETCH2XPLUS+0x2fc>
jmp    11cb <RGB32toRGB444_ROW_STRETCH2XPLUS+0xcb>
jmp    11d0 <RGB32toRGB444_ROW_STRETCH2XPLUS+0xd0>
mov    -0x44(%rbp),%eax
mov    %ax,%cx
mov    -0x28(%rbp),%rax
mov    %cx,(%rax)
mov    -0x28(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x28(%rbp)
mov    -0x34(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x34(%rbp)
cmp    $0x0,%eax
jne    1200 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x100>
jmp    13fc <RGB32toRGB444_ROW_STRETCH2XPLUS+0x2fc>
jmp    1205 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x105>
mov    -0x3c(%rbp),%ecx
mov    -0x38(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x38(%rbp)
cmp    $0x0,%eax
jge    11d0 <RGB32toRGB444_ROW_STRETCH2XPLUS+0xd0>
mov    -0xc(%rbp),%eax
add    -0x38(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x50(%rbp)
mov    -0x50(%rbp),%eax
shr    $0x10,%eax
and    $0xff,%eax
and    $0xf0,%eax
shl    $0x4,%eax
mov    -0x50(%rbp),%ecx
shr    $0x8,%ecx
and    $0xff,%ecx
and    $0xf0,%ecx
shl    $0x0,%ecx
or     %ecx,%eax
mov    -0x50(%rbp),%ecx
shr    $0x0,%ecx
and    $0xff,%ecx
and    $0xf0,%ecx
shr    $0x4,%ecx
or     %ecx,%eax
mov    %eax,-0x48(%rbp)
mov    -0x44(%rbp),%eax
xor    -0x48(%rbp),%eax
shr    $0x1,%eax
and    $0x777,%eax
mov    -0x44(%rbp),%ecx
and    -0x48(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
mov    %ax,%cx
mov    -0x28(%rbp),%rax
mov    %cx,(%rax)
mov    -0x28(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x28(%rbp)
mov    -0x34(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x34(%rbp)
cmp    $0x0,%eax
jne    12b8 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x1b8>
jmp    13fc <RGB32toRGB444_ROW_STRETCH2XPLUS+0x2fc>
jmp    12bd <RGB32toRGB444_ROW_STRETCH2XPLUS+0x1bd>
mov    -0x3c(%rbp),%ecx
mov    -0x38(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x38(%rbp)
cmp    $0x0,%eax
jge    1288 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x188>
mov    -0xc(%rbp),%eax
add    -0x38(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x48(%rbp),%eax
mov    %ax,%cx
mov    -0x28(%rbp),%rax
mov    %cx,(%rax)
mov    -0x28(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x28(%rbp)
mov    -0x34(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x34(%rbp)
cmp    $0x0,%eax
jne    130a <RGB32toRGB444_ROW_STRETCH2XPLUS+0x20a>
jmp    13f6 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x2f6>
jmp    130f <RGB32toRGB444_ROW_STRETCH2XPLUS+0x20f>
mov    -0x3c(%rbp),%ecx
mov    -0x38(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x38(%rbp)
cmp    $0x0,%eax
jge    12da <RGB32toRGB444_ROW_STRETCH2XPLUS+0x1da>
mov    -0xc(%rbp),%eax
add    -0x38(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x30(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0x50(%rbp)
mov    -0x50(%rbp),%eax
shr    $0x10,%eax
and    $0xff,%eax
and    $0xf0,%eax
shl    $0x4,%eax
mov    -0x50(%rbp),%ecx
shr    $0x8,%ecx
and    $0xff,%ecx
and    $0xf0,%ecx
shl    $0x0,%ecx
or     %ecx,%eax
mov    -0x50(%rbp),%ecx
shr    $0x0,%ecx
and    $0xff,%ecx
and    $0xf0,%ecx
shr    $0x4,%ecx
or     %ecx,%eax
mov    %eax,-0x44(%rbp)
mov    -0x30(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x30(%rbp)
mov    -0x48(%rbp),%eax
xor    -0x44(%rbp),%eax
shr    $0x1,%eax
and    $0x777,%eax
mov    -0x48(%rbp),%ecx
and    -0x44(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0x48(%rbp)
mov    -0x48(%rbp),%eax
mov    %ax,%cx
mov    -0x28(%rbp),%rax
mov    %cx,(%rax)
mov    -0x28(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x28(%rbp)
mov    -0x34(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x34(%rbp)
cmp    $0x0,%eax
jne    13cf <RGB32toRGB444_ROW_STRETCH2XPLUS+0x2cf>
jmp    13f6 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x2f6>
jmp    13d4 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x2d4>
mov    -0x3c(%rbp),%ecx
mov    -0x38(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x38(%rbp)
cmp    $0x0,%eax
jge    139f <RGB32toRGB444_ROW_STRETCH2XPLUS+0x29f>
mov    -0xc(%rbp),%eax
add    -0x38(%rbp),%eax
mov    %eax,-0x38(%rbp)
jmp    11cb <RGB32toRGB444_ROW_STRETCH2XPLUS+0xcb>
mov    -0x48(%rbp),%eax
mov    %eax,-0x44(%rbp)
jmp    1401 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x301>
mov    -0x40(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x40(%rbp)
cmp    $0x0,%eax
je     1433 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x333>
mov    -0x44(%rbp),%eax
mov    %ax,%cx
mov    -0x28(%rbp),%rax
mov    %cx,(%rax)
mov    -0x28(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x28(%rbp)
jmp    1401 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x301>
jmp    1438 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x338>
pop    %rbp
ret

x86 assembly (clang, -O2):
<RGB32toRGB444_ROW_STRETCH2XPLUS>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rdx,%r8
mov    %esi,%r11d
sar    %r11d
lea    (%rcx,%rcx,1),%r9d
lea    (%rsi,%rsi,1),%ebp
mov    %ebp,%eax
sub    %r11d,%eax
cltd
idiv   %r9d
test   %esi,%esi
je     141d <RGB32toRGB444_ROW_STRETCH2XPLUS+0x31d>
mov    %rdi,%r12
mov    %eax,%r10d
mov    (%r8),%ebx
mov    %ebx,%edx
shr    $0xc,%edx
and    $0xf00,%edx
mov    %ebx,%edi
shr    $0x8,%edi
and    $0xf0,%edi
or     %edx,%edi
shr    $0x4,%ebx
and    $0xf,%ebx
or     %edi,%ebx
mov    %esi,%r13d
sub    %eax,%r13d
je     1320 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x220>
mov    %ebx,%eax
mov    %r10,-0x28(%rsp)
add    $0x4,%r8
sub    %r9d,%ebp
lea    (%rsi,%rsi,2),%edx
shl    $0x2,%ecx
sub    %ecx,%edx
mov    %rsi,-0x8(%rsp)
lea    0x0(,%rsi,4),%esi
lea    (%r9,%r9,2),%ecx
sub    %ecx,%esi
mov    %rbp,-0x18(%rsp)
mov    %rdx,-0x10(%rsp)
lea    (%r11,%rbp,1),%ebx
lea    0x4(%r12),%rbp
lea    (%rdx,%r11,1),%ecx
lea    (%rsi,%r11,1),%edx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %ebx,%r10d
mov    %eax,%ebx
mov    %bx,(%r12)
cmp    $0x1,%r13d
je     1305 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x205>
mov    %rbp,%rdi
mov    %ecx,%r14d
mov    %edx,%r15d
add    $0x2,%r12
add    $0xffffffff,%r13d
mov    %r10d,%ebx
sub    %r9d,%ebx
add    $0x2,%rbp
sub    %r9d,%ecx
sub    %r9d,%edx
sub    %r9d,%r11d
jns    11b0 <RGB32toRGB444_ROW_STRETCH2XPLUS+0xb0>
mov    %rsi,-0x20(%rsp)
mov    -0x28(%rsp),%rsi
add    -0x8(%rsp),%r11d
mov    %r8,%rbp
mov    (%r8),%ebx
mov    %ebx,%ecx
shr    $0xc,%ecx
and    $0xf00,%ecx
mov    %ebx,%edx
shr    $0x8,%edx
and    $0xf0,%edx
or     %ecx,%edx
shr    $0x4,%ebx
and    $0xf,%ebx
or     %edx,%ebx
mov    %ebx,%ecx
xor    %eax,%ecx
shr    %ecx
and    $0x777,%ecx
and    %ebx,%eax
add    %ecx,%eax
nop
mov    %ax,-0x2(%rdi)
cmp    $0x1,%r13d
je     1318 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x218>
mov    %r14d,%ecx
mov    %r15d,%r8d
sub    %r9d,%r10d
add    $0x2,%rdi
add    $0xffffffff,%r13d
sub    %r9d,%r14d
sub    %r9d,%r15d
sub    %r9d,%r11d
jns    1230 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x130>
add    $0xfffffffffffffffe,%rdi
mov    %rdi,%r12
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %bx,(%r12)
cmp    $0x1,%r13d
je     1428 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x328>
mov    %r8d,%r11d
add    $0x2,%r12
sub    %r9d,%ecx
add    $0xffffffff,%r13d
sub    %r9d,%r8d
sub    %r9d,%r10d
jns    1270 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x170>
mov    %rbp,%r8
mov    0x4(%rbp),%edx
mov    %edx,%eax
shr    $0xc,%eax
and    $0xf00,%eax
mov    %edx,%edi
shr    $0x8,%edi
and    $0xf0,%edi
or     %eax,%edi
shr    $0x4,%edx
and    $0xf,%edx
or     %edi,%edx
add    $0x8,%r8
mov    %edx,%edi
xor    %ebx,%edi
shr    %edi
and    $0x777,%edi
mov    %edx,%eax
and    %edx,%ebx
add    %edi,%ebx
mov    %rsi,%r10
mov    -0x10(%rsp),%rdx
mov    -0x20(%rsp),%rsi
nopl   (%rax)
mov    %bx,(%r12)
add    $0x2,%r12
cmp    $0x1,%r13d
je     1320 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x220>
sub    %r9d,%r11d
add    $0xffffffff,%r13d
sub    %r9d,%ecx
jns    12e0 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x1e0>
mov    -0x18(%rsp),%rbp
jmp    1192 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x92>
add    $0x2,%r12
mov    -0x28(%rsp),%r10
test   %r10d,%r10d
jne    1329 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x229>
jmp    141d <RGB32toRGB444_ROW_STRETCH2XPLUS+0x31d>
mov    %eax,%ebx
mov    %rdi,%r12
mov    %rsi,%r10
test   %r10d,%r10d
je     141d <RGB32toRGB444_ROW_STRETCH2XPLUS+0x31d>
lea    -0x1(%r10),%ecx
cmp    $0xf,%ecx
jb     1400 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x300>
add    $0x1,%rcx
mov    %rcx,%rdx
and    $0xfffffffffffffff0,%rdx
movd   %ebx,%xmm0
pshuflw $0x0,%xmm0,%xmm0
pshufd $0x0,%xmm0,%xmm0
lea    -0x10(%rdx),%rdi
mov    %rdi,%rsi
shr    $0x4,%rsi
add    $0x1,%rsi
mov    %esi,%ebp
and    $0x3,%ebp
cmp    $0x30,%rdi
jae    136d <RGB32toRGB444_ROW_STRETCH2XPLUS+0x26d>
xor    %edi,%edi
jmp    13c1 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x2c1>
and    $0xfffffffffffffffc,%rsi
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movdqu %xmm0,(%r12,%rdi,2)
movdqu %xmm0,0x10(%r12,%rdi,2)
movdqu %xmm0,0x20(%r12,%rdi,2)
movdqu %xmm0,0x30(%r12,%rdi,2)
movdqu %xmm0,0x40(%r12,%rdi,2)
movdqu %xmm0,0x50(%r12,%rdi,2)
movdqu %xmm0,0x60(%r12,%rdi,2)
movdqu %xmm0,0x70(%r12,%rdi,2)
add    $0x40,%rdi
add    $0xfffffffffffffffc,%rsi
jne    1380 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x280>
test   %rbp,%rbp
je     13f4 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x2f4>
lea    (%r12,%rdi,2),%rdi
add    $0x10,%rdi
shl    $0x5,%rbp
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movdqu %xmm0,-0x10(%rdi,%rsi,1)
movdqu %xmm0,(%rdi,%rsi,1)
add    $0x20,%rsi
cmp    %rsi,%rbp
jne    13e0 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x2e0>
cmp    %rdx,%rcx
je     141d <RGB32toRGB444_ROW_STRETCH2XPLUS+0x31d>
lea    (%r12,%rdx,2),%r12
sub    %edx,%r10d
mov    %r10d,%eax
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nop
mov    %bx,(%r12,%rcx,2)
add    $0x1,%rcx
cmp    %ecx,%eax
jne    1410 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x310>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
add    $0x2,%r12
mov    %rsi,%r10
test   %r10d,%r10d
jne    1329 <RGB32toRGB444_ROW_STRETCH2XPLUS+0x229>
jmp    141d <RGB32toRGB444_ROW_STRETCH2XPLUS+0x31d>

LLVM IR (-O0):
define void @RGB32toRGB444_ROW_STRETCH2XPLUS(i8* %0, i32 %1, i8* %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
store i8* %0, i8** %5
store i32 %1, i32* %6
store i8* %2, i8** %7
store i32 %3, i32* %8
%19 = load i8*, i8** %5
store i8* %19, i8** %9
%20 = load i8*, i8** %7
store i8* %20, i8** %10
%21 = load i32, i32* %6
store i32 %21, i32* %11
%22 = load i32, i32* %6
%23 = ashr i32 %22, 1
store i32 %23, i32* %12
%24 = load i32, i32* %8
%25 = shl i32 %24, 1
store i32 %25, i32* %13
%26 = load i32, i32* %6
%27 = mul nsw i32 2, %26
%28 = load i32, i32* %12
%29 = sub nsw i32 %27, %28
%30 = load i32, i32* %13
%31 = sdiv i32 %29, %30
store i32 %31, i32* %14
%32 = load i32, i32* %11
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %224
34: ; preds = %4
%35 = load i8*, i8** %10
%36 = bitcast i8* %35 to i32*
%37 = load i32, i32* %36
store i32 %37, i32* %17
%38 = load i32, i32* %17
%39 = lshr i32 %38, 16
%40 = and i32 %39, 255
%41 = and i32 %40, 240
%42 = shl i32 %41, 4
%43 = load i32, i32* %17
%44 = lshr i32 %43, 8
%45 = and i32 %44, 255
%46 = and i32 %45, 240
%47 = shl i32 %46, 0
%48 = or i32 %42, %47
%49 = load i32, i32* %17
%50 = lshr i32 %49, 0
%51 = and i32 %50, 255
%52 = and i32 %51, 240
%53 = lshr i32 %52, 4
%54 = or i32 %48, %53
store i32 %54, i32* %15
%55 = load i8*, i8** %10
%56 = getelementptr inbounds i8, i8* %55, i64 4
store i8* %56, i8** %10
%57 = load i32, i32* %14
%58 = load i32, i32* %11
%59 = sub nsw i32 %58, %57
store i32 %59, i32* %11
%60 = icmp ne i32 %59, 0
br i1 %60, label %62, label %61
61: ; preds = %34
br label %211
62: ; preds = %34
br label %63
63: ; preds = %62, %205
br label %64
64: ; preds = %76, %63
%65 = load i32, i32* %15
%66 = trunc i32 %65 to i16
%67 = load i8*, i8** %9
%68 = bitcast i8* %67 to i16*
store i16 %66, i16* %68
%69 = load i8*, i8** %9
%70 = getelementptr inbounds i8, i8* %69, i64 2
store i8* %70, i8** %9
%71 = load i32, i32* %11
%72 = add nsw i32 %71, -1
store i32 %72, i32* %11
%73 = icmp ne i32 %72, 0
br i1 %73, label %75, label %74
74: ; preds = %64
br label %211
75: ; preds = %64
br label %76
76: ; preds = %75
%77 = load i32, i32* %13
%78 = load i32, i32* %12
%79 = sub nsw i32 %78, %77
store i32 %79, i32* %12
%80 = icmp sge i32 %79, 0
br i1 %80, label %64, label %81
81: ; preds = %76
%82 = load i32, i32* %6
%83 = load i32, i32* %12
%84 = add nsw i32 %83, %82
store i32 %84, i32* %12
%85 = load i8*, i8** %10
%86 = bitcast i8* %85 to i32*
%87 = load i32, i32* %86
store i32 %87, i32* %18
%88 = load i32, i32* %18
%89 = lshr i32 %88, 16
%90 = and i32 %89, 255
%91 = and i32 %90, 240
%92 = shl i32 %91, 4
%93 = load i32, i32* %18
%94 = lshr i32 %93, 8
%95 = and i32 %94, 255
%96 = and i32 %95, 240
%97 = shl i32 %96, 0
%98 = or i32 %92, %97
%99 = load i32, i32* %18
%100 = lshr i32 %99, 0
%101 = and i32 %100, 255
%102 = and i32 %101, 240
%103 = lshr i32 %102, 4
%104 = or i32 %98, %103
store i32 %104, i32* %16
%105 = load i32, i32* %15
%106 = load i32, i32* %16
%107 = xor i32 %105, %106
%108 = lshr i32 %107, 1
%109 = and i32 %108, 1911
%110 = load i32, i32* %15
%111 = load i32, i32* %16
%112 = and i32 %110, %111
%113 = add i32 %109, %112
store i32 %113, i32* %15
br label %114
114: ; preds = %126, %81
%115 = load i32, i32* %15
%116 = trunc i32 %115 to i16
%117 = load i8*, i8** %9
%118 = bitcast i8* %117 to i16*
store i16 %116, i16* %118
%119 = load i8*, i8** %9
%120 = getelementptr inbounds i8, i8* %119, i64 2
store i8* %120, i8** %9
%121 = load i32, i32* %11
%122 = add nsw i32 %121, -1
store i32 %122, i32* %11
%123 = icmp ne i32 %122, 0
br i1 %123, label %125, label %124
124: ; preds = %114
br label %211
125: ; preds = %114
br label %126
126: ; preds = %125
%127 = load i32, i32* %13
%128 = load i32, i32* %12
%129 = sub nsw i32 %128, %127
store i32 %129, i32* %12
%130 = icmp sge i32 %129, 0
br i1 %130, label %114, label %131
131: ; preds = %126
%132 = load i32, i32* %6
%133 = load i32, i32* %12
%134 = add nsw i32 %133, %132
store i32 %134, i32* %12
br label %135
135: ; preds = %147, %131
%136 = load i32, i32* %16
%137 = trunc i32 %136 to i16
%138 = load i8*, i8** %9
%139 = bitcast i8* %138 to i16*
store i16 %137, i16* %139
%140 = load i8*, i8** %9
%141 = getelementptr inbounds i8, i8* %140, i64 2
store i8* %141, i8** %9
%142 = load i32, i32* %11
%143 = add nsw i32 %142, -1
store i32 %143, i32* %11
%144 = icmp ne i32 %143, 0
br i1 %144, label %146, label %145
145: ; preds = %135
br label %209
146: ; preds = %135
br label %147
147: ; preds = %146
%148 = load i32, i32* %13
%149 = load i32, i32* %12
%150 = sub nsw i32 %149, %148
store i32 %150, i32* %12
%151 = icmp sge i32 %150, 0
br i1 %151, label %135, label %152
152: ; preds = %147
%153 = load i32, i32* %6
%154 = load i32, i32* %12
%155 = add nsw i32 %154, %153
store i32 %155, i32* %12
%156 = load i8*, i8** %10
%157 = getelementptr inbounds i8, i8* %156, i64 4
%158 = bitcast i8* %157 to i32*
%159 = load i32, i32* %158
store i32 %159, i32* %18
%160 = load i32, i32* %18
%161 = lshr i32 %160, 16
%162 = and i32 %161, 255
%163 = and i32 %162, 240
%164 = shl i32 %163, 4
%165 = load i32, i32* %18
%166 = lshr i32 %165, 8
%167 = and i32 %166, 255
%168 = and i32 %167, 240
%169 = shl i32 %168, 0
%170 = or i32 %164, %169
%171 = load i32, i32* %18
%172 = lshr i32 %171, 0
%173 = and i32 %172, 255
%174 = and i32 %173, 240
%175 = lshr i32 %174, 4
%176 = or i32 %170, %175
store i32 %176, i32* %15
%177 = load i8*, i8** %10
%178 = getelementptr inbounds i8, i8* %177, i64 8
store i8* %178, i8** %10
%179 = load i32, i32* %16
%180 = load i32, i32* %15
%181 = xor i32 %179, %180
%182 = lshr i32 %181, 1
%183 = and i32 %182, 1911
%184 = load i32, i32* %16
%185 = load i32, i32* %15
%186 = and i32 %184, %185
%187 = add i32 %183, %186
store i32 %187, i32* %16
br label %188
188: ; preds = %200, %152
%189 = load i32, i32* %16
%190 = trunc i32 %189 to i16
%191 = load i8*, i8** %9
%192 = bitcast i8* %191 to i16*
store i16 %190, i16* %192
%193 = load i8*, i8** %9
%194 = getelementptr inbounds i8, i8* %193, i64 2
store i8* %194, i8** %9
%195 = load i32, i32* %11
%196 = add nsw i32 %195, -1
store i32 %196, i32* %11
%197 = icmp ne i32 %196, 0
br i1 %197, label %199, label %198
198: ; preds = %188
br label %209
199: ; preds = %188
br label %200
200: ; preds = %199
%201 = load i32, i32* %13
%202 = load i32, i32* %12
%203 = sub nsw i32 %202, %201
store i32 %203, i32* %12
%204 = icmp sge i32 %203, 0
br i1 %204, label %188, label %205
205: ; preds = %200
%206 = load i32, i32* %6
%207 = load i32, i32* %12
%208 = add nsw i32 %207, %206
store i32 %208, i32* %12
br label %63
209: ; preds = %198, %145
%210 = load i32, i32* %16
store i32 %210, i32* %15
br label %211
211: ; preds = %209, %124, %74, %61
br label %212
212: ; preds = %216, %211
%213 = load i32, i32* %14
%214 = add nsw i32 %213, -1
store i32 %214, i32* %14
%215 = icmp ne i32 %213, 0
br i1 %215, label %216, label %223
216: ; preds = %212
%217 = load i32, i32* %15
%218 = trunc i32 %217 to i16
%219 = load i8*, i8** %9
%220 = bitcast i8* %219 to i16*
store i16 %218, i16* %220
%221 = load i8*, i8** %9
%222 = getelementptr inbounds i8, i8* %221, i64 2
store i8* %222, i8** %9
br label %212
223: ; preds = %212
br label %224
224: ; preds = %223, %4
ret void
}

LLVM IR (-O2):
define void @RGB32toRGB444_ROW_STRETCH2XPLUS(i8* nocapture writeonly %0, i32 %1, i8* nocapture %2, i32 %3) {
%5 = ashr i32 %1, 1
%6 = shl i32 %3, 1
%7 = shl nsw i32 %1, 1
%8 = sub nsw i32 %7, %5
%9 = sdiv i32 %8, %6
%10 = icmp eq i32 %1, 0
br i1 %10, label %202, label %11
11: ; preds = %4
%12 = bitcast i8* %2 to i32*
%13 = load i32, i32* %12
%14 = lshr i32 %13, 12
%15 = and i32 %14, 3840
%16 = lshr i32 %13, 8
%17 = and i32 %16, 240
%18 = or i32 %15, %17
%19 = lshr i32 %13, 4
%20 = and i32 %19, 15
%21 = or i32 %18, %20
%22 = sub nsw i32 %1, %9
%23 = icmp eq i32 %22, 0
br i1 %23, label %120, label %24
24: ; preds = %11
%25 = getelementptr inbounds i8, i8* %2, i64 4
br label %26
26: ; preds = %24, %118
%27 = phi i32 [ %113, %118 ], [ %22, %24 ]
%28 = phi i32 [ %119, %118 ], [ %5, %24 ]
%29 = phi i8* [ %100, %118 ], [ %25, %24 ]
%30 = phi i32 [ %99, %118 ], [ %21, %24 ]
%31 = phi i8* [ %112, %118 ], [ %0, %24 ]
%32 = trunc i32 %30 to i16
br label %33
33: ; preds = %41, %26
%34 = phi i32 [ %27, %26 ], [ %39, %41 ]
%35 = phi i32 [ %28, %26 ], [ %42, %41 ]
%36 = phi i8* [ %31, %26 ], [ %38, %41 ]
%37 = bitcast i8* %36 to i16*
store i16 %32, i16* %37
%38 = getelementptr inbounds i8, i8* %36, i64 2
%39 = add nsw i32 %34, -1
%40 = icmp eq i32 %39, 0
br i1 %40, label %120, label %41
41: ; preds = %33
%42 = sub nsw i32 %35, %6
%43 = icmp sgt i32 %42, -1
br i1 %43, label %33, label %44
44: ; preds = %41
%45 = add nsw i32 %42, %1
%46 = bitcast i8* %29 to i32*
%47 = load i32, i32* %46
%48 = lshr i32 %47, 12
%49 = and i32 %48, 3840
%50 = lshr i32 %47, 8
%51 = and i32 %50, 240
%52 = or i32 %49, %51
%53 = lshr i32 %47, 4
%54 = and i32 %53, 15
%55 = or i32 %52, %54
%56 = xor i32 %55, %30
%57 = lshr i32 %56, 1
%58 = and i32 %57, 1911
%59 = and i32 %55, %30
%60 = add nuw nsw i32 %58, %59
%61 = trunc i32 %60 to i16
br label %62
62: ; preds = %70, %44
%63 = phi i32 [ %39, %44 ], [ %68, %70 ]
%64 = phi i32 [ %45, %44 ], [ %71, %70 ]
%65 = phi i8* [ %38, %44 ], [ %67, %70 ]
%66 = bitcast i8* %65 to i16*
store i16 %61, i16* %66
%67 = getelementptr inbounds i8, i8* %65, i64 2
%68 = add nsw i32 %63, -1
%69 = icmp eq i32 %68, 0
br i1 %69, label %120, label %70
70: ; preds = %62
%71 = sub nsw i32 %64, %6
%72 = icmp sgt i32 %71, -1
br i1 %72, label %62, label %73
73: ; preds = %70
%74 = add nsw i32 %71, %1
%75 = trunc i32 %55 to i16
br label %76
76: ; preds = %84, %73
%77 = phi i32 [ %68, %73 ], [ %82, %84 ]
%78 = phi i32 [ %74, %73 ], [ %85, %84 ]
%79 = phi i8* [ %67, %73 ], [ %81, %84 ]
%80 = bitcast i8* %79 to i16*
store i16 %75, i16* %80
%81 = getelementptr inbounds i8, i8* %79, i64 2
%82 = add nsw i32 %77, -1
%83 = icmp eq i32 %82, 0
br i1 %83, label %120, label %84
84: ; preds = %76
%85 = sub nsw i32 %78, %6
%86 = icmp sgt i32 %85, -1
br i1 %86, label %76, label %87
87: ; preds = %84
%88 = add nsw i32 %85, %1
%89 = getelementptr inbounds i8, i8* %29, i64 4
%90 = bitcast i8* %89 to i32*
%91 = load i32, i32* %90
%92 = lshr i32 %91, 12
%93 = and i32 %92, 3840
%94 = lshr i32 %91, 8
%95 = and i32 %94, 240
%96 = or i32 %93, %95
%97 = lshr i32 %91, 4
%98 = and i32 %97, 15
%99 = or i32 %96, %98
%100 = getelementptr inbounds i8, i8* %29, i64 8
%101 = xor i32 %99, %55
%102 = lshr i32 %101, 1
%103 = and i32 %102, 1911
%104 = and i32 %99, %55
%105 = add nuw nsw i32 %103, %104
%106 = trunc i32 %105 to i16
br label %107
107: ; preds = %115, %87
%108 = phi i32 [ %82, %87 ], [ %113, %115 ]
%109 = phi i32 [ %88, %87 ], [ %116, %115 ]
%110 = phi i8* [ %81, %87 ], [ %112, %115 ]
%111 = bitcast i8* %110 to i16*
store i16 %106, i16* %111
%112 = getelementptr inbounds i8, i8* %110, i64 2
%113 = add nsw i32 %108, -1
%114 = icmp eq i32 %113, 0
br i1 %114, label %120, label %115
115: ; preds = %107
%116 = sub nsw i32 %109, %6
%117 = icmp sgt i32 %116, -1
br i1 %117, label %107, label %118
118: ; preds = %115
%119 = add nsw i32 %116, %1
br label %26
120: ; preds = %33, %62, %76, %107, %11
%121 = phi i32 [ %21, %11 ], [ %105, %107 ], [ %55, %76 ], [ %60, %62 ], [ %30, %33 ]
%122 = phi i8* [ %0, %11 ], [ %112, %107 ], [ %81, %76 ], [ %67, %62 ], [ %38, %33 ]
%123 = icmp eq i32 %9, 0
br i1 %123, label %202, label %124
124: ; preds = %120
%125 = trunc i32 %121 to i16
%126 = add i32 %9, -1
%127 = zext i32 %126 to i64
%128 = add nuw nsw i64 %127, 1
%129 = icmp ult i32 %126, 15
br i1 %129, label %192, label %130
130: ; preds = %124
%131 = and i64 %128, 8589934576
%132 = shl nuw nsw i64 %131, 1
%133 = getelementptr i8, i8* %122, i64 %132
%134 = trunc i64 %131 to i32
%135 = sub i32 %9, %134
%136 = insertelement <8 x i16> poison, i16 %125, i64 0
%137 = shufflevector <8 x i16> %136, <8 x i16> poison, <8 x i32> zeroinitializer
%138 = insertelement <8 x i16> poison, i16 %125, i64 0
%139 = shufflevector <8 x i16> %138, <8 x i16> poison, <8 x i32> zeroinitializer
%140 = add nsw i64 %131, -16
%141 = lshr exact i64 %140, 4
%142 = add nuw nsw i64 %141, 1
%143 = and i64 %142, 3
%144 = icmp ult i64 %140, 48
br i1 %144, label %176, label %145
145: ; preds = %130
%146 = and i64 %142, 2305843009213693948
br label %147
147: ; preds = %147, %145
%148 = phi i64 [ 0, %145 ], [ %173, %147 ]
%149 = phi i64 [ 0, %145 ], [ %174, %147 ]
%150 = shl i64 %148, 1
%151 = getelementptr i8, i8* %122, i64 %150
%152 = bitcast i8* %151 to <8 x i16>*
store <8 x i16> %137, <8 x i16>* %152
%153 = getelementptr i8, i8* %151, i64 16
%154 = bitcast i8* %153 to <8 x i16>*
store <8 x i16> %139, <8 x i16>* %154
%155 = shl i64 %148, 1
%156 = or i64 %155, 32
%157 = getelementptr i8, i8* %122, i64 %156
%158 = bitcast i8* %157 to <8 x i16>*
store <8 x i16> %137, <8 x i16>* %158
%159 = getelementptr i8, i8* %157, i64 16
%160 = bitcast i8* %159 to <8 x i16>*
store <8 x i16> %139, <8 x i16>* %160
%161 = shl i64 %148, 1
%162 = or i64 %161, 64
%163 = getelementptr i8, i8* %122, i64 %162
%164 = bitcast i8* %163 to <8 x i16>*
store <8 x i16> %137, <8 x i16>* %164
%165 = getelementptr i8, i8* %163, i64 16
%166 = bitcast i8* %165 to <8 x i16>*
store <8 x i16> %139, <8 x i16>* %166
%167 = shl i64 %148, 1
%168 = or i64 %167, 96
%169 = getelementptr i8, i8* %122, i64 %168
%170 = bitcast i8* %169 to <8 x i16>*
store <8 x i16> %137, <8 x i16>* %170
%171 = getelementptr i8, i8* %169, i64 16
%172 = bitcast i8* %171 to <8 x i16>*
store <8 x i16> %139, <8 x i16>* %172
%173 = add nuw i64 %148, 64
%174 = add i64 %149, 4
%175 = icmp eq i64 %174, %146
br i1 %175, label %176, label %147
176: ; preds = %147, %130
%177 = phi i64 [ 0, %130 ], [ %173, %147 ]
%178 = icmp eq i64 %143, 0
br i1 %178, label %190, label %179
179: ; preds = %176, %179
%180 = phi i64 [ %187, %179 ], [ %177, %176 ]
%181 = phi i64 [ %188, %179 ], [ 0, %176 ]
%182 = shl i64 %180, 1
%183 = getelementptr i8, i8* %122, i64 %182
%184 = bitcast i8* %183 to <8 x i16>*
store <8 x i16> %137, <8 x i16>* %184
%185 = getelementptr i8, i8* %183, i64 16
%186 = bitcast i8* %185 to <8 x i16>*
store <8 x i16> %139, <8 x i16>* %186
%187 = add nuw i64 %180, 16
%188 = add i64 %181, 1
%189 = icmp eq i64 %188, %143
br i1 %189, label %190, label %179
190: ; preds = %179, %176
%191 = icmp eq i64 %128, %131
br i1 %191, label %202, label %192
192: ; preds = %124, %190
%193 = phi i8* [ %122, %124 ], [ %133, %190 ]
%194 = phi i32 [ %9, %124 ], [ %135, %190 ]
br label %195
195: ; preds = %192, %195
%196 = phi i8* [ %200, %195 ], [ %193, %192 ]
%197 = phi i32 [ %198, %195 ], [ %194, %192 ]
%198 = add nsw i32 %197, -1
%199 = bitcast i8* %196 to i16*
store i16 %125, i16* %199
%200 = getelementptr inbounds i8, i8* %196, i64 2
%201 = icmp eq i32 %198, 0
br i1 %201, label %202, label %195
202: ; preds = %195, %190, %120, %4
ret void
}