#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ value;
typedef int uint64_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ xfwrite(char *, size_t, int /*<<< orphan*/ *);
void write_int(uint64_t value, size_t len, FILE *to) {
  char buf[sizeof(value)];
  size_t i;
  for (i = 0; i < len; i++)
    buf[i] = ((value >> (8 * i)) & 0xff);
  xfwrite(buf, len, to);
}


x86 assembly (clang, -O0):
<write_int>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movq   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%rax
cmp    -0x10(%rbp),%rax
jae    1166 <write_int+0x56>
mov    -0x4(%rbp),%eax
mov    -0x28(%rbp),%rcx
shl    $0x3,%rcx
sar    %cl,%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x28(%rbp),%rax
mov    %cl,-0x1c(%rbp,%rax,1)
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
jmp    112b <write_int+0x1b>
lea    -0x1c(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <xfwrite@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_int>:
sub    $0x48,%rsp
test   %rsi,%rsi
je     19e5 <write_int+0x8d5>
cmp    $0x10,%rsi
jae    112b <write_int+0x1b>
xor    %r10d,%r10d
jmp    19c4 <write_int+0x8b4>
mov    %rsi,%r10
and    $0xfffffffffffffff0,%r10
movd   %edi,%xmm0
pshufd $0x0,%xmm0,%xmm11
lea    -0x10(%r10),%rcx
mov    %rcx,%r9
shr    $0x4,%r9
add    $0x1,%r9
mov    %r9d,%r8d
and    $0x3,%r8d
cmp    $0x30,%rcx
jae    1183 <write_int+0x73>
movdqa 0xe9f(%rip),%xmm12
movdqa 0xea6(%rip),%xmm13
movdqa 0xead(%rip),%xmm15
movdqa 0xeb4(%rip),%xmm10
xor    %ecx,%ecx
jmp    1804 <write_int+0x6f4>
and    $0xfffffffffffffffc,%r9
movdqa 0xe70(%rip),%xmm12
movdqa 0xe77(%rip),%xmm13
movdqa 0xe7e(%rip),%xmm15
movdqa 0xe85(%rip),%xmm10
xor    %ecx,%ecx
movaps 0xe8b(%rip),%xmm14
cs nopw 0x0(%rax,%rax,1)
nop
movdqa %xmm10,0x10(%rsp)
movdqa %xmm15,0x20(%rsp)
movdqa %xmm12,0x30(%rsp)
movdqa 0x10(%rsp),%xmm10
pslld  $0x3,%xmm10
movdqa %xmm15,%xmm8
pslld  $0x3,%xmm8
movdqa %xmm13,%xmm9
movdqa %xmm12,%xmm1
pslld  $0x3,%xmm1
pshuflw $0xfe,%xmm1,%xmm0
movdqa %xmm11,%xmm3
psrad  %xmm0,%xmm3
pslld  $0x3,%xmm9
pshuflw $0x54,%xmm1,%xmm0
movdqa %xmm11,%xmm5
psrad  %xmm0,%xmm5
pshufd $0xee,%xmm1,%xmm0
pshuflw $0xfe,%xmm0,%xmm4
movdqa %xmm11,%xmm7
psrad  %xmm4,%xmm7
punpcklqdq %xmm3,%xmm5
pshuflw $0x54,%xmm0,%xmm0
movdqa %xmm11,%xmm3
psrad  %xmm0,%xmm3
punpckhqdq %xmm7,%xmm3
pshuflw $0xfe,%xmm9,%xmm0
movdqa %xmm11,%xmm7
psrad  %xmm0,%xmm7
shufps $0xcc,%xmm3,%xmm5
pshuflw $0x54,%xmm9,%xmm0
movdqa %xmm11,%xmm4
psrad  %xmm0,%xmm4
pshufd $0xee,%xmm9,%xmm0
pshuflw $0xfe,%xmm0,%xmm15
movdqa %xmm11,%xmm3
psrad  %xmm15,%xmm3
punpcklqdq %xmm7,%xmm4
pshuflw $0x54,%xmm0,%xmm0
movdqa %xmm11,%xmm7
psrad  %xmm0,%xmm7
punpckhqdq %xmm3,%xmm7
pshuflw $0xfe,%xmm8,%xmm0
movdqa %xmm11,%xmm3
psrad  %xmm0,%xmm3
shufps $0xcc,%xmm7,%xmm4
pshuflw $0x54,%xmm8,%xmm7
movdqa %xmm11,%xmm0
psrad  %xmm7,%xmm0
pshufd $0xee,%xmm8,%xmm7
pshuflw $0xfe,%xmm7,%xmm15
movdqa %xmm11,%xmm12
psrad  %xmm15,%xmm12
punpcklqdq %xmm3,%xmm0
pshuflw $0x54,%xmm7,%xmm3
movdqa %xmm11,%xmm7
psrad  %xmm3,%xmm7
punpckhqdq %xmm12,%xmm7
pshuflw $0xfe,%xmm10,%xmm12
movdqa %xmm11,%xmm3
psrad  %xmm12,%xmm3
shufps $0xcc,%xmm7,%xmm0
pshuflw $0x54,%xmm10,%xmm12
movdqa %xmm11,%xmm7
psrad  %xmm12,%xmm7
pshufd $0xee,%xmm10,%xmm12
pshuflw $0xfe,%xmm12,%xmm15
movdqa %xmm13,%xmm2
movdqa %xmm11,%xmm13
psrad  %xmm15,%xmm13
punpcklqdq %xmm3,%xmm7
pshuflw $0x54,%xmm12,%xmm3
movdqa %xmm11,%xmm6
psrad  %xmm3,%xmm6
punpckhqdq %xmm13,%xmm6
shufps $0xcc,%xmm6,%xmm7
andps  %xmm14,%xmm7
andps  %xmm14,%xmm0
packuswb %xmm0,%xmm7
andps  %xmm14,%xmm4
andps  %xmm14,%xmm5
packuswb %xmm5,%xmm4
packuswb %xmm4,%xmm7
movdqu %xmm7,0xc(%rsp,%rcx,1)
movdqa %xmm10,%xmm12
movdqa 0xce2(%rip),%xmm4
paddd  %xmm4,%xmm12
movdqa %xmm8,%xmm15
paddd  %xmm4,%xmm15
movdqa %xmm9,%xmm3
movdqa %xmm1,%xmm0
paddd  %xmm4,%xmm0
pshuflw $0xfe,%xmm0,%xmm5
movdqa %xmm11,%xmm6
psrad  %xmm5,%xmm6
paddd  %xmm4,%xmm3
pshuflw $0x54,%xmm0,%xmm7
movdqa %xmm11,%xmm5
psrad  %xmm7,%xmm5
pshufd $0xee,%xmm0,%xmm0
pshuflw $0xfe,%xmm0,%xmm7
movdqa %xmm11,%xmm4
psrad  %xmm7,%xmm4
punpcklqdq %xmm6,%xmm5
pshuflw $0x54,%xmm0,%xmm0
movdqa %xmm11,%xmm6
psrad  %xmm0,%xmm6
punpckhqdq %xmm4,%xmm6
pshuflw $0xfe,%xmm3,%xmm0
movdqa %xmm11,%xmm4
psrad  %xmm0,%xmm4
shufps $0xcc,%xmm6,%xmm5
pshuflw $0x54,%xmm3,%xmm6
movdqa %xmm11,%xmm0
psrad  %xmm6,%xmm0
pshufd $0xee,%xmm3,%xmm3
pshuflw $0xfe,%xmm3,%xmm6
movdqa %xmm11,%xmm7
psrad  %xmm6,%xmm7
punpcklqdq %xmm4,%xmm0
pshuflw $0x54,%xmm3,%xmm3
movdqa %xmm11,%xmm4
psrad  %xmm3,%xmm4
punpckhqdq %xmm7,%xmm4
pshuflw $0xfe,%xmm15,%xmm3
movdqa %xmm11,%xmm6
psrad  %xmm3,%xmm6
shufps $0xcc,%xmm4,%xmm0
pshuflw $0x54,%xmm15,%xmm3
movdqa %xmm11,%xmm7
psrad  %xmm3,%xmm7
pshufd $0xee,%xmm15,%xmm3
movdqa 0x20(%rsp),%xmm15
pshuflw $0xfe,%xmm3,%xmm13
movdqa %xmm11,%xmm4
psrad  %xmm13,%xmm4
punpcklqdq %xmm6,%xmm7
pshuflw $0x54,%xmm3,%xmm3
movdqa %xmm11,%xmm6
psrad  %xmm3,%xmm6
punpckhqdq %xmm4,%xmm6
pshuflw $0xfe,%xmm12,%xmm3
movdqa %xmm11,%xmm4
psrad  %xmm3,%xmm4
shufps $0xcc,%xmm6,%xmm7
pshuflw $0x54,%xmm12,%xmm3
movdqa %xmm11,%xmm6
psrad  %xmm3,%xmm6
pshufd $0xee,%xmm12,%xmm13
pshuflw $0xfe,%xmm13,%xmm12
movdqa %xmm11,%xmm3
psrad  %xmm12,%xmm3
punpcklqdq %xmm4,%xmm6
pshuflw $0x54,%xmm13,%xmm4
movdqa %xmm2,%xmm13
movdqa %xmm11,%xmm2
psrad  %xmm4,%xmm2
punpckhqdq %xmm3,%xmm2
shufps $0xcc,%xmm2,%xmm6
andps  %xmm14,%xmm6
andps  %xmm14,%xmm7
packuswb %xmm7,%xmm6
andps  %xmm14,%xmm0
andps  %xmm14,%xmm5
packuswb %xmm5,%xmm0
packuswb %xmm0,%xmm6
movdqu %xmm6,0x1c(%rsp,%rcx,1)
movdqa %xmm10,%xmm12
movdqa 0xb68(%rip),%xmm4
paddd  %xmm4,%xmm12
movdqa %xmm8,%xmm7
paddd  %xmm4,%xmm7
movdqa %xmm9,%xmm2
movdqa %xmm1,%xmm0
paddd  %xmm4,%xmm0
pshuflw $0xfe,%xmm0,%xmm3
movdqa %xmm11,%xmm6
psrad  %xmm3,%xmm6
paddd  %xmm4,%xmm2
pshuflw $0x54,%xmm0,%xmm3
movdqa %xmm11,%xmm5
psrad  %xmm3,%xmm5
pshufd $0xee,%xmm0,%xmm0
pshuflw $0xfe,%xmm0,%xmm3
movdqa %xmm11,%xmm4
psrad  %xmm3,%xmm4
punpcklqdq %xmm6,%xmm5
pshuflw $0x54,%xmm0,%xmm0
movdqa %xmm11,%xmm3
psrad  %xmm0,%xmm3
punpckhqdq %xmm4,%xmm3
pshuflw $0xfe,%xmm2,%xmm0
movdqa %xmm11,%xmm4
psrad  %xmm0,%xmm4
shufps $0xcc,%xmm3,%xmm5
pshuflw $0x54,%xmm2,%xmm3
movdqa %xmm11,%xmm0
psrad  %xmm3,%xmm0
pshufd $0xee,%xmm2,%xmm2
pshuflw $0xfe,%xmm2,%xmm3
movdqa %xmm11,%xmm6
psrad  %xmm3,%xmm6
punpcklqdq %xmm4,%xmm0
pshuflw $0x54,%xmm2,%xmm2
movdqa %xmm11,%xmm3
psrad  %xmm2,%xmm3
punpckhqdq %xmm6,%xmm3
pshuflw $0xfe,%xmm7,%xmm2
movdqa %xmm11,%xmm4
psrad  %xmm2,%xmm4
shufps $0xcc,%xmm3,%xmm0
pshuflw $0x54,%xmm7,%xmm2
movdqa %xmm11,%xmm3
psrad  %xmm2,%xmm3
pshufd $0xee,%xmm7,%xmm2
pshuflw $0xfe,%xmm2,%xmm6
movdqa %xmm11,%xmm7
psrad  %xmm6,%xmm7
punpcklqdq %xmm4,%xmm3
pshuflw $0x54,%xmm2,%xmm2
movdqa %xmm11,%xmm4
psrad  %xmm2,%xmm4
punpckhqdq %xmm7,%xmm4
pshuflw $0xfe,%xmm12,%xmm2
movdqa %xmm11,%xmm6
psrad  %xmm2,%xmm6
shufps $0xcc,%xmm4,%xmm3
pshuflw $0x54,%xmm12,%xmm2
movdqa %xmm11,%xmm4
psrad  %xmm2,%xmm4
pshufd $0xee,%xmm12,%xmm2
pshuflw $0xfe,%xmm2,%xmm12
movdqa %xmm11,%xmm7
psrad  %xmm12,%xmm7
movdqa 0x30(%rsp),%xmm12
punpcklqdq %xmm6,%xmm4
pshuflw $0x54,%xmm2,%xmm2
movdqa %xmm11,%xmm6
psrad  %xmm2,%xmm6
punpckhqdq %xmm7,%xmm6
shufps $0xcc,%xmm6,%xmm4
andps  %xmm14,%xmm4
andps  %xmm14,%xmm3
packuswb %xmm3,%xmm4
andps  %xmm14,%xmm0
andps  %xmm14,%xmm5
packuswb %xmm5,%xmm0
packuswb %xmm0,%xmm4
movdqu %xmm4,0x2c(%rsp,%rcx,1)
movdqa 0x9ff(%rip),%xmm3
paddd  %xmm3,%xmm10
paddd  %xmm3,%xmm8
paddd  %xmm3,%xmm1
pshuflw $0xfe,%xmm1,%xmm0
movdqa %xmm11,%xmm2
psrad  %xmm0,%xmm2
paddd  %xmm3,%xmm9
pshuflw $0x54,%xmm1,%xmm0
movdqa %xmm11,%xmm5
psrad  %xmm0,%xmm5
pshufd $0xee,%xmm1,%xmm0
pshuflw $0xfe,%xmm0,%xmm1
movdqa %xmm11,%xmm3
psrad  %xmm1,%xmm3
punpcklqdq %xmm2,%xmm5
pshuflw $0x54,%xmm0,%xmm0
movdqa %xmm11,%xmm1
psrad  %xmm0,%xmm1
punpckhqdq %xmm3,%xmm1
pshuflw $0xfe,%xmm9,%xmm0
movdqa %xmm11,%xmm2
psrad  %xmm0,%xmm2
shufps $0xcc,%xmm1,%xmm5
pshuflw $0x54,%xmm9,%xmm1
movdqa %xmm11,%xmm0
psrad  %xmm1,%xmm0
pshufd $0xee,%xmm9,%xmm1
pshuflw $0xfe,%xmm1,%xmm3
movdqa %xmm11,%xmm4
psrad  %xmm3,%xmm4
punpcklqdq %xmm2,%xmm0
pshuflw $0x54,%xmm1,%xmm1
movdqa %xmm11,%xmm2
psrad  %xmm1,%xmm2
punpckhqdq %xmm4,%xmm2
pshuflw $0xfe,%xmm8,%xmm1
movdqa %xmm11,%xmm3
psrad  %xmm1,%xmm3
shufps $0xcc,%xmm2,%xmm0
pshuflw $0x54,%xmm8,%xmm2
movdqa %xmm11,%xmm1
psrad  %xmm2,%xmm1
pshufd $0xee,%xmm8,%xmm2
pshuflw $0xfe,%xmm2,%xmm4
movdqa %xmm11,%xmm6
psrad  %xmm4,%xmm6
punpcklqdq %xmm3,%xmm1
pshuflw $0x54,%xmm2,%xmm2
movdqa %xmm11,%xmm3
psrad  %xmm2,%xmm3
punpckhqdq %xmm6,%xmm3
pshuflw $0xfe,%xmm10,%xmm2
movdqa %xmm11,%xmm4
psrad  %xmm2,%xmm4
shufps $0xcc,%xmm3,%xmm1
pshuflw $0x54,%xmm10,%xmm2
movdqa %xmm11,%xmm3
psrad  %xmm2,%xmm3
pshufd $0xee,%xmm10,%xmm2
movdqa 0x10(%rsp),%xmm10
pshuflw $0xfe,%xmm2,%xmm6
movdqa %xmm11,%xmm7
psrad  %xmm6,%xmm7
punpcklqdq %xmm4,%xmm3
pshuflw $0x54,%xmm2,%xmm2
movdqa %xmm11,%xmm4
psrad  %xmm2,%xmm4
punpckhqdq %xmm7,%xmm4
shufps $0xcc,%xmm4,%xmm3
andps  %xmm14,%xmm3
andps  %xmm14,%xmm1
packuswb %xmm1,%xmm3
andps  %xmm14,%xmm0
andps  %xmm14,%xmm5
packuswb %xmm5,%xmm0
packuswb %xmm0,%xmm3
movdqu %xmm3,0x3c(%rsp,%rcx,1)
add    $0x40,%rcx
movdqa 0x89a(%rip),%xmm0
paddd  %xmm0,%xmm10
paddd  %xmm0,%xmm15
paddd  %xmm0,%xmm13
paddd  %xmm0,%xmm12
add    $0xfffffffffffffffc,%r9
jne    11c0 <write_int+0xb0>
test   %r8,%r8
je     19bf <write_int+0x8af>
lea    (%rsp,%rcx,1),%r9
add    $0xc,%r9
shl    $0x4,%r8
xor    %ecx,%ecx
movaps 0x81d(%rip),%xmm8
movdqa 0x864(%rip),%xmm9
nopl   0x0(%rax)
movdqa %xmm10,%xmm4
pslld  $0x3,%xmm4
movdqa %xmm15,%xmm6
pslld  $0x3,%xmm6
movdqa %xmm13,%xmm3
movdqa %xmm12,%xmm5
pslld  $0x3,%xmm5
pshuflw $0xfe,%xmm5,%xmm0
movdqa %xmm11,%xmm7
psrad  %xmm0,%xmm7
pslld  $0x3,%xmm3
pshuflw $0x54,%xmm5,%xmm1
movdqa %xmm11,%xmm0
psrad  %xmm1,%xmm0
pshufd $0xee,%xmm5,%xmm1
pshuflw $0xfe,%xmm1,%xmm5
movdqa %xmm11,%xmm2
psrad  %xmm5,%xmm2
punpcklqdq %xmm7,%xmm0
pshuflw $0x54,%xmm1,%xmm1
movdqa %xmm11,%xmm5
psrad  %xmm1,%xmm5
punpckhqdq %xmm2,%xmm5
pshuflw $0xfe,%xmm3,%xmm1
movdqa %xmm11,%xmm2
psrad  %xmm1,%xmm2
shufps $0xcc,%xmm5,%xmm0
pshuflw $0x54,%xmm3,%xmm1
movdqa %xmm11,%xmm5
psrad  %xmm1,%xmm5
pshufd $0xee,%xmm3,%xmm1
pshuflw $0xfe,%xmm1,%xmm3
movdqa %xmm11,%xmm7
psrad  %xmm3,%xmm7
punpcklqdq %xmm2,%xmm5
pshuflw $0x54,%xmm1,%xmm1
movdqa %xmm11,%xmm2
psrad  %xmm1,%xmm2
punpckhqdq %xmm7,%xmm2
pshuflw $0xfe,%xmm6,%xmm1
movdqa %xmm11,%xmm7
psrad  %xmm1,%xmm7
shufps $0xcc,%xmm2,%xmm5
pshuflw $0x54,%xmm6,%xmm1
movdqa %xmm11,%xmm3
psrad  %xmm1,%xmm3
pshufd $0xee,%xmm6,%xmm1
pshuflw $0xfe,%xmm1,%xmm2
movdqa %xmm11,%xmm6
psrad  %xmm2,%xmm6
punpcklqdq %xmm7,%xmm3
pshuflw $0x54,%xmm1,%xmm1
movdqa %xmm11,%xmm2
psrad  %xmm1,%xmm2
punpckhqdq %xmm6,%xmm2
pshuflw $0xfe,%xmm4,%xmm1
movdqa %xmm11,%xmm6
psrad  %xmm1,%xmm6
shufps $0xcc,%xmm2,%xmm3
pshuflw $0x54,%xmm4,%xmm1
movdqa %xmm11,%xmm2
psrad  %xmm1,%xmm2
pshufd $0xee,%xmm4,%xmm1
pshuflw $0xfe,%xmm1,%xmm4
movdqa %xmm11,%xmm7
psrad  %xmm4,%xmm7
punpcklqdq %xmm6,%xmm2
pshuflw $0x54,%xmm1,%xmm1
movdqa %xmm11,%xmm4
psrad  %xmm1,%xmm4
punpckhqdq %xmm7,%xmm4
shufps $0xcc,%xmm4,%xmm2
andps  %xmm8,%xmm2
andps  %xmm8,%xmm3
packuswb %xmm3,%xmm2
andps  %xmm8,%xmm5
andps  %xmm8,%xmm0
packuswb %xmm0,%xmm5
packuswb %xmm5,%xmm2
movdqu %xmm2,(%r9,%rcx,1)
paddd  %xmm9,%xmm10
paddd  %xmm9,%xmm15
paddd  %xmm9,%xmm13
paddd  %xmm9,%xmm12
add    $0x10,%rcx
cmp    %rcx,%r8
jne    1830 <write_int+0x720>
cmp    %rsi,%r10
je     19e5 <write_int+0x8d5>
lea    0x0(,%r10,8),%ecx
nopl   0x0(%rax)
mov    %edi,%eax
sar    %cl,%eax
mov    %al,0xc(%rsp,%r10,1)
add    $0x1,%r10
add    $0x8,%ecx
cmp    %r10,%rsi
jne    19d0 <write_int+0x8c0>
lea    0xc(%rsp),%rdi
call   1030 <xfwrite@plt>
add    $0x48,%rsp
ret

LLVM IR (-O0):
define void @write_int(i32 %0, i64 %1, i32* %2) {
%4 = alloca i32
%5 = alloca i64
%6 = alloca i32*
%7 = alloca [4 x i8]
%8 = alloca i64
store i32 %0, i32* %4
store i64 %1, i64* %5
store i32* %2, i32** %6
store i64 0, i64* %8
br label %9
9: ; preds = %23, %3
%10 = load i64, i64* %8
%11 = load i64, i64* %5
%12 = icmp ult i64 %10, %11
br i1 %12, label %13, label %26
13: ; preds = %9
%14 = load i32, i32* %4
%15 = load i64, i64* %8
%16 = mul i64 8, %15
%17 = trunc i64 %16 to i32
%18 = ashr i32 %14, %17
%19 = and i32 %18, 255
%20 = trunc i32 %19 to i8
%21 = load i64, i64* %8
%22 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 %21
store i8 %20, i8* %22
br label %23
23: ; preds = %13
%24 = load i64, i64* %8
%25 = add i64 %24, 1
store i64 %25, i64* %8
br label %9
26: ; preds = %9
%27 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%28 = load i64, i64* %5
%29 = load i32*, i32** %6
%30 = call i32 @xfwrite(i8* %27, i64 %28, i32* %29)
ret void
}

LLVM IR (-O2):
define void @write_int(i32 %0, i64 %1, i32* %2) {
%4 = alloca [4 x i8]
%5 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 0
%6 = icmp eq i64 %1, 0
br i1 %6, label %84, label %7
7: ; preds = %3
%8 = icmp ult i64 %1, 16
br i1 %8, label %73, label %9
9: ; preds = %7
%10 = and i64 %1, -16
%11 = insertelement <16 x i32> poison, i32 %0, i64 0
%12 = shufflevector <16 x i32> %11, <16 x i32> poison, <16 x i32> zeroinitializer
%13 = add i64 %10, -16
%14 = lshr exact i64 %13, 4
%15 = add nuw nsw i64 %14, 1
%16 = and i64 %15, 3
%17 = icmp ult i64 %13, 48
br i1 %17, label %54, label %18
18: ; preds = %9
%19 = and i64 %15, 2305843009213693948
br label %20
20: ; preds = %20, %18
%21 = phi i64 [ 0, %18 ], [ %50, %20 ]
%22 = phi <16 x i32> [ <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15>, %18 ], [ %51, %20 ]
%23 = phi i64 [ 0, %18 ], [ %52, %20 ]
%24 = shl <16 x i32> %22, <i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3>
%25 = ashr <16 x i32> %12, %24
%26 = trunc <16 x i32> %25 to <16 x i8>
%27 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 %21
%28 = bitcast i8* %27 to <16 x i8>*
store <16 x i8> %26, <16 x i8>* %28
%29 = or i64 %21, 16
%30 = shl <16 x i32> %22, <i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3>
%31 = add <16 x i32> %30, <i32 128, i32 128, i32 128, i32 128, i32 128, i32 128, i32 128, i32 128, i32 128, i32 128, i32 128, i32 128, i32 128, i32 128, i32 128, i32 128>
%32 = ashr <16 x i32> %12, %31
%33 = trunc <16 x i32> %32 to <16 x i8>
%34 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 %29
%35 = bitcast i8* %34 to <16 x i8>*
store <16 x i8> %33, <16 x i8>* %35
%36 = or i64 %21, 32
%37 = shl <16 x i32> %22, <i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3>
%38 = add <16 x i32> %37, <i32 256, i32 256, i32 256, i32 256, i32 256, i32 256, i32 256, i32 256, i32 256, i32 256, i32 256, i32 256, i32 256, i32 256, i32 256, i32 256>
%39 = ashr <16 x i32> %12, %38
%40 = trunc <16 x i32> %39 to <16 x i8>
%41 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 %36
%42 = bitcast i8* %41 to <16 x i8>*
store <16 x i8> %40, <16 x i8>* %42
%43 = or i64 %21, 48
%44 = shl <16 x i32> %22, <i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3>
%45 = add <16 x i32> %44, <i32 384, i32 384, i32 384, i32 384, i32 384, i32 384, i32 384, i32 384, i32 384, i32 384, i32 384, i32 384, i32 384, i32 384, i32 384, i32 384>
%46 = ashr <16 x i32> %12, %45
%47 = trunc <16 x i32> %46 to <16 x i8>
%48 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 %43
%49 = bitcast i8* %48 to <16 x i8>*
store <16 x i8> %47, <16 x i8>* %49
%50 = add nuw i64 %21, 64
%51 = add <16 x i32> %22, <i32 64, i32 64, i32 64, i32 64, i32 64, i32 64, i32 64, i32 64, i32 64, i32 64, i32 64, i32 64, i32 64, i32 64, i32 64, i32 64>
%52 = add i64 %23, 4
%53 = icmp eq i64 %52, %19
br i1 %53, label %54, label %20
54: ; preds = %20, %9
%55 = phi i64 [ 0, %9 ], [ %50, %20 ]
%56 = phi <16 x i32> [ <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15>, %9 ], [ %51, %20 ]
%57 = icmp eq i64 %16, 0
br i1 %57, label %71, label %58
58: ; preds = %54, %58
%59 = phi i64 [ %67, %58 ], [ %55, %54 ]
%60 = phi <16 x i32> [ %68, %58 ], [ %56, %54 ]
%61 = phi i64 [ %69, %58 ], [ 0, %54 ]
%62 = shl <16 x i32> %60, <i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3>
%63 = ashr <16 x i32> %12, %62
%64 = trunc <16 x i32> %63 to <16 x i8>
%65 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 %59
%66 = bitcast i8* %65 to <16 x i8>*
store <16 x i8> %64, <16 x i8>* %66
%67 = add nuw i64 %59, 16
%68 = add <16 x i32> %60, <i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16>
%69 = add i64 %61, 1
%70 = icmp eq i64 %69, %16
br i1 %70, label %71, label %58
71: ; preds = %58, %54
%72 = icmp eq i64 %10, %1
br i1 %72, label %84, label %73
73: ; preds = %7, %71
%74 = phi i64 [ 0, %7 ], [ %10, %71 ]
br label %75
75: ; preds = %73, %75
%76 = phi i64 [ %82, %75 ], [ %74, %73 ]
%77 = trunc i64 %76 to i32
%78 = shl i32 %77, 3
%79 = ashr i32 %0, %78
%80 = trunc i32 %79 to i8
%81 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 %76
store i8 %80, i8* %81
%82 = add nuw i64 %76, 1
%83 = icmp eq i64 %82, %1
br i1 %83, label %84, label %75
84: ; preds = %75, %71, %3
%85 = call i32 @xfwrite(i8* %5, i64 %1, i32* %2)
ret void
}