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

/* Variables and functions */
int /*<<< orphan*/ SEEK_END;
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ fputc(unsigned char, int /*<<< orphan*/ *);
scalar_t__ fseek(int /*<<< orphan*/ *, long, int /*<<< orphan*/);
int ftell(int /*<<< orphan*/ *);
int getc(int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stdout;
int main(int argc, char *argv[]) {
  unsigned char mychar[8];
  FILE *fpin, *fpout;
  int x;
  int c;
  int i;
  int len;
  if ((argc < 3) || (argc > 4)) {
    fprintf(stdout, "Usage: %s [input 4 bit font] [output packed font] \n",
            argv[0]);
    exit(1);
  }
  if ((fpin = fopen(argv[1], "rb")) == NULL) {
    printf("Can't open input file\n");
    exit(1);
  }
  if (fseek(fpin, 0, SEEK_END)) {
    printf("Couldn't determine size of file\n");
    fclose(fpin);
    exit(1);
  }
  len = ftell(fpin);
  fseek(fpin, 0L, SEEK_SET);
  if ((fpout = fopen(argv[2], "w+b")) == NULL) {
    printf("Can't open output file\n");
    exit(1);
  }
  for (x = 0; x < (len / 16); x++) {
    for (i = 0; i < 8; i++)
      mychar[i] = getc(fpin);
    for (i = 0; i < 8; i++)
      mychar[i] = mychar[i] + (unsigned char)(getc(fpin) / 16);
    for (i = 0; i < 8; i++)
      fputc(mychar[i], fpout);
  }
  fclose(fpin);
  fclose(fpout);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
jl     11ba <main+0x2a>
cmpl   $0x4,-0x8(%rbp)
jle    11e0 <main+0x50>
mov    0x2e0f(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe2f(%rip),%rsi
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe45(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    1218 <main+0x88>
lea    0xe2e(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    -0x20(%rbp),%rdi
mov    0x2dc5(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
call   1080 <fseek@plt>
cmp    $0x0,%rax
je     1257 <main+0xc7>
lea    0xe0f(%rip),%rdi
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
call   1030 <fclose@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    -0x20(%rbp),%rdi
call   1070 <ftell@plt>
mov    %eax,-0x38(%rbp)
mov    -0x20(%rbp),%rdi
mov    0x2d6a(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
call   1080 <fseek@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xde7(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
jne    12b1 <main+0x121>
lea    0xdd1(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x38(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x3c(%rbp),%eax
cmp    %ecx,%eax
jge    139e <main+0x20e>
movl   $0x0,-0x34(%rbp)
cmpl   $0x8,-0x34(%rbp)
jge    1308 <main+0x178>
mov    -0x20(%rbp),%rdi
call   10b0 <getc@plt>
mov    %al,%cl
movslq -0x34(%rbp),%rax
mov    %cl,-0x18(%rbp,%rax,1)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12dd <main+0x14d>
movl   $0x0,-0x34(%rbp)
cmpl   $0x8,-0x34(%rbp)
jge    1358 <main+0x1c8>
movslq -0x34(%rbp),%rax
movzbl -0x18(%rbp,%rax,1),%eax
mov    %eax,-0x40(%rbp)
mov    -0x20(%rbp),%rdi
call   10b0 <getc@plt>
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x40(%rbp),%eax
movzbl %cl,%ecx
add    %ecx,%eax
mov    %al,%cl
movslq -0x34(%rbp),%rax
mov    %cl,-0x18(%rbp,%rax,1)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    130f <main+0x17f>
movl   $0x0,-0x34(%rbp)
cmpl   $0x8,-0x34(%rbp)
jge    138b <main+0x1fb>
movslq -0x34(%rbp),%rax
mov    -0x18(%rbp,%rax,1),%al
mov    -0x28(%rbp),%rsi
movzbl %al,%edi
call   1050 <fputc@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    135f <main+0x1cf>
jmp    1390 <main+0x200>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    12b8 <main+0x128>
mov    -0x20(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x28(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rsi,%r14
add    $0xfffffffb,%edi
cmp    $0xfffffffd,%edi
jbe    1411 <main+0x281>
mov    0x8(%r14),%rdi
lea    0xe7c(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,0x8(%rsp)
test   %rax,%rax
je     1433 <main+0x2a3>
mov    0x2e16(%rip),%rax
mov    (%rax),%edx
mov    0x8(%rsp),%rdi
xor    %esi,%esi
call   1080 <fseek@plt>
test   %rax,%rax
jne    143c <main+0x2ac>
mov    0x8(%rsp),%rbx
mov    %rbx,%rdi
call   1070 <ftell@plt>
mov    %eax,%ebp
mov    0x2dd9(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1080 <fseek@plt>
mov    0x10(%r14),%rdi
lea    0xe21(%rip),%rsi
call   1090 <fopen@plt>
test   %rax,%rax
je     145c <main+0x2cc>
mov    %rax,%rbx
lea    0xf(%rbp),%eax
test   %ebp,%ebp
cmovns %ebp,%eax
cmp    $0x10,%ebp
jl     13ee <main+0x25e>
sar    $0x4,%eax
mov    %rbx,0x10(%rsp)
mov    %eax,0x34(%rsp)
mov    0x8(%rsp),%rbx
mov    %rbx,%rdi
call   10b0 <getc@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   10b0 <getc@plt>
mov    %eax,%r14d
mov    %rbx,%rdi
call   10b0 <getc@plt>
mov    %eax,%r15d
mov    %rbx,%rdi
call   10b0 <getc@plt>
mov    %eax,0x1c(%rsp)
mov    %rbx,%rdi
call   10b0 <getc@plt>
mov    %eax,%r13d
mov    %rbx,%rdi
call   10b0 <getc@plt>
mov    %eax,%r12d
mov    %rbx,%rdi
call   10b0 <getc@plt>
mov    %eax,0x2c(%rsp)
mov    %rbx,%rdi
call   10b0 <getc@plt>
mov    %eax,0x30(%rsp)
mov    %rbx,%rdi
call   10b0 <getc@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
shr    $0x4,%ecx
add    %bpl,%cl
mov    %ecx,0x28(%rsp)
mov    %rbx,%rdi
call   10b0 <getc@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
shr    $0x4,%ecx
add    %r14b,%cl
mov    %ecx,0x24(%rsp)
mov    %rbx,%rdi
call   10b0 <getc@plt>
lea    0xf(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
shr    $0x4,%ecx
add    %r15b,%cl
mov    %ecx,0x20(%rsp)
mov    %rbx,%rdi
call   10b0 <getc@plt>
lea    0xf(%rax),%r15d
test   %eax,%eax
cmovns %eax,%r15d
shr    $0x4,%r15d
add    0x1c(%rsp),%r15b
mov    %rbx,%rdi
call   10b0 <getc@plt>
lea    0xf(%rax),%r14d
test   %eax,%eax
cmovns %eax,%r14d
shr    $0x4,%r14d
add    %r13b,%r14b
mov    %rbx,%rdi
call   10b0 <getc@plt>
lea    0xf(%rax),%r13d
test   %eax,%eax
cmovns %eax,%r13d
shr    $0x4,%r13d
add    %r12b,%r13b
mov    %rbx,%rdi
call   10b0 <getc@plt>
lea    0xf(%rax),%r12d
test   %eax,%eax
cmovns %eax,%r12d
shr    $0x4,%r12d
add    0x2c(%rsp),%r12b
mov    %rbx,%rdi
call   10b0 <getc@plt>
lea    0xf(%rax),%ebp
test   %eax,%eax
cmovns %eax,%ebp
shr    $0x4,%ebp
add    0x30(%rsp),%bpl
movzbl 0x28(%rsp),%edi
mov    0x10(%rsp),%rsi
call   1050 <fputc@plt>
movzbl 0x24(%rsp),%edi
mov    0x10(%rsp),%rsi
call   1050 <fputc@plt>
movzbl 0x20(%rsp),%edi
mov    0x10(%rsp),%rsi
call   1050 <fputc@plt>
movzbl %r15b,%edi
mov    0x10(%rsp),%rsi
call   1050 <fputc@plt>
movzbl %r14b,%edi
mov    0x10(%rsp),%rbx
mov    %rbx,%rsi
call   1050 <fputc@plt>
movzbl %r13b,%edi
mov    %rbx,%rsi
call   1050 <fputc@plt>
movzbl %r12b,%edi
mov    %rbx,%rsi
call   1050 <fputc@plt>
movzbl %bpl,%edi
mov    %rbx,%rsi
call   1050 <fputc@plt>
mov    0x34(%rsp),%eax
add    $0xffffffff,%eax
jne    1240 <main+0xb0>
mov    0x8(%rsp),%rdi
call   1040 <fclose@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2bb8(%rip),%rax
mov    (%rax),%edi
mov    (%r14),%rdx
lea    0xbdc(%rip),%rsi
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
lea    0xc38(%rip),%rdi
jmp    1463 <main+0x2d3>
lea    0xc0f(%rip),%rdi
call   1030 <puts@plt>
mov    0x8(%rsp),%rdi
call   1040 <fclose@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
lea    0xbd8(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [52 x i8] c"Usage: %s [input 4 bit font] [output packed font] \0A\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [23 x i8] c"Can't open input file\0A\00"
@SEEK_END = global i32 0
@.str.3 = [33 x i8] c"Couldn't determine size of file\0A\00"
@SEEK_SET = global i32 0
@.str.4 = [4 x i8] c"w+b\00"
@.str.5 = [24 x i8] c"Can't open output file\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [8 x i8]
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = load i32, i32* %4
%14 = icmp slt i32 %13, 3
br i1 %14, label %18, label %15
15: ; preds = %2
%16 = load i32, i32* %4
%17 = icmp sgt i32 %16, 4
br i1 %17, label %18, label %25
18: ; preds = %15, %2
%19 = load i32, i32* @stdout
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 0
%22 = load i8*, i8** %21
%23 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0), i8* %22)
%24 = call i32 @exit(i32 1)
unreachable
25: ; preds = %15
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 1
%28 = load i8*, i8** %27
%29 = call i32* @fopen(i8* %28, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %29, i32** %7
%30 = icmp eq i32* %29, null
br i1 %30, label %31, label %34
31: ; preds = %25
%32 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%33 = call i32 @exit(i32 1)
unreachable
34: ; preds = %25
%35 = load i32*, i32** %7
%36 = load i32, i32* @SEEK_END
%37 = call i64 @fseek(i32* %35, i64 0, i32 %36)
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %44
39: ; preds = %34
%40 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%41 = load i32*, i32** %7
%42 = call i32 @fclose(i32* %41)
%43 = call i32 @exit(i32 1)
unreachable
44: ; preds = %34
%45 = load i32*, i32** %7
%46 = call i32 @ftell(i32* %45)
store i32 %46, i32* %12
%47 = load i32*, i32** %7
%48 = load i32, i32* @SEEK_SET
%49 = call i64 @fseek(i32* %47, i64 0, i32 %48)
%50 = load i8**, i8*** %5
%51 = getelementptr inbounds i8*, i8** %50, i64 2
%52 = load i8*, i8** %51
%53 = call i32* @fopen(i8* %52, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
store i32* %53, i32** %8
%54 = icmp eq i32* %53, null
br i1 %54, label %55, label %58
55: ; preds = %44
%56 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%57 = call i32 @exit(i32 1)
unreachable
58: ; preds = %44
store i32 0, i32* %9
br label %59
59: ; preds = %116, %58
%60 = load i32, i32* %9
%61 = load i32, i32* %12
%62 = sdiv i32 %61, 16
%63 = icmp slt i32 %60, %62
br i1 %63, label %64, label %119
64: ; preds = %59
store i32 0, i32* %11
br label %65
65: ; preds = %75, %64
%66 = load i32, i32* %11
%67 = icmp slt i32 %66, 8
br i1 %67, label %68, label %78
68: ; preds = %65
%69 = load i32*, i32** %7
%70 = call i32 @getc(i32* %69)
%71 = trunc i32 %70 to i8
%72 = load i32, i32* %11
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 %73
store i8 %71, i8* %74
br label %75
75: ; preds = %68
%76 = load i32, i32* %11
%77 = add nsw i32 %76, 1
store i32 %77, i32* %11
br label %65
78: ; preds = %65
store i32 0, i32* %11
br label %79
79: ; preds = %98, %78
%80 = load i32, i32* %11
%81 = icmp slt i32 %80, 8
br i1 %81, label %82, label %101
82: ; preds = %79
%83 = load i32, i32* %11
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 %84
%86 = load i8, i8* %85
%87 = zext i8 %86 to i32
%88 = load i32*, i32** %7
%89 = call i32 @getc(i32* %88)
%90 = sdiv i32 %89, 16
%91 = trunc i32 %90 to i8
%92 = zext i8 %91 to i32
%93 = add nsw i32 %87, %92
%94 = trunc i32 %93 to i8
%95 = load i32, i32* %11
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 %96
store i8 %94, i8* %97
br label %98
98: ; preds = %82
%99 = load i32, i32* %11
%100 = add nsw i32 %99, 1
store i32 %100, i32* %11
br label %79
101: ; preds = %79
store i32 0, i32* %11
br label %102
102: ; preds = %112, %101
%103 = load i32, i32* %11
%104 = icmp slt i32 %103, 8
br i1 %104, label %105, label %115
105: ; preds = %102
%106 = load i32, i32* %11
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 %107
%109 = load i8, i8* %108
%110 = load i32*, i32** %8
%111 = call i32 @fputc(i8 zeroext %109, i32* %110)
br label %112
112: ; preds = %105
%113 = load i32, i32* %11
%114 = add nsw i32 %113, 1
store i32 %114, i32* %11
br label %102
115: ; preds = %102
br label %116
116: ; preds = %115
%117 = load i32, i32* %9
%118 = add nsw i32 %117, 1
store i32 %118, i32* %9
br label %59
119: ; preds = %59
%120 = load i32*, i32** %7
%121 = call i32 @fclose(i32* %120)
%122 = load i32*, i32** %8
%123 = call i32 @fclose(i32* %122)
%124 = load i32, i32* %3
ret i32 %124
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [52 x i8] c"Usage: %s [input 4 bit font] [output packed font] \0A\00"
@.str.1 = [3 x i8] c"rb\00"
@SEEK_END = global i32 0
@SEEK_SET = global i32 0
@.str.4 = [4 x i8] c"w+b\00"
@str = [23 x i8] c"Can't open output file\00"
@str.6 = [32 x i8] c"Couldn't determine size of file\00"
@str.7 = [22 x i8] c"Can't open input file\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = add i32 %0, -5
%4 = icmp ult i32 %3, -2
br i1 %4, label %5, label %10
5: ; preds = %2
%6 = load i32, i32* @stdout
%7 = load i8*, i8** %1
%8 = tail call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = tail call i32 @exit(i32 1)
unreachable
10: ; preds = %2
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = tail call i32* @fopen(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%14 = icmp eq i32* %13, null
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.7, i64 0, i64 0))
%17 = tail call i32 @exit(i32 1)
unreachable
18: ; preds = %10
%19 = load i32, i32* @SEEK_END
%20 = tail call i64 @fseek(i32* %13, i64 0, i32 %19)
%21 = icmp eq i64 %20, 0
br i1 %21, label %26, label %22
22: ; preds = %18
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.6, i64 0, i64 0))
%24 = tail call i32 @fclose(i32* %13)
%25 = tail call i32 @exit(i32 1)
unreachable
26: ; preds = %18
%27 = tail call i32 @ftell(i32* %13)
%28 = load i32, i32* @SEEK_SET
%29 = tail call i64 @fseek(i32* %13, i64 0, i32 %28)
%30 = getelementptr inbounds i8*, i8** %1, i64 2
%31 = load i8*, i8** %30
%32 = tail call i32* @fopen(i8* %31, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%33 = icmp eq i32* %32, null
br i1 %33, label %37, label %34
34: ; preds = %26
%35 = sdiv i32 %27, 16
%36 = icmp sgt i32 %27, 15
br i1 %36, label %40, label %100
37: ; preds = %26
%38 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%39 = tail call i32 @exit(i32 1)
unreachable
40: ; preds = %34, %40
%41 = phi i32 [ %98, %40 ], [ 0, %34 ]
%42 = tail call i32 @getc(i32* %13)
%43 = trunc i32 %42 to i8
%44 = tail call i32 @getc(i32* %13)
%45 = trunc i32 %44 to i8
%46 = tail call i32 @getc(i32* %13)
%47 = trunc i32 %46 to i8
%48 = tail call i32 @getc(i32* %13)
%49 = trunc i32 %48 to i8
%50 = tail call i32 @getc(i32* %13)
%51 = trunc i32 %50 to i8
%52 = tail call i32 @getc(i32* %13)
%53 = trunc i32 %52 to i8
%54 = tail call i32 @getc(i32* %13)
%55 = trunc i32 %54 to i8
%56 = tail call i32 @getc(i32* %13)
%57 = trunc i32 %56 to i8
%58 = tail call i32 @getc(i32* %13)
%59 = sdiv i32 %58, 16
%60 = trunc i32 %59 to i8
%61 = add i8 %43, %60
%62 = tail call i32 @getc(i32* %13)
%63 = sdiv i32 %62, 16
%64 = trunc i32 %63 to i8
%65 = add i8 %45, %64
%66 = tail call i32 @getc(i32* %13)
%67 = sdiv i32 %66, 16
%68 = trunc i32 %67 to i8
%69 = add i8 %47, %68
%70 = tail call i32 @getc(i32* %13)
%71 = sdiv i32 %70, 16
%72 = trunc i32 %71 to i8
%73 = add i8 %49, %72
%74 = tail call i32 @getc(i32* %13)
%75 = sdiv i32 %74, 16
%76 = trunc i32 %75 to i8
%77 = add i8 %51, %76
%78 = tail call i32 @getc(i32* %13)
%79 = sdiv i32 %78, 16
%80 = trunc i32 %79 to i8
%81 = add i8 %53, %80
%82 = tail call i32 @getc(i32* %13)
%83 = sdiv i32 %82, 16
%84 = trunc i32 %83 to i8
%85 = add i8 %55, %84
%86 = tail call i32 @getc(i32* %13)
%87 = sdiv i32 %86, 16
%88 = trunc i32 %87 to i8
%89 = add i8 %57, %88
%90 = tail call i32 @fputc(i8 zeroext %61, i32* %32)
%91 = tail call i32 @fputc(i8 zeroext %65, i32* %32)
%92 = tail call i32 @fputc(i8 zeroext %69, i32* %32)
%93 = tail call i32 @fputc(i8 zeroext %73, i32* %32)
%94 = tail call i32 @fputc(i8 zeroext %77, i32* %32)
%95 = tail call i32 @fputc(i8 zeroext %81, i32* %32)
%96 = tail call i32 @fputc(i8 zeroext %85, i32* %32)
%97 = tail call i32 @fputc(i8 zeroext %89, i32* %32)
%98 = add nuw nsw i32 %41, 1
%99 = icmp eq i32 %98, %35
br i1 %99, label %100, label %40
100: ; preds = %40, %34
%101 = tail call i32 @fclose(i32* %13)
%102 = tail call i32 @fclose(i32* %32)
ret i32 0
}