#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*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  FILE *arch;
  int r, g, b, h, l, i = 0;
  int byte[2] = {0, 255};
  int four[4] = {0, 85, 170, 255};
  int RG[4] = {32, 96, 159, 223};
  int B[2] = {64, 192};
  arch = fopen("minimOS64.gpl", "w");
  if (arch == NULL) {
    printf("*** CANNOT WRITE ***\n");
    return -1;
  }
  fprintf(arch, "GIMP Palette\nName: minimOS\nColumns: 16\n#\n");
  for (h = 0; h < 2; h++) {
    for (r = 0; r < 2; r++) {
      for (l = 0; l < 2; l++) {
        for (b = 0; b < 2; b++) {
          g = (h << 1) | l;
          fprintf(arch, "%d %d %d\tIndex %d\n", byte[r], four[g], byte[b], i++);
        }
      }
    }
  }
  printf("Created %d system colours\n", i);
  for (g = 15; g < 255; g += 15) {
    fprintf(arch, "%d %d %d\tIndex %d\n", g, g, g, i++);
  }
  printf("Added system greyscale (total %d entries)\n", i);
  for (r = 0; r < 4; r++) {
    for (g = 0; g < 4; g++) {
      for (b = 0; b < 2; b++) {
        fprintf(arch, "%d %d %d\tIndex %d\n", RG[r], RG[g], B[b], i++);
      }
    }
  }
  fclose(arch);
  printf("Finished palette with %d entries\n", i);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x28(%rbp)
