#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*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ fread(unsigned char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int, int /*<<< orphan*/);
int ftell(int /*<<< orphan*/ *);
int /*<<< orphan*/ *stdout;
int main(void) {
  int i;
  int j;
  FILE *fp_c;
  FILE *fp;
  int len;
  unsigned char mat[48] = {0};
  fp = fopen("ASC24", "rb");
  fp_c = fopen("ascii24.h", "wb+");
  fseek(fp, 0, SEEK_END);
  len = ftell(fp);
  fprintf(fp_c, "/******************************************************/\n");
  fprintf(fp_c, "/*          Font file powered by Late Lee             */\n");
  fprintf(fp_c, "/*             http://www.latelee.org                 */\n");
  fprintf(fp_c, "/*              %s %s                  */\n", "Mar 17 2022",
          "18:03:23");
  fprintf(fp_c, "/******************************************************/\n");
  fprintf(fp_c, "unsigned char %s[] = \n{\n", "ascii24");
  for (i = 0x20 * 48, j = 1; i < len / 2; i += 16, ++j) {
    fseek(fp, i, SEEK_SET);
    fread(mat, 16, 1, fp);
    if (i == 0x20 * 48)
      fprintf(fp_c, "/*   %d     0x%x     ' %c '     */\n", i / 48, i / 48,
              i / 48);
    int tmp = (i + 16) / 48;
    fprintf(fp_c,
            "0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%"
            "02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,\n",
            mat[0], mat[1], mat[2], mat[3], mat[4], mat[5], mat[6], mat[7],
            mat[8], mat[9], mat[10], mat[11], mat[12], mat[13], mat[14],
            mat[15]);
    if (tmp == 127)
      break;
    if (j % 3 == 0) {
      fprintf(fp_c, "\n");
      fprintf(fp_c, "/*   %d     0x%x     ' %c '     */\n", tmp, tmp, tmp);
    }
  }
  fprintf(fp_c, "};\n");
  fprintf(stdout, "Job done!\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
movl   $0x0,-0x2c(%rbp)
lea    -0x80(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1040 <memset@plt>
lea    0xe6e(%rip),%rdi
lea    0xe6d(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x48(%rbp)
lea    0xe60(%rip),%rdi
lea    0xe63(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x40(%rbp)
mov    -0x48(%rbp),%rdi
mov    0x2e24(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1070 <fseek@plt>
mov    -0x48(%rbp),%rdi
call   1060 <ftell@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x40(%rbp),%rdi
lea    0xe33(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x40(%rbp),%rdi
lea    0xe5b(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x40(%rbp),%rdi
lea    0xe83(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x40(%rbp),%rdi
lea    0xeab(%rip),%rsi
lea    0xecf(%rip),%rdx
lea    0xed4(%rip),%rcx
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x40(%rbp),%rdi
lea    0xddd(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x40(%rbp),%rdi
lea    0xeb9(%rip),%rsi
lea    0xecb(%rip),%rdx
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x600,-0x30(%rbp)
movl   $0x1,-0x34(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x88(%rbp)
mov    -0x4c(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x88(%rbp),%eax
cmp    %ecx,%eax
jge    1455 <main+0x2f5>
mov    -0x48(%rbp),%rdi
mov    -0x30(%rbp),%esi
mov    0x2d3e(%rip),%rax
mov    (%rax),%edx
call   1070 <fseek@plt>
lea    -0x80(%rbp),%rdi
mov    -0x48(%rbp),%rcx
mov    $0x10,%esi
mov    $0x1,%edx
call   1030 <fread@plt>
cmpl   $0x600,-0x30(%rbp)
jne    1309 <main+0x1a9>
mov    -0x40(%rbp),%rdi
mov    -0x30(%rbp),%eax
mov    $0x30,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8c(%rbp)
mov    -0x30(%rbp),%eax
mov    $0x30,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x30(%rbp),%eax
mov    $0x30,%esi
cltd
idiv   %esi
mov    -0x8c(%rbp),%edx
mov    %eax,%r8d
lea    0xe24(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x30(%rbp),%eax
add    $0x10,%eax
mov    $0x30,%ecx
cltd
idiv   %ecx
mov    %eax,-0x84(%rbp)
mov    -0x40(%rbp),%rdi
movzbl -0x80(%rbp),%edx
movzbl -0x7f(%rbp),%ecx
movzbl -0x7e(%rbp),%r8d
movzbl -0x7d(%rbp),%r9d
movzbl -0x7c(%rbp),%eax
movzbl -0x7b(%rbp),%esi
mov    %esi,-0x9c(%rbp)
movzbl -0x7a(%rbp),%esi
mov    %esi,-0x98(%rbp)
movzbl -0x79(%rbp),%esi
mov    %esi,-0x94(%rbp)
movzbl -0x78(%rbp),%r13d
movzbl -0x77(%rbp),%r12d
movzbl -0x76(%rbp),%r15d
movzbl -0x75(%rbp),%r14d
movzbl -0x74(%rbp),%ebx
movzbl -0x73(%rbp),%r11d
movzbl -0x72(%rbp),%r10d
movzbl -0x71(%rbp),%esi
mov    %esi,-0x90(%rbp)
lea    0xdc2(%rip),%rsi
mov    %eax,(%rsp)
mov    -0x9c(%rbp),%eax
mov    %eax,0x8(%rsp)
mov    -0x98(%rbp),%eax
mov    %eax,0x10(%rsp)
mov    -0x94(%rbp),%eax
mov    %eax,0x18(%rsp)
mov    -0x90(%rbp),%eax
mov    %r13d,0x20(%rsp)
mov    %r12d,0x28(%rsp)
mov    %r15d,0x30(%rsp)
mov    %r14d,0x38(%rsp)
mov    %ebx,0x40(%rsp)
mov    %r11d,0x48(%rsp)
mov    %r10d,0x50(%rsp)
mov    %eax,0x58(%rsp)
mov    $0x0,%al
call   1050 <fprintf@plt>
cmpl   $0x7f,-0x84(%rbp)
jne    13ee <main+0x28e>
jmp    1455 <main+0x2f5>
mov    -0x34(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1439 <main+0x2d9>
mov    -0x40(%rbp),%rdi
lea    0xdbc(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x40(%rbp),%rdi
mov    -0x84(%rbp),%edx
mov    -0x84(%rbp),%ecx
mov    -0x84(%rbp),%r8d
lea    0xcf4(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    143e <main+0x2de>
mov    -0x30(%rbp),%eax
add    $0x10,%eax
mov    %eax,-0x30(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1268 <main+0x108>
mov    -0x40(%rbp),%rdi
lea    0xd5c(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2b62(%rip),%rax
mov    (%rax),%rdi
lea    0xd48(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
xor    %eax,%eax
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
lea    0xe69(%rip),%rdi
lea    0xe68(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,%rbp
lea    0xe5c(%rip),%rdi
lea    0xe5f(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,%rbx
mov    0x2e25(%rip),%rax
mov    (%rax),%edx
mov    %rbp,%rdi
xor    %esi,%esi
call   1070 <fseek@plt>
mov    %rbp,0x40(%rsp)
mov    %rbp,%rdi
call   1060 <ftell@plt>
mov    %eax,%ebp
lea    0xe32(%rip),%r15
mov    $0x39,%esi
mov    $0x1,%edx
mov    %r15,%rdi
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0xe50(%rip),%rdi
mov    $0x39,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0xe71(%rip),%rdi
mov    $0x39,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0xe92(%rip),%rsi
lea    0xeb6(%rip),%rdx
lea    0xebb(%rip),%rcx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0x39,%esi
mov    $0x1,%edx
mov    %r15,%rdi
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0xe9e(%rip),%rsi
lea    0xeb0(%rip),%rdx
mov    %rbx,(%rsp)
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <fprintf@plt>
cmp    $0xc02,%ebp
jl     1456 <main+0x2e6>
shr    %ebp
cmp    $0x611,%ebp
mov    $0x610,%eax
cmovge %ebp,%eax
add    $0xfffff9ff,%eax
and    $0xfffffff0,%eax
add    $0x10,%eax
mov    %eax,0xc(%rsp)
mov    $0x1,%r15d
xor    %r13d,%r13d
jmp    12d3 <main+0x163>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%r15d
add    $0x10,%r13d
cmp    %r13d,0xc(%rsp)
je     1456 <main+0x2e6>
lea    0x600(%r13),%esi
mov    0x2cf7(%rip),%rax
mov    (%rax),%edx
mov    0x40(%rsp),%rbx
mov    %rbx,%rdi
call   1070 <fseek@plt>
lea    0x10(%rsp),%rdi
mov    $0x10,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fread@plt>
test   %r13d,%r13d
jne    132e <main+0x1be>
mov    (%rsp),%rdi
lea    0xe0f(%rip),%rsi
mov    $0x20,%edx
mov    $0x20,%ecx
mov    $0x20,%r8d
xor    %eax,%eax
call   1050 <fprintf@plt>
movzbl 0x10(%rsp),%edx
movzbl 0x11(%rsp),%ecx
movzbl 0x12(%rsp),%r8d
movzbl 0x13(%rsp),%r9d
movzbl 0x14(%rsp),%eax
mov    %rax,0x70(%rsp)
movzbl 0x15(%rsp),%eax
mov    %rax,0x68(%rsp)
movzbl 0x16(%rsp),%eax
mov    %rax,0x60(%rsp)
movzbl 0x17(%rsp),%eax
mov    %rax,0x58(%rsp)
movzbl 0x18(%rsp),%eax
mov    %rax,0x50(%rsp)
movzbl 0x19(%rsp),%eax
mov    %rax,0x48(%rsp)
movzbl 0x1a(%rsp),%r10d
movzbl 0x1b(%rsp),%r11d
movzbl 0x1c(%rsp),%ebp
movzbl 0x1d(%rsp),%ebx
movzbl 0x1e(%rsp),%r14d
movzbl 0x1f(%rsp),%r12d
mov    (%rsp),%rdi
lea    0xd9d(%rip),%rsi
xor    %eax,%eax
push   %r12
push   %r14
push   %rbx
push   %rbp
push   %r11
push   %r10
push   0x78(%rsp)
push   0x88(%rsp)
push   0x98(%rsp)
push   0xa8(%rsp)
push   0xb8(%rsp)
push   0xc8(%rsp)
call   1050 <fprintf@plt>
add    $0x60,%rsp
cmp    $0x11c0,%r13d
je     1456 <main+0x2e6>
mov    %r15d,%eax
mov    $0xaaaaaaab,%ecx
imul   %rcx,%rax
shr    $0x21,%rax
lea    (%rax,%rax,2),%eax
shl    $0x4,%eax
add    $0xfffffff0,%eax
cmp    %r13d,%eax
jne    12c0 <main+0x150>
lea    0x610(%r13),%ebp
mov    $0xaaaaaaab,%eax
imul   %rax,%rbp
shr    $0x25,%rbp
mov    $0xa,%edi
mov    (%rsp),%rbx
mov    %rbx,%rsi
call   1040 <fputc@plt>
mov    %rbx,%rdi
lea    0xce3(%rip),%rsi
mov    %ebp,%edx
mov    %ebp,%ecx
mov    %ebp,%r8d
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    12c0 <main+0x150>
lea    0xd5f(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    (%rsp),%rcx
call   1090 <fwrite@plt>
mov    0x2b59(%rip),%rax
mov    (%rax),%rcx
lea    0xd3f(%rip),%rdi
mov    $0xa,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
xor    %eax,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"ASC24\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [10 x i8] c"ascii24.h\00"
@.str.3 = [4 x i8] c"wb+\00"
@SEEK_END = global i32 0
@.str.4 = [58 x i8] c"/******************************************************/\0A\00"
@.str.5 = [58 x i8] c"/* Font file powered by Late Lee */\0A\00"
@.str.6 = [58 x i8] c"/* http://www.latelee.org */\0A\00"
@.str.7 = [43 x i8] c"/* %s %s */\0A\00"
@.str.8 = [12 x i8] c"Mar 17 2022\00"
@.str.9 = [9 x i8] c"18:03:23\00"
@.str.10 = [25 x i8] c"unsigned char %s[] = \0A{\0A\00"
@.str.11 = [8 x i8] c"ascii24\00"
@SEEK_SET = global i32 0
@.str.12 = [36 x i8] c"/* %d 0x%x ' %c ' */\0A\00"
@.str.13 = [114 x i8] c"0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,\0A\00"
@.str.14 = [2 x i8] c"\0A\00"
@.str.15 = [4 x i8] c"};\0A\00"
@stdout = global i32* null
@.str.16 = [11 x i8] c"Job done!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i32
%7 = alloca [48 x i8]
%8 = alloca i32
store i32 0, i32* %1
%9 = bitcast [48 x i8]* %7 to i8*
%10 = call i32* @fopen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %10, i32** %5
%11 = call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
store i32* %11, i32** %4
%12 = load i32*, i32** %5
%13 = load i32, i32* @SEEK_END
%14 = call i32 @fseek(i32* %12, i32 0, i32 %13)
%15 = load i32*, i32** %5
%16 = call i32 @ftell(i32* %15)
store i32 %16, i32* %6
%17 = load i32*, i32** %4
%18 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.4, i64 0, i64 0))
%19 = load i32*, i32** %4
%20 = call i32 (i32*, i8*, ...) @fprintf(i32* %19, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0))
%21 = load i32*, i32** %4
%22 = call i32 (i32*, i8*, ...) @fprintf(i32* %21, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.6, i64 0, i64 0))
%23 = load i32*, i32** %4
%24 = call i32 (i32*, i8*, ...) @fprintf(i32* %23, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
%25 = load i32*, i32** %4
%26 = call i32 (i32*, i8*, ...) @fprintf(i32* %25, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.4, i64 0, i64 0))
%27 = load i32*, i32** %4
%28 = call i32 (i32*, i8*, ...) @fprintf(i32* %27, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
store i32 1536, i32* %2
store i32 1, i32* %3
br label %29
29: ; preds = %123, %0
%30 = load i32, i32* %2
%31 = load i32, i32* %6
%32 = sdiv i32 %31, 2
%33 = icmp slt i32 %30, %32
br i1 %33, label %34, label %128
34: ; preds = %29
%35 = load i32*, i32** %5
%36 = load i32, i32* %2
%37 = load i32, i32* @SEEK_SET
%38 = call i32 @fseek(i32* %35, i32 %36, i32 %37)
%39 = getelementptr inbounds [48 x i8], [48 x i8]* %7, i64 0, i64 0
%40 = load i32*, i32** %5
%41 = call i32 @fread(i8* %39, i32 16, i32 1, i32* %40)
%42 = load i32, i32* %2
%43 = icmp eq i32 %42, 1536
br i1 %43, label %44, label %53
44: ; preds = %34
%45 = load i32*, i32** %4
%46 = load i32, i32* %2
%47 = sdiv i32 %46, 48
%48 = load i32, i32* %2
%49 = sdiv i32 %48, 48
%50 = load i32, i32* %2
%51 = sdiv i32 %50, 48
%52 = call i32 (i32*, i8*, ...) @fprintf(i32* %45, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0), i32 %47, i32 %49, i32 %51)
br label %53
53: ; preds = %44, %34
%54 = load i32, i32* %2
%55 = add nsw i32 %54, 16
%56 = sdiv i32 %55, 48
store i32 %56, i32* %8
%57 = load i32*, i32** %4
%58 = getelementptr inbounds [48 x i8], [48 x i8]* %7, i64 0, i64 0
%59 = load i8, i8* %58
%60 = zext i8 %59 to i32
%61 = getelementptr inbounds [48 x i8], [48 x i8]* %7, i64 0, i64 1
%62 = load i8, i8* %61
%63 = zext i8 %62 to i32
%64 = getelementptr inbounds [48 x i8], [48 x i8]* %7, i64 0, i64 2
%65 = load i8, i8* %64
%66 = zext i8 %65 to i32
%67 = getelementptr inbounds [48 x i8], [48 x i8]* %7, i64 0, i64 3
%68 = load i8, i8* %67
%69 = zext i8 %68 to i32
%70 = getelementptr inbounds [48 x i8], [48 x i8]* %7, i64 0, i64 4
%71 = load i8, i8* %70
%72 = zext i8 %71 to i32
%73 = getelementptr inbounds [48 x i8], [48 x i8]* %7, i64 0, i64 5
%74 = load i8, i8* %73
%75 = zext i8 %74 to i32
%76 = getelementptr inbounds [48 x i8], [48 x i8]* %7, i64 0, i64 6
%77 = load i8, i8* %76
%78 = zext i8 %77 to i32
%79 = getelementptr inbounds [48 x i8], [48 x i8]* %7, i64 0, i64 7
%80 = load i8, i8* %79
%81 = zext i8 %80 to i32
%82 = getelementptr inbounds [48 x i8], [48 x i8]* %7, i64 0, i64 8
%83 = load i8, i8* %82
%84 = zext i8 %83 to i32
%85 = getelementptr inbounds [48 x i8], [48 x i8]* %7, i64 0, i64 9
%86 = load i8, i8* %85
%87 = zext i8 %86 to i32
%88 = getelementptr inbounds [48 x i8], [48 x i8]* %7, i64 0, i64 10
%89 = load i8, i8* %88
%90 = zext i8 %89 to i32
%91 = getelementptr inbounds [48 x i8], [48 x i8]* %7, i64 0, i64 11
%92 = load i8, i8* %91
%93 = zext i8 %92 to i32
%94 = getelementptr inbounds [48 x i8], [48 x i8]* %7, i64 0, i64 12
%95 = load i8, i8* %94
%96 = zext i8 %95 to i32
%97 = getelementptr inbounds [48 x i8], [48 x i8]* %7, i64 0, i64 13
%98 = load i8, i8* %97
%99 = zext i8 %98 to i32
%100 = getelementptr inbounds [48 x i8], [48 x i8]* %7, i64 0, i64 14
%101 = load i8, i8* %100
%102 = zext i8 %101 to i32
%103 = getelementptr inbounds [48 x i8], [48 x i8]* %7, i64 0, i64 15
%104 = load i8, i8* %103
%105 = zext i8 %104 to i32
%106 = call i32 (i32*, i8*, ...) @fprintf(i32* %57, i8* getelementptr inbounds ([114 x i8], [114 x i8]* @.str.13, i64 0, i64 0), i32 %60, i32 %63, i32 %66, i32 %69, i32 %72, i32 %75, i32 %78, i32 %81, i32 %84, i32 %87, i32 %90, i32 %93, i32 %96, i32 %99, i32 %102, i32 %105)
%107 = load i32, i32* %8
%108 = icmp eq i32 %107, 127
br i1 %108, label %109, label %110
109: ; preds = %53
br label %128
110: ; preds = %53
%111 = load i32, i32* %3
%112 = srem i32 %111, 3
%113 = icmp eq i32 %112, 0
br i1 %113, label %114, label %122
114: ; preds = %110
%115 = load i32*, i32** %4
%116 = call i32 (i32*, i8*, ...) @fprintf(i32* %115, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
%117 = load i32*, i32** %4
%118 = load i32, i32* %8
%119 = load i32, i32* %8
%120 = load i32, i32* %8
%121 = call i32 (i32*, i8*, ...) @fprintf(i32* %117, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0), i32 %118, i32 %119, i32 %120)
br label %122
122: ; preds = %114, %110
br label %123
123: ; preds = %122
%124 = load i32, i32* %2
%125 = add nsw i32 %124, 16
store i32 %125, i32* %2
%126 = load i32, i32* %3
%127 = add nsw i32 %126, 1
store i32 %127, i32* %3
br label %29
128: ; preds = %109, %29
%129 = load i32*, i32** %4
%130 = call i32 (i32*, i8*, ...) @fprintf(i32* %129, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0))
%131 = load i32*, i32** @stdout
%132 = call i32 (i32*, i8*, ...) @fprintf(i32* %131, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"ASC24\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [10 x i8] c"ascii24.h\00"
@.str.3 = [4 x i8] c"wb+\00"
@SEEK_END = global i32 0
@.str.4 = [58 x i8] c"/******************************************************/\0A\00"
@.str.5 = [58 x i8] c"/* Font file powered by Late Lee */\0A\00"
@.str.6 = [58 x i8] c"/* http://www.latelee.org */\0A\00"
@.str.7 = [43 x i8] c"/* %s %s */\0A\00"
@.str.8 = [12 x i8] c"Mar 17 2022\00"
@.str.9 = [9 x i8] c"18:03:23\00"
@.str.10 = [25 x i8] c"unsigned char %s[] = \0A{\0A\00"
@.str.11 = [8 x i8] c"ascii24\00"
@SEEK_SET = global i32 0
@.str.12 = [36 x i8] c"/* %d 0x%x ' %c ' */\0A\00"
@.str.13 = [114 x i8] c"0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,\0A\00"
@.str.15 = [4 x i8] c"};\0A\00"
@stdout = global i32* null
@.str.16 = [11 x i8] c"Job done!\0A\00"
define i32 @main() {
%1 = alloca [48 x i8]
%2 = getelementptr inbounds [48 x i8], [48 x i8]* %1, i64 0, i64 0
%3 = tail call i32* @fopen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%5 = load i32, i32* @SEEK_END
%6 = tail call i32 @fseek(i32* %3, i32 0, i32 %5)
%7 = tail call i32 @ftell(i32* %3)
%8 = tail call i64 @fwrite(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.4, i64 0, i64 0), i64 57, i64 1, i32* %4)
%9 = tail call i64 @fwrite(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0), i64 57, i64 1, i32* %4)
%10 = tail call i64 @fwrite(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.6, i64 0, i64 0), i64 57, i64 1, i32* %4)
%11 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
%12 = tail call i64 @fwrite(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.4, i64 0, i64 0), i64 57, i64 1, i32* %4)
%13 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%14 = icmp sgt i32 %7, 3073
br i1 %14, label %15, label %91
15: ; preds = %0
%16 = lshr i32 %7, 1
%17 = getelementptr inbounds [48 x i8], [48 x i8]* %1, i64 0, i64 1
%18 = getelementptr inbounds [48 x i8], [48 x i8]* %1, i64 0, i64 2
%19 = getelementptr inbounds [48 x i8], [48 x i8]* %1, i64 0, i64 3
%20 = getelementptr inbounds [48 x i8], [48 x i8]* %1, i64 0, i64 4
%21 = getelementptr inbounds [48 x i8], [48 x i8]* %1, i64 0, i64 5
%22 = getelementptr inbounds [48 x i8], [48 x i8]* %1, i64 0, i64 6
%23 = getelementptr inbounds [48 x i8], [48 x i8]* %1, i64 0, i64 7
%24 = getelementptr inbounds [48 x i8], [48 x i8]* %1, i64 0, i64 8
%25 = getelementptr inbounds [48 x i8], [48 x i8]* %1, i64 0, i64 9
%26 = getelementptr inbounds [48 x i8], [48 x i8]* %1, i64 0, i64 10
%27 = getelementptr inbounds [48 x i8], [48 x i8]* %1, i64 0, i64 11
%28 = getelementptr inbounds [48 x i8], [48 x i8]* %1, i64 0, i64 12
%29 = getelementptr inbounds [48 x i8], [48 x i8]* %1, i64 0, i64 13
%30 = getelementptr inbounds [48 x i8], [48 x i8]* %1, i64 0, i64 14
%31 = getelementptr inbounds [48 x i8], [48 x i8]* %1, i64 0, i64 15
%32 = call i32 @llvm.smax.i32(i32 %16, i32 1552)
%33 = add nsw i32 %32, -1537
%34 = lshr i32 %33, 4
%35 = add nuw nsw i32 %34, 1
br label %36
36: ; preds = %15, %88
%37 = phi i32 [ 1536, %15 ], [ %46, %88 ]
%38 = phi i32 [ 1, %15 ], [ %89, %88 ]
%39 = load i32, i32* @SEEK_SET
%40 = tail call i32 @fseek(i32* %3, i32 %37, i32 %39)
%41 = call i32 @fread(i8* %2, i32 16, i32 1, i32* %3)
%42 = icmp eq i32 %37, 1536
br i1 %42, label %43, label %45
43: ; preds = %36
%44 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0), i32 32, i32 32, i32 32)
br label %45
45: ; preds = %43, %36
%46 = add nuw nsw i32 %37, 16
%47 = udiv i32 %46, 48
%48 = load i8, i8* %2
%49 = zext i8 %48 to i32
%50 = load i8, i8* %17
%51 = zext i8 %50 to i32
%52 = load i8, i8* %18
%53 = zext i8 %52 to i32
%54 = load i8, i8* %19
%55 = zext i8 %54 to i32
%56 = load i8, i8* %20
%57 = zext i8 %56 to i32
%58 = load i8, i8* %21
%59 = zext i8 %58 to i32
%60 = load i8, i8* %22
%61 = zext i8 %60 to i32
%62 = load i8, i8* %23
%63 = zext i8 %62 to i32
%64 = load i8, i8* %24
%65 = zext i8 %64 to i32
%66 = load i8, i8* %25
%67 = zext i8 %66 to i32
%68 = load i8, i8* %26
%69 = zext i8 %68 to i32
%70 = load i8, i8* %27
%71 = zext i8 %70 to i32
%72 = load i8, i8* %28
%73 = zext i8 %72 to i32
%74 = load i8, i8* %29
%75 = zext i8 %74 to i32
%76 = load i8, i8* %30
%77 = zext i8 %76 to i32
%78 = load i8, i8* %31
%79 = zext i8 %78 to i32
%80 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([114 x i8], [114 x i8]* @.str.13, i64 0, i64 0), i32 %49, i32 %51, i32 %53, i32 %55, i32 %57, i32 %59, i32 %61, i32 %63, i32 %65, i32 %67, i32 %69, i32 %71, i32 %73, i32 %75, i32 %77, i32 %79)
%81 = icmp eq i32 %38, 285
br i1 %81, label %91, label %82
82: ; preds = %45
%83 = urem i32 %38, 3
%84 = icmp eq i32 %83, 0
br i1 %84, label %85, label %88
85: ; preds = %82
%86 = tail call i32 @fputc(i32 10, i32* %4)
%87 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0), i32 %47, i32 %47, i32 %47)
br label %88
88: ; preds = %85, %82
%89 = add nuw nsw i32 %38, 1
%90 = icmp eq i32 %38, %35
br i1 %90, label %91, label %36
91: ; preds = %88, %45, %0
%92 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i64 3, i64 1, i32* %4)
%93 = load i32*, i32** @stdout
%94 = tail call i64 @fwrite(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0), i64 10, i64 1, i32* %93)
ret i32 0
}