#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 */
char EOF;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fatal();
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
unsigned long fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fputc(int, int /*<<< orphan*/ *);
scalar_t__ fseek(int /*<<< orphan*/ *, unsigned long, int /*<<< orphan*/);
unsigned long ftell(int /*<<< orphan*/ *);
char getc(int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ strcmp(char *, char *);
int main(int argc, char **argv) {
  FILE *inways;
  if (argc != 2)
    printf("Usage: %s font.ttf\n\nPublic Domain software by Tom 7. Use at your "
           "own risk.\n",
           argv[0]);
  else if (inways = fopen(argv[1], "rb+")) {
    int a, x;
    char type[5];
    type[4] = 0;
    fseek(inways, 12, 0);
    for (;;) {
      for (x = 0; x < 4; x++)
        if (EOF == (type[x] = getc(inways)))
          fatal();
      if (!strcmp(type, "OS/2")) {
        int length;
        unsigned long loc, fstype, sum = 0;
        loc = ftell(inways);
        for (x = 4; x--;)
          if (EOF == getc(inways))
            fatal();
        fstype = fgetc(inways) << 24;
        fstype |= fgetc(inways) << 16;
        fstype |= fgetc(inways) << 8;
        fstype |= fgetc(inways);
        length = fgetc(inways) << 24;
        length |= fgetc(inways) << 16;
        length |= fgetc(inways) << 8;
        length |= fgetc(inways);
        if (fseek(inways, fstype + 8, 0))
          fatal();
        fputc(0, inways);
        fputc(0, inways);
        fseek(inways, fstype, 0);
        for (x = length; x--;)
          sum += fgetc(inways);
        fseek(inways, loc, 0);
        fputc(sum >> 24, inways);
        fputc(255 & (sum >> 16), inways);
        fputc(255 & (sum >> 8), inways);
        fputc(255 & sum, inways);
        fclose(inways);
        exit(0);
      }
      for (x = 12; x--;)
        if (EOF == getc(inways))
          fatal();
    }
  } else
    printf("I wasn't able to open the file %s.\n", argv[1]);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     11e8 <main+0x38>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe22(%rip),%rdi
call   1040 <printf@plt>
jmp    14f5 <main+0x345>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe55(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
je     14dc <main+0x32c>
movb   $0x0,-0x21(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0xc,%esi
xor    %edx,%edx
call   1090 <fseek@plt>
movl   $0x0,-0x20(%rbp)
cmpl   $0x4,-0x20(%rbp)
jge    1277 <main+0xc7>
mov    0x2db2(%rip),%rax
movsbl (%rax),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x18(%rbp),%rdi
call   10d0 <getc@plt>
mov    %al,%cl
mov    -0x4c(%rbp),%eax
movslq -0x20(%rbp),%rdx
mov    %cl,-0x25(%rbp,%rdx,1)
movsbl %cl,%ecx
cmp    %ecx,%eax
jne    1264 <main+0xb4>
mov    $0x0,%al
call   10c0 <fatal@plt>
jmp    1269 <main+0xb9>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1225 <main+0x75>
lea    -0x25(%rbp),%rdi
lea    0xdce(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    148a <main+0x2da>
movq   $0x0,-0x48(%rbp)
mov    -0x18(%rbp),%rdi
call   1080 <ftell@plt>
mov    %rax,-0x38(%rbp)
movl   $0x4,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x20(%rbp)
cmp    $0x0,%eax
je     12f2 <main+0x142>
mov    0x2d21(%rip),%rax
movsbl (%rax),%eax
mov    %eax,-0x50(%rbp)
mov    -0x18(%rbp),%rdi
call   10d0 <getc@plt>
mov    %al,%cl
mov    -0x50(%rbp),%eax
movsbl %cl,%ecx
cmp    %ecx,%eax
jne    12ed <main+0x13d>
mov    $0x0,%al
call   10c0 <fatal@plt>
jmp    12ac <main+0xfc>
mov    -0x18(%rbp),%rdi
call   1050 <fgetc@plt>
shl    $0x18,%rax
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rdi
call   1050 <fgetc@plt>
shl    $0x10,%rax
or     -0x40(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rdi
call   1050 <fgetc@plt>
shl    $0x8,%rax
or     -0x40(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rdi
call   1050 <fgetc@plt>
or     -0x40(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rdi
call   1050 <fgetc@plt>
shl    $0x18,%rax
mov    %eax,-0x2c(%rbp)
mov    -0x18(%rbp),%rdi
call   1050 <fgetc@plt>
mov    %rax,%rcx
shl    $0x10,%rcx
movslq -0x2c(%rbp),%rax
or     %rcx,%rax
mov    %eax,-0x2c(%rbp)
mov    -0x18(%rbp),%rdi
call   1050 <fgetc@plt>
mov    %rax,%rcx
shl    $0x8,%rcx
movslq -0x2c(%rbp),%rax
or     %rcx,%rax
mov    %eax,-0x2c(%rbp)
mov    -0x18(%rbp),%rdi
call   1050 <fgetc@plt>
mov    %rax,%rcx
movslq -0x2c(%rbp),%rax
or     %rcx,%rax
mov    %eax,-0x2c(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x40(%rbp),%rsi
add    $0x8,%rsi
xor    %edx,%edx
call   1090 <fseek@plt>
cmp    $0x0,%rax
je     13bc <main+0x20c>
mov    $0x0,%al
call   10c0 <fatal@plt>
mov    -0x18(%rbp),%rsi
xor    %edi,%edi
call   1060 <fputc@plt>
mov    -0x18(%rbp),%rsi
xor    %edi,%edi
call   1060 <fputc@plt>
mov    -0x18(%rbp),%rdi
mov    -0x40(%rbp),%rsi
xor    %edx,%edx
call   1090 <fseek@plt>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x20(%rbp)
cmp    $0x0,%eax
je     1411 <main+0x261>
mov    -0x18(%rbp),%rdi
call   1050 <fgetc@plt>
add    -0x48(%rbp),%rax
mov    %rax,-0x48(%rbp)
jmp    13e7 <main+0x237>
mov    -0x18(%rbp),%rdi
mov    -0x38(%rbp),%rsi
xor    %edx,%edx
call   1090 <fseek@plt>
mov    -0x48(%rbp),%rax
shr    $0x18,%rax
mov    %eax,%edi
mov    -0x18(%rbp),%rsi
call   1060 <fputc@plt>
mov    -0x48(%rbp),%rax
shr    $0x10,%rax
and    $0xff,%rax
mov    %eax,%edi
mov    -0x18(%rbp),%rsi
call   1060 <fputc@plt>
mov    -0x48(%rbp),%rax
shr    $0x8,%rax
and    $0xff,%rax
mov    %eax,%edi
mov    -0x18(%rbp),%rsi
call   1060 <fputc@plt>
mov    -0x48(%rbp),%rax
and    $0xff,%rax
mov    %eax,%edi
mov    -0x18(%rbp),%rsi
call   1060 <fputc@plt>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
xor    %edi,%edi
call   10b0 <exit@plt>
movl   $0xc,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x20(%rbp)
cmp    $0x0,%eax
je     14d7 <main+0x327>
mov    0x2b3c(%rip),%rax
movsbl (%rax),%eax
mov    %eax,-0x54(%rbp)
mov    -0x18(%rbp),%rdi
call   10d0 <getc@plt>
mov    %al,%cl
mov    -0x54(%rbp),%eax
movsbl %cl,%ecx
cmp    %ecx,%eax
jne    14d2 <main+0x322>
mov    $0x0,%al
call   10c0 <fatal@plt>
jmp    1491 <main+0x2e1>
jmp    121e <main+0x6e>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xb6a(%rip),%rdi
call   1040 <printf@plt>
jmp    14f5 <main+0x345>
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%rbx
cmp    $0x2,%edi
jne    11d5 <main+0x35>
mov    0x8(%rbx),%rdi
lea    0xe8e(%rip),%rsi
call   1090 <fopen@plt>
test   %rax,%rax
jne    11f5 <main+0x55>
add    $0x8,%rbx
lea    0xe82(%rip),%rdi
jmp    11dc <main+0x3c>
lea    0xe24(%rip),%rdi
mov    (%rbx),%rsi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %rax,%r13
movb   $0x0,0x7(%rsp)
mov    $0xc,%esi
mov    %rax,%rdi
xor    %edx,%edx
call   1080 <fseek@plt>
mov    0x2dd5(%rip),%rbp
mov    $0x322f534f,%r14d
nopl   0x0(%rax)
movzbl 0x0(%rbp),%ebx
mov    %r13,%rdi
call   10c0 <getc@plt>
mov    %al,0x3(%rsp)
cmp    %al,%bl
jne    123b <main+0x9b>
xor    %eax,%eax
call   10b0 <fatal@plt>
movzbl 0x0(%rbp),%ebx
mov    %r13,%rdi
call   10c0 <getc@plt>
mov    %al,0x4(%rsp)
cmp    %al,%bl
jne    1256 <main+0xb6>
xor    %eax,%eax
call   10b0 <fatal@plt>
movzbl 0x0(%rbp),%ebx
mov    %r13,%rdi
call   10c0 <getc@plt>
mov    %al,0x5(%rsp)
cmp    %al,%bl
jne    1271 <main+0xd1>
xor    %eax,%eax
call   10b0 <fatal@plt>
movzbl 0x0(%rbp),%ebx
mov    %r13,%rdi
call   10c0 <getc@plt>
mov    %al,0x6(%rsp)
cmp    %al,%bl
jne    128c <main+0xec>
xor    %eax,%eax
call   10b0 <fatal@plt>
mov    0x3(%rsp),%eax
xor    %r14d,%eax
movzbl 0x7(%rsp),%ecx
or     %eax,%ecx
je     13bd <main+0x21d>
movzbl 0x0(%rbp),%ebx
mov    %r13,%rdi
call   10c0 <getc@plt>
cmp    %al,%bl
jne    12b7 <main+0x117>
xor    %eax,%eax
call   10b0 <fatal@plt>
movzbl 0x0(%rbp),%ebx
mov    %r13,%rdi
call   10c0 <getc@plt>
cmp    %al,%bl
jne    12ce <main+0x12e>
xor    %eax,%eax
call   10b0 <fatal@plt>
movzbl 0x0(%rbp),%ebx
mov    %r13,%rdi
call   10c0 <getc@plt>
cmp    %al,%bl
jne    12e5 <main+0x145>
xor    %eax,%eax
call   10b0 <fatal@plt>
movzbl 0x0(%rbp),%ebx
mov    %r13,%rdi
call   10c0 <getc@plt>
cmp    %al,%bl
jne    12fc <main+0x15c>
xor    %eax,%eax
call   10b0 <fatal@plt>
movzbl 0x0(%rbp),%ebx
mov    %r13,%rdi
call   10c0 <getc@plt>
cmp    %al,%bl
jne    1313 <main+0x173>
xor    %eax,%eax
call   10b0 <fatal@plt>
movzbl 0x0(%rbp),%ebx
mov    %r13,%rdi
call   10c0 <getc@plt>
cmp    %al,%bl
jne    132a <main+0x18a>
xor    %eax,%eax
call   10b0 <fatal@plt>
movzbl 0x0(%rbp),%ebx
mov    %r13,%rdi
call   10c0 <getc@plt>
cmp    %al,%bl
jne    1341 <main+0x1a1>
xor    %eax,%eax
call   10b0 <fatal@plt>
movzbl 0x0(%rbp),%ebx
mov    %r13,%rdi
call   10c0 <getc@plt>
cmp    %al,%bl
jne    1358 <main+0x1b8>
xor    %eax,%eax
call   10b0 <fatal@plt>
movzbl 0x0(%rbp),%ebx
mov    %r13,%rdi
call   10c0 <getc@plt>
cmp    %al,%bl
jne    136f <main+0x1cf>
xor    %eax,%eax
call   10b0 <fatal@plt>
movzbl 0x0(%rbp),%ebx
mov    %r13,%rdi
call   10c0 <getc@plt>
cmp    %al,%bl
jne    1386 <main+0x1e6>
xor    %eax,%eax
call   10b0 <fatal@plt>
movzbl 0x0(%rbp),%ebx
mov    %r13,%rdi
call   10c0 <getc@plt>
cmp    %al,%bl
jne    139d <main+0x1fd>
xor    %eax,%eax
call   10b0 <fatal@plt>
movzbl 0x0(%rbp),%ebx
mov    %r13,%rdi
call   10c0 <getc@plt>
cmp    %al,%bl
jne    1220 <main+0x80>
xor    %eax,%eax
call   10b0 <fatal@plt>
jmp    1220 <main+0x80>
mov    %r13,%rdi
call   1070 <ftell@plt>
mov    %rax,%r14
mov    0x0(%rbp),%bl
mov    %r13,%rdi
call   10c0 <getc@plt>
cmp    %al,%bl
jne    13de <main+0x23e>
xor    %eax,%eax
call   10b0 <fatal@plt>
mov    0x0(%rbp),%bl
mov    %r13,%rdi
call   10c0 <getc@plt>
cmp    %al,%bl
jne    13f4 <main+0x254>
xor    %eax,%eax
call   10b0 <fatal@plt>
mov    0x0(%rbp),%bl
mov    %r13,%rdi
call   10c0 <getc@plt>
cmp    %al,%bl
jne    140a <main+0x26a>
xor    %eax,%eax
call   10b0 <fatal@plt>
mov    0x0(%rbp),%bl
mov    %r13,%rdi
call   10c0 <getc@plt>
cmp    %al,%bl
jne    1420 <main+0x280>
xor    %eax,%eax
call   10b0 <fatal@plt>
mov    %r13,%rdi
call   1050 <fgetc@plt>
mov    %rax,%r15
shl    $0x18,%r15
mov    %r13,%rdi
call   1050 <fgetc@plt>
mov    %rax,%rbx
shl    $0x10,%rbx
or     %r15,%rbx
mov    %r13,%rdi
call   1050 <fgetc@plt>
mov    %rax,%r12
shl    $0x8,%r12
mov    %r13,%rdi
call   1050 <fgetc@plt>
mov    %rax,%r15
or     %r12,%r15
or     %rbx,%r15
mov    %r13,%rdi
call   1050 <fgetc@plt>
mov    %rax,%r12
shl    $0x38,%r12
mov    %r13,%rdi
call   1050 <fgetc@plt>
mov    %rax,%rbx
shl    $0x30,%rbx
or     %r12,%rbx
mov    %r13,%rdi
call   1050 <fgetc@plt>
mov    %rax,%rbp
shl    $0x28,%rbp
or     %rbx,%rbp
mov    %r13,%rdi
call   1050 <fgetc@plt>
mov    %rax,%r12
shr    $0x20,%rbp
or     %ebp,%r12d
lea    0x8(%r15),%rsi
mov    %r13,%rdi
xor    %edx,%edx
call   1080 <fseek@plt>
test   %rax,%rax
je     14c0 <main+0x320>
xor    %eax,%eax
call   10b0 <fatal@plt>
xor    %ebx,%ebx
xor    %edi,%edi
mov    %r13,%rsi
call   1060 <fputc@plt>
xor    %edi,%edi
mov    %r13,%rsi
call   1060 <fputc@plt>
mov    %r13,%rdi
mov    %r15,%rsi
xor    %edx,%edx
call   1080 <fseek@plt>
test   %r12d,%r12d
je     1501 <main+0x361>
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
mov    %r13,%rdi
call   1050 <fgetc@plt>
add    %rax,%rbx
add    $0xffffffff,%r12d
jne    14f0 <main+0x350>
mov    %r13,%rdi
mov    %r14,%rsi
xor    %edx,%edx
call   1080 <fseek@plt>
mov    %rbx,%rdi
shr    $0x18,%rdi
mov    %r13,%rsi
call   1060 <fputc@plt>
mov    %ebx,%eax
shr    $0x10,%eax
movzbl %al,%edi
mov    %r13,%rsi
call   1060 <fputc@plt>
movzbl %bh,%edi
mov    %r13,%rsi
call   1060 <fputc@plt>
movzbl %bl,%edi
mov    %r13,%rsi
call   1060 <fputc@plt>
mov    %r13,%rdi
call   1030 <fclose@plt>
xor    %edi,%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@.str = [76 x i8] c"Usage: %s font.ttf\0A\0APublic Domain software by Tom 7. Use at your own risk.\0A\00"
@.str.1 = [4 x i8] c"rb+\00"
@EOF = global i8 0
@.str.2 = [5 x i8] c"OS/2\00"
@.str.3 = [36 x i8] c"I wasn't able to open the file %s.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i32
%9 = alloca [5 x i8]
%10 = alloca i32
%11 = alloca i64
%12 = alloca i64
%13 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = load i32, i32* %4
%15 = icmp ne i32 %14, 2
br i1 %15, label %16, label %21
16: ; preds = %2
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 0
%19 = load i8*, i8** %18
%20 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str, i64 0, i64 0), i8* %19)
br label %190
21: ; preds = %2
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 1
%24 = load i8*, i8** %23
%25 = call i32* @fopen(i8* %24, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
store i32* %25, i32** %6
%26 = icmp ne i32* %25, null
br i1 %26, label %27, label %184
27: ; preds = %21
%28 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 4
store i8 0, i8* %28
%29 = load i32*, i32** %6
%30 = call i64 @fseek(i32* %29, i64 12, i32 0)
br label %31
31: ; preds = %183, %27
store i32 0, i32* %8
br label %32
32: ; preds = %48, %31
%33 = load i32, i32* %8
%34 = icmp slt i32 %33, 4
br i1 %34, label %35, label %51
35: ; preds = %32
%36 = load i8, i8* @EOF
%37 = sext i8 %36 to i32
%38 = load i32*, i32** %6
%39 = call signext i8 @getc(i32* %38)
%40 = load i32, i32* %8
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 %41
store i8 %39, i8* %42
%43 = sext i8 %39 to i32
%44 = icmp eq i32 %37, %43
br i1 %44, label %45, label %47
45: ; preds = %35
%46 = call i32 (...) @fatal()
br label %47
47: ; preds = %45, %35
br label %48
48: ; preds = %47
%49 = load i32, i32* %8
%50 = add nsw i32 %49, 1
store i32 %50, i32* %8
br label %32
51: ; preds = %32
%52 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 0
%53 = call i32 @strcmp(i8* %52, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%54 = icmp ne i32 %53, 0
br i1 %54, label %168, label %55
55: ; preds = %51
store i64 0, i64* %13
%56 = load i32*, i32** %6
%57 = call i64 @ftell(i32* %56)
store i64 %57, i64* %11
store i32 4, i32* %8
br label %58
58: ; preds = %71, %55
%59 = load i32, i32* %8
%60 = add nsw i32 %59, -1
store i32 %60, i32* %8
%61 = icmp ne i32 %59, 0
br i1 %61, label %62, label %72
62: ; preds = %58
%63 = load i8, i8* @EOF
%64 = sext i8 %63 to i32
%65 = load i32*, i32** %6
%66 = call signext i8 @getc(i32* %65)
%67 = sext i8 %66 to i32
%68 = icmp eq i32 %64, %67
br i1 %68, label %69, label %71
69: ; preds = %62
%70 = call i32 (...) @fatal()
br label %71
71: ; preds = %69, %62
br label %58
72: ; preds = %58
%73 = load i32*, i32** %6
%74 = call i64 @fgetc(i32* %73)
%75 = shl i64 %74, 24
store i64 %75, i64* %12
%76 = load i32*, i32** %6
%77 = call i64 @fgetc(i32* %76)
%78 = shl i64 %77, 16
%79 = load i64, i64* %12
%80 = or i64 %79, %78
store i64 %80, i64* %12
%81 = load i32*, i32** %6
%82 = call i64 @fgetc(i32* %81)
%83 = shl i64 %82, 8
%84 = load i64, i64* %12
%85 = or i64 %84, %83
store i64 %85, i64* %12
%86 = load i32*, i32** %6
%87 = call i64 @fgetc(i32* %86)
%88 = load i64, i64* %12
%89 = or i64 %88, %87
store i64 %89, i64* %12
%90 = load i32*, i32** %6
%91 = call i64 @fgetc(i32* %90)
%92 = shl i64 %91, 24
%93 = trunc i64 %92 to i32
store i32 %93, i32* %10
%94 = load i32*, i32** %6
%95 = call i64 @fgetc(i32* %94)
%96 = shl i64 %95, 16
%97 = load i32, i32* %10
%98 = sext i32 %97 to i64
%99 = or i64 %98, %96
%100 = trunc i64 %99 to i32
store i32 %100, i32* %10
%101 = load i32*, i32** %6
%102 = call i64 @fgetc(i32* %101)
%103 = shl i64 %102, 8
%104 = load i32, i32* %10
%105 = sext i32 %104 to i64
%106 = or i64 %105, %103
%107 = trunc i64 %106 to i32
store i32 %107, i32* %10
%108 = load i32*, i32** %6
%109 = call i64 @fgetc(i32* %108)
%110 = load i32, i32* %10
%111 = sext i32 %110 to i64
%112 = or i64 %111, %109
%113 = trunc i64 %112 to i32
store i32 %113, i32* %10
%114 = load i32*, i32** %6
%115 = load i64, i64* %12
%116 = add i64 %115, 8
%117 = call i64 @fseek(i32* %114, i64 %116, i32 0)
%118 = icmp ne i64 %117, 0
br i1 %118, label %119, label %121
119: ; preds = %72
%120 = call i32 (...) @fatal()
br label %121
121: ; preds = %119, %72
%122 = load i32*, i32** %6
%123 = call i32 @fputc(i32 0, i32* %122)
%124 = load i32*, i32** %6
%125 = call i32 @fputc(i32 0, i32* %124)
%126 = load i32*, i32** %6
%127 = load i64, i64* %12
%128 = call i64 @fseek(i32* %126, i64 %127, i32 0)
%129 = load i32, i32* %10
store i32 %129, i32* %8
br label %130
130: ; preds = %134, %121
%131 = load i32, i32* %8
%132 = add nsw i32 %131, -1
store i32 %132, i32* %8
%133 = icmp ne i32 %131, 0
br i1 %133, label %134, label %139
134: ; preds = %130
%135 = load i32*, i32** %6
%136 = call i64 @fgetc(i32* %135)
%137 = load i64, i64* %13
%138 = add i64 %137, %136
store i64 %138, i64* %13
br label %130
139: ; preds = %130
%140 = load i32*, i32** %6
%141 = load i64, i64* %11
%142 = call i64 @fseek(i32* %140, i64 %141, i32 0)
%143 = load i64, i64* %13
%144 = lshr i64 %143, 24
%145 = trunc i64 %144 to i32
%146 = load i32*, i32** %6
%147 = call i32 @fputc(i32 %145, i32* %146)
%148 = load i64, i64* %13
%149 = lshr i64 %148, 16
%150 = and i64 255, %149
%151 = trunc i64 %150 to i32
%152 = load i32*, i32** %6
%153 = call i32 @fputc(i32 %151, i32* %152)
%154 = load i64, i64* %13
%155 = lshr i64 %154, 8
%156 = and i64 255, %155
%157 = trunc i64 %156 to i32
%158 = load i32*, i32** %6
%159 = call i32 @fputc(i32 %157, i32* %158)
%160 = load i64, i64* %13
%161 = and i64 255, %160
%162 = trunc i64 %161 to i32
%163 = load i32*, i32** %6
%164 = call i32 @fputc(i32 %162, i32* %163)
%165 = load i32*, i32** %6
%166 = call i32 @fclose(i32* %165)
%167 = call i32 @exit(i32 0)
unreachable
168: ; preds = %51
store i32 12, i32* %8
br label %169
169: ; preds = %182, %168
%170 = load i32, i32* %8
%171 = add nsw i32 %170, -1
store i32 %171, i32* %8
%172 = icmp ne i32 %170, 0
br i1 %172, label %173, label %183
173: ; preds = %169
%174 = load i8, i8* @EOF
%175 = sext i8 %174 to i32
%176 = load i32*, i32** %6
%177 = call signext i8 @getc(i32* %176)
%178 = sext i8 %177 to i32
%179 = icmp eq i32 %175, %178
br i1 %179, label %180, label %182
180: ; preds = %173
%181 = call i32 (...) @fatal()
br label %182
182: ; preds = %180, %173
br label %169
183: ; preds = %169
br label %31
184: ; preds = %21
%185 = load i8**, i8*** %5
%186 = getelementptr inbounds i8*, i8** %185, i64 1
%187 = load i8*, i8** %186
%188 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i8* %187)
br label %189
189: ; preds = %184
br label %190
190: ; preds = %189, %16
%191 = load i32, i32* %3
ret i32 %191
}

LLVM IR (-O2):
@.str = [76 x i8] c"Usage: %s font.ttf\0A\0APublic Domain software by Tom 7. Use at your own risk.\0A\00"
@.str.1 = [4 x i8] c"rb+\00"
@EOF = global i8 0
@.str.2 = [5 x i8] c"OS/2\00"
@.str.3 = [36 x i8] c"I wasn't able to open the file %s.\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [5 x i8]
%4 = icmp eq i32 %0, 2
br i1 %4, label %5, label %199
5: ; preds = %2
%6 = getelementptr inbounds i8*, i8** %1, i64 1
%7 = load i8*, i8** %6
%8 = tail call i32* @fopen(i8* %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%9 = icmp eq i32* %8, null
br i1 %9, label %199, label %10
10: ; preds = %5
%11 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%12 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 4
store i8 0, i8* %12
%13 = tail call i64 @fseek(i32* %8, i64 12, i32 0)
%14 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 1
%15 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 2
%16 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 3
br label %17
17: ; preds = %198, %10
%18 = load i8, i8* @EOF
%19 = tail call signext i8 @getc(i32* %8)
store i8 %19, i8* %11
%20 = icmp eq i8 %18, %19
br i1 %20, label %21, label %23
21: ; preds = %17
%22 = tail call i32 (...) @fatal()
br label %23
23: ; preds = %17, %21
%24 = load i8, i8* @EOF
%25 = tail call signext i8 @getc(i32* %8)
store i8 %25, i8* %14
%26 = icmp eq i8 %24, %25
br i1 %26, label %27, label %29
27: ; preds = %23
%28 = tail call i32 (...) @fatal()
br label %29
29: ; preds = %27, %23
%30 = load i8, i8* @EOF
%31 = tail call signext i8 @getc(i32* %8)
store i8 %31, i8* %15
%32 = icmp eq i8 %30, %31
br i1 %32, label %33, label %35
33: ; preds = %29
%34 = tail call i32 (...) @fatal()
br label %35
35: ; preds = %33, %29
%36 = load i8, i8* @EOF
%37 = tail call signext i8 @getc(i32* %8)
store i8 %37, i8* %16
%38 = icmp eq i8 %36, %37
br i1 %38, label %39, label %41
39: ; preds = %35
%40 = tail call i32 (...) @fatal()
br label %41
41: ; preds = %39, %35
%42 = call i32 @bcmp(i8* dereferenceable(5) %11, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i64 5)
%43 = icmp eq i32 %42, 0
br i1 %43, label %48, label %44
44: ; preds = %41
%45 = load i8, i8* @EOF
%46 = tail call signext i8 @getc(i32* %8)
%47 = icmp eq i8 %45, %46
br i1 %47, label %130, label %132
48: ; preds = %41
%49 = tail call i64 @ftell(i32* %8)
%50 = load i8, i8* @EOF
%51 = tail call signext i8 @getc(i32* %8)
%52 = icmp eq i8 %50, %51
br i1 %52, label %53, label %55
53: ; preds = %48
%54 = tail call i32 (...) @fatal()
br label %55
55: ; preds = %53, %48
%56 = load i8, i8* @EOF
%57 = tail call signext i8 @getc(i32* %8)
%58 = icmp eq i8 %56, %57
br i1 %58, label %59, label %61
59: ; preds = %55
%60 = tail call i32 (...) @fatal()
br label %61
61: ; preds = %59, %55
%62 = load i8, i8* @EOF
%63 = tail call signext i8 @getc(i32* %8)
%64 = icmp eq i8 %62, %63
br i1 %64, label %65, label %67
65: ; preds = %61
%66 = tail call i32 (...) @fatal()
br label %67
67: ; preds = %65, %61
%68 = load i8, i8* @EOF
%69 = tail call signext i8 @getc(i32* %8)
%70 = icmp eq i8 %68, %69
br i1 %70, label %71, label %73
71: ; preds = %67
%72 = tail call i32 (...) @fatal()
br label %73
73: ; preds = %71, %67
%74 = tail call i64 @fgetc(i32* %8)
%75 = shl i64 %74, 24
%76 = tail call i64 @fgetc(i32* %8)
%77 = shl i64 %76, 16
%78 = or i64 %77, %75
%79 = tail call i64 @fgetc(i32* %8)
%80 = shl i64 %79, 8
%81 = or i64 %78, %80
%82 = tail call i64 @fgetc(i32* %8)
%83 = or i64 %81, %82
%84 = tail call i64 @fgetc(i32* %8)
%85 = shl i64 %84, 56
%86 = tail call i64 @fgetc(i32* %8)
%87 = shl i64 %86, 48
%88 = or i64 %87, %85
%89 = tail call i64 @fgetc(i32* %8)
%90 = shl i64 %89, 40
%91 = or i64 %88, %90
%92 = tail call i64 @fgetc(i32* %8)
%93 = lshr exact i64 %91, 32
%94 = or i64 %93, %92
%95 = trunc i64 %94 to i32
%96 = add i64 %83, 8
%97 = tail call i64 @fseek(i32* %8, i64 %96, i32 0)
%98 = icmp eq i64 %97, 0
br i1 %98, label %101, label %99
99: ; preds = %73
%100 = tail call i32 (...) @fatal()
br label %101
101: ; preds = %99, %73
%102 = tail call i32 @fputc(i32 0, i32* %8)
%103 = tail call i32 @fputc(i32 0, i32* %8)
%104 = tail call i64 @fseek(i32* %8, i64 %83, i32 0)
%105 = icmp eq i32 %95, 0
br i1 %105, label %113, label %106
106: ; preds = %101, %106
%107 = phi i64 [ %111, %106 ], [ 0, %101 ]
%108 = phi i32 [ %109, %106 ], [ %95, %101 ]
%109 = add nsw i32 %108, -1
%110 = tail call i64 @fgetc(i32* %8)
%111 = add i64 %110, %107
%112 = icmp eq i32 %109, 0
br i1 %112, label %113, label %106
113: ; preds = %106, %101
%114 = phi i64 [ 0, %101 ], [ %111, %106 ]
%115 = tail call i64 @fseek(i32* %8, i64 %49, i32 0)
%116 = lshr i64 %114, 24
%117 = trunc i64 %116 to i32
%118 = tail call i32 @fputc(i32 %117, i32* %8)
%119 = trunc i64 %114 to i32
%120 = lshr i32 %119, 16
%121 = and i32 %120, 255
%122 = tail call i32 @fputc(i32 %121, i32* %8)
%123 = lshr i32 %119, 8
%124 = and i32 %123, 255
%125 = tail call i32 @fputc(i32 %124, i32* %8)
%126 = and i32 %119, 255
%127 = tail call i32 @fputc(i32 %126, i32* %8)
%128 = tail call i32 @fclose(i32* %8)
%129 = tail call i32 @exit(i32 0)
unreachable
130: ; preds = %44
%131 = tail call i32 (...) @fatal()
br label %132
132: ; preds = %130, %44
%133 = load i8, i8* @EOF
%134 = tail call signext i8 @getc(i32* %8)
%135 = icmp eq i8 %133, %134
br i1 %135, label %136, label %138
136: ; preds = %132
%137 = tail call i32 (...) @fatal()
br label %138
138: ; preds = %136, %132
%139 = load i8, i8* @EOF
%140 = tail call signext i8 @getc(i32* %8)
%141 = icmp eq i8 %139, %140
br i1 %141, label %142, label %144
142: ; preds = %138
%143 = tail call i32 (...) @fatal()
br label %144
144: ; preds = %142, %138
%145 = load i8, i8* @EOF
%146 = tail call signext i8 @getc(i32* %8)
%147 = icmp eq i8 %145, %146
br i1 %147, label %148, label %150
148: ; preds = %144
%149 = tail call i32 (...) @fatal()
br label %150
150: ; preds = %148, %144
%151 = load i8, i8* @EOF
%152 = tail call signext i8 @getc(i32* %8)
%153 = icmp eq i8 %151, %152
br i1 %153, label %154, label %156
154: ; preds = %150
%155 = tail call i32 (...) @fatal()
br label %156
156: ; preds = %154, %150
%157 = load i8, i8* @EOF
%158 = tail call signext i8 @getc(i32* %8)
%159 = icmp eq i8 %157, %158
br i1 %159, label %160, label %162
160: ; preds = %156
%161 = tail call i32 (...) @fatal()
br label %162
162: ; preds = %160, %156
%163 = load i8, i8* @EOF
%164 = tail call signext i8 @getc(i32* %8)
%165 = icmp eq i8 %163, %164
br i1 %165, label %166, label %168
166: ; preds = %162
%167 = tail call i32 (...) @fatal()
br label %168
168: ; preds = %166, %162
%169 = load i8, i8* @EOF
%170 = tail call signext i8 @getc(i32* %8)
%171 = icmp eq i8 %169, %170
br i1 %171, label %172, label %174
172: ; preds = %168
%173 = tail call i32 (...) @fatal()
br label %174
174: ; preds = %172, %168
%175 = load i8, i8* @EOF
%176 = tail call signext i8 @getc(i32* %8)
%177 = icmp eq i8 %175, %176
br i1 %177, label %178, label %180
178: ; preds = %174
%179 = tail call i32 (...) @fatal()
br label %180
180: ; preds = %178, %174
%181 = load i8, i8* @EOF
%182 = tail call signext i8 @getc(i32* %8)
%183 = icmp eq i8 %181, %182
br i1 %183, label %184, label %186
184: ; preds = %180
%185 = tail call i32 (...) @fatal()
br label %186
186: ; preds = %184, %180
%187 = load i8, i8* @EOF
%188 = tail call signext i8 @getc(i32* %8)
%189 = icmp eq i8 %187, %188
br i1 %189, label %190, label %192
190: ; preds = %186
%191 = tail call i32 (...) @fatal()
br label %192
192: ; preds = %190, %186
%193 = load i8, i8* @EOF
%194 = tail call signext i8 @getc(i32* %8)
%195 = icmp eq i8 %193, %194
br i1 %195, label %196, label %198
196: ; preds = %192
%197 = tail call i32 (...) @fatal()
br label %198
198: ; preds = %196, %192
br label %17
199: ; preds = %5, %2
%200 = phi i8** [ %1, %2 ], [ %6, %5 ]
%201 = phi i8* [ getelementptr inbounds ([76 x i8], [76 x i8]* @.str, i64 0, i64 0), %2 ], [ getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), %5 ]
%202 = load i8*, i8** %200
%203 = tail call i32 @printf(i8* %201, i8* %202)
ret i32 0
}