void build_ip(unsigned int dest_addr_msb, unsigned int dest_addr_lsb,
              unsigned int source_addr_msb, unsigned int source_addr_lsb,
              unsigned int dest_ip, unsigned int source_ip, unsigned int rw,
              unsigned int seq, unsigned int addr, unsigned int dlen,
              unsigned char *data, unsigned char *buf, unsigned int *len) {
  int i;
  int iplen;
  int udplen;
  int edclctrl;
  unsigned int crc;
  iplen = 38 + dlen;
  udplen = 18 + dlen;
  *len = 52 + dlen;
  buf[0] = (dest_addr_msb >> 16) & 0xFF;
  buf[1] = (dest_addr_msb >> 8) & 0xFF;
  buf[2] = dest_addr_msb & 0xFF;
  buf[3] = (dest_addr_lsb >> 16) & 0xFF;
  buf[4] = (dest_addr_lsb >> 8) & 0xFF;
  buf[5] = dest_addr_lsb & 0xFF;
  buf[6] = (source_addr_msb >> 16) & 0xFF;
  buf[7] = (source_addr_msb >> 8) & 0xFF;
  buf[8] = source_addr_msb & 0xFF;
  buf[9] = (source_addr_lsb >> 16) & 0xFF;
  buf[10] = (source_addr_lsb >> 8) & 0xFF;
  buf[11] = source_addr_lsb & 0xFF;
  buf[12] = 0x08;
  buf[13] = 0x00;
  buf[14] = 0x45;
  buf[15] = 0x00;
  buf[16] = (iplen >> 8) & 0xFF;
  buf[17] = iplen & 0xFF;
  buf[18] = 0;
  buf[19] = 0;
  buf[20] = 0;
  buf[21] = 0;
  buf[22] = 0x40;
  buf[23] = 0x11;
  buf[26] = (source_ip >> 24) & 0xFF;
  buf[27] = (source_ip >> 16) & 0xFF;
  buf[28] = (source_ip >> 8) & 0xFF;
  buf[29] = (source_ip)&0xFF;
  buf[30] = (dest_ip >> 24) & 0xFF;
  buf[31] = (dest_ip >> 16) & 0xFF;
  buf[32] = (dest_ip >> 8) & 0xFF;
  buf[33] = (dest_ip)&0xFF;
  buf[34] = 0;
  buf[35] = 0;
  buf[36] = 0;
  buf[37] = 0;
  crc = 0x8D11;
  crc = crc + (iplen & 0xFFFF);
  crc = crc + ((source_ip >> 16) & 0xFFFF);
  crc = crc + (source_ip & 0xFFFF);
  crc = crc + ((dest_ip >> 16) & 0xFFFF);
  crc = crc + (dest_ip & 0xFFFF);
  crc = (crc & 0xFFFF) + ((crc >> 16) & 0xFFFF);
  crc = (crc & 0xFFFF) + ((crc >> 16) & 0xFFFF);
  crc = ~crc;
  buf[24] = (crc >> 8) & 0xFF;
  buf[25] = crc & 0xFF;
  buf[38] = (udplen >> 8) & 0xFF;
  buf[39] = udplen & 0xFF;
  buf[40] = 0;
  buf[41] = 0;
  buf[42] = 0;
  buf[43] = 0;
  edclctrl = ((seq & 0x3FFF) << 18) | (rw << 17) | ((dlen & 0x3FF) << 7);
  buf[44] = (edclctrl >> 24) & 0xFF;
  buf[45] = (edclctrl >> 16) & 0xFF;
  buf[46] = (edclctrl >> 8) & 0xFF;
  buf[47] = edclctrl & 0xFF;
  buf[48] = (addr >> 24) & 0xFF;
  buf[49] = (addr >> 16) & 0xFF;
  buf[50] = (addr >> 8) & 0xFF;
  buf[51] = addr & 0xFF;
  if (rw) {
    for (i = 0; i < dlen; i++) {
      buf[52 + i] = data[i];
    }
  }
}


