#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 */

/* Variables and functions */
int /*<<< orphan*/ outb(int, int);
int read_gra_b(int);
int read_seq_b(int);
void vga_font_load(unsigned char *vidmem, const unsigned char *font, int height,
                   int num_chars) {
  int i, j;
  unsigned char byte;
  byte = read_seq_b(0x02) & ~0xf;
  outb(0x02, 0x3C4);
  outb(byte | 4, 0x3C5);
  byte = read_seq_b(0x04);
  outb(0x04, 0x3C4);
  outb(byte | 4, 0x3C5);
  outb(0x04, 0x3CE);
  outb(2, 0x3CF);
  byte = read_gra_b(0x05) & ~0x10;
  outb(0x05, 0x3CE);
  outb(byte, 0x3CF);
  outb(0x06, 0x3CE);
  outb(0, 0x3CF);
  for (i = 0; i < num_chars; i++) {
    for (j = 0; j < height; j++) {
      vidmem[i * 32 + j] = font[i * 16 + j];
    }
  }
  byte = read_seq_b(0x02) & ~0xf;
  outb(0x02, 0x3C4);
  outb(byte | 3, 0x3C5);
  byte = read_seq_b(0x04) & ~0x4;
  outb(0x04, 0x3C4);
  outb(byte, 0x3C5);
  outb(0x04, 0x3CE);
  outb(0, 0x3CF);
  byte = read_gra_b(0x05);
  outb(0x05, 0x3CE);
  outb(byte | 0x10, 0x3CF);
  outb(0x06, 0x3CE);
  outb(0xe, 0x3CF);
}