mov    0xea3(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xea8(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xea5(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xea2(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xe9f(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xe74(%rip),%rax
mov    %rax,-0x58(%rbp)
lea    0xe91(%rip),%rdi
lea    0xe98(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    11d4 <main+0x94>
lea    0xe7f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13e2 <main+0x2a2>
mov    -0x10(%rbp),%rdi
lea    0xe77(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x20(%rbp)
cmpl   $0x2,-0x20(%rbp)
jge    12b5 <main+0x175>
movl   $0x0,-0x14(%rbp)
cmpl   $0x2,-0x14(%rbp)
jge    12a2 <main+0x162>
movl   $0x0,-0x24(%rbp)
cmpl   $0x2,-0x24(%rbp)
jge    128f <main+0x14f>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x2,-0x1c(%rbp)
jge    127c <main+0x13c>
mov    -0x20(%rbp),%eax
shl    $0x1,%eax
or     -0x24(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%edx
movslq -0x18(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%ecx
movslq -0x1c(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%r8d
mov    -0x28(%rbp),%r9d
mov    %r9d,%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
lea    0xe19(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1220 <main+0xe0>
jmp    1281 <main+0x141>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    120f <main+0xcf>
jmp    1294 <main+0x154>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11fe <main+0xbe>
jmp    12a7 <main+0x167>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11ed <main+0xad>
mov    -0x28(%rbp),%esi
lea    0xdd4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xf,-0x18(%rbp)
cmpl   $0xff,-0x18(%rbp)
jge    1311 <main+0x1d1>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    -0x28(%rbp),%r9d
mov    %r9d,%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
lea    0xd84(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%eax
add    $0xf,%eax
mov    %eax,-0x18(%rbp)
jmp    12cd <main+0x18d>
mov    -0x28(%rbp),%esi
lea    0xd93(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x4,-0x14(%rbp)
jge    13c1 <main+0x281>
movl   $0x0,-0x18(%rbp)
cmpl   $0x4,-0x18(%rbp)
jge    13ae <main+0x26e>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x2,-0x1c(%rbp)
jge    139b <main+0x25b>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
mov    -0x50(%rbp,%rax,4),%edx
movslq -0x18(%rbp),%rax
mov    -0x50(%rbp,%rax,4),%ecx
movslq -0x1c(%rbp),%rax
mov    -0x58(%rbp,%rax,4),%r8d
mov    -0x28(%rbp),%r9d
mov    %r9d,%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
lea    0xcfa(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    134b <main+0x20b>
jmp    13a0 <main+0x260>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    133a <main+0x1fa>
jmp    13b3 <main+0x273>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1329 <main+0x1e9>
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x28(%rbp),%esi
lea    0xd05(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
lea    0xe95(%rip),%rdi
lea    0xe9c(%rip),%rsi
call   1070 <fopen@plt>
test   %rax,%rax
je     1a6a <main+0x90a>
mov    %rax,%rbx
lea    0xe86(%rip),%rdi
mov    $0x29,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1080 <fwrite@plt>
lea    0xe97(%rip),%rbp
xor    %r14d,%r14d
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %edx,%edx
xor    %ecx,%ecx
mov    $0xff,%r8d
mov    $0x1,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %edx,%edx
mov    $0x55,%ecx
xor    %r8d,%r8d
mov    $0x2,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %edx,%edx
mov    $0x55,%ecx
mov    $0xff,%r8d
mov    $0x3,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xff,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    $0x4,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xff,%edx
xor    %ecx,%ecx
mov    $0xff,%r8d
mov    $0x5,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xff,%edx
mov    $0x55,%ecx
xor    %r8d,%r8d
mov    $0x6,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xff,%edx
mov    $0x55,%ecx
mov    $0xff,%r8d
mov    $0x7,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %edx,%edx
mov    $0xaa,%ecx
xor    %r8d,%r8d
mov    $0x8,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %edx,%edx
mov    $0xaa,%ecx
mov    $0xff,%r8d
mov    $0x9,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %edx,%edx
mov    $0xff,%ecx
xor    %r8d,%r8d
mov    $0xa,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %edx,%edx
mov    $0xff,%ecx
mov    $0xff,%r8d
mov    $0xb,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xff,%edx
mov    $0xaa,%ecx
xor    %r8d,%r8d
mov    $0xc,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xff,%edx
mov    $0xaa,%ecx
mov    $0xff,%r8d
mov    $0xd,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xff,%edx
mov    $0xff,%ecx
xor    %r8d,%r8d
mov    $0xe,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xff,%edx
mov    $0xff,%ecx
mov    $0xff,%r8d
mov    $0xf,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0xcaf(%rip),%rdi
mov    $0x10,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xf,%edx
mov    $0xf,%ecx
mov    $0xf,%r8d
mov    $0x10,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x1e,%edx
mov    $0x1e,%ecx
mov    $0x1e,%r8d
mov    $0x11,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x2d,%edx
mov    $0x2d,%ecx
mov    $0x2d,%r8d
mov    $0x12,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x3c,%edx
mov    $0x3c,%ecx
mov    $0x3c,%r8d
mov    $0x13,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x4b,%edx
mov    $0x4b,%ecx
mov    $0x4b,%r8d
mov    $0x14,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x5a,%edx
mov    $0x5a,%ecx
mov    $0x5a,%r8d
mov    $0x15,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x69,%edx
mov    $0x69,%ecx
mov    $0x69,%r8d
mov    $0x16,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x78,%edx
mov    $0x78,%ecx
mov    $0x78,%r8d
mov    $0x17,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x87,%edx
mov    $0x87,%ecx
mov    $0x87,%r8d
mov    $0x18,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x96,%edx
mov    $0x96,%ecx
mov    $0x96,%r8d
mov    $0x19,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xa5,%edx
mov    $0xa5,%ecx
mov    $0xa5,%r8d
mov    $0x1a,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xb4,%edx
mov    $0xb4,%ecx
mov    $0xb4,%r8d
mov    $0x1b,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xc3,%edx
mov    $0xc3,%ecx
mov    $0xc3,%r8d
mov    $0x1c,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xd2,%edx
mov    $0xd2,%ecx
mov    $0xd2,%r8d
mov    $0x1d,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xe1,%edx
mov    $0xe1,%ecx
mov    $0xe1,%r8d
mov    $0x1e,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xf0,%edx
mov    $0xf0,%ecx
mov    $0xf0,%r8d
mov    $0x1f,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0xa87(%rip),%rdi
mov    $0x20,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x20,%edx
mov    $0x20,%ecx
mov    $0x40,%r8d
mov    $0x20,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x20,%edx
mov    $0x20,%ecx
mov    $0xc0,%r8d
mov    $0x21,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x20,%edx
mov    $0x60,%ecx
mov    $0x40,%r8d
mov    $0x22,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x20,%edx
mov    $0x60,%ecx
mov    $0xc0,%r8d
mov    $0x23,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x20,%edx
mov    $0x9f,%ecx
mov    $0x40,%r8d
mov    $0x24,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x20,%edx
mov    $0x9f,%ecx
mov    $0xc0,%r8d
mov    $0x25,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x20,%edx
mov    $0xdf,%ecx
mov    $0x40,%r8d
mov    $0x26,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x20,%edx
mov    $0xdf,%ecx
mov    $0xc0,%r8d
mov    $0x27,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x60,%edx
mov    $0x20,%ecx
mov    $0x40,%r8d
mov    $0x28,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x60,%edx
mov    $0x20,%ecx
mov    $0xc0,%r8d
mov    $0x29,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x60,%edx
mov    $0x60,%ecx
mov    $0x40,%r8d
mov    $0x2a,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x60,%edx
mov    $0x60,%ecx
mov    $0xc0,%r8d
mov    $0x2b,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x60,%edx
mov    $0x9f,%ecx
mov    $0x40,%r8d
mov    $0x2c,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x60,%edx
mov    $0x9f,%ecx
mov    $0xc0,%r8d
mov    $0x2d,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x60,%edx
mov    $0xdf,%ecx
mov    $0x40,%r8d
mov    $0x2e,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x60,%edx
mov    $0xdf,%ecx
mov    $0xc0,%r8d
mov    $0x2f,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x9f,%edx
mov    $0x20,%ecx
mov    $0x40,%r8d
mov    $0x30,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x9f,%edx
mov    $0x20,%ecx
mov    $0xc0,%r8d
mov    $0x31,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x9f,%edx
mov    $0x60,%ecx
mov    $0x40,%r8d
mov    $0x32,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x9f,%edx
mov    $0x60,%ecx
mov    $0xc0,%r8d
mov    $0x33,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x9f,%edx
mov    $0x9f,%ecx
mov    $0x40,%r8d
mov    $0x34,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x9f,%edx
mov    $0x9f,%ecx
mov    $0xc0,%r8d
mov    $0x35,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x9f,%edx
mov    $0xdf,%ecx
mov    $0x40,%r8d
mov    $0x36,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x9f,%edx
mov    $0xdf,%ecx
mov    $0xc0,%r8d
mov    $0x37,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xdf,%edx
mov    $0x20,%ecx
mov    $0x40,%r8d
mov    $0x38,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xdf,%edx
mov    $0x20,%ecx
mov    $0xc0,%r8d
mov    $0x39,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xdf,%edx
mov    $0x60,%ecx
mov    $0x40,%r8d
mov    $0x3a,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xdf,%edx
mov    $0x60,%ecx
mov    $0xc0,%r8d
mov    $0x3b,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xdf,%edx
mov    $0x9f,%ecx
mov    $0x40,%r8d
mov    $0x3c,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xdf,%edx
mov    $0x9f,%ecx
mov    $0xc0,%r8d
mov    $0x3d,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xdf,%edx
mov    $0xdf,%ecx
mov    $0x40,%r8d
mov    $0x3e,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xdf,%edx
mov    $0xdf,%ecx
mov    $0xc0,%r8d
mov    $0x3f,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
lea    0x637(%rip),%rdi
mov    $0x40,%esi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1a7c <main+0x91c>
lea    0x644(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%r14d
mov    %r14d,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.byte = [2 x i32] [i32 0, i32 255]
@__const.main.four = [4 x i32] [i32 0, i32 85, i32 170, i32 255]
@__const.main.RG = [4 x i32] [i32 32, i32 96, i32 159, i32 223]
@__const.main.B = [2 x i32] [i32 64, i32 192]
@.str = [14 x i8] c"minimOS64.gpl\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [22 x i8] c"*** CANNOT WRITE ***\0A\00"
@.str.3 = [42 x i8] c"GIMP Palette\0AName: minimOS\0AColumns: 16\0A#\0A\00"
@.str.4 = [19 x i8] c"%d %d %d\09Index %d\0A\00"
@.str.5 = [27 x i8] c"Created %d system colours\0A\00"
@.str.6 = [43 x i8] c"Added system greyscale (total %d entries)\0A\00"
@.str.7 = [34 x i8] c"Finished palette with %d entries\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 i32
%8 = alloca i32
%9 = alloca [2 x i32]
%10 = alloca [4 x i32]
%11 = alloca [4 x i32]
%12 = alloca [2 x i32]
store i32 0, i32* %1
store i32 0, i32* %8
%13 = bitcast [2 x i32]* %9 to i8*
%14 = bitcast [4 x i32]* %10 to i8*
%15 = bitcast [4 x i32]* %11 to i8*
%16 = bitcast [2 x i32]* %12 to i8*
%17 = call i32* @fopen(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %17, i32** %2
%18 = load i32*, i32** %2
%19 = icmp eq i32* %18, null
br i1 %19, label %20, label %22
20: ; preds = %0
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
store i32 -1, i32* %1
br label %140
22: ; preds = %0
%23 = load i32*, i32** %2
%24 = call i32 (i32*, i8*, ...) @fprintf(i32* %23, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %6
br label %25
25: ; preds = %73, %22
%26 = load i32, i32* %6
%27 = icmp slt i32 %26, 2
br i1 %27, label %28, label %76
28: ; preds = %25
store i32 0, i32* %3
br label %29
29: ; preds = %69, %28
%30 = load i32, i32* %3
%31 = icmp slt i32 %30, 2
br i1 %31, label %32, label %72
32: ; preds = %29
store i32 0, i32* %7
br label %33
33: ; preds = %65, %32
%34 = load i32, i32* %7
%35 = icmp slt i32 %34, 2
br i1 %35, label %36, label %68
36: ; preds = %33
store i32 0, i32* %5
br label %37
37: ; preds = %61, %36
%38 = load i32, i32* %5
%39 = icmp slt i32 %38, 2
br i1 %39, label %40, label %64
40: ; preds = %37
%41 = load i32, i32* %6
%42 = shl i32 %41, 1
%43 = load i32, i32* %7
%44 = or i32 %42, %43
store i32 %44, i32* %4
%45 = load i32*, i32** %2
%46 = load i32, i32* %3
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 %47
%49 = load i32, i32* %48
%50 = load i32, i32* %4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [4 x i32], [4 x i32]* %10, i64 0, i64 %51
%53 = load i32, i32* %52
%54 = load i32, i32* %5
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 %55
%57 = load i32, i32* %56
%58 = load i32, i32* %8
%59 = add nsw i32 %58, 1
store i32 %59, i32* %8
%60 = call i32 (i32*, i8*, ...) @fprintf(i32* %45, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 %49, i32 %53, i32 %57, i32 %58)
br label %61
61: ; preds = %40
%62 = load i32, i32* %5
%63 = add nsw i32 %62, 1
store i32 %63, i32* %5
br label %37
64: ; preds = %37
br label %65
65: ; preds = %64
%66 = load i32, i32* %7
%67 = add nsw i32 %66, 1
store i32 %67, i32* %7
br label %33
68: ; preds = %33
br label %69
69: ; preds = %68
%70 = load i32, i32* %3
%71 = add nsw i32 %70, 1
store i32 %71, i32* %3
br label %29
72: ; preds = %29
br label %73
73: ; preds = %72
%74 = load i32, i32* %6
%75 = add nsw i32 %74, 1
store i32 %75, i32* %6
br label %25
76: ; preds = %25
%77 = load i32, i32* %8
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i32 %77)
store i32 15, i32* %4
br label %79
79: ; preds = %90, %76
%80 = load i32, i32* %4
%81 = icmp slt i32 %80, 255
br i1 %81, label %82, label %93
82: ; preds = %79
%83 = load i32*, i32** %2
%84 = load i32, i32* %4
%85 = load i32, i32* %4
%86 = load i32, i32* %4
%87 = load i32, i32* %8
%88 = add nsw i32 %87, 1
store i32 %88, i32* %8
%89 = call i32 (i32*, i8*, ...) @fprintf(i32* %83, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 %84, i32 %85, i32 %86, i32 %87)
br label %90
90: ; preds = %82
%91 = load i32, i32* %4
%92 = add nsw i32 %91, 15
store i32 %92, i32* %4
br label %79
93: ; preds = %79
%94 = load i32, i32* %8
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0), i32 %94)
store i32 0, i32* %3
br label %96
96: ; preds = %132, %93
%97 = load i32, i32* %3
%98 = icmp slt i32 %97, 4
br i1 %98, label %99, label %135
99: ; preds = %96
store i32 0, i32* %4
br label %100
100: ; preds = %128, %99
%101 = load i32, i32* %4
%102 = icmp slt i32 %101, 4
br i1 %102, label %103, label %131
103: ; preds = %100
store i32 0, i32* %5
br label %104
104: ; preds = %124, %103
%105 = load i32, i32* %5
%106 = icmp slt i32 %105, 2
br i1 %106, label %107, label %127
107: ; preds = %104
%108 = load i32*, i32** %2
%109 = load i32, i32* %3
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [4 x i32], [4 x i32]* %11, i64 0, i64 %110
%112 = load i32, i32* %111
%113 = load i32, i32* %4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds [4 x i32], [4 x i32]* %11, i64 0, i64 %114
%116 = load i32, i32* %115
%117 = load i32, i32* %5
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds [2 x i32], [2 x i32]* %12, i64 0, i64 %118
%120 = load i32, i32* %119
%121 = load i32, i32* %8
%122 = add nsw i32 %121, 1
store i32 %122, i32* %8
%123 = call i32 (i32*, i8*, ...) @fprintf(i32* %108, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 %112, i32 %116, i32 %120, i32 %121)
br label %124
124: ; preds = %107
%125 = load i32, i32* %5
%126 = add nsw i32 %125, 1
store i32 %126, i32* %5
br label %104
127: ; preds = %104
br label %128
128: ; preds = %127
%129 = load i32, i32* %4
%130 = add nsw i32 %129, 1
store i32 %130, i32* %4
br label %100
131: ; preds = %100
br label %132
132: ; preds = %131
%133 = load i32, i32* %3
%134 = add nsw i32 %133, 1
store i32 %134, i32* %3
br label %96
135: ; preds = %96
%136 = load i32*, i32** %2
%137 = call i32 @fclose(i32* %136)
%138 = load i32, i32* %8
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0), i32 %138)
store i32 0, i32* %1
br label %140
140: ; preds = %135, %20
%141 = load i32, i32* %1
ret i32 %141
}

LLVM IR (-O2):
@.str = [14 x i8] c"minimOS64.gpl\00"
@.str.1 = [2 x i8] c"w\00"
@.str.3 = [42 x i8] c"GIMP Palette\0AName: minimOS\0AColumns: 16\0A#\0A\00"
@.str.4 = [19 x i8] c"%d %d %d\09Index %d\0A\00"
@.str.5 = [27 x i8] c"Created %d system colours\0A\00"
@.str.6 = [43 x i8] c"Added system greyscale (total %d entries)\0A\00"
@.str.7 = [34 x i8] c"Finished palette with %d entries\0A\00"
@str = [21 x i8] c"*** CANNOT WRITE ***\00"
define i32 @main() {
%1 = tail call i32* @fopen(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%2 = icmp eq i32* %1, null
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
br label %75
5: ; preds = %0
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0), i64 41, i64 1, i32* %1)
%7 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 0, i32 0, i32 0, i32 0)
%8 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 0, i32 0, i32 255, i32 1)
%9 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 0, i32 85, i32 0, i32 2)
%10 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 0, i32 85, i32 255, i32 3)
%11 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 255, i32 0, i32 0, i32 4)
%12 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 255, i32 0, i32 255, i32 5)
%13 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 255, i32 85, i32 0, i32 6)
%14 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 255, i32 85, i32 255, i32 7)
%15 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 0, i32 170, i32 0, i32 8)
%16 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 0, i32 170, i32 255, i32 9)
%17 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 0, i32 255, i32 0, i32 10)
%18 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 0, i32 255, i32 255, i32 11)
%19 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 255, i32 170, i32 0, i32 12)
%20 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 255, i32 170, i32 255, i32 13)
%21 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 255, i32 255, i32 0, i32 14)
%22 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 255, i32 255, i32 255, i32 15)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i32 16)
%24 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 15, i32 15, i32 15, i32 16)
%25 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 30, i32 30, i32 30, i32 17)
%26 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 45, i32 45, i32 45, i32 18)
%27 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 60, i32 60, i32 60, i32 19)
%28 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 75, i32 75, i32 75, i32 20)
%29 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 90, i32 90, i32 90, i32 21)
%30 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 105, i32 105, i32 105, i32 22)
%31 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 120, i32 120, i32 120, i32 23)
%32 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 135, i32 135, i32 135, i32 24)
%33 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 150, i32 150, i32 150, i32 25)
%34 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 165, i32 165, i32 165, i32 26)
%35 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 180, i32 180, i32 180, i32 27)
%36 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 195, i32 195, i32 195, i32 28)
%37 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 210, i32 210, i32 210, i32 29)
%38 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 225, i32 225, i32 225, i32 30)
%39 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 240, i32 240, i32 240, i32 31)
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0), i32 32)
%41 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 32, i32 32, i32 64, i32 32)
%42 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 32, i32 32, i32 192, i32 33)
%43 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 32, i32 96, i32 64, i32 34)
%44 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 32, i32 96, i32 192, i32 35)
%45 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 32, i32 159, i32 64, i32 36)
%46 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 32, i32 159, i32 192, i32 37)
%47 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 32, i32 223, i32 64, i32 38)
%48 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 32, i32 223, i32 192, i32 39)
%49 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 96, i32 32, i32 64, i32 40)
%50 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 96, i32 32, i32 192, i32 41)
%51 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 96, i32 96, i32 64, i32 42)
%52 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 96, i32 96, i32 192, i32 43)
%53 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 96, i32 159, i32 64, i32 44)
%54 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 96, i32 159, i32 192, i32 45)
%55 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 96, i32 223, i32 64, i32 46)
%56 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 96, i32 223, i32 192, i32 47)
%57 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 159, i32 32, i32 64, i32 48)
%58 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 159, i32 32, i32 192, i32 49)
%59 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 159, i32 96, i32 64, i32 50)
%60 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 159, i32 96, i32 192, i32 51)
%61 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 159, i32 159, i32 64, i32 52)
%62 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 159, i32 159, i32 192, i32 53)
%63 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 159, i32 223, i32 64, i32 54)
%64 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 159, i32 223, i32 192, i32 55)
%65 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 223, i32 32, i32 64, i32 56)
%66 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 223, i32 32, i32 192, i32 57)
%67 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 223, i32 96, i32 64, i32 58)
%68 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 223, i32 96, i32 192, i32 59)
%69 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 223, i32 159, i32 64, i32 60)
%70 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 223, i32 159, i32 192, i32 61)
%71 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 223, i32 223, i32 64, i32 62)
%72 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 223, i32 223, i32 192, i32 63)
%73 = tail call i32 @fclose(i32* %1)
%74 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0), i32 64)
br label %75
75: ; preds = %5, %3
%76 = phi i32 [ -1, %3 ], [ 0, %5 ]
ret i32 %76
}