#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 uint16_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ decode_lcdchar(int, char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
void output_hex_dump(FILE *outfile, uint16_t *ROM) {
  int i, j;
  for (i = 0; i < 0x1000; i += 8) {
    fprintf(outfile, "%03x: ", i);
    for (j = i; j < (i + 8); j++)
      fprintf(outfile, "%03x ", ROM[j]);
    fprintf(outfile, "'");
    for (j = i; j < (i + 8); j++) {
      char ch, punct;
      decode_lcdchar(ROM[j] & 0x1ff, &ch, &punct);
      fprintf(outfile, "%c", ch);
    }
    fprintf(outfile, "' '");
    for (j = i; j < (i + 8); j++) {
      char ch;
      ch = ROM[j] & 0x7f;
      if ((ch >= ' ') && (ch <= '~'))
        fprintf(outfile, "%c", ch);
      else
        fprintf(outfile, ".");
    }
    fprintf(outfile, "'\n");
  }
}


x86 assembly (clang, -O0):
<output_hex_dump>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x1000,-0x14(%rbp)
jge    12ba <output_hex_dump+0x19a>
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%edx
lea    0xeae(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x14(%rbp),%ecx
add    $0x8,%ecx
cmp    %ecx,%eax
jge    119b <output_hex_dump+0x7b>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
lea    0xe81(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    115f <output_hex_dump+0x3f>
mov    -0x8(%rbp),%rdi
lea    0xe6c(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x14(%rbp),%ecx
add    $0x8,%ecx
cmp    %ecx,%eax
jge    1206 <output_hex_dump+0xe6>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
and    $0x1ff,%edi
lea    -0x19(%rbp),%rsi
lea    -0x1a(%rbp),%rdx
call   1030 <decode_lcdchar@plt>
mov    -0x8(%rbp),%rdi
movsbl -0x19(%rbp),%edx
lea    0xe1c(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11b3 <output_hex_dump+0x93>
mov    -0x8(%rbp),%rdi
lea    0xdff(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x14(%rbp),%ecx
add    $0x8,%ecx
cmp    %ecx,%eax
jge    129a <output_hex_dump+0x17a>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
and    $0x7f,%eax
mov    %al,-0x1b(%rbp)
movsbl -0x1b(%rbp),%eax
cmp    $0x20,%eax
jl     1275 <output_hex_dump+0x155>
movsbl -0x1b(%rbp),%eax
cmp    $0x7e,%eax
jg     1275 <output_hex_dump+0x155>
mov    -0x8(%rbp),%rdi
movsbl -0x1b(%rbp),%edx
lea    0xda4(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    1287 <output_hex_dump+0x167>
mov    -0x8(%rbp),%rdi
lea    0xd94(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    128c <output_hex_dump+0x16c>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    121e <output_hex_dump+0xfe>
mov    -0x8(%rbp),%rdi
lea    0xd71(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x14(%rbp)
jmp    1137 <output_hex_dump+0x17>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<output_hex_dump>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
xor    %r15d,%r15d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rbx,%rdi
lea    0xe96(%rip),%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r14,%r15,4),%edx
mov    %rbx,%rdi
lea    0xe85(%rip),%r13
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x4(%r14,%r15,4),%edx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x8(%r14,%r15,4),%edx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0xc(%r14,%r15,4),%edx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x10(%r14,%r15,4),%edx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x14(%r14,%r15,4),%edx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x18(%r14,%r15,4),%edx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x1c(%r14,%r15,4),%edx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0x27,%edi
mov    %rbx,%rsi
call   1040 <fputc@plt>
mov    (%r14,%r15,4),%edi
mov    $0x1ff,%r13d
and    %r13d,%edi
lea    0x6(%rsp),%rbp
mov    %rbp,%rsi
lea    0x7(%rsp),%r12
mov    %r12,%rdx
call   1030 <decode_lcdchar@plt>
movsbl 0x6(%rsp),%edi
mov    %rbx,%rsi
call   1040 <fputc@plt>
mov    0x4(%r14,%r15,4),%edi
and    %r13d,%edi
mov    %rbp,%rsi
mov    %r12,%rdx
call   1030 <decode_lcdchar@plt>
movsbl 0x6(%rsp),%edi
mov    %rbx,%rsi
call   1040 <fputc@plt>
mov    0x8(%r14,%r15,4),%edi
and    %r13d,%edi
mov    %rbp,%rsi
mov    %r12,%rdx
call   1030 <decode_lcdchar@plt>
movsbl 0x6(%rsp),%edi
mov    %rbx,%rsi
call   1040 <fputc@plt>
mov    0xc(%r14,%r15,4),%edi
and    %r13d,%edi
mov    %rbp,%rsi
mov    %r12,%rdx
call   1030 <decode_lcdchar@plt>
movsbl 0x6(%rsp),%edi
mov    %rbx,%rsi
call   1040 <fputc@plt>
mov    0x10(%r14,%r15,4),%edi
and    %r13d,%edi
mov    %rbp,%rsi
mov    %r12,%rdx
call   1030 <decode_lcdchar@plt>
movsbl 0x6(%rsp),%edi
mov    %rbx,%rsi
call   1040 <fputc@plt>
mov    0x14(%r14,%r15,4),%edi
and    %r13d,%edi
mov    %rbp,%rsi
mov    %r12,%rdx
call   1030 <decode_lcdchar@plt>
movsbl 0x6(%rsp),%edi
mov    %rbx,%rsi
call   1040 <fputc@plt>
mov    0x18(%r14,%r15,4),%edi
and    %r13d,%edi
mov    %rbp,%rsi
mov    %r12,%rdx
call   1030 <decode_lcdchar@plt>
movsbl 0x6(%rsp),%edi
mov    %rbx,%rsi
call   1040 <fputc@plt>
mov    0x1c(%r14,%r15,4),%edi
and    %r13d,%edi
mov    %rbp,%rsi
mov    %r12,%rdx
call   1030 <decode_lcdchar@plt>
movsbl 0x6(%rsp),%edi
mov    %rbx,%rsi
call   1040 <fputc@plt>
mov    $0x3,%esi
mov    $0x1,%edx
lea    0xcd6(%rip),%rdi
mov    %rbx,%rcx
call   1060 <fwrite@plt>
mov    (%r14,%r15,4),%eax
and    $0x7f,%eax
cmp    $0x7f,%eax
mov    $0x2e,%edi
cmovne %eax,%edi
cmp    $0x20,%eax
mov    $0x2e,%ebp
cmovb  %ebp,%edi
mov    %rbx,%rsi
call   1040 <fputc@plt>
mov    0x4(%r14,%r15,4),%eax
and    $0x7f,%eax
cmp    $0x7f,%eax
mov    $0x2e,%edi
cmovne %eax,%edi
cmp    $0x20,%eax
cmovb  %ebp,%edi
mov    %rbx,%rsi
call   1040 <fputc@plt>
mov    0x8(%r14,%r15,4),%eax
and    $0x7f,%eax
cmp    $0x7f,%eax
mov    $0x2e,%edi
cmovne %eax,%edi
cmp    $0x20,%eax
cmovb  %ebp,%edi
mov    %rbx,%rsi
call   1040 <fputc@plt>
mov    0xc(%r14,%r15,4),%eax
and    $0x7f,%eax
cmp    $0x7f,%eax
mov    $0x2e,%edi
cmovne %eax,%edi
cmp    $0x20,%eax
cmovb  %ebp,%edi
mov    %rbx,%rsi
call   1040 <fputc@plt>
mov    0x10(%r14,%r15,4),%eax
and    $0x7f,%eax
cmp    $0x7f,%eax
mov    $0x2e,%edi
cmovne %eax,%edi
cmp    $0x20,%eax
cmovb  %ebp,%edi
mov    %rbx,%rsi
call   1040 <fputc@plt>
mov    0x14(%r14,%r15,4),%eax
and    $0x7f,%eax
cmp    $0x7f,%eax
mov    $0x2e,%edi
cmovne %eax,%edi
cmp    $0x20,%eax
cmovb  %ebp,%edi
mov    %rbx,%rsi
call   1040 <fputc@plt>
mov    0x18(%r14,%r15,4),%eax
and    $0x7f,%eax
cmp    $0x7f,%eax
mov    $0x2e,%edi
cmovne %eax,%edi
cmp    $0x20,%eax
cmovb  %ebp,%edi
mov    %rbx,%rsi
call   1040 <fputc@plt>
mov    0x1c(%r14,%r15,4),%eax
and    $0x7f,%eax
cmp    $0x7f,%eax
mov    $0x2e,%edi
cmovne %eax,%edi
cmp    $0x20,%eax
cmovb  %ebp,%edi
mov    %rbx,%rsi
call   1040 <fputc@plt>
add    $0x8,%r15
mov    $0x2,%esi
mov    $0x1,%edx
lea    0xbb1(%rip),%rdi
mov    %rbx,%rcx
call   1060 <fwrite@plt>
lea    -0x8(%r15),%eax
cmp    $0xff8,%eax
jb     1160 <output_hex_dump+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%03x: \00"
@.str.1 = [6 x i8] c"%03x \00"
@.str.2 = [2 x i8] c"'\00"
@.str.3 = [3 x i8] c"%c\00"
@.str.4 = [4 x i8] c"' '\00"
@.str.5 = [2 x i8] c".\00"
@.str.6 = [3 x i8] c"'\0A\00"
define void @output_hex_dump(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8
%8 = alloca i8
%9 = alloca i8
store i32* %0, i32** %3
store i32* %1, i32** %4
store i32 0, i32* %5
br label %10
10: ; preds = %97, %2
%11 = load i32, i32* %5
%12 = icmp slt i32 %11, 4096
br i1 %12, label %13, label %100
13: ; preds = %10
%14 = load i32*, i32** %3
%15 = load i32, i32* %5
%16 = call i32 (i32*, i8*, ...) @fprintf(i32* %14, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %15)
%17 = load i32, i32* %5
store i32 %17, i32* %6
br label %18
18: ; preds = %31, %13
%19 = load i32, i32* %6
%20 = load i32, i32* %5
%21 = add nsw i32 %20, 8
%22 = icmp slt i32 %19, %21
br i1 %22, label %23, label %34
23: ; preds = %18
%24 = load i32*, i32** %3
%25 = load i32*, i32** %4
%26 = load i32, i32* %6
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, i32* %25, i64 %27
%29 = load i32, i32* %28
%30 = call i32 (i32*, i8*, ...) @fprintf(i32* %24, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %29)
br label %31
31: ; preds = %23
%32 = load i32, i32* %6
%33 = add nsw i32 %32, 1
store i32 %33, i32* %6
br label %18
34: ; preds = %18
%35 = load i32*, i32** %3
%36 = call i32 (i32*, i8*, ...) @fprintf(i32* %35, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%37 = load i32, i32* %5
store i32 %37, i32* %6
br label %38
38: ; preds = %55, %34
%39 = load i32, i32* %6
%40 = load i32, i32* %5
%41 = add nsw i32 %40, 8
%42 = icmp slt i32 %39, %41
br i1 %42, label %43, label %58
43: ; preds = %38
%44 = load i32*, i32** %4
%45 = load i32, i32* %6
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, i32* %44, i64 %46
%48 = load i32, i32* %47
%49 = and i32 %48, 511
%50 = call i32 @decode_lcdchar(i32 %49, i8* %7, i8* %8)
%51 = load i32*, i32** %3
%52 = load i8, i8* %7
%53 = sext i8 %52 to i32
%54 = call i32 (i32*, i8*, ...) @fprintf(i32* %51, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %53)
br label %55
55: ; preds = %43
%56 = load i32, i32* %6
%57 = add nsw i32 %56, 1
store i32 %57, i32* %6
br label %38
58: ; preds = %38
%59 = load i32*, i32** %3
%60 = call i32 (i32*, i8*, ...) @fprintf(i32* %59, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%61 = load i32, i32* %5
store i32 %61, i32* %6
br label %62
62: ; preds = %91, %58
%63 = load i32, i32* %6
%64 = load i32, i32* %5
%65 = add nsw i32 %64, 8
%66 = icmp slt i32 %63, %65
br i1 %66, label %67, label %94
67: ; preds = %62
%68 = load i32*, i32** %4
%69 = load i32, i32* %6
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i32, i32* %68, i64 %70
%72 = load i32, i32* %71
%73 = and i32 %72, 127
%74 = trunc i32 %73 to i8
store i8 %74, i8* %9
%75 = load i8, i8* %9
%76 = sext i8 %75 to i32
%77 = icmp sge i32 %76, 32
br i1 %77, label %78, label %87
78: ; preds = %67
%79 = load i8, i8* %9
%80 = sext i8 %79 to i32
%81 = icmp sle i32 %80, 126
br i1 %81, label %82, label %87
82: ; preds = %78
%83 = load i32*, i32** %3
%84 = load i8, i8* %9
%85 = sext i8 %84 to i32
%86 = call i32 (i32*, i8*, ...) @fprintf(i32* %83, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %85)
br label %90
87: ; preds = %78, %67
%88 = load i32*, i32** %3
%89 = call i32 (i32*, i8*, ...) @fprintf(i32* %88, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %90
90: ; preds = %87, %82
br label %91
91: ; preds = %90
%92 = load i32, i32* %6
%93 = add nsw i32 %92, 1
store i32 %93, i32* %6
br label %62
94: ; preds = %62
%95 = load i32*, i32** %3
%96 = call i32 (i32*, i8*, ...) @fprintf(i32* %95, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
br label %97
97: ; preds = %94
%98 = load i32, i32* %5
%99 = add nsw i32 %98, 8
store i32 %99, i32* %5
br label %10
100: ; preds = %10
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"%03x: \00"
@.str.1 = [6 x i8] c"%03x \00"
@.str.4 = [4 x i8] c"' '\00"
@.str.6 = [3 x i8] c"'\0A\00"
define void @output_hex_dump(i32* nocapture %0, i32* nocapture %1) {
%3 = alloca i8
%4 = alloca i8
br label %5
5: ; preds = %2, %5
%6 = phi i64 [ 0, %2 ], [ %146, %5 ]
%7 = trunc i64 %6 to i32
%8 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %7)
%9 = getelementptr inbounds i32, i32* %1, i64 %6
%10 = load i32, i32* %9
%11 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %10)
%12 = or i64 %6, 1
%13 = getelementptr inbounds i32, i32* %1, i64 %12
%14 = load i32, i32* %13
%15 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %14)
%16 = or i64 %6, 2
%17 = getelementptr inbounds i32, i32* %1, i64 %16
%18 = load i32, i32* %17
%19 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %18)
%20 = or i64 %6, 3
%21 = getelementptr inbounds i32, i32* %1, i64 %20
%22 = load i32, i32* %21
%23 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %22)
%24 = or i64 %6, 4
%25 = getelementptr inbounds i32, i32* %1, i64 %24
%26 = load i32, i32* %25
%27 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %26)
%28 = or i64 %6, 5
%29 = getelementptr inbounds i32, i32* %1, i64 %28
%30 = load i32, i32* %29
%31 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %30)
%32 = or i64 %6, 6
%33 = getelementptr inbounds i32, i32* %1, i64 %32
%34 = load i32, i32* %33
%35 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %34)
%36 = or i64 %6, 7
%37 = getelementptr inbounds i32, i32* %1, i64 %36
%38 = load i32, i32* %37
%39 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %38)
%40 = call i32 @fputc(i32 39, i32* %0)
%41 = load i32, i32* %9
%42 = and i32 %41, 511
%43 = call i32 @decode_lcdchar(i32 %42, i8* %3, i8* %4)
%44 = load i8, i8* %3
%45 = sext i8 %44 to i32
%46 = call i32 @fputc(i32 %45, i32* %0)
%47 = load i32, i32* %13
%48 = and i32 %47, 511
%49 = call i32 @decode_lcdchar(i32 %48, i8* %3, i8* %4)
%50 = load i8, i8* %3
%51 = sext i8 %50 to i32
%52 = call i32 @fputc(i32 %51, i32* %0)
%53 = load i32, i32* %17
%54 = and i32 %53, 511
%55 = call i32 @decode_lcdchar(i32 %54, i8* %3, i8* %4)
%56 = load i8, i8* %3
%57 = sext i8 %56 to i32
%58 = call i32 @fputc(i32 %57, i32* %0)
%59 = load i32, i32* %21
%60 = and i32 %59, 511
%61 = call i32 @decode_lcdchar(i32 %60, i8* %3, i8* %4)
%62 = load i8, i8* %3
%63 = sext i8 %62 to i32
%64 = call i32 @fputc(i32 %63, i32* %0)
%65 = load i32, i32* %25
%66 = and i32 %65, 511
%67 = call i32 @decode_lcdchar(i32 %66, i8* %3, i8* %4)
%68 = load i8, i8* %3
%69 = sext i8 %68 to i32
%70 = call i32 @fputc(i32 %69, i32* %0)
%71 = load i32, i32* %29
%72 = and i32 %71, 511
%73 = call i32 @decode_lcdchar(i32 %72, i8* %3, i8* %4)
%74 = load i8, i8* %3
%75 = sext i8 %74 to i32
%76 = call i32 @fputc(i32 %75, i32* %0)
%77 = load i32, i32* %33
%78 = and i32 %77, 511
%79 = call i32 @decode_lcdchar(i32 %78, i8* %3, i8* %4)
%80 = load i8, i8* %3
%81 = sext i8 %80 to i32
%82 = call i32 @fputc(i32 %81, i32* %0)
%83 = load i32, i32* %37
%84 = and i32 %83, 511
%85 = call i32 @decode_lcdchar(i32 %84, i8* %3, i8* %4)
%86 = load i8, i8* %3
%87 = sext i8 %86 to i32
%88 = call i32 @fputc(i32 %87, i32* %0)
%89 = call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i64 3, i64 1, i32* %0)
%90 = load i32, i32* %9
%91 = and i32 %90, 127
%92 = icmp ugt i32 %91, 31
%93 = icmp ne i32 %91, 127
%94 = and i1 %92, %93
%95 = select i1 %94, i32 %91, i32 46
%96 = call i32 @fputc(i32 %95, i32* %0)
%97 = load i32, i32* %13
%98 = and i32 %97, 127
%99 = icmp ugt i32 %98, 31
%100 = icmp ne i32 %98, 127
%101 = and i1 %99, %100
%102 = select i1 %101, i32 %98, i32 46
%103 = call i32 @fputc(i32 %102, i32* %0)
%104 = load i32, i32* %17
%105 = and i32 %104, 127
%106 = icmp ugt i32 %105, 31
%107 = icmp ne i32 %105, 127
%108 = and i1 %106, %107
%109 = select i1 %108, i32 %105, i32 46
%110 = call i32 @fputc(i32 %109, i32* %0)
%111 = load i32, i32* %21
%112 = and i32 %111, 127
%113 = icmp ugt i32 %112, 31
%114 = icmp ne i32 %112, 127
%115 = and i1 %113, %114
%116 = select i1 %115, i32 %112, i32 46
%117 = call i32 @fputc(i32 %116, i32* %0)
%118 = load i32, i32* %25
%119 = and i32 %118, 127
%120 = icmp ugt i32 %119, 31
%121 = icmp ne i32 %119, 127
%122 = and i1 %120, %121
%123 = select i1 %122, i32 %119, i32 46
%124 = call i32 @fputc(i32 %123, i32* %0)
%125 = load i32, i32* %29
%126 = and i32 %125, 127
%127 = icmp ugt i32 %126, 31
%128 = icmp ne i32 %126, 127
%129 = and i1 %127, %128
%130 = select i1 %129, i32 %126, i32 46
%131 = call i32 @fputc(i32 %130, i32* %0)
%132 = load i32, i32* %33
%133 = and i32 %132, 127
%134 = icmp ugt i32 %133, 31
%135 = icmp ne i32 %133, 127
%136 = and i1 %134, %135
%137 = select i1 %136, i32 %133, i32 46
%138 = call i32 @fputc(i32 %137, i32* %0)
%139 = load i32, i32* %37
%140 = and i32 %139, 127
%141 = icmp ugt i32 %140, 31
%142 = icmp ne i32 %140, 127
%143 = and i1 %141, %142
%144 = select i1 %143, i32 %140, i32 46
%145 = call i32 @fputc(i32 %144, i32* %0)
%146 = add nuw nsw i64 %6, 8
%147 = call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i64 2, i64 1, i32* %0)
%148 = icmp ult i32 %7, 4088
br i1 %148, label %5, label %149
149: ; preds = %5
ret void
}