x86 assembly (clang, -O0):
<vga_font_load>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    $0x2,%edi
call   1040 <read_seq_b@plt>
and    $0xfffffff0,%eax
mov    %al,-0x21(%rbp)
mov    $0x2,%edi
mov    $0x3c4,%esi
call   1050 <outb@plt>
movzbl -0x21(%rbp),%edi
or     $0x4,%edi
mov    $0x3c5,%esi
call   1050 <outb@plt>
mov    $0x4,%edi
call   1040 <read_seq_b@plt>
mov    %al,-0x21(%rbp)
mov    $0x4,%edi
mov    $0x3c4,%esi
call   1050 <outb@plt>
movzbl -0x21(%rbp),%edi
or     $0x4,%edi
mov    $0x3c5,%esi
call   1050 <outb@plt>
mov    $0x4,%edi
mov    $0x3ce,%esi
call   1050 <outb@plt>
mov    $0x2,%edi
mov    $0x3cf,%esi
call   1050 <outb@plt>
mov    $0x5,%edi
call   1030 <read_gra_b@plt>
and    $0xffffffef,%eax
mov    %al,-0x21(%rbp)
mov    $0x5,%edi
mov    $0x3ce,%esi
call   1050 <outb@plt>
movzbl -0x21(%rbp),%edi
mov    $0x3cf,%esi
call   1050 <outb@plt>
mov    $0x6,%edi
mov    $0x3ce,%esi
call   1050 <outb@plt>
xor    %edi,%edi
mov    $0x3cf,%esi
call   1050 <outb@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1276 <vga_font_load+0x146>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1263 <vga_font_load+0x133>
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
shl    $0x4,%ecx
add    -0x20(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
shl    $0x5,%ecx
add    -0x20(%rbp),%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1223 <vga_font_load+0xf3>
jmp    1268 <vga_font_load+0x138>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1210 <vga_font_load+0xe0>
mov    $0x2,%edi
call   1040 <read_seq_b@plt>
and    $0xfffffff0,%eax
mov    %al,-0x21(%rbp)
mov    $0x2,%edi
mov    $0x3c4,%esi
call   1050 <outb@plt>
movzbl -0x21(%rbp),%edi
or     $0x3,%edi
mov    $0x3c5,%esi
call   1050 <outb@plt>
mov    $0x4,%edi
call   1040 <read_seq_b@plt>
and    $0xfffffffb,%eax
mov    %al,-0x21(%rbp)
mov    $0x4,%edi
mov    $0x3c4,%esi
call   1050 <outb@plt>
movzbl -0x21(%rbp),%edi
mov    $0x3c5,%esi
call   1050 <outb@plt>
mov    $0x4,%edi
mov    $0x3ce,%esi
call   1050 <outb@plt>
xor    %edi,%edi
mov    $0x3cf,%esi
call   1050 <outb@plt>
mov    $0x5,%edi
call   1030 <read_gra_b@plt>
mov    %al,-0x21(%rbp)
mov    $0x5,%edi
mov    $0x3ce,%esi
call   1050 <outb@plt>
movzbl -0x21(%rbp),%edi
or     $0x10,%edi
mov    $0x3cf,%esi
call   1050 <outb@plt>
mov    $0x6,%edi
mov    $0x3ce,%esi
call   1050 <outb@plt>
mov    $0xe,%edi
mov    $0x3cf,%esi
call   1050 <outb@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vga_font_load>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %ecx,%r12d
mov    %edx,%ebx
mov    %rsi,%r14
mov    %rdi,%r15
mov    $0x2,%edi
call   1040 <read_seq_b@plt>
mov    %eax,%ebp
and    $0xf0,%ebp
mov    $0x2,%edi
mov    $0x3c4,%esi
call   1050 <outb@plt>
or     $0x4,%ebp
mov    %ebp,%edi
mov    $0x3c5,%esi
call   1050 <outb@plt>
mov    $0x4,%edi
call   1040 <read_seq_b@plt>
mov    %eax,%ebp
mov    $0x4,%edi
mov    $0x3c4,%esi
call   1050 <outb@plt>
or     $0x4,%ebp
movzbl %bpl,%edi
mov    $0x3c5,%esi
call   1050 <outb@plt>
mov    $0x4,%edi
mov    $0x3ce,%esi
call   1050 <outb@plt>
mov    $0x2,%edi
mov    $0x3cf,%esi
call   1050 <outb@plt>
mov    $0x5,%edi
call   1030 <read_gra_b@plt>
mov    %eax,%ebp
and    $0xef,%ebp
mov    $0x5,%edi
mov    $0x3ce,%esi
call   1050 <outb@plt>
mov    %ebp,%edi
mov    $0x3cf,%esi
call   1050 <outb@plt>
mov    $0x6,%edi
mov    $0x3ce,%esi
call   1050 <outb@plt>
xor    %r13d,%r13d
xor    %edi,%edi
mov    $0x3cf,%esi
call   1050 <outb@plt>
test   %r12d,%r12d
jle    1482 <vga_font_load+0x352>
mov    %r12d,%eax
mov    %rax,0x60(%rsp)
mov    %ebx,%ecx
lea    (%r15,%rcx,1),%rax
mov    %rax,0x38(%rsp)
lea    (%r14,%rcx,1),%rax
mov    %rax,0x50(%rsp)
mov    %ecx,%eax
and    $0xffffffe0,%eax
mov    %rax,0x8(%rsp)
add    $0xffffffffffffffe0,%rax
mov    %rax,0x30(%rsp)
mov    %rax,%rdx
shr    $0x5,%rdx
add    $0x1,%rdx
mov    %rdx,%rax
mov    %rdx,0x28(%rsp)
and    $0xfffffffffffffffe,%rdx
mov    %rdx,0x20(%rsp)
mov    %ecx,%r8d
and    $0xfffffff8,%r8d
mov    %ecx,%eax
and    $0x3,%eax
mov    %rax,0x58(%rsp)
lea    0x30(%r14),%rax
mov    %rax,0x18(%rsp)
lea    0x30(%r15),%rax
mov    %rax,0x10(%rsp)
lea    0x3(%r15),%rax
mov    %rax,0x48(%rsp)
lea    0x3(%r14),%rax
mov    %rax,0x40(%rsp)
xor    %r10d,%r10d
jmp    12b3 <vga_font_load+0x183>
nopl   0x0(%rax)
add    $0x1,%r10
add    $0x1,%r13d
cmp    0x60(%rsp),%r10
je     1482 <vga_font_load+0x352>
test   %ebx,%ebx
jle    12a0 <vga_font_load+0x170>
mov    %r13d,%ebp
and    $0x7ffffff,%ebp
shl    $0x5,%rbp
mov    %r13d,%r12d
and    $0xfffffff,%r12d
shl    $0x4,%r12
lea    (%r15,%rbp,1),%r9
lea    (%r14,%r12,1),%r11
cmp    $0x8,%ebx
jb     1311 <vga_font_load+0x1e1>
mov    %r10d,%edx
shl    $0x5,%edx
lea    (%r15,%rdx,1),%rdi
mov    %r10d,%esi
shl    $0x4,%esi
mov    0x50(%rsp),%rax
add    %rsi,%rax
cmp    %rax,%rdi
jae    1395 <vga_font_load+0x265>
add    0x38(%rsp),%rdx
add    %r14,%rsi
cmp    %rdx,%rsi
jae    1395 <vga_font_load+0x265>
xor    %edx,%edx
mov    %rdx,%rsi
not    %rsi
add    %rcx,%rsi
mov    0x58(%rsp),%rdi
test   %rdi,%rdi
je     1343 <vga_font_load+0x213>
cs nopw 0x0(%rax,%rax,1)
movzbl (%r11,%rdx,1),%eax
mov    %al,(%r9,%rdx,1)
add    $0x1,%rdx
add    $0xffffffffffffffff,%rdi
jne    1330 <vga_font_load+0x200>
cmp    $0x3,%rsi
jb     12a0 <vga_font_load+0x170>
add    0x48(%rsp),%rbp
add    0x40(%rsp),%r12
nopw   0x0(%rax,%rax,1)
movzbl -0x3(%r12,%rdx,1),%eax
mov    %al,-0x3(%rbp,%rdx,1)
movzbl -0x2(%r12,%rdx,1),%eax
mov    %al,-0x2(%rbp,%rdx,1)
movzbl -0x1(%r12,%rdx,1),%eax
mov    %al,-0x1(%rbp,%rdx,1)
movzbl (%r12,%rdx,1),%eax
mov    %al,0x0(%rbp,%rdx,1)
add    $0x4,%rdx
cmp    %rdx,%rcx
jne    1360 <vga_font_load+0x230>
jmp    12a0 <vga_font_load+0x170>
cmp    $0x20,%ebx
jae    13a1 <vga_font_load+0x271>
xor    %esi,%esi
jmp    1460 <vga_font_load+0x330>
mov    %r15,%rdi
mov    %r14,%rax
cmpq   $0x0,0x30(%rsp)
je     1406 <vga_font_load+0x2d6>
mov    0x18(%rsp),%rdx
lea    (%rdx,%r12,1),%rsi
mov    0x10(%rsp),%rdx
lea    (%rdx,%rbp,1),%r14
mov    0x20(%rsp),%r15
xor    %edx,%edx
nopl   0x0(%rax,%rax,1)
movups -0x30(%rsi,%rdx,1),%xmm0
movups -0x20(%rsi,%rdx,1),%xmm1
movups %xmm0,-0x30(%r14,%rdx,1)
movups %xmm1,-0x20(%r14,%rdx,1)
movups -0x10(%rsi,%rdx,1),%xmm0
movups (%rsi,%rdx,1),%xmm1
movups %xmm0,-0x10(%r14,%rdx,1)
movups %xmm1,(%r14,%rdx,1)
add    $0x40,%rdx
add    $0xfffffffffffffffe,%r15
jne    13d0 <vga_font_load+0x2a0>
jmp    1408 <vga_font_load+0x2d8>
xor    %edx,%edx
testb  $0x1,0x28(%rsp)
mov    %rax,%r14
mov    %rdi,%r15
je     143d <vga_font_load+0x30d>
mov    %r10d,%eax
shl    $0x4,%eax
mov    %r10d,%esi
shl    $0x5,%esi
add    %rdx,%rax
movups (%r14,%rax,1),%xmm0
movups 0x10(%r14,%rax,1),%xmm1
add    %rdx,%rsi
movups %xmm0,(%r15,%rsi,1)
movups %xmm1,0x10(%r15,%rsi,1)
cmp    %rcx,0x8(%rsp)
je     12a0 <vga_font_load+0x170>
mov    0x8(%rsp),%rdx
mov    %rdx,%rsi
test   $0x18,%cl
je     1313 <vga_font_load+0x1e3>
nopl   0x0(%rax)
mov    (%r11,%rsi,1),%rax
mov    %rax,(%r9,%rsi,1)
add    $0x8,%rsi
cmp    %rsi,%r8
jne    1460 <vga_font_load+0x330>
mov    %r8,%rdx
cmp    %rcx,%r8
je     12a0 <vga_font_load+0x170>
jmp    1313 <vga_font_load+0x1e3>
mov    $0x2,%edi
call   1040 <read_seq_b@plt>
mov    %eax,%ebx
and    $0xf0,%ebx
mov    $0x2,%edi
mov    $0x3c4,%esi
call   1050 <outb@plt>
or     $0x3,%ebx
mov    %ebx,%edi
mov    $0x3c5,%esi
call   1050 <outb@plt>
mov    $0x4,%edi
call   1040 <read_seq_b@plt>
mov    %eax,%ebx
and    $0xfb,%ebx
mov    $0x4,%edi
mov    $0x3c4,%esi
call   1050 <outb@plt>
mov    %ebx,%edi
mov    $0x3c5,%esi
call   1050 <outb@plt>
mov    $0x4,%edi
mov    $0x3ce,%esi
call   1050 <outb@plt>
xor    %edi,%edi
mov    $0x3cf,%esi
call   1050 <outb@plt>
mov    $0x5,%edi
call   1030 <read_gra_b@plt>
mov    %eax,%ebx
mov    $0x5,%edi
mov    $0x3ce,%esi
call   1050 <outb@plt>
or     $0x10,%ebx
movzbl %bl,%edi
mov    $0x3cf,%esi
call   1050 <outb@plt>
mov    $0x6,%edi
mov    $0x3ce,%esi
call   1050 <outb@plt>
mov    $0xe,%edi
mov    $0x3cf,%esi
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <outb@plt>

LLVM IR (-O0):
define void @vga_font_load(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i8
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%12 = call i32 @read_seq_b(i32 2)
%13 = and i32 %12, -16
%14 = trunc i32 %13 to i8
store i8 %14, i8* %11
%15 = call i32 @outb(i32 2, i32 964)
%16 = load i8, i8* %11
%17 = zext i8 %16 to i32
%18 = or i32 %17, 4
%19 = call i32 @outb(i32 %18, i32 965)
%20 = call i32 @read_seq_b(i32 4)
%21 = trunc i32 %20 to i8
store i8 %21, i8* %11
%22 = call i32 @outb(i32 4, i32 964)
%23 = load i8, i8* %11
%24 = zext i8 %23 to i32
%25 = or i32 %24, 4
%26 = call i32 @outb(i32 %25, i32 965)
%27 = call i32 @outb(i32 4, i32 974)
%28 = call i32 @outb(i32 2, i32 975)
%29 = call i32 @read_gra_b(i32 5)
%30 = and i32 %29, -17
%31 = trunc i32 %30 to i8
store i8 %31, i8* %11
%32 = call i32 @outb(i32 5, i32 974)
%33 = load i8, i8* %11
%34 = zext i8 %33 to i32
%35 = call i32 @outb(i32 %34, i32 975)
%36 = call i32 @outb(i32 6, i32 974)
%37 = call i32 @outb(i32 0, i32 975)
store i32 0, i32* %9
br label %38
38: ; preds = %67, %4
%39 = load i32, i32* %9
%40 = load i32, i32* %8
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %70
42: ; preds = %38
store i32 0, i32* %10
br label %43
43: ; preds = %63, %42
%44 = load i32, i32* %10
%45 = load i32, i32* %7
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %66
47: ; preds = %43
%48 = load i8*, i8** %6
%49 = load i32, i32* %9
%50 = mul nsw i32 %49, 16
%51 = load i32, i32* %10
%52 = add nsw i32 %50, %51
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, i8* %48, i64 %53
%55 = load i8, i8* %54
%56 = load i8*, i8** %5
%57 = load i32, i32* %9
%58 = mul nsw i32 %57, 32
%59 = load i32, i32* %10
%60 = add nsw i32 %58, %59
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, i8* %56, i64 %61
store i8 %55, i8* %62
br label %63
63: ; preds = %47
%64 = load i32, i32* %10
%65 = add nsw i32 %64, 1
store i32 %65, i32* %10
br label %43
66: ; preds = %43
br label %67
67: ; preds = %66
%68 = load i32, i32* %9
%69 = add nsw i32 %68, 1
store i32 %69, i32* %9
br label %38
70: ; preds = %38
%71 = call i32 @read_seq_b(i32 2)
%72 = and i32 %71, -16
%73 = trunc i32 %72 to i8
store i8 %73, i8* %11
%74 = call i32 @outb(i32 2, i32 964)
%75 = load i8, i8* %11
%76 = zext i8 %75 to i32
%77 = or i32 %76, 3
%78 = call i32 @outb(i32 %77, i32 965)
%79 = call i32 @read_seq_b(i32 4)
%80 = and i32 %79, -5
%81 = trunc i32 %80 to i8
store i8 %81, i8* %11
%82 = call i32 @outb(i32 4, i32 964)
%83 = load i8, i8* %11
%84 = zext i8 %83 to i32
%85 = call i32 @outb(i32 %84, i32 965)
%86 = call i32 @outb(i32 4, i32 974)
%87 = call i32 @outb(i32 0, i32 975)
%88 = call i32 @read_gra_b(i32 5)
%89 = trunc i32 %88 to i8
store i8 %89, i8* %11
%90 = call i32 @outb(i32 5, i32 974)
%91 = load i8, i8* %11
%92 = zext i8 %91 to i32
%93 = or i32 %92, 16
%94 = call i32 @outb(i32 %93, i32 975)
%95 = call i32 @outb(i32 6, i32 974)
%96 = call i32 @outb(i32 14, i32 975)
ret void
}

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