x86 assembly (clang, -O0):
<build_ip>:
push   %rbp
mov    %rsp,%rbp
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
mov    0x28(%rbp),%eax
add    $0x26,%eax
mov    %eax,-0x20(%rbp)
mov    0x28(%rbp),%eax
add    $0x12,%eax
mov    %eax,-0x24(%rbp)
mov    0x28(%rbp),%ecx
add    $0x34,%ecx
mov    0x40(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x4(%rbp),%eax
shr    $0x10,%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,(%rax)
mov    -0x4(%rbp),%eax
shr    $0x8,%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x1(%rax)
mov    -0x4(%rbp),%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x2(%rax)
mov    -0x8(%rbp),%eax
shr    $0x10,%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x3(%rax)
mov    -0x8(%rbp),%eax
shr    $0x8,%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x4(%rax)
mov    -0x8(%rbp),%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x5(%rax)
mov    -0xc(%rbp),%eax
shr    $0x10,%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x6(%rax)
mov    -0xc(%rbp),%eax
shr    $0x8,%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x7(%rax)
mov    -0xc(%rbp),%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x8(%rax)
mov    -0x10(%rbp),%eax
shr    $0x10,%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x9(%rax)
mov    -0x10(%rbp),%eax
shr    $0x8,%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0xa(%rax)
mov    -0x10(%rbp),%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0xb(%rax)
mov    0x38(%rbp),%rax
movb   $0x8,0xc(%rax)
mov    0x38(%rbp),%rax
movb   $0x0,0xd(%rax)
mov    0x38(%rbp),%rax
movb   $0x45,0xe(%rax)
mov    0x38(%rbp),%rax
movb   $0x0,0xf(%rax)
mov    -0x20(%rbp),%eax
sar    $0x8,%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x10(%rax)
mov    -0x20(%rbp),%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x11(%rax)
mov    0x38(%rbp),%rax
movb   $0x0,0x12(%rax)
mov    0x38(%rbp),%rax
movb   $0x0,0x13(%rax)
mov    0x38(%rbp),%rax
movb   $0x0,0x14(%rax)
mov    0x38(%rbp),%rax
movb   $0x0,0x15(%rax)
mov    0x38(%rbp),%rax
movb   $0x40,0x16(%rax)
mov    0x38(%rbp),%rax
movb   $0x11,0x17(%rax)
mov    -0x18(%rbp),%eax
shr    $0x18,%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x1a(%rax)
mov    -0x18(%rbp),%eax
shr    $0x10,%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x1b(%rax)
mov    -0x18(%rbp),%eax
shr    $0x8,%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x1c(%rax)
mov    -0x18(%rbp),%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x1d(%rax)
mov    -0x14(%rbp),%eax
shr    $0x18,%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x1e(%rax)
mov    -0x14(%rbp),%eax
shr    $0x10,%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x1f(%rax)
mov    -0x14(%rbp),%eax
shr    $0x8,%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x20(%rax)
mov    -0x14(%rbp),%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x21(%rax)
mov    0x38(%rbp),%rax
movb   $0x0,0x22(%rax)
mov    0x38(%rbp),%rax
movb   $0x0,0x23(%rax)
mov    0x38(%rbp),%rax
movb   $0x0,0x24(%rax)
mov    0x38(%rbp),%rax
movb   $0x0,0x25(%rax)
movl   $0x8d11,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x20(%rbp),%ecx
and    $0xffff,%ecx
add    %ecx,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x18(%rbp),%ecx
shr    $0x10,%ecx
and    $0xffff,%ecx
add    %ecx,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x18(%rbp),%ecx
and    $0xffff,%ecx
add    %ecx,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x14(%rbp),%ecx
shr    $0x10,%ecx
and    $0xffff,%ecx
add    %ecx,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x14(%rbp),%ecx
and    $0xffff,%ecx
add    %ecx,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
and    $0xffff,%eax
mov    -0x2c(%rbp),%ecx
shr    $0x10,%ecx
and    $0xffff,%ecx
add    %ecx,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
and    $0xffff,%eax
mov    -0x2c(%rbp),%ecx
shr    $0x10,%ecx
and    $0xffff,%ecx
add    %ecx,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
xor    $0xffffffff,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
shr    $0x8,%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x18(%rax)
mov    -0x2c(%rbp),%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x19(%rax)
mov    -0x24(%rbp),%eax
sar    $0x8,%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x26(%rax)
mov    -0x24(%rbp),%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x27(%rax)
mov    0x38(%rbp),%rax
movb   $0x0,0x28(%rax)
mov    0x38(%rbp),%rax
movb   $0x0,0x29(%rax)
mov    0x38(%rbp),%rax
movb   $0x0,0x2a(%rax)
mov    0x38(%rbp),%rax
movb   $0x0,0x2b(%rax)
mov    0x18(%rbp),%eax
and    $0x3fff,%eax
shl    $0x12,%eax
mov    0x10(%rbp),%ecx
shl    $0x11,%ecx
or     %ecx,%eax
mov    0x28(%rbp),%ecx
and    $0x3ff,%ecx
shl    $0x7,%ecx
or     %ecx,%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
sar    $0x18,%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x2c(%rax)
mov    -0x28(%rbp),%eax
sar    $0x10,%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x2d(%rax)
mov    -0x28(%rbp),%eax
sar    $0x8,%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x2e(%rax)
mov    -0x28(%rbp),%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x2f(%rax)
mov    0x20(%rbp),%eax
shr    $0x18,%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x30(%rax)
mov    0x20(%rbp),%eax
shr    $0x10,%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x31(%rax)
mov    0x20(%rbp),%eax
shr    $0x8,%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x32(%rax)
mov    0x20(%rbp),%eax
and    $0xff,%eax
mov    %al,%cl
mov    0x38(%rbp),%rax
mov    %cl,0x33(%rax)
cmpl   $0x0,0x10(%rbp)
je     1570 <build_ip+0x470>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    0x28(%rbp),%eax
jae    156b <build_ip+0x46b>
mov    0x30(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,1),%dl
mov    0x38(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x34,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1536 <build_ip+0x436>
jmp    1570 <build_ip+0x470>
pop    %rbp
ret

x86 assembly (clang, -O2):
<build_ip>:
push   %rbx
mov    %ecx,%r11d
mov    %edx,%ebx
mov    %esi,%edx
mov    %edi,%ecx
mov    0x38(%rsp),%rax
mov    0x28(%rsp),%r10d
mov    0x40(%rsp),%rdi
lea    0x34(%r10),%esi
mov    %esi,(%rdi)
mov    %ecx,%esi
shr    $0x10,%esi
mov    %sil,(%rax)
mov    %ch,0x1(%rax)
mov    %cl,0x2(%rax)
mov    %edx,%ecx
shr    $0x10,%ecx
mov    %cl,0x3(%rax)
mov    %dh,0x4(%rax)
mov    %dl,0x5(%rax)
mov    %ebx,%ecx
shr    $0x10,%ecx
mov    %cl,0x6(%rax)
mov    %bh,0x7(%rax)
mov    %bl,0x8(%rax)
mov    %r11d,%edx
mov    %r11d,%ecx
shr    $0x10,%ecx
mov    %cl,0x9(%rax)
mov    %dh,0xa(%rax)
mov    %dl,0xb(%rax)
lea    0x26(%r10),%edx
movl   $0x450008,0xc(%rax)
mov    %dh,0x10(%rax)
mov    %dl,0x11(%rax)
movzwl %dx,%ecx
movl   $0x0,0x12(%rax)
movw   $0x1140,0x16(%rax)
mov    %r9d,%ebx
mov    %r9d,%edx
shr    $0x18,%edx
mov    %dl,0x1a(%rax)
mov    %r9d,%edx
shr    $0x10,%edx
mov    %dl,0x1b(%rax)
mov    %bh,0x1c(%rax)
mov    %bl,0x1d(%rax)
movzwl %bx,%esi
mov    %r8d,%ebx
mov    %r8d,%edi
shr    $0x18,%edi
mov    %dil,0x1e(%rax)
mov    %r8d,%edi
shr    $0x10,%edi
mov    %dil,0x1f(%rax)
mov    %bh,0x20(%rax)
mov    %bl,0x21(%rax)
movzwl %bx,%ebx
add    %edi,%ebx
add    %edx,%ebx
add    %esi,%ebx
add    %ebx,%ecx
add    $0x8d11,%ecx
movzwl %cx,%edx
shr    $0x10,%ecx
add    %edx,%ecx
movzwl %cx,%edx
shr    $0x10,%ecx
add    %edx,%ecx
not    %ecx
movl   $0x0,0x22(%rax)
mov    %ch,0x18(%rax)
mov    %cl,0x19(%rax)
lea    0x12(%r10),%ecx
mov    %ch,0x26(%rax)
mov    %cl,0x27(%rax)
mov    0x20(%rsp),%edx
mov    0x10(%rsp),%ecx
mov    0x18(%rsp),%esi
shl    $0x12,%esi
mov    %ecx,%edi
shl    $0x11,%edi
or     %esi,%edi
mov    %r10d,%ebx
shl    $0x7,%ebx
mov    %ebx,%esi
and    $0x10000,%esi
or     %edi,%esi
shr    $0x18,%edi
movl   $0x0,0x28(%rax)
mov    %dil,0x2c(%rax)
shr    $0x10,%esi
mov    %sil,0x2d(%rax)
mov    %r10d,%esi
shr    %esi
mov    %sil,0x2e(%rax)
mov    %bl,0x2f(%rax)
mov    %edx,%esi
shr    $0x18,%esi
mov    %sil,0x30(%rax)
mov    %edx,%esi
shr    $0x10,%esi
mov    %sil,0x31(%rax)
mov    %dh,0x32(%rax)
mov    %dl,0x33(%rax)
test   %ecx,%ecx
je     12ec <build_ip+0x1ec>
test   %r10d,%r10d
je     12ec <build_ip+0x1ec>
mov    0x30(%rsp),%rcx
mov    %r10d,%r9d
cmp    $0x8,%r10d
jb     1289 <build_ip+0x189>
lea    0x34(%rax),%rdx
lea    (%rcx,%r9,1),%rsi
cmp    %rsi,%rdx
jae    12ee <build_ip+0x1ee>
lea    (%r9,%rax,1),%rdx
add    $0x34,%rdx
cmp    %rcx,%rdx
jbe    12ee <build_ip+0x1ee>
xor    %esi,%esi
mov    %rsi,%rdi
not    %rdi
add    %r9,%rdi
mov    %r9,%rdx
and    $0x3,%rdx
je     12b2 <build_ip+0x1b2>
nopl   (%rax)
movzbl (%rcx,%rsi,1),%ebx
mov    %bl,0x34(%rax,%rsi,1)
add    $0x1,%rsi
add    $0xffffffffffffffff,%rdx
jne    12a0 <build_ip+0x1a0>
cmp    $0x3,%rdi
jb     12ec <build_ip+0x1ec>
nopl   0x0(%rax,%rax,1)
movzbl (%rcx,%rsi,1),%edx
mov    %dl,0x34(%rax,%rsi,1)
movzbl 0x1(%rcx,%rsi,1),%edx
mov    %dl,0x35(%rax,%rsi,1)
movzbl 0x2(%rcx,%rsi,1),%edx
mov    %dl,0x36(%rax,%rsi,1)
movzbl 0x3(%rcx,%rsi,1),%edx
mov    %dl,0x37(%rax,%rsi,1)
add    $0x4,%rsi
cmp    %rsi,%r9
jne    12c0 <build_ip+0x1c0>
pop    %rbx
ret
cmp    $0x20,%r10d
jae    12fb <build_ip+0x1fb>
xor    %esi,%esi
jmp    13de <build_ip+0x2de>
mov    %r9d,%esi
and    $0xffffffe0,%esi
lea    -0x20(%rsi),%rdx
mov    %rdx,%rdi
shr    $0x5,%rdi
add    $0x1,%rdi
mov    %edi,%r8d
and    $0x3,%r8d
cmp    $0x60,%rdx
jae    1321 <build_ip+0x221>
xor    %ebx,%ebx
jmp    1392 <build_ip+0x292>
and    $0xfffffffffffffffc,%rdi
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
movups (%rcx,%rbx,1),%xmm0
movups 0x10(%rcx,%rbx,1),%xmm1
movups %xmm0,0x34(%rax,%rbx,1)
movups %xmm1,0x44(%rax,%rbx,1)
movups 0x20(%rcx,%rbx,1),%xmm0
movups 0x30(%rcx,%rbx,1),%xmm1
movups %xmm0,0x54(%rax,%rbx,1)
movups %xmm1,0x64(%rax,%rbx,1)
movups 0x40(%rcx,%rbx,1),%xmm0
movups 0x50(%rcx,%rbx,1),%xmm1
movups %xmm0,0x74(%rax,%rbx,1)
movups %xmm1,0x84(%rax,%rbx,1)
movups 0x60(%rcx,%rbx,1),%xmm0
movups 0x70(%rcx,%rbx,1),%xmm1
movups %xmm0,0x94(%rax,%rbx,1)
movups %xmm1,0xa4(%rax,%rbx,1)
sub    $0xffffffffffffff80,%rbx
add    $0xfffffffffffffffc,%rdi
jne    1330 <build_ip+0x230>
test   %r8,%r8
je     13cb <build_ip+0x2cb>
lea    (%rbx,%rax,1),%rdx
add    $0x44,%rdx
lea    (%rbx,%rcx,1),%rdi
add    $0x10,%rdi
shl    $0x5,%r8
xor    %ebx,%ebx
nopl   (%rax)
movups -0x10(%rdi,%rbx,1),%xmm0
movups (%rdi,%rbx,1),%xmm1
movups %xmm0,-0x10(%rdx,%rbx,1)
movups %xmm1,(%rdx,%rbx,1)
add    $0x20,%rbx
cmp    %rbx,%r8
jne    13b0 <build_ip+0x2b0>
cmp    %r9,%rsi
je     12ec <build_ip+0x1ec>
test   $0x18,%r9b
je     128b <build_ip+0x18b>
mov    %rsi,%rdx
mov    %r9d,%esi
and    $0xfffffff8,%esi
nopw   0x0(%rax,%rax,1)
mov    (%rcx,%rdx,1),%rdi
mov    %rdi,0x34(%rax,%rdx,1)
add    $0x8,%rdx
cmp    %rdx,%rsi
jne    13f0 <build_ip+0x2f0>
cmp    %r9,%rsi
je     12ec <build_ip+0x1ec>
jmp    128b <build_ip+0x18b>

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

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