#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 B[4] = {32, 96, 159, 223};
  int G[8] = {16, 48, 80, 112, 143, 175, 207, 239};
  int R[3] = {42, 128, 213};
  arch = fopen("minimOS128.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 < 3; r++) {
    for (l = 0; l < 2; l++) {
      for (g = 0; g < 8; g++) {
        for (h = 0; h < 2; h++) {
          b = (h << 1) | l;
          fprintf(arch, "%d %d %d\tIndex %d\n", R[r], G[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    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x28(%rbp)
mov    0xea0(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xea5(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xea2(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xe9f(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xe9c(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xe99(%rip),%rax
mov    %rax,-0x70(%rbp)
mov    0xe96(%rip),%rax
mov    %rax,-0x68(%rbp)
mov    0xe93(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0xe90(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0xe8d(%rip),%rax
mov    %rax,-0x7c(%rbp)
mov    0xe8b(%rip),%eax
mov    %eax,-0x74(%rbp)
lea    0xe85(%rip),%rdi
lea    0xe8d(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    120c <main+0xcc>
lea    0xe74(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    144a <main+0x30a>
mov    -0x10(%rbp),%rdi
lea    0xe6c(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x20(%rbp)
cmpl   $0x2,-0x20(%rbp)
jge    12ed <main+0x1ad>
movl   $0x0,-0x14(%rbp)
cmpl   $0x2,-0x14(%rbp)
jge    12da <main+0x19a>
movl   $0x0,-0x24(%rbp)
cmpl   $0x2,-0x24(%rbp)
jge    12c7 <main+0x187>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x2,-0x1c(%rbp)
jge    12b4 <main+0x174>
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    0xe0e(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1258 <main+0x118>
jmp    12b9 <main+0x179>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1247 <main+0x107>
jmp    12cc <main+0x18c>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1236 <main+0xf6>
jmp    12df <main+0x19f>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1225 <main+0xe5>
mov    -0x28(%rbp),%esi
lea    0xdc9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xf,-0x18(%rbp)
cmpl   $0xff,-0x18(%rbp)
jge    1349 <main+0x209>
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    0xd79(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%eax
add    $0xf,%eax
mov    %eax,-0x18(%rbp)
jmp    1305 <main+0x1c5>
mov    -0x28(%rbp),%esi
lea    0xd88(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x3,-0x14(%rbp)
jge    1429 <main+0x2e9>
movl   $0x0,-0x24(%rbp)
cmpl   $0x2,-0x24(%rbp)
jge    1416 <main+0x2d6>
movl   $0x0,-0x18(%rbp)
cmpl   $0x8,-0x18(%rbp)
jge    1403 <main+0x2c3>
movl   $0x0,-0x20(%rbp)
cmpl   $0x2,-0x20(%rbp)
jge    13f0 <main+0x2b0>
mov    -0x20(%rbp),%eax
shl    $0x1,%eax
or     -0x24(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
mov    -0x7c(%rbp,%rax,4),%edx
movslq -0x18(%rbp),%rax
mov    -0x70(%rbp,%rax,4),%ecx
movslq -0x1c(%rbp),%rax
mov    -0x50(%rbp,%rax,4),%r8d
mov    -0x28(%rbp),%r9d
mov    %r9d,%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
lea    0xcd2(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1394 <main+0x254>
jmp    13f5 <main+0x2b5>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1383 <main+0x243>
jmp    1408 <main+0x2c8>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1372 <main+0x232>
jmp    141b <main+0x2db>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1361 <main+0x221>
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x28(%rbp),%esi
lea    0xcca(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xe9a(%rip),%rdi
lea    0xea2(%rip),%rsi
call   1070 <fopen@plt>
test   %rax,%rax
je     19ff <main+0x89f>
mov    %rax,%r15
lea    0xe8c(%rip),%rdi
mov    $0x29,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1080 <fwrite@plt>
lea    0xe9d(%rip),%r14
mov    %r15,%rdi
mov    %r14,%rsi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
xor    %edx,%edx
xor    %ecx,%ecx
mov    $0xff,%r8d
mov    $0x1,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
xor    %edx,%edx
mov    $0x55,%ecx
xor    %r8d,%r8d
mov    $0x2,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
xor    %edx,%edx
mov    $0x55,%ecx
mov    $0xff,%r8d
mov    $0x3,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0xff,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    $0x4,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0xff,%edx
xor    %ecx,%ecx
mov    $0xff,%r8d
mov    $0x5,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0xff,%edx
mov    $0x55,%ecx
xor    %r8d,%r8d
mov    $0x6,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0xff,%edx
mov    $0x55,%ecx
mov    $0xff,%r8d
mov    $0x7,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
xor    %edx,%edx
mov    $0xaa,%ecx
xor    %r8d,%r8d
mov    $0x8,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
xor    %edx,%edx
mov    $0xaa,%ecx
mov    $0xff,%r8d
mov    $0x9,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
xor    %edx,%edx
mov    $0xff,%ecx
xor    %r8d,%r8d
mov    $0xa,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
xor    %edx,%edx
mov    $0xff,%ecx
mov    $0xff,%r8d
mov    $0xb,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0xff,%edx
mov    $0xaa,%ecx
xor    %r8d,%r8d
mov    $0xc,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0xff,%edx
mov    $0xaa,%ecx
mov    $0xff,%r8d
mov    $0xd,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0xff,%edx
mov    $0xff,%ecx
xor    %r8d,%r8d
mov    $0xe,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0xff,%edx
mov    $0xff,%ecx
mov    $0xff,%r8d
mov    $0xf,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0xcb8(%rip),%rdi
mov    $0x10,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0xf,%edx
mov    $0xf,%ecx
mov    $0xf,%r8d
mov    $0x10,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0x1e,%edx
mov    $0x1e,%ecx
mov    $0x1e,%r8d
mov    $0x11,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0x2d,%edx
mov    $0x2d,%ecx
mov    $0x2d,%r8d
mov    $0x12,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0x3c,%edx
mov    $0x3c,%ecx
mov    $0x3c,%r8d
mov    $0x13,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0x4b,%edx
mov    $0x4b,%ecx
mov    $0x4b,%r8d
mov    $0x14,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0x5a,%edx
mov    $0x5a,%ecx
mov    $0x5a,%r8d
mov    $0x15,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0x69,%edx
mov    $0x69,%ecx
mov    $0x69,%r8d
mov    $0x16,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0x78,%edx
mov    $0x78,%ecx
mov    $0x78,%r8d
mov    $0x17,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0x87,%edx
mov    $0x87,%ecx
mov    $0x87,%r8d
mov    $0x18,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0x96,%edx
mov    $0x96,%ecx
mov    $0x96,%r8d
mov    $0x19,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0xa5,%edx
mov    $0xa5,%ecx
mov    $0xa5,%r8d
mov    $0x1a,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0xb4,%edx
mov    $0xb4,%ecx
mov    $0xb4,%r8d
mov    $0x1b,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0xc3,%edx
mov    $0xc3,%ecx
mov    $0xc3,%r8d
mov    $0x1c,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0xd2,%edx
mov    $0xd2,%ecx
mov    $0xd2,%r8d
mov    $0x1d,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0xe1,%edx
mov    $0xe1,%ecx
mov    $0xe1,%r8d
mov    $0x1e,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0xf0,%edx
mov    $0xf0,%ecx
mov    $0xf0,%r8d
mov    $0x1f,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0xa90(%rip),%rdi
mov    $0x20,%r12d
mov    $0x20,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %r13d,%r13d
nopw   0x0(%rax,%rax,1)
mov    %r12d,%ebx
lea    0x9f6(%rip),%rax
mov    0x0(%r13,%rax,1),%ebp
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0x10,%ecx
mov    $0x20,%r8d
mov    %r12d,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x1(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0x10,%ecx
mov    $0x9f,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x2(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0x30,%ecx
mov    $0x20,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x3(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0x30,%ecx
mov    $0x9f,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x4(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0x50,%ecx
mov    $0x20,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x5(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0x50,%ecx
mov    $0x9f,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x6(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0x70,%ecx
mov    $0x20,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x7(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0x70,%ecx
mov    $0x9f,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x8(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0x8f,%ecx
mov    $0x20,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x9(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0x8f,%ecx
mov    $0x9f,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0xa(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0xaf,%ecx
mov    $0x20,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0xb(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0xaf,%ecx
mov    $0x9f,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0xc(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0xcf,%ecx
mov    $0x20,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0xd(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0xcf,%ecx
mov    $0x9f,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0xe(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0xef,%ecx
mov    $0x20,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0xf(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0xef,%ecx
mov    $0x9f,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x10(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0x10,%ecx
mov    $0x60,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x11(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0x10,%ecx
mov    $0xdf,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x12(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0x30,%ecx
mov    $0x60,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x13(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0x30,%ecx
mov    $0xdf,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x14(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0x50,%ecx
mov    $0x60,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x15(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0x50,%ecx
mov    $0xdf,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x16(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0x70,%ecx
mov    $0x60,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x17(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0x70,%ecx
mov    $0xdf,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x18(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0x8f,%ecx
mov    $0x60,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x19(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0x8f,%ecx
mov    $0xdf,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x1a(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0xaf,%ecx
mov    $0x60,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x1b(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0xaf,%ecx
mov    $0xdf,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x1c(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0xcf,%ecx
mov    $0x60,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x1d(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0xcf,%ecx
mov    $0xdf,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x1e(%rbx),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0xef,%ecx
mov    $0x60,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x20(%rbx),%r12d
add    $0x1f,%ebx
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    $0xef,%ecx
mov    $0xdf,%r8d
mov    %ebx,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
add    $0x4,%r13
cmp    $0xc,%r13
jne    1600 <main+0x4a0>
mov    %r15,%rdi
call   1040 <fclose@plt>
lea    0x6af(%rip),%rdi
xor    %ebx,%ebx
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1a10 <main+0x8b0>
lea    0x6bc(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%ebx
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
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.B = [4 x i32] [i32 32, i32 96, i32 159, i32 223]
@__const.main.G = [8 x i32] [i32 16, i32 48, i32 80, i32 112, i32 143, i32 175, i32 207, i32 239]
@__const.main.R = [3 x i32] [i32 42, i32 128, i32 213]
@.str = [15 x i8] c"minimOS128.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 [8 x i32]
%13 = alloca [3 x i32]
store i32 0, i32* %1
store i32 0, i32* %8
%14 = bitcast [2 x i32]* %9 to i8*
%15 = bitcast [4 x i32]* %10 to i8*
%16 = bitcast [4 x i32]* %11 to i8*
%17 = bitcast [8 x i32]* %12 to i8*
%18 = bitcast [3 x i32]* %13 to i8*
%19 = call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %19, i32** %2
%20 = load i32*, i32** %2
%21 = icmp eq i32* %20, null
br i1 %21, label %22, label %24
22: ; preds = %0
%23 = 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 %154
24: ; preds = %0
%25 = load i32*, i32** %2
%26 = call i32 (i32*, i8*, ...) @fprintf(i32* %25, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %6
br label %27
27: ; preds = %75, %24
%28 = load i32, i32* %6
%29 = icmp slt i32 %28, 2
br i1 %29, label %30, label %78
30: ; preds = %27
store i32 0, i32* %3
br label %31
31: ; preds = %71, %30
%32 = load i32, i32* %3
%33 = icmp slt i32 %32, 2
br i1 %33, label %34, label %74
34: ; preds = %31
store i32 0, i32* %7
br label %35
35: ; preds = %67, %34
%36 = load i32, i32* %7
%37 = icmp slt i32 %36, 2
br i1 %37, label %38, label %70
38: ; preds = %35
store i32 0, i32* %5
br label %39
39: ; preds = %63, %38
%40 = load i32, i32* %5
%41 = icmp slt i32 %40, 2
br i1 %41, label %42, label %66
42: ; preds = %39
%43 = load i32, i32* %6
%44 = shl i32 %43, 1
%45 = load i32, i32* %7
%46 = or i32 %44, %45
store i32 %46, i32* %4
%47 = load i32*, i32** %2
%48 = load i32, i32* %3
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 %49
%51 = load i32, i32* %50
%52 = load i32, i32* %4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [4 x i32], [4 x i32]* %10, i64 0, i64 %53
%55 = load i32, i32* %54
%56 = load i32, i32* %5
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 %57
%59 = load i32, i32* %58
%60 = load i32, i32* %8
%61 = add nsw i32 %60, 1
store i32 %61, i32* %8
%62 = call i32 (i32*, i8*, ...) @fprintf(i32* %47, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 %51, i32 %55, i32 %59, i32 %60)
br label %63
63: ; preds = %42
%64 = load i32, i32* %5
%65 = add nsw i32 %64, 1
store i32 %65, i32* %5
br label %39
66: ; preds = %39
br label %67
67: ; preds = %66
%68 = load i32, i32* %7
%69 = add nsw i32 %68, 1
store i32 %69, i32* %7
br label %35
70: ; preds = %35
br label %71
71: ; preds = %70
%72 = load i32, i32* %3
%73 = add nsw i32 %72, 1
store i32 %73, i32* %3
br label %31
74: ; preds = %31
br label %75
75: ; preds = %74
%76 = load i32, i32* %6
%77 = add nsw i32 %76, 1
store i32 %77, i32* %6
br label %27
78: ; preds = %27
%79 = load i32, i32* %8
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i32 %79)
store i32 15, i32* %4
br label %81
81: ; preds = %92, %78
%82 = load i32, i32* %4
%83 = icmp slt i32 %82, 255
br i1 %83, label %84, label %95
84: ; preds = %81
%85 = load i32*, i32** %2
%86 = load i32, i32* %4
%87 = load i32, i32* %4
%88 = load i32, i32* %4
%89 = load i32, i32* %8
%90 = add nsw i32 %89, 1
store i32 %90, i32* %8
%91 = call i32 (i32*, i8*, ...) @fprintf(i32* %85, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 %86, i32 %87, i32 %88, i32 %89)
br label %92
92: ; preds = %84
%93 = load i32, i32* %4
%94 = add nsw i32 %93, 15
store i32 %94, i32* %4
br label %81
95: ; preds = %81
%96 = load i32, i32* %8
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0), i32 %96)
store i32 0, i32* %3
br label %98
98: ; preds = %146, %95
%99 = load i32, i32* %3
%100 = icmp slt i32 %99, 3
br i1 %100, label %101, label %149
101: ; preds = %98
store i32 0, i32* %7
br label %102
102: ; preds = %142, %101
%103 = load i32, i32* %7
%104 = icmp slt i32 %103, 2
br i1 %104, label %105, label %145
105: ; preds = %102
store i32 0, i32* %4
br label %106
106: ; preds = %138, %105
%107 = load i32, i32* %4
%108 = icmp slt i32 %107, 8
br i1 %108, label %109, label %141
109: ; preds = %106
store i32 0, i32* %6
br label %110
110: ; preds = %134, %109
%111 = load i32, i32* %6
%112 = icmp slt i32 %111, 2
br i1 %112, label %113, label %137
113: ; preds = %110
%114 = load i32, i32* %6
%115 = shl i32 %114, 1
%116 = load i32, i32* %7
%117 = or i32 %115, %116
store i32 %117, i32* %5
%118 = load i32*, i32** %2
%119 = load i32, i32* %3
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [3 x i32], [3 x i32]* %13, i64 0, i64 %120
%122 = load i32, i32* %121
%123 = load i32, i32* %4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [8 x i32], [8 x i32]* %12, i64 0, i64 %124
%126 = load i32, i32* %125
%127 = load i32, i32* %5
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [4 x i32], [4 x i32]* %11, i64 0, i64 %128
%130 = load i32, i32* %129
%131 = load i32, i32* %8
%132 = add nsw i32 %131, 1
store i32 %132, i32* %8
%133 = call i32 (i32*, i8*, ...) @fprintf(i32* %118, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 %122, i32 %126, i32 %130, i32 %131)
br label %134
134: ; preds = %113
%135 = load i32, i32* %6
%136 = add nsw i32 %135, 1
store i32 %136, i32* %6
br label %110
137: ; preds = %110
br label %138
138: ; preds = %137
%139 = load i32, i32* %4
%140 = add nsw i32 %139, 1
store i32 %140, i32* %4
br label %106
141: ; preds = %106
br label %142
142: ; preds = %141
%143 = load i32, i32* %7
%144 = add nsw i32 %143, 1
store i32 %144, i32* %7
br label %102
145: ; preds = %102
br label %146
146: ; preds = %145
%147 = load i32, i32* %3
%148 = add nsw i32 %147, 1
store i32 %148, i32* %3
br label %98
149: ; preds = %98
%150 = load i32*, i32** %2
%151 = call i32 @fclose(i32* %150)
%152 = load i32, i32* %8
%153 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0), i32 %152)
store i32 0, i32* %1
br label %154
154: ; preds = %149, %22
%155 = load i32, i32* %1
ret i32 %155
}

LLVM IR (-O2):
@__const.main.R = [3 x i32] [i32 42, i32 128, i32 213]
@.str = [15 x i8] c"minimOS128.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 ([15 x i8], [15 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 %115
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)
br label %41
41: ; preds = %5, %41
%42 = phi i64 [ 0, %5 ], [ %110, %41 ]
%43 = phi i32 [ 32, %5 ], [ %108, %41 ]
%44 = getelementptr inbounds [3 x i32], [3 x i32]* @__const.main.R, i64 0, i64 %42
%45 = load i32, i32* %44
%46 = or i32 %43, 1
%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 %45, i32 16, i32 32, i32 %43)
%48 = or i32 %43, 2
%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 %45, i32 16, i32 159, i32 %46)
%50 = or i32 %43, 3
%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 %45, i32 48, i32 32, i32 %48)
%52 = or i32 %43, 4
%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 %45, i32 48, i32 159, i32 %50)
%54 = or i32 %43, 5
%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 %45, i32 80, i32 32, i32 %52)
%56 = or i32 %43, 6
%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 %45, i32 80, i32 159, i32 %54)
%58 = or i32 %43, 7
%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 %45, i32 112, i32 32, i32 %56)
%60 = or i32 %43, 8
%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 %45, i32 112, i32 159, i32 %58)
%62 = or i32 %43, 9
%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 %45, i32 143, i32 32, i32 %60)
%64 = or i32 %43, 10
%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 %45, i32 143, i32 159, i32 %62)
%66 = or i32 %43, 11
%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 %45, i32 175, i32 32, i32 %64)
%68 = or i32 %43, 12
%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 %45, i32 175, i32 159, i32 %66)
%70 = or i32 %43, 13
%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 %45, i32 207, i32 32, i32 %68)
%72 = or i32 %43, 14
%73 = 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 207, i32 159, i32 %70)
%74 = or i32 %43, 15
%75 = 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 239, i32 32, i32 %72)
%76 = or i32 %43, 16
%77 = 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 239, i32 159, i32 %74)
%78 = or i32 %43, 17
%79 = 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 16, i32 96, i32 %76)
%80 = or i32 %43, 18
%81 = 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 16, i32 223, i32 %78)
%82 = or i32 %43, 19
%83 = 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 48, i32 96, i32 %80)
%84 = or i32 %43, 20
%85 = 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 48, i32 223, i32 %82)
%86 = or i32 %43, 21
%87 = 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 80, i32 96, i32 %84)
%88 = or i32 %43, 22
%89 = 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 80, i32 223, i32 %86)
%90 = or i32 %43, 23
%91 = 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 112, i32 96, i32 %88)
%92 = or i32 %43, 24
%93 = 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 112, i32 223, i32 %90)
%94 = or i32 %43, 25
%95 = 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 143, i32 96, i32 %92)
%96 = or i32 %43, 26
%97 = 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 143, i32 223, i32 %94)
%98 = or i32 %43, 27
%99 = 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 175, i32 96, i32 %96)
%100 = or i32 %43, 28
%101 = 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 175, i32 223, i32 %98)
%102 = or i32 %43, 29
%103 = 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 207, i32 96, i32 %100)
%104 = or i32 %43, 30
%105 = 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 207, i32 223, i32 %102)
%106 = or i32 %43, 31
%107 = 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 239, i32 96, i32 %104)
%108 = add nuw nsw i32 %43, 32
%109 = 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 239, i32 223, i32 %106)
%110 = add nuw nsw i64 %42, 1
%111 = icmp eq i64 %110, 3
br i1 %111, label %112, label %41
112: ; preds = %41
%113 = tail call i32 @fclose(i32* %1)
%114 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0), i32 %108)
br label %115
115: ; preds = %112, %3
%116 = phi i32 [ -1, %3 ], [ 0, %112 ]
ret i32 %116
}