#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;
scalar_t__ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int /*<<< orphan*/,
                         int /*<<< orphan*/);
int ftell(int /*<<< orphan*/ *);
scalar_t__ getenv(char *);
int /*<<< orphan*/ hexdump(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, char *, char *, int);
int /*<<< orphan*/ *stderr;
int /*<<< orphan*/ strcpy(char *, char *);
char *strrchr(char *, char);
int main(int argc, char **argv) {
  FILE *fo;
  FILE *fi;
  char fontname[256];
  char origname[256];
  char *basename;
  char *p;
  int i, len;
  if (argc < 3) {
    fprintf(stderr, "usage: fontdump output.c input.dat\n");
    return 1;
  }
  fo = fopen(argv[1], "wb");
  if (!fo) {
    fprintf(stderr, "fontdump: could not open output file '%s'\n", argv[1]);
    return 1;
  }
  fprintf(fo, "#ifdef DEBUG\n");
  fprintf(fo, "#ifndef __STRICT_ANSI__\n");
  fprintf(fo, "#if defined(__linux__) || defined(__FreeBSD__) || "
              "defined(__OpenBSD__)\n");
  fprintf(fo, "#if !defined(__ICC)\n");
  fprintf(fo, "#define HAVE_INCBIN\n");
  fprintf(fo, "#endif\n");
  fprintf(fo, "#endif\n");
  fprintf(fo, "#endif\n");
  fprintf(fo, "#endif\n");
  for (i = 2; i < argc; i++) {
    fi = fopen(argv[i], "rb");
    if (!fi) {
      fclose(fo);
      fprintf(stderr, "fontdump: could not open input file '%s'\n", argv[i]);
      return 1;
    }
    basename = strrchr(argv[i], '/');
    if (!basename)
      basename = strrchr(argv[i], '\\');
    if (basename)
      basename++;
    else
      basename = argv[i];
    strcpy(origname, basename);
    p = strrchr(origname, '.');
    if (p)
      *p = 0;
    strcpy(fontname, origname);
    p = fontname;
    while (*p) {
      if (*p == '/' || *p == '.' || *p == '\\' || *p == '-')
        *p = '_';
      p++;
    }
    fseek(fi, 0, SEEK_END);
    len = ftell(fi);
    fseek(fi, 0, SEEK_SET);
    if (getenv("verbose"))
      printf("\t{\"%s\",fz_font_%s,%d},\n", origname, fontname, len);
    fprintf(fo, "\n#ifdef HAVE_INCBIN\n");
    fprintf(fo, "extern const unsigned char fz_font_%s[%d];\n", fontname, len);
    fprintf(fo, "asm(\".globl fz_font_%s\");\n", fontname);
    fprintf(fo, "asm(\".balign 8\");\n");
    fprintf(fo, "asm(\"fz_font_%s:\");\n", fontname);
    fprintf(fo, "asm(\".incbin \\\"%s\\\"\");\n", argv[i]);
    fprintf(fo, "#else\n");
    fprintf(fo, "static const unsigned char fz_font_%s[%d] = {\n", fontname,
            len);
    hexdump(fo, fi);
    fprintf(fo, "};\n");
    fprintf(fo, "#endif\n");
    fclose(fi);
  }
  if (fclose(fo)) {
    fprintf(stderr, "fontdump: could not close output file '%s'\n", argv[1]);
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x240,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    11e7 <main+0x47>
mov    0x2e0e(%rip),%rax
mov    (%rax),%rdi
lea    0xe2c(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1689 <main+0x4e9>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe2e(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1236 <main+0x96>
mov    0x2dc7(%rip),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xe04(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1689 <main+0x4e9>
mov    -0x18(%rbp),%rdi
lea    0xe11(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe0d(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe14(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe4a(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe4d(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe50(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe3e(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe2c(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe1a(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
movl   $0x2,-0x234(%rbp)
mov    -0x234(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1643 <main+0x4a3>
mov    -0x10(%rbp),%rax
movslq -0x234(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xdec(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1357 <main+0x1b7>
mov    -0x18(%rbp),%rdi
call   1050 <fclose@plt>
mov    0x2cad(%rip),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rax
movslq -0x234(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xdb2(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1689 <main+0x4e9>
mov    -0x10(%rbp),%rax
movslq -0x234(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x2f,%esi
call   1070 <strrchr@plt>
mov    %rax,-0x228(%rbp)
cmpq   $0x0,-0x228(%rbp)
jne    13a5 <main+0x205>
mov    -0x10(%rbp),%rax
movslq -0x234(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x5c,%esi
call   1070 <strrchr@plt>
mov    %rax,-0x228(%rbp)
cmpq   $0x0,-0x228(%rbp)
je     13ca <main+0x22a>
mov    -0x228(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x228(%rbp)
jmp    13e0 <main+0x240>
mov    -0x10(%rbp),%rax
movslq -0x234(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x228(%rbp)
lea    -0x220(%rbp),%rdi
mov    -0x228(%rbp),%rsi
call   1040 <strcpy@plt>
lea    -0x220(%rbp),%rdi
mov    $0x2e,%esi
call   1070 <strrchr@plt>
mov    %rax,-0x230(%rbp)
cmpq   $0x0,-0x230(%rbp)
je     1423 <main+0x283>
mov    -0x230(%rbp),%rax
movb   $0x0,(%rax)
lea    -0x120(%rbp),%rdi
lea    -0x220(%rbp),%rsi
call   1040 <strcpy@plt>
lea    -0x120(%rbp),%rax
mov    %rax,-0x230(%rbp)
mov    -0x230(%rbp),%rax
cmpb   $0x0,(%rax)
je     14c1 <main+0x321>
mov    -0x230(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2f,%eax
je     14a0 <main+0x300>
mov    -0x230(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2e,%eax
je     14a0 <main+0x300>
mov    -0x230(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5c,%eax
je     14a0 <main+0x300>
mov    -0x230(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    14aa <main+0x30a>
mov    -0x230(%rbp),%rax
movb   $0x5f,(%rax)
mov    -0x230(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x230(%rbp)
jmp    1444 <main+0x2a4>
mov    -0x20(%rbp),%rdi
mov    0x2b1c(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10b0 <fseek@plt>
mov    -0x20(%rbp),%rdi
call   1090 <ftell@plt>
mov    %eax,-0x238(%rbp)
mov    -0x20(%rbp),%rdi
mov    0x2ae1(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10b0 <fseek@plt>
lea    0xc21(%rip),%rdi
call   1030 <getenv@plt>
cmp    $0x0,%rax
je     152e <main+0x38e>
lea    -0x220(%rbp),%rsi
lea    -0x120(%rbp),%rdx
mov    -0x238(%rbp),%ecx
lea    0xbff(%rip),%rdi
call   1060 <printf@plt>
mov    -0x18(%rbp),%rdi
lea    0xc07(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    -0x120(%rbp),%rdx
mov    -0x238(%rbp),%ecx
lea    0xbfd(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    -0x120(%rbp),%rdx
lea    0xc10(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xc19(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    -0x120(%rbp),%rdx
lea    0xc13(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x234(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xc07(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xc0d(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    -0x120(%rbp),%rdx
mov    -0x238(%rbp),%ecx
lea    0xbf5(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   10a0 <hexdump@plt>
mov    -0x18(%rbp),%rdi
lea    0xc05(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xacc(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x20(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x234(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x234(%rbp)
jmp    12e2 <main+0x142>
mov    -0x18(%rbp),%rdi
call   1050 <fclose@plt>
cmp    $0x0,%rax
je     1682 <main+0x4e2>
mov    0x297b(%rip),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xba7(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1689 <main+0x4e9>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x240,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x218,%rsp
cmp    $0x2,%edi
jg     11eb <main+0x3b>
mov    0x2e0b(%rip),%rax
mov    (%rax),%rcx
lea    0xe29(%rip),%rdi
mov    $0x23,%esi
mov    $0x1,%edx
call   10d0 <fwrite@plt>
jmp    15a2 <main+0x3f2>
mov    %rsi,%r15
mov    %edi,%ebp
mov    0x8(%rsi),%rdi
lea    0xe29(%rip),%rsi
call   10c0 <fopen@plt>
test   %rax,%rax
je     1542 <main+0x392>
mov    %rax,%rbx
lea    0xe3f(%rip),%rdi
mov    $0xd,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   10d0 <fwrite@plt>
lea    0xe34(%rip),%rdi
mov    $0x18,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   10d0 <fwrite@plt>
lea    0xe34(%rip),%rdi
mov    $0x47,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   10d0 <fwrite@plt>
lea    0xe63(%rip),%rdi
mov    $0x14,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   10d0 <fwrite@plt>
lea    0xe5f(%rip),%rdi
mov    $0x14,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   10d0 <fwrite@plt>
lea    0xe5b(%rip),%r14
mov    $0x7,%esi
mov    $0x1,%edx
mov    %r14,%rdi
mov    %rbx,%rcx
call   10d0 <fwrite@plt>
mov    $0x7,%esi
mov    $0x1,%edx
mov    %r14,%rdi
mov    %rbx,%rcx
call   10d0 <fwrite@plt>
mov    $0x7,%esi
mov    $0x1,%edx
mov    %r14,%rdi
mov    %rbx,%rcx
call   10d0 <fwrite@plt>
mov    $0x7,%esi
mov    $0x1,%edx
mov    %r14,%rdi
mov    %rbx,%rcx
call   10d0 <fwrite@plt>
mov    %ebp,%eax
mov    %rax,0x8(%rsp)
mov    $0x2,%r14d
movabs $0x800000000007,%r13
mov    %r15,%rbp
mov    %r15,(%rsp)
jmp    1424 <main+0x274>
nopw   0x0(%rax,%rax,1)
mov    $0x14,%esi
mov    $0x1,%edx
lea    0xe1f(%rip),%rdi
mov    %rbx,%rcx
call   10d0 <fwrite@plt>
mov    %rbx,%rdi
lea    0xe22(%rip),%rsi
mov    %rbp,%rdx
mov    %r15d,%ecx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    %rbx,%rdi
lea    0xe37(%rip),%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0x12,%esi
mov    $0x1,%edx
lea    0xe37(%rip),%rdi
mov    %rbx,%rcx
call   10d0 <fwrite@plt>
mov    %rbx,%rdi
lea    0xe38(%rip),%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rsp),%rbp
mov    0x0(%rbp,%r14,8),%rdx
mov    %rbx,%rdi
lea    0xe30(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0x6,%esi
mov    $0x1,%edx
lea    0xe30(%rip),%rdi
mov    %rbx,%rcx
call   10d0 <fwrite@plt>
mov    %rbx,%rdi
lea    0xe25(%rip),%rsi
lea    0x110(%rsp),%rdx
mov    %r15d,%ecx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   10a0 <hexdump@plt>
mov    $0x3,%esi
mov    $0x1,%edx
lea    0xe26(%rip),%rdi
mov    %rbx,%rcx
call   10d0 <fwrite@plt>
mov    $0x7,%esi
mov    $0x1,%edx
lea    0xce6(%rip),%rdi
mov    %rbx,%rcx
call   10d0 <fwrite@plt>
mov    %r12,%rdi
call   1050 <fclose@plt>
add    $0x1,%r14
cmp    0x8(%rsp),%r14
je     1579 <main+0x3c9>
mov    0x0(%rbp,%r14,8),%rdi
lea    0xcc3(%rip),%rsi
call   10c0 <fopen@plt>
test   %rax,%rax
je     1559 <main+0x3a9>
mov    %rax,%r12
mov    0x0(%rbp,%r14,8),%rbp
mov    %rbp,%rdi
mov    $0x2f,%esi
call   1070 <strrchr@plt>
test   %rax,%rax
jne    146a <main+0x2ba>
mov    %rbp,%rdi
mov    $0x5c,%esi
call   1070 <strrchr@plt>
test   %rax,%rax
je     1471 <main+0x2c1>
add    $0x1,%rax
mov    %rax,%rbp
lea    0x10(%rsp),%r15
mov    %r15,%rdi
mov    %rbp,%rsi
call   1040 <strcpy@plt>
mov    %r15,%rdi
mov    $0x2e,%esi
call   1070 <strrchr@plt>
test   %rax,%rax
je     1496 <main+0x2e6>
movb   $0x0,(%rax)
lea    0x110(%rsp),%rbp
mov    %rbp,%rdi
lea    0x10(%rsp),%rsi
call   1040 <strcpy@plt>
mov    %rbp,%rax
jmp    14c4 <main+0x314>
test   %cl,%cl
je     14e0 <main+0x330>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
movzbl (%rax),%ecx
lea    -0x2d(%rcx),%edx
cmp    $0x2f,%dl
ja     14b0 <main+0x300>
movzbl %dl,%edx
bt     %rdx,%r13
jae    14b0 <main+0x300>
movb   $0x5f,(%rax)
jmp    14c0 <main+0x310>
nopl   (%rax)
mov    0x2b01(%rip),%rax
mov    (%rax),%edx
mov    %r12,%rdi
xor    %esi,%esi
call   10b0 <fseek@plt>
mov    %r12,%rdi
call   1090 <ftell@plt>
mov    %eax,%r15d
mov    0x2acb(%rip),%rax
mov    (%rax),%edx
mov    %r12,%rdi
xor    %esi,%esi
call   10b0 <fseek@plt>
lea    0xc08(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1310 <main+0x160>
lea    0xbfb(%rip),%rdi
lea    0x10(%rsp),%rsi
mov    %rbp,%rdx
mov    %r15d,%ecx
call   1060 <printf@plt>
jmp    1310 <main+0x160>
mov    0x2a8f(%rip),%rax
mov    (%rax),%rdi
mov    0x8(%r15),%rdx
lea    0xad0(%rip),%rsi
jmp    159b <main+0x3eb>
mov    %rbx,%rdi
call   1050 <fclose@plt>
mov    0x2a70(%rip),%rax
mov    (%rax),%rdi
mov    0x0(%rbp,%r14,8),%rdx
lea    0xb7f(%rip),%rsi
jmp    159b <main+0x3eb>
mov    %rbx,%rdi
call   1050 <fclose@plt>
test   %rax,%rax
je     15b9 <main+0x409>
mov    0x2a4b(%rip),%rax
mov    (%rax),%rdi
mov    0x8(%rbp),%rdx
lea    0xc7b(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0x1,%eax
add    $0x218,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %eax,%eax
jmp    15a7 <main+0x3f7>

LLVM IR (-O0):
@stderr = global i32* null
@.str = [36 x i8] c"usage: fontdump output.c input.dat\0A\00"
@.str.1 = [3 x i8] c"wb\00"
@.str.2 = [43 x i8] c"fontdump: could not open output file '%s'\0A\00"
@.str.3 = [14 x i8] c"#ifdef DEBUG\0A\00"
@.str.4 = [25 x i8] c"#ifndef __STRICT_ANSI__\0A\00"
@.str.5 = [72 x i8] c"#if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)\0A\00"
@.str.6 = [21 x i8] c"#if !defined(__ICC)\0A\00"
@.str.7 = [21 x i8] c"#define HAVE_INCBIN\0A\00"
@.str.8 = [8 x i8] c"#endif\0A\00"
@.str.9 = [3 x i8] c"rb\00"
@.str.10 = [42 x i8] c"fontdump: could not open input file '%s'\0A\00"
@SEEK_END = global i32 0
@SEEK_SET = global i32 0
@.str.11 = [8 x i8] c"verbose\00"
@.str.12 = [24 x i8] c"\09{\22%s\22,fz_font_%s,%d},\0A\00"
@.str.13 = [21 x i8] c"\0A#ifdef HAVE_INCBIN\0A\00"
@.str.14 = [44 x i8] c"extern const unsigned char fz_font_%s[%d];\0A\00"
@.str.15 = [27 x i8] c"asm(\22.globl fz_font_%s\22);\0A\00"
@.str.16 = [19 x i8] c"asm(\22.balign 8\22);\0A\00"
@.str.17 = [21 x i8] c"asm(\22fz_font_%s:\22);\0A\00"
@.str.18 = [24 x i8] c"asm(\22.incbin \\\22%s\\\22\22);\0A\00"
@.str.19 = [7 x i8] c"#else\0A\00"
@.str.20 = [47 x i8] c"static const unsigned char fz_font_%s[%d] = {\0A\00"
@.str.21 = [4 x i8] c"};\0A\00"
@.str.22 = [44 x i8] c"fontdump: could not close output 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 [256 x i8]
%9 = alloca [256 x i8]
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = load i32, i32* %4
%15 = icmp slt i32 %14, 3
br i1 %15, label %16, label %19
16: ; preds = %2
%17 = load i32*, i32** @stderr
%18 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %3
br label %213
19: ; preds = %2
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 1
%22 = load i8*, i8** %21
%23 = call i32* @fopen(i8* %22, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %23, i32** %6
%24 = load i32*, i32** %6
%25 = icmp ne i32* %24, null
br i1 %25, label %32, label %26
26: ; preds = %19
%27 = load i32*, i32** @stderr
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 1
%30 = load i8*, i8** %29
%31 = call i32 (i32*, i8*, ...) @fprintf(i32* %27, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0), i8* %30)
store i32 1, i32* %3
br label %213
32: ; preds = %19
%33 = load i32*, i32** %6
%34 = call i32 (i32*, i8*, ...) @fprintf(i32* %33, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%35 = load i32*, i32** %6
%36 = call i32 (i32*, i8*, ...) @fprintf(i32* %35, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%37 = load i32*, i32** %6
%38 = call i32 (i32*, i8*, ...) @fprintf(i32* %37, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.5, i64 0, i64 0))
%39 = load i32*, i32** %6
%40 = call i32 (i32*, i8*, ...) @fprintf(i32* %39, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
%41 = load i32*, i32** %6
%42 = call i32 (i32*, i8*, ...) @fprintf(i32* %41, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
%43 = load i32*, i32** %6
%44 = call i32 (i32*, i8*, ...) @fprintf(i32* %43, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%45 = load i32*, i32** %6
%46 = call i32 (i32*, i8*, ...) @fprintf(i32* %45, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%47 = load i32*, i32** %6
%48 = call i32 (i32*, i8*, ...) @fprintf(i32* %47, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%49 = load i32*, i32** %6
%50 = call i32 (i32*, i8*, ...) @fprintf(i32* %49, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
store i32 2, i32* %12
br label %51
51: ; preds = %199, %32
%52 = load i32, i32* %12
%53 = load i32, i32* %4
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %202
55: ; preds = %51
%56 = load i8**, i8*** %5
%57 = load i32, i32* %12
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8*, i8** %56, i64 %58
%60 = load i8*, i8** %59
%61 = call i32* @fopen(i8* %60, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
store i32* %61, i32** %7
%62 = load i32*, i32** %7
%63 = icmp ne i32* %62, null
br i1 %63, label %74, label %64
64: ; preds = %55
%65 = load i32*, i32** %6
%66 = call i64 @fclose(i32* %65)
%67 = load i32*, i32** @stderr
%68 = load i8**, i8*** %5
%69 = load i32, i32* %12
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8*, i8** %68, i64 %70
%72 = load i8*, i8** %71
%73 = call i32 (i32*, i8*, ...) @fprintf(i32* %67, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0), i8* %72)
store i32 1, i32* %3
br label %213
74: ; preds = %55
%75 = load i8**, i8*** %5
%76 = load i32, i32* %12
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8*, i8** %75, i64 %77
%79 = load i8*, i8** %78
%80 = call i8* @strrchr(i8* %79, i8 signext 47)
store i8* %80, i8** %10
%81 = load i8*, i8** %10
%82 = icmp ne i8* %81, null
br i1 %82, label %90, label %83
83: ; preds = %74
%84 = load i8**, i8*** %5
%85 = load i32, i32* %12
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i8*, i8** %84, i64 %86
%88 = load i8*, i8** %87
%89 = call i8* @strrchr(i8* %88, i8 signext 92)
store i8* %89, i8** %10
br label %90
90: ; preds = %83, %74
%91 = load i8*, i8** %10
%92 = icmp ne i8* %91, null
br i1 %92, label %93, label %96
93: ; preds = %90
%94 = load i8*, i8** %10
%95 = getelementptr inbounds i8, i8* %94, i32 1
store i8* %95, i8** %10
br label %102
96: ; preds = %90
%97 = load i8**, i8*** %5
%98 = load i32, i32* %12
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i8*, i8** %97, i64 %99
%101 = load i8*, i8** %100
store i8* %101, i8** %10
br label %102
102: ; preds = %96, %93
%103 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%104 = load i8*, i8** %10
%105 = call i32 @strcpy(i8* %103, i8* %104)
%106 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%107 = call i8* @strrchr(i8* %106, i8 signext 46)
store i8* %107, i8** %11
%108 = load i8*, i8** %11
%109 = icmp ne i8* %108, null
br i1 %109, label %110, label %112
110: ; preds = %102
%111 = load i8*, i8** %11
store i8 0, i8* %111
br label %112
112: ; preds = %110, %102
%113 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%114 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%115 = call i32 @strcpy(i8* %113, i8* %114)
%116 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
store i8* %116, i8** %11
br label %117
117: ; preds = %143, %112
%118 = load i8*, i8** %11
%119 = load i8, i8* %118
%120 = icmp ne i8 %119, 0
br i1 %120, label %121, label %146
121: ; preds = %117
%122 = load i8*, i8** %11
%123 = load i8, i8* %122
%124 = sext i8 %123 to i32
%125 = icmp eq i32 %124, 47
br i1 %125, label %141, label %126
126: ; preds = %121
%127 = load i8*, i8** %11
%128 = load i8, i8* %127
%129 = sext i8 %128 to i32
%130 = icmp eq i32 %129, 46
br i1 %130, label %141, label %131
131: ; preds = %126
%132 = load i8*, i8** %11
%133 = load i8, i8* %132
%134 = sext i8 %133 to i32
%135 = icmp eq i32 %134, 92
br i1 %135, label %141, label %136
136: ; preds = %131
%137 = load i8*, i8** %11
%138 = load i8, i8* %137
%139 = sext i8 %138 to i32
%140 = icmp eq i32 %139, 45
br i1 %140, label %141, label %143
141: ; preds = %136, %131, %126, %121
%142 = load i8*, i8** %11
store i8 95, i8* %142
br label %143
143: ; preds = %141, %136
%144 = load i8*, i8** %11
%145 = getelementptr inbounds i8, i8* %144, i32 1
store i8* %145, i8** %11
br label %117
146: ; preds = %117
%147 = load i32*, i32** %7
%148 = load i32, i32* @SEEK_END
%149 = call i32 @fseek(i32* %147, i32 0, i32 %148)
%150 = load i32*, i32** %7
%151 = call i32 @ftell(i32* %150)
store i32 %151, i32* %13
%152 = load i32*, i32** %7
%153 = load i32, i32* @SEEK_SET
%154 = call i32 @fseek(i32* %152, i32 0, i32 %153)
%155 = call i64 @getenv(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%156 = icmp ne i64 %155, 0
br i1 %156, label %157, label %162
157: ; preds = %146
%158 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%159 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%160 = load i32, i32* %13
%161 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i8* %158, i8* %159, i32 %160)
br label %162
162: ; preds = %157, %146
%163 = load i32*, i32** %6
%164 = call i32 (i32*, i8*, ...) @fprintf(i32* %163, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0))
%165 = load i32*, i32** %6
%166 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%167 = load i32, i32* %13
%168 = call i32 (i32*, i8*, ...) @fprintf(i32* %165, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.14, i64 0, i64 0), i8* %166, i32 %167)
%169 = load i32*, i32** %6
%170 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%171 = call i32 (i32*, i8*, ...) @fprintf(i32* %169, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.15, i64 0, i64 0), i8* %170)
%172 = load i32*, i32** %6
%173 = call i32 (i32*, i8*, ...) @fprintf(i32* %172, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.16, i64 0, i64 0))
%174 = load i32*, i32** %6
%175 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%176 = call i32 (i32*, i8*, ...) @fprintf(i32* %174, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0), i8* %175)
%177 = load i32*, i32** %6
%178 = load i8**, i8*** %5
%179 = load i32, i32* %12
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds i8*, i8** %178, i64 %180
%182 = load i8*, i8** %181
%183 = call i32 (i32*, i8*, ...) @fprintf(i32* %177, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.18, i64 0, i64 0), i8* %182)
%184 = load i32*, i32** %6
%185 = call i32 (i32*, i8*, ...) @fprintf(i32* %184, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0))
%186 = load i32*, i32** %6
%187 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%188 = load i32, i32* %13
%189 = call i32 (i32*, i8*, ...) @fprintf(i32* %186, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.20, i64 0, i64 0), i8* %187, i32 %188)
%190 = load i32*, i32** %6
%191 = load i32*, i32** %7
%192 = call i32 @hexdump(i32* %190, i32* %191)
%193 = load i32*, i32** %6
%194 = call i32 (i32*, i8*, ...) @fprintf(i32* %193, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0))
%195 = load i32*, i32** %6
%196 = call i32 (i32*, i8*, ...) @fprintf(i32* %195, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%197 = load i32*, i32** %7
%198 = call i64 @fclose(i32* %197)
br label %199
199: ; preds = %162
%200 = load i32, i32* %12
%201 = add nsw i32 %200, 1
store i32 %201, i32* %12
br label %51
202: ; preds = %51
%203 = load i32*, i32** %6
%204 = call i64 @fclose(i32* %203)
%205 = icmp ne i64 %204, 0
br i1 %205, label %206, label %212
206: ; preds = %202
%207 = load i32*, i32** @stderr
%208 = load i8**, i8*** %5
%209 = getelementptr inbounds i8*, i8** %208, i64 1
%210 = load i8*, i8** %209
%211 = call i32 (i32*, i8*, ...) @fprintf(i32* %207, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.22, i64 0, i64 0), i8* %210)
store i32 1, i32* %3
br label %213
212: ; preds = %202
store i32 0, i32* %3
br label %213
213: ; preds = %212, %206, %64, %26, %16
%214 = load i32, i32* %3
ret i32 %214
}

LLVM IR (-O2):
@stderr = global i32* null
@.str = [36 x i8] c"usage: fontdump output.c input.dat\0A\00"
@.str.1 = [3 x i8] c"wb\00"
@.str.2 = [43 x i8] c"fontdump: could not open output file '%s'\0A\00"
@.str.3 = [14 x i8] c"#ifdef DEBUG\0A\00"
@.str.4 = [25 x i8] c"#ifndef __STRICT_ANSI__\0A\00"
@.str.5 = [72 x i8] c"#if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)\0A\00"
@.str.6 = [21 x i8] c"#if !defined(__ICC)\0A\00"
@.str.7 = [21 x i8] c"#define HAVE_INCBIN\0A\00"
@.str.8 = [8 x i8] c"#endif\0A\00"
@.str.9 = [3 x i8] c"rb\00"
@.str.10 = [42 x i8] c"fontdump: could not open input file '%s'\0A\00"
@SEEK_END = global i32 0
@SEEK_SET = global i32 0
@.str.11 = [8 x i8] c"verbose\00"
@.str.12 = [24 x i8] c"\09{\22%s\22,fz_font_%s,%d},\0A\00"
@.str.13 = [21 x i8] c"\0A#ifdef HAVE_INCBIN\0A\00"
@.str.14 = [44 x i8] c"extern const unsigned char fz_font_%s[%d];\0A\00"
@.str.15 = [27 x i8] c"asm(\22.globl fz_font_%s\22);\0A\00"
@.str.16 = [19 x i8] c"asm(\22.balign 8\22);\0A\00"
@.str.17 = [21 x i8] c"asm(\22fz_font_%s:\22);\0A\00"
@.str.18 = [24 x i8] c"asm(\22.incbin \\\22%s\\\22\22);\0A\00"
@.str.19 = [7 x i8] c"#else\0A\00"
@.str.20 = [47 x i8] c"static const unsigned char fz_font_%s[%d] = {\0A\00"
@.str.21 = [4 x i8] c"};\0A\00"
@.str.22 = [44 x i8] c"fontdump: could not close output file '%s'\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [256 x i8]
%4 = alloca [256 x i8]
%5 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%7 = icmp slt i32 %0, 3
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i32*, i32** @stderr
%10 = tail call i64 @fwrite(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i64 35, i64 1, i32* %9)
br label %99
11: ; preds = %2
%12 = getelementptr inbounds i8*, i8** %1, i64 1
%13 = load i8*, i8** %12
%14 = tail call i32* @fopen(i8* %13, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%15 = icmp eq i32* %14, null
br i1 %15, label %16, label %20
16: ; preds = %11
%17 = load i32*, i32** @stderr
%18 = load i8*, i8** %12
%19 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0), i8* %18)
br label %99
20: ; preds = %11
%21 = tail call i64 @fwrite(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i64 13, i64 1, i32* %14)
%22 = tail call i64 @fwrite(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i64 24, i64 1, i32* %14)
%23 = tail call i64 @fwrite(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.5, i64 0, i64 0), i64 71, i64 1, i32* %14)
%24 = tail call i64 @fwrite(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i64 20, i64 1, i32* %14)
%25 = tail call i64 @fwrite(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i64 20, i64 1, i32* %14)
%26 = tail call i64 @fwrite(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i64 7, i64 1, i32* %14)
%27 = tail call i64 @fwrite(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i64 7, i64 1, i32* %14)
%28 = tail call i64 @fwrite(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i64 7, i64 1, i32* %14)
%29 = tail call i64 @fwrite(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i64 7, i64 1, i32* %14)
%30 = zext i32 %0 to i64
br label %31
31: ; preds = %20, %76
%32 = phi i64 [ 2, %20 ], [ %90, %76 ]
%33 = getelementptr inbounds i8*, i8** %1, i64 %32
%34 = load i8*, i8** %33
%35 = call i32* @fopen(i8* %34, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%36 = icmp eq i32* %35, null
br i1 %36, label %37, label %42
37: ; preds = %31
%38 = call i64 @fclose(i32* %14)
%39 = load i32*, i32** @stderr
%40 = load i8*, i8** %33
%41 = call i32 (i32*, i8*, ...) @fprintf(i32* %39, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0), i8* %40)
br label %99
42: ; preds = %31
%43 = load i8*, i8** %33
%44 = call i8* @strrchr(i8* dereferenceable(1) %43, i8 signext 47)
%45 = icmp eq i8* %44, null
br i1 %45, label %46, label %49
46: ; preds = %42
%47 = call i8* @strrchr(i8* dereferenceable(1) %43, i8 signext 92)
%48 = icmp eq i8* %47, null
br i1 %48, label %52, label %49
49: ; preds = %42, %46
%50 = phi i8* [ %47, %46 ], [ %44, %42 ]
%51 = getelementptr inbounds i8, i8* %50, i64 1
br label %52
52: ; preds = %46, %49
%53 = phi i8* [ %51, %49 ], [ %43, %46 ]
%54 = call i32 @strcpy(i8* %6, i8* %53)
%55 = call i8* @strrchr(i8* %6, i8 signext 46)
%56 = icmp eq i8* %55, null
br i1 %56, label %58, label %57
57: ; preds = %52
store i8 0, i8* %55
br label %58
58: ; preds = %57, %52
%59 = call i32 @strcpy(i8* %5, i8* %6)
br label %60
60: ; preds = %64, %58
%61 = phi i8* [ %5, %58 ], [ %65, %64 ]
%62 = load i8, i8* %61
switch i8 %62, label %64 [
i8 0, label %66
i8 47, label %63
i8 46, label %63
i8 92, label %63
i8 45, label %63
]
63: ; preds = %60, %60, %60, %60
store i8 95, i8* %61
br label %64
64: ; preds = %60, %63
%65 = getelementptr inbounds i8, i8* %61, i64 1
br label %60
66: ; preds = %60
%67 = load i32, i32* @SEEK_END
%68 = call i32 @fseek(i32* %35, i32 0, i32 %67)
%69 = call i32 @ftell(i32* %35)
%70 = load i32, i32* @SEEK_SET
%71 = call i32 @fseek(i32* %35, i32 0, i32 %70)
%72 = call i64 @getenv(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%73 = icmp eq i64 %72, 0
br i1 %73, label %76, label %74
74: ; preds = %66
%75 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i8* %6, i8* %5, i32 %69)
br label %76
76: ; preds = %74, %66
%77 = call i64 @fwrite(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i64 20, i64 1, i32* %14)
%78 = call i32 (i32*, i8*, ...) @fprintf(i32* %14, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.14, i64 0, i64 0), i8* %5, i32 %69)
%79 = call i32 (i32*, i8*, ...) @fprintf(i32* %14, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.15, i64 0, i64 0), i8* %5)
%80 = call i64 @fwrite(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.16, i64 0, i64 0), i64 18, i64 1, i32* %14)
%81 = call i32 (i32*, i8*, ...) @fprintf(i32* %14, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0), i8* %5)
%82 = load i8*, i8** %33
%83 = call i32 (i32*, i8*, ...) @fprintf(i32* %14, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.18, i64 0, i64 0), i8* %82)
%84 = call i64 @fwrite(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0), i64 6, i64 1, i32* %14)
%85 = call i32 (i32*, i8*, ...) @fprintf(i32* %14, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.20, i64 0, i64 0), i8* %5, i32 %69)
%86 = call i32 @hexdump(i32* %14, i32* %35)
%87 = call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0), i64 3, i64 1, i32* %14)
%88 = call i64 @fwrite(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i64 7, i64 1, i32* %14)
%89 = call i64 @fclose(i32* %35)
%90 = add nuw nsw i64 %32, 1
%91 = icmp eq i64 %90, %30
br i1 %91, label %92, label %31
92: ; preds = %76
%93 = call i64 @fclose(i32* %14)
%94 = icmp eq i64 %93, 0
br i1 %94, label %99, label %95
95: ; preds = %92
%96 = load i32*, i32** @stderr
%97 = load i8*, i8** %12
%98 = call i32 (i32*, i8*, ...) @fprintf(i32* %96, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.22, i64 0, i64 0), i8* %97)
br label %99
99: ; preds = %92, %95, %37, %16, %8
%100 = phi i32 [ 1, %8 ], [ 1, %37 ], [ 1, %95 ], [ 1, %16 ], [ 0, %92 ]
ret i32 %100
}