#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 */

/* Variables and functions */
int api_alloctimer();
int /*<<< orphan*/ api_boxfilwin(int, int, int, int, int, int /*<<< orphan*/);
int /*<<< orphan*/ api_inittimer(int, int);
int api_openwin(char *, int, int, int, char *);
int /*<<< orphan*/ putstr(int, char *, int, int, int, char *);
int /*<<< orphan*/ setdec8(char *, int);
int /*<<< orphan*/ wait(int, int, char *);
void HariMain(void) {
  int win, timer, i, j, fx, laserwait, lx = 0, ly;
  int ix, iy, movewait0, movewait, idir;
  int invline, score, high, point;
  char winbuf[336 * 261], invstr[32 * 6], s[12], keyflag[4], *p;
  static char invstr0[32] = " abcd abcd abcd abcd abcd ";
  win = api_openwin(winbuf, 336, 261, -1, "invader");
  api_boxfilwin(win, 6, 27, 329, 254, 0);
  timer = api_alloctimer();
  api_inittimer(timer, 128);
  high = 0;
  putstr(win, winbuf, 22, 0, 7, "HIGH:00000000");
restart:
  score = 0;
  point = 1;
  putstr(win, winbuf, 4, 0, 7, "SCORE:00000000");
  movewait0 = 20;
  fx = 18;
  putstr(win, winbuf, fx, 13, 6, "efg");
  wait(100, timer, keyflag);
next_group:
  wait(100, timer, keyflag);
  ix = 7;
  iy = 1;
  invline = 6;
  for (i = 0; i < 6; i++) {
    for (j = 0; j < 27; j++) {
      invstr[i * 32 + j] = invstr0[j];
    }
    putstr(win, winbuf, ix, iy + i, 2, invstr + i * 32);
  }
  keyflag[0] = 0;
  keyflag[1] = 0;
  keyflag[2] = 0;
  ly = 0;
  laserwait = 0;
  movewait = movewait0;
  idir = +1;
  wait(100, timer, keyflag);
  for (;;) {
    if (laserwait != 0) {
      laserwait--;
      keyflag[2] = 0;
    }
    wait(4, timer, keyflag);
    if (keyflag[0] != 0 && fx > 0) {
      fx--;
      putstr(win, winbuf, fx, 13, 6, "efg ");
      keyflag[0] = 0;
    }
    if (keyflag[1] != 0 && fx < 37) {
      putstr(win, winbuf, fx, 13, 6, " efg");
      fx++;
      keyflag[1] = 0;
    }
    if (keyflag[2] != 0 && laserwait == 0) {
      laserwait = 15;
      lx = fx + 1;
      ly = 13;
    }
    if (movewait != 0) {
      movewait--;
    } else {
      movewait = movewait0;
      if (ix + idir > 14 || ix + idir < 0) {
        if (iy + invline == 13) {
          break;
        }
        idir = -idir;
        putstr(win, winbuf, ix + 1, iy, 0, "                         ");
        iy++;
      } else {
        ix += idir;
      }
      for (i = 0; i < invline; i++) {
        putstr(win, winbuf, ix, iy + i, 2, invstr + i * 32);
      }
    }
    if (ly > 0) {
      if (ly < 13) {
        if (ix < lx && lx < ix + 25 && iy <= ly && ly < iy + invline) {
          putstr(win, winbuf, ix, ly, 2, invstr + (ly - iy) * 32);
        } else {
          putstr(win, winbuf, lx, ly, 0, " ");
        }
      }
      ly--;
      if (ly > 0) {
        putstr(win, winbuf, lx, ly, 3, "h");
      } else {
        point -= 10;
        if (point <= 0) {
          point = 1;
        }
      }
      if (ix < lx && lx < ix + 25 && iy <= ly && ly < iy + invline) {
        p = invstr + (ly - iy) * 32 + (lx - ix);
        if (*p != ' ') {
          score += point;
          point++;
          setdec8(s, score);
          putstr(win, winbuf, 10, 0, 7, s);
          if (high < score) {
            high = score;
            putstr(win, winbuf, 27, 0, 7, s);
          }
          for (p--; *p != ' '; p--) {
          }
          for (i = 1; i < 5; i++) {
            p[i] = ' ';
          }
          putstr(win, winbuf, ix, ly, 2, invstr + (ly - iy) * 32);
          for (; invline > 0; invline--) {
            for (p = invstr + (invline - 1) * 32; *p != 0; p++) {
              if (*p != ' ') {
                goto alive;
              }
            }
          }
          movewait0 -= movewait0 / 3;
          goto next_group;
        alive:
          ly = 0;
        }
      }
    }
  }
  putstr(win, winbuf, 15, 6, 1, "GAME OVER");
  wait(0, timer, keyflag);
  for (i = 1; i < 14; i++) {
    putstr(win, winbuf, 0, i, 0, "                                        ");
  }
  goto restart;
}


x86 assembly (clang, -O0):
<HariMain>:
push   %rbp
mov    %rsp,%rbp
sub    $0x157c0,%rsp
movl   $0x0,-0x1c(%rbp)
lea    -0x156e0(%rbp),%rdi
mov    $0x150,%esi
mov    $0x105,%edx
mov    $0xffffffff,%ecx
lea    0xe61(%rip),%r8
call   1060 <api_openwin@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x6,%esi
mov    $0x1b,%edx
mov    $0x149,%ecx
mov    $0xfe,%r8d
xor    %r9d,%r9d
call   1080 <api_boxfilwin@plt>
mov    $0x0,%al
call   1050 <api_alloctimer@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x80,%esi
call   1040 <api_inittimer@plt>
movl   $0x0,-0x40(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x156e0(%rbp),%rsi
mov    $0x16,%edx
xor    %ecx,%ecx
mov    $0x7,%r8d
lea    0xe05(%rip),%r9
call   1070 <putstr@plt>
movl   $0x0,-0x3c(%rbp)
movl   $0x1,-0x44(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x156e0(%rbp),%rsi
mov    $0x4,%edx
xor    %ecx,%ecx
mov    $0x7,%r8d
lea    0xde2(%rip),%r9
call   1070 <putstr@plt>
movl   $0x14,-0x2c(%rbp)
movl   $0x12,-0x14(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x156e0(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    $0xd,%ecx
mov    $0x6,%r8d
lea    0xdc5(%rip),%r9
call   1070 <putstr@plt>
mov    -0x8(%rbp),%esi
lea    -0x157b0(%rbp),%rdx
mov    $0x64,%edi
call   1090 <wait@plt>
mov    -0x8(%rbp),%esi
lea    -0x157b0(%rbp),%rdx
mov    $0x64,%edi
call   1090 <wait@plt>
movl   $0x7,-0x24(%rbp)
movl   $0x1,-0x28(%rbp)
movl   $0x6,-0x38(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x6,-0xc(%rbp)
jge    1336 <HariMain+0x1c6>
movl   $0x0,-0x10(%rbp)
cmpl   $0x1b,-0x10(%rbp)
jge    12f8 <HariMain+0x188>
movslq -0x10(%rbp),%rcx
lea    0x2d8b(%rip),%rax
mov    (%rax,%rcx,1),%cl
mov    -0xc(%rbp),%eax
shl    $0x5,%eax
add    -0x10(%rbp),%eax
cltq
mov    %cl,-0x157a0(%rbp,%rax,1)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    12c0 <HariMain+0x150>
mov    -0x4(%rbp),%edi
lea    -0x156e0(%rbp),%rsi
mov    -0x24(%rbp),%edx
mov    -0x28(%rbp),%ecx
add    -0xc(%rbp),%ecx
lea    -0x157a0(%rbp),%r9
mov    -0xc(%rbp),%eax
shl    $0x5,%eax
cltq
add    %rax,%r9
mov    $0x2,%r8d
call   1070 <putstr@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    12af <HariMain+0x13f>
movb   $0x0,-0x157b0(%rbp)
movb   $0x0,-0x157af(%rbp)
movb   $0x0,-0x157ae(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x30(%rbp)
movl   $0x1,-0x34(%rbp)
mov    -0x8(%rbp),%esi
lea    -0x157b0(%rbp),%rdx
mov    $0x64,%edi
call   1090 <wait@plt>
cmpl   $0x0,-0x18(%rbp)
je     1394 <HariMain+0x224>
mov    -0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x18(%rbp)
movb   $0x0,-0x157ae(%rbp)
mov    -0x8(%rbp),%esi
lea    -0x157b0(%rbp),%rdx
mov    $0x4,%edi
call   1090 <wait@plt>
movsbl -0x157b0(%rbp),%eax
cmp    $0x0,%eax
je     13f6 <HariMain+0x286>
cmpl   $0x0,-0x14(%rbp)
jle    13f6 <HariMain+0x286>
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x156e0(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    $0xd,%ecx
mov    $0x6,%r8d
lea    0xc3b(%rip),%r9
call   1070 <putstr@plt>
movb   $0x0,-0x157b0(%rbp)
movsbl -0x157af(%rbp),%eax
cmp    $0x0,%eax
je     1444 <HariMain+0x2d4>
cmpl   $0x25,-0x14(%rbp)
jge    1444 <HariMain+0x2d4>
mov    -0x4(%rbp),%edi
lea    -0x156e0(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    $0xd,%ecx
mov    $0x6,%r8d
lea    0xbfb(%rip),%r9
call   1070 <putstr@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
movb   $0x0,-0x157af(%rbp)
movsbl -0x157ae(%rbp),%eax
cmp    $0x0,%eax
je     1475 <HariMain+0x305>
cmpl   $0x0,-0x18(%rbp)
jne    1475 <HariMain+0x305>
movl   $0xf,-0x18(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
movl   $0xd,-0x20(%rbp)
cmpl   $0x0,-0x30(%rbp)
je     148d <HariMain+0x31d>
mov    -0x30(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x30(%rbp)
jmp    155c <HariMain+0x3ec>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x24(%rbp),%eax
add    -0x34(%rbp),%eax
cmp    $0xe,%eax
jg     14b1 <HariMain+0x341>
mov    -0x24(%rbp),%eax
add    -0x34(%rbp),%eax
cmp    $0x0,%eax
jge    14fd <HariMain+0x38d>
mov    -0x28(%rbp),%eax
add    -0x38(%rbp),%eax
cmp    $0xd,%eax
jne    14c5 <HariMain+0x355>
jmp    189b <HariMain+0x72b>
xor    %eax,%eax
sub    -0x34(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x156e0(%rbp),%rsi
mov    -0x24(%rbp),%edx
add    $0x1,%edx
mov    -0x28(%rbp),%ecx
xor    %r8d,%r8d
lea    0xb60(%rip),%r9
call   1070 <putstr@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1506 <HariMain+0x396>
mov    -0x34(%rbp),%eax
add    -0x24(%rbp),%eax
mov    %eax,-0x24(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    1557 <HariMain+0x3e7>
mov    -0x4(%rbp),%edi
lea    -0x156e0(%rbp),%rsi
mov    -0x24(%rbp),%edx
mov    -0x28(%rbp),%ecx
add    -0xc(%rbp),%ecx
lea    -0x157a0(%rbp),%r9
mov    -0xc(%rbp),%eax
shl    $0x5,%eax
cltq
add    %rax,%r9
mov    $0x2,%r8d
call   1070 <putstr@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    150d <HariMain+0x39d>
jmp    155c <HariMain+0x3ec>
cmpl   $0x0,-0x20(%rbp)
jle    1896 <HariMain+0x726>
cmpl   $0xd,-0x20(%rbp)
jge    1603 <HariMain+0x493>
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    15df <HariMain+0x46f>
mov    -0x1c(%rbp),%eax
mov    -0x24(%rbp),%ecx
add    $0x19,%ecx
cmp    %ecx,%eax
jge    15df <HariMain+0x46f>
mov    -0x28(%rbp),%eax
cmp    -0x20(%rbp),%eax
jg     15df <HariMain+0x46f>
mov    -0x20(%rbp),%eax
mov    -0x28(%rbp),%ecx
add    -0x38(%rbp),%ecx
cmp    %ecx,%eax
jge    15df <HariMain+0x46f>
mov    -0x4(%rbp),%edi
lea    -0x156e0(%rbp),%rsi
mov    -0x24(%rbp),%edx
mov    -0x20(%rbp),%ecx
lea    -0x157a0(%rbp),%r9
mov    -0x20(%rbp),%eax
sub    -0x28(%rbp),%eax
shl    $0x5,%eax
cltq
add    %rax,%r9
mov    $0x2,%r8d
call   1070 <putstr@plt>
jmp    15fe <HariMain+0x48e>
mov    -0x4(%rbp),%edi
lea    -0x156e0(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
xor    %r8d,%r8d
lea    0xa69(%rip),%r9
call   1070 <putstr@plt>
jmp    1603 <HariMain+0x493>
mov    -0x20(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
jle    163d <HariMain+0x4cd>
mov    -0x4(%rbp),%edi
lea    -0x156e0(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
mov    $0x3,%r8d
lea    0x9fc(%rip),%r9
call   1070 <putstr@plt>
jmp    165c <HariMain+0x4ec>
mov    -0x44(%rbp),%eax
sub    $0xa,%eax
mov    %eax,-0x44(%rbp)
cmpl   $0x0,-0x44(%rbp)
jg     1657 <HariMain+0x4e7>
movl   $0x1,-0x44(%rbp)
jmp    165c <HariMain+0x4ec>
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1891 <HariMain+0x721>
mov    -0x1c(%rbp),%eax
mov    -0x24(%rbp),%ecx
add    $0x19,%ecx
cmp    %ecx,%eax
jge    1891 <HariMain+0x721>
mov    -0x28(%rbp),%eax
cmp    -0x20(%rbp),%eax
jg     1891 <HariMain+0x721>
mov    -0x20(%rbp),%eax
mov    -0x28(%rbp),%ecx
add    -0x38(%rbp),%ecx
cmp    %ecx,%eax
jge    1891 <HariMain+0x721>
lea    -0x157a0(%rbp),%rax
mov    -0x20(%rbp),%ecx
sub    -0x28(%rbp),%ecx
shl    $0x5,%ecx
movslq %ecx,%rcx
add    %rcx,%rax
mov    -0x1c(%rbp),%ecx
sub    -0x24(%rbp),%ecx
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x157b8(%rbp)
mov    -0x157b8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
je     188c <HariMain+0x71c>
mov    -0x44(%rbp),%eax
add    -0x3c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
lea    -0x157ac(%rbp),%rdi
mov    -0x3c(%rbp),%esi
call   1030 <setdec8@plt>
mov    -0x4(%rbp),%edi
lea    -0x156e0(%rbp),%rsi
lea    -0x157ac(%rbp),%r9
mov    $0xa,%edx
xor    %ecx,%ecx
mov    $0x7,%r8d
call   1070 <putstr@plt>
mov    -0x40(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    174b <HariMain+0x5db>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x156e0(%rbp),%rsi
lea    -0x157ac(%rbp),%r9
mov    $0x1b,%edx
xor    %ecx,%ecx
mov    $0x7,%r8d
call   1070 <putstr@plt>
mov    -0x157b8(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x157b8(%rbp)
mov    -0x157b8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
je     178c <HariMain+0x61c>
jmp    1775 <HariMain+0x605>
mov    -0x157b8(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x157b8(%rbp)
jmp    175d <HariMain+0x5ed>
movl   $0x1,-0xc(%rbp)
cmpl   $0x5,-0xc(%rbp)
jge    17ba <HariMain+0x64a>
mov    -0x157b8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movb   $0x20,(%rax,%rcx,1)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1793 <HariMain+0x623>
mov    -0x4(%rbp),%edi
lea    -0x156e0(%rbp),%rsi
mov    -0x24(%rbp),%edx
mov    -0x20(%rbp),%ecx
lea    -0x157a0(%rbp),%r9
mov    -0x20(%rbp),%eax
sub    -0x28(%rbp),%eax
shl    $0x5,%eax
cltq
add    %rax,%r9
mov    $0x2,%r8d
call   1070 <putstr@plt>
cmpl   $0x0,-0x38(%rbp)
jle    186b <HariMain+0x6fb>
lea    -0x157a0(%rbp),%rax
mov    -0x38(%rbp),%ecx
sub    $0x1,%ecx
shl    $0x5,%ecx
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x157b8(%rbp)
mov    -0x157b8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1858 <HariMain+0x6e8>
mov    -0x157b8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
je     183c <HariMain+0x6cc>
jmp    1885 <HariMain+0x715>
jmp    1841 <HariMain+0x6d1>
mov    -0x157b8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x157b8(%rbp)
jmp    1811 <HariMain+0x6a1>
jmp    185d <HariMain+0x6ed>
mov    -0x38(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x38(%rbp)
jmp    17ea <HariMain+0x67a>
mov    -0x2c(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x2c(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x2c(%rbp)
jmp    127f <HariMain+0x10f>
movl   $0x0,-0x20(%rbp)
jmp    1891 <HariMain+0x721>
jmp    1896 <HariMain+0x726>
jmp    137a <HariMain+0x20a>
mov    -0x4(%rbp),%edi
lea    -0x156e0(%rbp),%rsi
mov    $0xf,%edx
mov    $0x6,%ecx
mov    $0x1,%r8d
lea    0x775(%rip),%r9
call   1070 <putstr@plt>
mov    -0x8(%rbp),%esi
lea    -0x157b0(%rbp),%rdx
xor    %edi,%edi
call   1090 <wait@plt>
movl   $0x1,-0xc(%rbp)
cmpl   $0xe,-0xc(%rbp)
jge    1910 <HariMain+0x7a0>
mov    -0x4(%rbp),%edi
lea    -0x156e0(%rbp),%rsi
mov    -0xc(%rbp),%ecx
xor    %r8d,%r8d
lea    0x741(%rip),%r9
mov    %r8d,%edx
call   1070 <putstr@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    18d9 <HariMain+0x769>
jmp    1208 <HariMain+0x98>

x86 assembly (clang, -O2):
<HariMain>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x157c8,%rsp
lea    0xe98(%rip),%r8
lea    0x130(%rsp),%r15
mov    %r15,%rdi
mov    $0x150,%esi
mov    $0x105,%edx
mov    $0xffffffff,%ecx
call   1060 <api_openwin@plt>
mov    %eax,%ebp
xor    %eax,%eax
mov    %rax,0x8(%rsp)
mov    %ebp,%edi
mov    $0x6,%esi
mov    $0x1b,%edx
mov    $0x149,%ecx
mov    $0xfe,%r8d
xor    %r9d,%r9d
call   1080 <api_boxfilwin@plt>
xor    %eax,%eax
call   1050 <api_alloctimer@plt>
mov    %eax,%ebx
mov    %eax,%edi
mov    $0x80,%esi
call   1040 <api_inittimer@plt>
lea    0xe3d(%rip),%r9
mov    %ebp,%edi
mov    %r15,%rsi
mov    $0x16,%edx
xor    %ecx,%ecx
mov    $0x7,%r8d
call   1070 <putstr@plt>
mov    %rsp,%r12
movl   $0x0,0x44(%rsp)
mov    %ebp,0x4(%rsp)
mov    %ebx,0x34(%rsp)
jmp    138a <HariMain+0x21a>
nopw   0x0(%rax,%rax,1)
mov    %ebp,%edi
lea    0x130(%rsp),%r15
mov    %r15,%rsi
mov    $0xf,%edx
mov    $0x6,%ecx
mov    $0x1,%r8d
lea    0xe0d(%rip),%r9
call   1070 <putstr@plt>
xor    %edi,%edi
mov    %ebx,%esi
mov    %rsp,%r12
mov    %r12,%rdx
call   1090 <wait@plt>
mov    %ebp,%edi
mov    %r15,%rsi
xor    %edx,%edx
mov    $0x1,%ecx
xor    %r8d,%r8d
lea    0xded(%rip),%r13
mov    %r13,%r9
call   1070 <putstr@plt>
mov    %ebp,%edi
mov    %r15,%rsi
xor    %edx,%edx
mov    $0x2,%ecx
xor    %r8d,%r8d
mov    %r13,%r9
call   1070 <putstr@plt>
mov    %ebp,%edi
mov    %r15,%rsi
xor    %edx,%edx
mov    $0x3,%ecx
xor    %r8d,%r8d
mov    %r13,%r9
call   1070 <putstr@plt>
mov    %ebp,%edi
mov    %r15,%rsi
xor    %edx,%edx
mov    $0x4,%ecx
xor    %r8d,%r8d
mov    %r13,%r9
call   1070 <putstr@plt>
mov    %ebp,%edi
mov    %r15,%rsi
xor    %edx,%edx
mov    $0x5,%ecx
xor    %r8d,%r8d
mov    %r13,%r9
call   1070 <putstr@plt>
mov    %ebp,%edi
mov    %r15,%rsi
xor    %edx,%edx
mov    $0x6,%ecx
xor    %r8d,%r8d
mov    %r13,%r9
call   1070 <putstr@plt>
mov    %ebp,%edi
mov    %r15,%rsi
xor    %edx,%edx
mov    $0x7,%ecx
xor    %r8d,%r8d
mov    %r13,%r9
call   1070 <putstr@plt>
mov    %ebp,%edi
mov    %r15,%rsi
xor    %edx,%edx
mov    $0x8,%ecx
xor    %r8d,%r8d
mov    %r13,%r9
call   1070 <putstr@plt>
mov    %ebp,%edi
mov    %r15,%rsi
xor    %edx,%edx
mov    $0x9,%ecx
xor    %r8d,%r8d
mov    %r13,%r9
call   1070 <putstr@plt>
mov    %ebp,%edi
mov    %r15,%rsi
xor    %edx,%edx
mov    $0xa,%ecx
xor    %r8d,%r8d
mov    %r13,%r9
call   1070 <putstr@plt>
mov    %ebp,%edi
mov    %r15,%rsi
xor    %edx,%edx
mov    $0xb,%ecx
xor    %r8d,%r8d
mov    %r13,%r9
call   1070 <putstr@plt>
mov    %ebp,%edi
mov    %r15,%rsi
xor    %edx,%edx
mov    $0xc,%ecx
xor    %r8d,%r8d
mov    %r13,%r9
call   1070 <putstr@plt>
mov    %ebp,%edi
mov    %r15,%rsi
xor    %edx,%edx
mov    $0xd,%ecx
xor    %r8d,%r8d
mov    %r13,%r9
call   1070 <putstr@plt>
mov    %ebp,%edi
lea    0x130(%rsp),%r15
mov    %r15,%rsi
mov    $0x4,%edx
xor    %ecx,%ecx
mov    $0x7,%r8d
lea    0xc8b(%rip),%r9
call   1070 <putstr@plt>
mov    $0x12,%eax
mov    %rax,0x28(%rsp)
mov    %ebp,%edi
mov    %r15,%rsi
mov    $0x12,%edx
mov    $0xd,%ecx
mov    $0x6,%r8d
lea    0xc75(%rip),%r9
call   1070 <putstr@plt>
mov    $0x64,%edi
mov    %ebx,%esi
mov    %r12,%rdx
call   1090 <wait@plt>
mov    $0x14,%r14d
movl   $0x0,0x30(%rsp)
movl   $0x1,0x14(%rsp)
mov    $0x64,%edi
mov    %ebx,%esi
mov    %r12,%rdx
call   1090 <wait@plt>
movaps 0xbea(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movups 0xbe9(%rip),%xmm0
movups %xmm0,0x7b(%rsp)
mov    $0x7,%eax
mov    %rax,0x18(%rsp)
mov    $0x1,%r13d
mov    %ebp,%edi
lea    0x130(%rsp),%r15
mov    %r15,%rsi
mov    $0x7,%edx
mov    $0x1,%ecx
mov    $0x2,%r8d
lea    0x70(%rsp),%r9
call   1070 <putstr@plt>
lea    0x90(%rsp),%r9
movaps 0xb93(%rip),%xmm0
movaps %xmm0,(%r9)
movups 0xb93(%rip),%xmm0
movups %xmm0,0xb(%r9)
mov    %ebp,%edi
mov    %r15,%rsi
mov    $0x7,%edx
mov    $0x2,%ecx
mov    $0x2,%r8d
call   1070 <putstr@plt>
lea    0xb0(%rsp),%r9
movaps 0xb5a(%rip),%xmm0
movaps %xmm0,(%r9)
movups 0xb5a(%rip),%xmm0
movups %xmm0,0xb(%r9)
mov    %ebp,%edi
mov    %r15,%rsi
mov    $0x7,%edx
mov    $0x3,%ecx
mov    $0x2,%r8d
call   1070 <putstr@plt>
lea    0xd0(%rsp),%r9
movaps 0xb21(%rip),%xmm0
movaps %xmm0,(%r9)
movups 0xb21(%rip),%xmm0
movups %xmm0,0xb(%r9)
mov    %ebp,%edi
mov    %r15,%rsi
mov    $0x7,%edx
mov    $0x4,%ecx
mov    $0x2,%r8d
call   1070 <putstr@plt>
lea    0xf0(%rsp),%r9
movaps 0xae8(%rip),%xmm0
movaps %xmm0,(%r9)
movups 0xae8(%rip),%xmm0
movups %xmm0,0xb(%r9)
mov    %ebp,%edi
mov    %r15,%rsi
mov    $0x7,%edx
mov    $0x5,%ecx
mov    $0x2,%r8d
call   1070 <putstr@plt>
lea    0x110(%rsp),%r9
movaps 0xaaf(%rip),%xmm0
movaps %xmm0,(%r9)
movups 0xaaf(%rip),%xmm0
movups %xmm0,0xb(%r9)
mov    %ebp,%edi
mov    $0x6,%ebp
mov    %r15,%rsi
mov    $0x7,%edx
mov    $0x6,%ecx
mov    $0x2,%r8d
call   1070 <putstr@plt>
movw   $0x0,(%rsp)
movb   $0x0,0x2(%rsp)
mov    $0x64,%edi
mov    %ebx,%esi
mov    %r12,%rdx
call   1090 <wait@plt>
xor    %r12d,%r12d
mov    %r14,0x50(%rsp)
mov    %r14d,%edx
mov    $0x1,%eax
mov    %rax,0x58(%rsp)
mov    %ebp,%ebp
mov    %rbp,0x38(%rsp)
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    0x4(%rsp),%ebp
jmp    15e1 <HariMain+0x471>
cs nopw 0x0(%rax,%rax,1)
mov    %r15d,%edx
add    $0xffffffff,%edx
xor    %ebx,%ebx
test   %r14d,%r14d
jg     17d0 <HariMain+0x660>
mov    %ebx,%r14d
mov    %edx,%r15d
test   %r12d,%r12d
je     1600 <HariMain+0x490>
add    $0xffffffff,%r12d
movb   $0x0,0x2(%rsp)
jmp    1603 <HariMain+0x493>
nopw   0x0(%rax,%rax,1)
xor    %r12d,%r12d
mov    0x34(%rsp),%ebx
mov    $0x4,%edi
mov    %ebx,%esi
mov    %rsp,%rdx
call   1090 <wait@plt>
cmpb   $0x0,(%rsp)
je     1652 <HariMain+0x4e2>
mov    0x28(%rsp),%rdx
test   %edx,%edx
jle    1652 <HariMain+0x4e2>
add    $0xffffffff,%edx
mov    %ebp,%edi
lea    0x130(%rsp),%rsi
mov    %rdx,0x28(%rsp)
mov    $0xd,%ecx
mov    $0x6,%r8d
lea    0x9fc(%rip),%r9
call   1070 <putstr@plt>
movb   $0x0,(%rsp)
cmpb   $0x0,0x1(%rsp)
je     16a0 <HariMain+0x530>
mov    0x28(%rsp),%rdx
cmp    $0x24,%edx
jg     16a5 <HariMain+0x535>
mov    %ebp,%edi
lea    0x130(%rsp),%rsi
mov    0x28(%rsp),%rdx
mov    $0xd,%ecx
mov    $0x6,%r8d
lea    0x9c6(%rip),%r9
call   1070 <putstr@plt>
mov    0x28(%rsp),%rdx
add    $0x1,%edx
movb   $0x0,0x1(%rsp)
jmp    16a5 <HariMain+0x535>
nopl   0x0(%rax,%rax,1)
mov    0x28(%rsp),%rdx
cmpb   $0x0,0x2(%rsp)
setne  %al
test   %r12d,%r12d
sete   %cl
mov    %rdx,0x28(%rsp)
add    $0x1,%edx
test   %cl,%al
mov    $0xf,%eax
cmovne %eax,%r12d
mov    0x8(%rsp),%rax
cmovne %edx,%eax
mov    %rax,0x8(%rsp)
mov    $0xd,%eax
cmovne %eax,%r14d
test   %r15d,%r15d
jne    15d0 <HariMain+0x460>
mov    %r14,0x20(%rsp)
mov    0x18(%rsp),%rax
mov    0x58(%rsp),%rcx
add    %ecx,%eax
cmp    $0xf,%eax
mov    %r12d,0x4c(%rsp)
jb     1749 <HariMain+0x5d9>
mov    0x38(%rsp),%rax
add    %r13d,%eax
cmp    $0xd,%eax
je     1220 <HariMain+0xb0>
mov    0x58(%rsp),%rax
neg    %eax
mov    %rax,0x58(%rsp)
mov    0x18(%rsp),%r12
lea    0x1(%r12),%edx
mov    %ebp,%edi
lea    0x130(%rsp),%rsi
mov    %r13d,%ecx
xor    %r8d,%r8d
lea    0x92c(%rip),%r9
call   1070 <putstr@plt>
add    $0x1,%r13d
jmp    174c <HariMain+0x5dc>
mov    %eax,%r12d
mov    %r13d,%r13d
cmpl   $0x0,0x38(%rsp)
mov    %r12,0x18(%rsp)
jle    17b9 <HariMain+0x649>
lea    0x70(%rsp),%rbx
lea    0x130(%rsp),%r14
xor    %ebp,%ebp
mov    %r13,%r15
mov    0x38(%rsp),%r13
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    (%r15,%rbp,1),%ecx
mov    0x4(%rsp),%edi
mov    %r14,%rsi
mov    %r12d,%edx
mov    $0x2,%r8d
mov    %rbx,%r9
call   1070 <putstr@plt>
add    $0x1,%rbp
add    $0x20,%rbx
cmp    %rbp,%r13
jne    1780 <HariMain+0x610>
mov    0x50(%rsp),%rax
mov    %eax,%edx
mov    0x4(%rsp),%ebp
mov    %r15,%r13
jmp    17c0 <HariMain+0x650>
mov    0x50(%rsp),%rax
mov    %eax,%edx
mov    0x4c(%rsp),%r12d
mov    0x20(%rsp),%r14
jmp    15d6 <HariMain+0x466>
nop
mov    %r14,%r15
cmp    $0xd,%r14d
mov    %edx,0x20(%rsp)
jae    1840 <HariMain+0x6d0>
mov    0x18(%rsp),%rdx
lea    0x19(%rdx),%r14d
mov    0x38(%rsp),%rax
lea    (%rax,%r13,1),%ecx
cmp    %edx,0x8(%rsp)
mov    %ecx,0x48(%rsp)
jle    1860 <HariMain+0x6f0>
cmp    %r14d,0x8(%rsp)
jge    1860 <HariMain+0x6f0>
mov    %r15d,%eax
sub    %r13d,%eax
jl     1860 <HariMain+0x6f0>
cmp    %ecx,%r15d
jge    1860 <HariMain+0x6f0>
shl    $0x5,%eax
cltq
lea    (%rsp,%rax,1),%r9
add    $0x70,%r9
mov    %ebp,%edi
lea    0x130(%rsp),%rsi
mov    %r15,%rbx
mov    %ebx,%ecx
mov    $0x2,%r8d
jmp    187e <HariMain+0x70e>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x18(%rsp),%rax
lea    0x19(%rax),%r14d
mov    0x38(%rsp),%rax
add    %r13d,%eax
mov    %eax,0x48(%rsp)
mov    %r15,%rbx
jmp    188c <HariMain+0x71c>
nopw   0x0(%rax,%rax,1)
mov    %ebp,%edi
lea    0x130(%rsp),%rsi
mov    0x8(%rsp),%rdx
mov    %r15,%rbx
mov    %ebx,%ecx
xor    %r8d,%r8d
lea    0x804(%rip),%r9
call   1070 <putstr@plt>
mov    0x20(%rsp),%edx
cmp    $0x2,%ebx
jb     18c0 <HariMain+0x750>
add    $0xffffffff,%ebx
mov    %ebp,%edi
lea    0x130(%rsp),%rsi
mov    0x8(%rsp),%rbp
mov    %ebp,%edx
mov    %ebx,%ecx
mov    $0x3,%r8d
lea    0x7a0(%rip),%r9
call   1070 <putstr@plt>
mov    0x20(%rsp),%edx
jmp    18dd <HariMain+0x76d>
nopw   0x0(%rax,%rax,1)
mov    0x14(%rsp),%ecx
cmp    $0xc,%ecx
mov    $0xb,%eax
cmovl  %eax,%ecx
add    $0xfffffff6,%ecx
mov    %ecx,0x14(%rsp)
xor    %ebx,%ebx
mov    0x8(%rsp),%rbp
mov    %ebp,%eax
sub    0x18(%rsp),%eax
jle    15c0 <HariMain+0x450>
cmp    %r14d,0x8(%rsp)
jge    15c0 <HariMain+0x450>
cmp    %r13d,%r15d
jle    15c0 <HariMain+0x450>
cmp    0x48(%rsp),%r15d
jg     15c0 <HariMain+0x450>
mov    %ebx,%ecx
sub    %r13d,%ecx
movslq %ecx,%rcx
shl    $0x5,%rcx
lea    (%rsp,%rcx,1),%rbp
add    $0x70,%rbp
cltq
cmpb   $0x20,(%rax,%rbp,1)
je     15c0 <HariMain+0x450>
mov    0x30(%rsp),%r14d
add    0x14(%rsp),%r14d
lea    0x64(%rsp),%r15
mov    %r15,%rdi
mov    %r14d,%esi
call   1030 <setdec8@plt>
mov    0x4(%rsp),%edi
lea    0x130(%rsp),%rsi
mov    $0xa,%edx
xor    %ecx,%ecx
mov    $0x7,%r8d
mov    %r15,%r9
call   1070 <putstr@plt>
mov    %r14d,0x30(%rsp)
cmp    %r14d,0x44(%rsp)
jge    199a <HariMain+0x82a>
mov    0x4(%rsp),%edi
lea    0x130(%rsp),%rsi
mov    $0x1b,%edx
xor    %ecx,%ecx
mov    $0x7,%r8d
lea    0x64(%rsp),%r9
call   1070 <putstr@plt>
mov    0x30(%rsp),%eax
mov    %eax,0x44(%rsp)
addl   $0x1,0x14(%rsp)
movslq 0x8(%rsp),%rcx
mov    %ebx,%eax
shl    $0x5,%eax
mov    %r13d,%edx
shl    $0x5,%edx
sub    %edx,%eax
cltq
add    %rcx,%rax
movslq 0x18(%rsp),%rcx
sub    %rcx,%rax
lea    0x71(%rsp),%rcx
add    %rcx,%rax
cs nopw 0x0(%rax,%rax,1)
cmpb   $0x20,-0x2(%rax)
lea    -0x1(%rax),%rax
jne    19d0 <HariMain+0x860>
movl   $0x20202020,(%rax)
mov    0x4(%rsp),%edi
lea    0x130(%rsp),%rsi
mov    0x18(%rsp),%rdx
mov    %ebx,%ecx
mov    $0x2,%r8d
mov    %rbp,%r9
call   1070 <putstr@plt>
mov    0x38(%rsp),%rbp
test   %ebp,%ebp
mov    0x34(%rsp),%ebx
mov    0x50(%rsp),%rdx
jle    1a5c <HariMain+0x8ec>
mov    %ebp,%eax
shl    $0x5,%eax
add    $0xffffffe0,%eax
cltq
add    %rsp,%rax
add    $0x70,%rax
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movzbl (%rax),%ecx
cmp    $0x20,%cl
jne    1a40 <HariMain+0x8d0>
add    $0x1,%rax
jmp    1a30 <HariMain+0x8c0>
xchg   %ax,%ax
test   %cl,%cl
jne    1a53 <HariMain+0x8e3>
lea    -0x1(%rbp),%rax
cmp    $0x1,%rbp
mov    %rax,%rbp
jg     1a13 <HariMain+0x8a3>
jmp    1a5c <HariMain+0x8ec>
mov    0x20(%rsp),%edx
jmp    15af <HariMain+0x43f>
movslq %edx,%rax
imul   $0x55555555,%rax,%r14
shr    $0x20,%r14
sub    %eax,%r14d
mov    %r14d,%ecx
shr    $0x1f,%ecx
sar    %r14d
add    %ecx,%r14d
add    %eax,%r14d
mov    0x4(%rsp),%ebp
mov    %rsp,%r12
jmp    1400 <HariMain+0x290>

LLVM IR (-O0):
@HariMain.invstr0 = internal global [32 x i8] c" abcd abcd abcd abcd abcd \00\00\00\00\00\00"
@.str = [8 x i8] c"invader\00"
@.str.1 = [14 x i8] c"HIGH:00000000\00"
@.str.2 = [15 x i8] c"SCORE:00000000\00"
@.str.3 = [4 x i8] c"efg\00"
@.str.4 = [5 x i8] c"efg \00"
@.str.5 = [5 x i8] c" efg\00"
@.str.6 = [26 x i8] c" \00"
@.str.7 = [2 x i8] c" \00"
@.str.8 = [2 x i8] c"h\00"
@.str.9 = [10 x i8] c"GAME OVER\00"
@.str.10 = [41 x i8] c" \00"
define void @HariMain() {
%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 i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca [87696 x i8]
%19 = alloca [192 x i8]
%20 = alloca [12 x i8]
%21 = alloca [4 x i8]
%22 = alloca i8*
store i32 0, i32* %7
%23 = getelementptr inbounds [87696 x i8], [87696 x i8]* %18, i64 0, i64 0
%24 = call i32 @api_openwin(i8* %23, i32 336, i32 261, i32 -1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
store i32 %24, i32* %1
%25 = load i32, i32* %1
%26 = call i32 @api_boxfilwin(i32 %25, i32 6, i32 27, i32 329, i32 254, i32 0)
%27 = call i32 (...) @api_alloctimer()
store i32 %27, i32* %2
%28 = load i32, i32* %2
%29 = call i32 @api_inittimer(i32 %28, i32 128)
store i32 0, i32* %16
%30 = load i32, i32* %1
%31 = getelementptr inbounds [87696 x i8], [87696 x i8]* %18, i64 0, i64 0
%32 = call i32 @putstr(i32 %30, i8* %31, i32 22, i32 0, i32 7, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
br label %33
33: ; preds = %420, %0
store i32 0, i32* %15
store i32 1, i32* %17
%34 = load i32, i32* %1
%35 = getelementptr inbounds [87696 x i8], [87696 x i8]* %18, i64 0, i64 0
%36 = call i32 @putstr(i32 %34, i8* %35, i32 4, i32 0, i32 7, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
store i32 20, i32* %11
store i32 18, i32* %5
%37 = load i32, i32* %1
%38 = getelementptr inbounds [87696 x i8], [87696 x i8]* %18, i64 0, i64 0
%39 = load i32, i32* %5
%40 = call i32 @putstr(i32 %37, i8* %38, i32 %39, i32 13, i32 6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%41 = load i32, i32* %2
%42 = getelementptr inbounds [4 x i8], [4 x i8]* %21, i64 0, i64 0
%43 = call i32 @wait(i32 100, i32 %41, i8* %42)
br label %44
44: ; preds = %393, %33
%45 = load i32, i32* %2
%46 = getelementptr inbounds [4 x i8], [4 x i8]* %21, i64 0, i64 0
%47 = call i32 @wait(i32 100, i32 %45, i8* %46)
store i32 7, i32* %9
store i32 1, i32* %10
store i32 6, i32* %14
store i32 0, i32* %3
br label %48
48: ; preds = %82, %44
%49 = load i32, i32* %3
%50 = icmp slt i32 %49, 6
br i1 %50, label %51, label %85
51: ; preds = %48
store i32 0, i32* %4
br label %52
52: ; preds = %66, %51
%53 = load i32, i32* %4
%54 = icmp slt i32 %53, 27
br i1 %54, label %55, label %69
55: ; preds = %52
%56 = load i32, i32* %4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [32 x i8], [32 x i8]* @HariMain.invstr0, i64 0, i64 %57
%59 = load i8, i8* %58
%60 = load i32, i32* %3
%61 = mul nsw i32 %60, 32
%62 = load i32, i32* %4
%63 = add nsw i32 %61, %62
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [192 x i8], [192 x i8]* %19, i64 0, i64 %64
store i8 %59, i8* %65
br label %66
66: ; preds = %55
%67 = load i32, i32* %4
%68 = add nsw i32 %67, 1
store i32 %68, i32* %4
br label %52
69: ; preds = %52
%70 = load i32, i32* %1
%71 = getelementptr inbounds [87696 x i8], [87696 x i8]* %18, i64 0, i64 0
%72 = load i32, i32* %9
%73 = load i32, i32* %10
%74 = load i32, i32* %3
%75 = add nsw i32 %73, %74
%76 = getelementptr inbounds [192 x i8], [192 x i8]* %19, i64 0, i64 0
%77 = load i32, i32* %3
%78 = mul nsw i32 %77, 32
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8, i8* %76, i64 %79
%81 = call i32 @putstr(i32 %70, i8* %71, i32 %72, i32 %75, i32 2, i8* %80)
br label %82
82: ; preds = %69
%83 = load i32, i32* %3
%84 = add nsw i32 %83, 1
store i32 %84, i32* %3
br label %48
85: ; preds = %48
%86 = getelementptr inbounds [4 x i8], [4 x i8]* %21, i64 0, i64 0
store i8 0, i8* %86
%87 = getelementptr inbounds [4 x i8], [4 x i8]* %21, i64 0, i64 1
store i8 0, i8* %87
%88 = getelementptr inbounds [4 x i8], [4 x i8]* %21, i64 0, i64 2
store i8 0, i8* %88
store i32 0, i32* %8
store i32 0, i32* %6
%89 = load i32, i32* %11
store i32 %89, i32* %12
store i32 1, i32* %13
%90 = load i32, i32* %2
%91 = getelementptr inbounds [4 x i8], [4 x i8]* %21, i64 0, i64 0
%92 = call i32 @wait(i32 100, i32 %90, i8* %91)
br label %93
93: ; preds = %401, %85
%94 = load i32, i32* %6
%95 = icmp ne i32 %94, 0
br i1 %95, label %96, label %100
96: ; preds = %93
%97 = load i32, i32* %6
%98 = add nsw i32 %97, -1
store i32 %98, i32* %6
%99 = getelementptr inbounds [4 x i8], [4 x i8]* %21, i64 0, i64 2
store i8 0, i8* %99
br label %100
100: ; preds = %96, %93
%101 = load i32, i32* %2
%102 = getelementptr inbounds [4 x i8], [4 x i8]* %21, i64 0, i64 0
%103 = call i32 @wait(i32 4, i32 %101, i8* %102)
%104 = getelementptr inbounds [4 x i8], [4 x i8]* %21, i64 0, i64 0
%105 = load i8, i8* %104
%106 = sext i8 %105 to i32
%107 = icmp ne i32 %106, 0
br i1 %107, label %108, label %119
108: ; preds = %100
%109 = load i32, i32* %5
%110 = icmp sgt i32 %109, 0
br i1 %110, label %111, label %119
111: ; preds = %108
%112 = load i32, i32* %5
%113 = add nsw i32 %112, -1
store i32 %113, i32* %5
%114 = load i32, i32* %1
%115 = getelementptr inbounds [87696 x i8], [87696 x i8]* %18, i64 0, i64 0
%116 = load i32, i32* %5
%117 = call i32 @putstr(i32 %114, i8* %115, i32 %116, i32 13, i32 6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%118 = getelementptr inbounds [4 x i8], [4 x i8]* %21, i64 0, i64 0
store i8 0, i8* %118
br label %119
119: ; preds = %111, %108, %100
%120 = getelementptr inbounds [4 x i8], [4 x i8]* %21, i64 0, i64 1
%121 = load i8, i8* %120
%122 = sext i8 %121 to i32
%123 = icmp ne i32 %122, 0
br i1 %123, label %124, label %135
124: ; preds = %119
%125 = load i32, i32* %5
%126 = icmp slt i32 %125, 37
br i1 %126, label %127, label %135
127: ; preds = %124
%128 = load i32, i32* %1
%129 = getelementptr inbounds [87696 x i8], [87696 x i8]* %18, i64 0, i64 0
%130 = load i32, i32* %5
%131 = call i32 @putstr(i32 %128, i8* %129, i32 %130, i32 13, i32 6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%132 = load i32, i32* %5
%133 = add nsw i32 %132, 1
store i32 %133, i32* %5
%134 = getelementptr inbounds [4 x i8], [4 x i8]* %21, i64 0, i64 1
store i8 0, i8* %134
br label %135
135: ; preds = %127, %124, %119
%136 = getelementptr inbounds [4 x i8], [4 x i8]* %21, i64 0, i64 2
%137 = load i8, i8* %136
%138 = sext i8 %137 to i32
%139 = icmp ne i32 %138, 0
br i1 %139, label %140, label %146
140: ; preds = %135
%141 = load i32, i32* %6
%142 = icmp eq i32 %141, 0
br i1 %142, label %143, label %146
143: ; preds = %140
store i32 15, i32* %6
%144 = load i32, i32* %5
%145 = add nsw i32 %144, 1
store i32 %145, i32* %7
store i32 13, i32* %8
br label %146
146: ; preds = %143, %140, %135
%147 = load i32, i32* %12
%148 = icmp ne i32 %147, 0
br i1 %148, label %149, label %152
149: ; preds = %146
%150 = load i32, i32* %12
%151 = add nsw i32 %150, -1
store i32 %151, i32* %12
br label %206
152: ; preds = %146
%153 = load i32, i32* %11
store i32 %153, i32* %12
%154 = load i32, i32* %9
%155 = load i32, i32* %13
%156 = add nsw i32 %154, %155
%157 = icmp sgt i32 %156, 14
br i1 %157, label %163, label %158
158: ; preds = %152
%159 = load i32, i32* %9
%160 = load i32, i32* %13
%161 = add nsw i32 %159, %160
%162 = icmp slt i32 %161, 0
br i1 %162, label %163, label %180
163: ; preds = %158, %152
%164 = load i32, i32* %10
%165 = load i32, i32* %14
%166 = add nsw i32 %164, %165
%167 = icmp eq i32 %166, 13
br i1 %167, label %168, label %169
168: ; preds = %163
br label %402
169: ; preds = %163
%170 = load i32, i32* %13
%171 = sub nsw i32 0, %170
store i32 %171, i32* %13
%172 = load i32, i32* %1
%173 = getelementptr inbounds [87696 x i8], [87696 x i8]* %18, i64 0, i64 0
%174 = load i32, i32* %9
%175 = add nsw i32 %174, 1
%176 = load i32, i32* %10
%177 = call i32 @putstr(i32 %172, i8* %173, i32 %175, i32 %176, i32 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0))
%178 = load i32, i32* %10
%179 = add nsw i32 %178, 1
store i32 %179, i32* %10
br label %184
180: ; preds = %158
%181 = load i32, i32* %13
%182 = load i32, i32* %9
%183 = add nsw i32 %182, %181
store i32 %183, i32* %9
br label %184
184: ; preds = %180, %169
store i32 0, i32* %3
br label %185
185: ; preds = %202, %184
%186 = load i32, i32* %3
%187 = load i32, i32* %14
%188 = icmp slt i32 %186, %187
br i1 %188, label %189, label %205
189: ; preds = %185
%190 = load i32, i32* %1
%191 = getelementptr inbounds [87696 x i8], [87696 x i8]* %18, i64 0, i64 0
%192 = load i32, i32* %9
%193 = load i32, i32* %10
%194 = load i32, i32* %3
%195 = add nsw i32 %193, %194
%196 = getelementptr inbounds [192 x i8], [192 x i8]* %19, i64 0, i64 0
%197 = load i32, i32* %3
%198 = mul nsw i32 %197, 32
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds i8, i8* %196, i64 %199
%201 = call i32 @putstr(i32 %190, i8* %191, i32 %192, i32 %195, i32 2, i8* %200)
br label %202
202: ; preds = %189
%203 = load i32, i32* %3
%204 = add nsw i32 %203, 1
store i32 %204, i32* %3
br label %185
205: ; preds = %185
br label %206
206: ; preds = %205, %149
%207 = load i32, i32* %8
%208 = icmp sgt i32 %207, 0
br i1 %208, label %209, label %401
209: ; preds = %206
%210 = load i32, i32* %8
%211 = icmp slt i32 %210, 13
br i1 %211, label %212, label %251
212: ; preds = %209
%213 = load i32, i32* %9
%214 = load i32, i32* %7
%215 = icmp slt i32 %213, %214
br i1 %215, label %216, label %244
216: ; preds = %212
%217 = load i32, i32* %7
%218 = load i32, i32* %9
%219 = add nsw i32 %218, 25
%220 = icmp slt i32 %217, %219
br i1 %220, label %221, label %244
221: ; preds = %216
%222 = load i32, i32* %10
%223 = load i32, i32* %8
%224 = icmp sle i32 %222, %223
br i1 %224, label %225, label %244
225: ; preds = %221
%226 = load i32, i32* %8
%227 = load i32, i32* %10
%228 = load i32, i32* %14
%229 = add nsw i32 %227, %228
%230 = icmp slt i32 %226, %229
br i1 %230, label %231, label %244
231: ; preds = %225
%232 = load i32, i32* %1
%233 = getelementptr inbounds [87696 x i8], [87696 x i8]* %18, i64 0, i64 0
%234 = load i32, i32* %9
%235 = load i32, i32* %8
%236 = getelementptr inbounds [192 x i8], [192 x i8]* %19, i64 0, i64 0
%237 = load i32, i32* %8
%238 = load i32, i32* %10
%239 = sub nsw i32 %237, %238
%240 = mul nsw i32 %239, 32
%241 = sext i32 %240 to i64
%242 = getelementptr inbounds i8, i8* %236, i64 %241
%243 = call i32 @putstr(i32 %232, i8* %233, i32 %234, i32 %235, i32 2, i8* %242)
br label %250
244: ; preds = %225, %221, %216, %212
%245 = load i32, i32* %1
%246 = getelementptr inbounds [87696 x i8], [87696 x i8]* %18, i64 0, i64 0
%247 = load i32, i32* %7
%248 = load i32, i32* %8
%249 = call i32 @putstr(i32 %245, i8* %246, i32 %247, i32 %248, i32 0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %250
250: ; preds = %244, %231
br label %251
251: ; preds = %250, %209
%252 = load i32, i32* %8
%253 = add nsw i32 %252, -1
store i32 %253, i32* %8
%254 = load i32, i32* %8
%255 = icmp sgt i32 %254, 0
br i1 %255, label %256, label %262
256: ; preds = %251
%257 = load i32, i32* %1
%258 = getelementptr inbounds [87696 x i8], [87696 x i8]* %18, i64 0, i64 0
%259 = load i32, i32* %7
%260 = load i32, i32* %8
%261 = call i32 @putstr(i32 %257, i8* %258, i32 %259, i32 %260, i32 3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %269
262: ; preds = %251
%263 = load i32, i32* %17
%264 = sub nsw i32 %263, 10
store i32 %264, i32* %17
%265 = load i32, i32* %17
%266 = icmp sle i32 %265, 0
br i1 %266, label %267, label %268
267: ; preds = %262
store i32 1, i32* %17
br label %268
268: ; preds = %267, %262
br label %269
269: ; preds = %268, %256
%270 = load i32, i32* %9
%271 = load i32, i32* %7
%272 = icmp slt i32 %270, %271
br i1 %272, label %273, label %400
273: ; preds = %269
%274 = load i32, i32* %7
%275 = load i32, i32* %9
%276 = add nsw i32 %275, 25
%277 = icmp slt i32 %274, %276
br i1 %277, label %278, label %400
278: ; preds = %273
%279 = load i32, i32* %10
%280 = load i32, i32* %8
%281 = icmp sle i32 %279, %280
br i1 %281, label %282, label %400
282: ; preds = %278
%283 = load i32, i32* %8
%284 = load i32, i32* %10
%285 = load i32, i32* %14
%286 = add nsw i32 %284, %285
%287 = icmp slt i32 %283, %286
br i1 %287, label %288, label %400
288: ; preds = %282
%289 = getelementptr inbounds [192 x i8], [192 x i8]* %19, i64 0, i64 0
%290 = load i32, i32* %8
%291 = load i32, i32* %10
%292 = sub nsw i32 %290, %291
%293 = mul nsw i32 %292, 32
%294 = sext i32 %293 to i64
%295 = getelementptr inbounds i8, i8* %289, i64 %294
%296 = load i32, i32* %7
%297 = load i32, i32* %9
%298 = sub nsw i32 %296, %297
%299 = sext i32 %298 to i64
%300 = getelementptr inbounds i8, i8* %295, i64 %299
store i8* %300, i8** %22
%301 = load i8*, i8** %22
%302 = load i8, i8* %301
%303 = sext i8 %302 to i32
%304 = icmp ne i32 %303, 32
br i1 %304, label %305, label %399
305: ; preds = %288
%306 = load i32, i32* %17
%307 = load i32, i32* %15
%308 = add nsw i32 %307, %306
store i32 %308, i32* %15
%309 = load i32, i32* %17
%310 = add nsw i32 %309, 1
store i32 %310, i32* %17
%311 = getelementptr inbounds [12 x i8], [12 x i8]* %20, i64 0, i64 0
%312 = load i32, i32* %15
%313 = call i32 @setdec8(i8* %311, i32 %312)
%314 = load i32, i32* %1
%315 = getelementptr inbounds [87696 x i8], [87696 x i8]* %18, i64 0, i64 0
%316 = getelementptr inbounds [12 x i8], [12 x i8]* %20, i64 0, i64 0
%317 = call i32 @putstr(i32 %314, i8* %315, i32 10, i32 0, i32 7, i8* %316)
%318 = load i32, i32* %16
%319 = load i32, i32* %15
%320 = icmp slt i32 %318, %319
br i1 %320, label %321, label %327
321: ; preds = %305
%322 = load i32, i32* %15
store i32 %322, i32* %16
%323 = load i32, i32* %1
%324 = getelementptr inbounds [87696 x i8], [87696 x i8]* %18, i64 0, i64 0
%325 = getelementptr inbounds [12 x i8], [12 x i8]* %20, i64 0, i64 0
%326 = call i32 @putstr(i32 %323, i8* %324, i32 27, i32 0, i32 7, i8* %325)
br label %327
327: ; preds = %321, %305
%328 = load i8*, i8** %22
%329 = getelementptr inbounds i8, i8* %328, i32 -1
store i8* %329, i8** %22
br label %330
330: ; preds = %336, %327
%331 = load i8*, i8** %22
%332 = load i8, i8* %331
%333 = sext i8 %332 to i32
%334 = icmp ne i32 %333, 32
br i1 %334, label %335, label %339
335: ; preds = %330
br label %336
336: ; preds = %335
%337 = load i8*, i8** %22
%338 = getelementptr inbounds i8, i8* %337, i32 -1
store i8* %338, i8** %22
br label %330
339: ; preds = %330
store i32 1, i32* %3
br label %340
340: ; preds = %348, %339
%341 = load i32, i32* %3
%342 = icmp slt i32 %341, 5
br i1 %342, label %343, label %351
343: ; preds = %340
%344 = load i8*, i8** %22
%345 = load i32, i32* %3
%346 = sext i32 %345 to i64
%347 = getelementptr inbounds i8, i8* %344, i64 %346
store i8 32, i8* %347
br label %348
348: ; preds = %343
%349 = load i32, i32* %3
%350 = add nsw i32 %349, 1
store i32 %350, i32* %3
br label %340
351: ; preds = %340
%352 = load i32, i32* %1
%353 = getelementptr inbounds [87696 x i8], [87696 x i8]* %18, i64 0, i64 0
%354 = load i32, i32* %9
%355 = load i32, i32* %8
%356 = getelementptr inbounds [192 x i8], [192 x i8]* %19, i64 0, i64 0
%357 = load i32, i32* %8
%358 = load i32, i32* %10
%359 = sub nsw i32 %357, %358
%360 = mul nsw i32 %359, 32
%361 = sext i32 %360 to i64
%362 = getelementptr inbounds i8, i8* %356, i64 %361
%363 = call i32 @putstr(i32 %352, i8* %353, i32 %354, i32 %355, i32 2, i8* %362)
br label %364
364: ; preds = %390, %351
%365 = load i32, i32* %14
%366 = icmp sgt i32 %365, 0
br i1 %366, label %367, label %393
367: ; preds = %364
%368 = getelementptr inbounds [192 x i8], [192 x i8]* %19, i64 0, i64 0
%369 = load i32, i32* %14
%370 = sub nsw i32 %369, 1
%371 = mul nsw i32 %370, 32
%372 = sext i32 %371 to i64
%373 = getelementptr inbounds i8, i8* %368, i64 %372
store i8* %373, i8** %22
br label %374
374: ; preds = %386, %367
%375 = load i8*, i8** %22
%376 = load i8, i8* %375
%377 = sext i8 %376 to i32
%378 = icmp ne i32 %377, 0
br i1 %378, label %379, label %389
379: ; preds = %374
%380 = load i8*, i8** %22
%381 = load i8, i8* %380
%382 = sext i8 %381 to i32
%383 = icmp ne i32 %382, 32
br i1 %383, label %384, label %385
384: ; preds = %379
br label %398
385: ; preds = %379
br label %386
386: ; preds = %385
%387 = load i8*, i8** %22
%388 = getelementptr inbounds i8, i8* %387, i32 1
store i8* %388, i8** %22
br label %374
389: ; preds = %374
br label %390
390: ; preds = %389
%391 = load i32, i32* %14
%392 = add nsw i32 %391, -1
store i32 %392, i32* %14
br label %364
393: ; preds = %364
%394 = load i32, i32* %11
%395 = sdiv i32 %394, 3
%396 = load i32, i32* %11
%397 = sub nsw i32 %396, %395
store i32 %397, i32* %11
br label %44
398: ; preds = %384
store i32 0, i32* %8
br label %399
399: ; preds = %398, %288
br label %400
400: ; preds = %399, %282, %278, %273, %269
br label %401
401: ; preds = %400, %206
br label %93
402: ; preds = %168
%403 = load i32, i32* %1
%404 = getelementptr inbounds [87696 x i8], [87696 x i8]* %18, i64 0, i64 0
%405 = call i32 @putstr(i32 %403, i8* %404, i32 15, i32 6, i32 1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%406 = load i32, i32* %2
%407 = getelementptr inbounds [4 x i8], [4 x i8]* %21, i64 0, i64 0
%408 = call i32 @wait(i32 0, i32 %406, i8* %407)
store i32 1, i32* %3
br label %409
409: ; preds = %417, %402
%410 = load i32, i32* %3
%411 = icmp slt i32 %410, 14
br i1 %411, label %412, label %420
412: ; preds = %409
%413 = load i32, i32* %1
%414 = getelementptr inbounds [87696 x i8], [87696 x i8]* %18, i64 0, i64 0
%415 = load i32, i32* %3
%416 = call i32 @putstr(i32 %413, i8* %414, i32 0, i32 %415, i32 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
br label %417
417: ; preds = %412
%418 = load i32, i32* %3
%419 = add nsw i32 %418, 1
store i32 %419, i32* %3
br label %409
420: ; preds = %409
br label %33
}

LLVM IR (-O2):
@HariMain.invstr0 = internal unnamed_addr constant [32 x i8] c" abcd abcd abcd abcd abcd \00\00\00\00\00\00"
@.str = [8 x i8] c"invader\00"
@.str.1 = [14 x i8] c"HIGH:00000000\00"
@.str.2 = [15 x i8] c"SCORE:00000000\00"
@.str.3 = [4 x i8] c"efg\00"
@.str.4 = [5 x i8] c"efg \00"
@.str.5 = [5 x i8] c" efg\00"
@.str.6 = [26 x i8] c" \00"
@.str.7 = [2 x i8] c" \00"
@.str.8 = [2 x i8] c"h\00"
@.str.9 = [10 x i8] c"GAME OVER\00"
@.str.10 = [41 x i8] c" \00"
define void @HariMain() {
%1 = alloca [87696 x i8]
%2 = alloca [192 x i8]
%3 = alloca [12 x i8]
%4 = alloca [4 x i8]
%5 = getelementptr inbounds [87696 x i8], [87696 x i8]* %1, i64 0, i64 0
%6 = getelementptr inbounds [192 x i8], [192 x i8]* %2, i64 0, i64 0
%7 = getelementptr inbounds [12 x i8], [12 x i8]* %3, i64 0, i64 0
%8 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 0
%9 = call i32 @api_openwin(i8* %5, i32 336, i32 261, i32 -1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @api_boxfilwin(i32 %9, i32 6, i32 27, i32 329, i32 254, i32 0)
%11 = call i32 (...) @api_alloctimer()
%12 = call i32 @api_inittimer(i32 %11, i32 128)
%13 = call i32 @putstr(i32 %9, i8* %5, i32 22, i32 0, i32 7, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%14 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 1
%15 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 2
%16 = getelementptr inbounds [192 x i8], [192 x i8]* %2, i64 0, i64 32
%17 = getelementptr inbounds [192 x i8], [192 x i8]* %2, i64 0, i64 64
%18 = getelementptr inbounds [192 x i8], [192 x i8]* %2, i64 0, i64 96
%19 = getelementptr inbounds [192 x i8], [192 x i8]* %2, i64 0, i64 128
%20 = getelementptr inbounds [192 x i8], [192 x i8]* %2, i64 0, i64 160
br label %21
21: ; preds = %239, %0
%22 = phi i32 [ 0, %0 ], [ %105, %239 ]
%23 = phi i32 [ 0, %0 ], [ %52, %239 ]
%24 = call i32 @putstr(i32 %9, i8* %5, i32 4, i32 0, i32 7, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%25 = call i32 @putstr(i32 %9, i8* %5, i32 18, i32 13, i32 6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%26 = call i32 @wait(i32 100, i32 %11, i8* %8)
br label %27
27: ; preds = %234, %21
%28 = phi i32 [ 18, %21 ], [ %98, %234 ]
%29 = phi i32 [ %22, %21 ], [ %105, %234 ]
%30 = phi i32 [ 20, %21 ], [ %236, %234 ]
%31 = phi i32 [ 0, %21 ], [ %199, %234 ]
%32 = phi i32 [ %23, %21 ], [ %207, %234 ]
%33 = phi i32 [ 1, %21 ], [ %200, %234 ]
%34 = call i32 @wait(i32 100, i32 %11, i8* %8)
%35 = call i32 @putstr(i32 %9, i8* %5, i32 7, i32 1, i32 2, i8* %6)
%36 = call i32 @putstr(i32 %9, i8* %5, i32 7, i32 2, i32 2, i8* %16)
%37 = call i32 @putstr(i32 %9, i8* %5, i32 7, i32 3, i32 2, i8* %17)
%38 = call i32 @putstr(i32 %9, i8* %5, i32 7, i32 4, i32 2, i8* %18)
%39 = call i32 @putstr(i32 %9, i8* %5, i32 7, i32 5, i32 2, i8* %19)
%40 = call i32 @putstr(i32 %9, i8* %5, i32 7, i32 6, i32 2, i8* %20)
store i8 0, i8* %8
store i8 0, i8* %14
store i8 0, i8* %15
%41 = call i32 @wait(i32 100, i32 %11, i8* %8)
br label %42
42: ; preds = %237, %27
%43 = phi i32 [ %98, %237 ], [ %28, %27 ]
%44 = phi i32 [ %104, %237 ], [ 0, %27 ]
%45 = phi i32 [ %105, %237 ], [ %29, %27 ]
%46 = phi i32 [ %135, %237 ], [ 7, %27 ]
%47 = phi i32 [ %136, %237 ], [ 1, %27 ]
%48 = phi i32 [ %137, %237 ], [ %30, %27 ]
%49 = phi i32 [ %138, %237 ], [ 1, %27 ]
%50 = phi i32 [ %238, %237 ], [ 6, %27 ]
%51 = phi i32 [ %199, %237 ], [ %31, %27 ]
%52 = phi i32 [ %207, %237 ], [ %32, %27 ]
%53 = phi i32 [ %200, %237 ], [ %33, %27 ]
%54 = icmp sgt i32 %50, 0
%55 = zext i32 %50 to i64
br label %56
56: ; preds = %186, %42
%57 = phi i32 [ %43, %42 ], [ %98, %186 ]
%58 = phi i32 [ %44, %42 ], [ %104, %186 ]
%59 = phi i32 [ %45, %42 ], [ %105, %186 ]
%60 = phi i32 [ 0, %42 ], [ %177, %186 ]
%61 = phi i32 [ %46, %42 ], [ %135, %186 ]
%62 = phi i32 [ %47, %42 ], [ %136, %186 ]
%63 = phi i32 [ %48, %42 ], [ %137, %186 ]
%64 = phi i32 [ %49, %42 ], [ %138, %186 ]
%65 = phi i32 [ %53, %42 ], [ %178, %186 ]
br label %66
66: ; preds = %56, %134
%67 = phi i32 [ %98, %134 ], [ %57, %56 ]
%68 = phi i32 [ %104, %134 ], [ %58, %56 ]
%69 = phi i32 [ %105, %134 ], [ %59, %56 ]
%70 = phi i32 [ 0, %134 ], [ %60, %56 ]
%71 = phi i32 [ %135, %134 ], [ %61, %56 ]
%72 = phi i32 [ %136, %134 ], [ %62, %56 ]
%73 = phi i32 [ %137, %134 ], [ %63, %56 ]
%74 = phi i32 [ %138, %134 ], [ %64, %56 ]
%75 = icmp eq i32 %68, 0
br i1 %75, label %78, label %76
76: ; preds = %66
%77 = add nsw i32 %68, -1
store i8 0, i8* %15
br label %78
78: ; preds = %76, %66
%79 = phi i32 [ %77, %76 ], [ 0, %66 ]
%80 = call i32 @wait(i32 4, i32 %11, i8* %8)
%81 = load i8, i8* %8
%82 = icmp ne i8 %81, 0
%83 = icmp sgt i32 %67, 0
%84 = select i1 %82, i1 %83, i1 false
br i1 %84, label %85, label %88
85: ; preds = %78
%86 = add nsw i32 %67, -1
%87 = call i32 @putstr(i32 %9, i8* %5, i32 %86, i32 13, i32 6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
store i8 0, i8* %8
br label %88
88: ; preds = %85, %78
%89 = phi i32 [ %86, %85 ], [ %67, %78 ]
%90 = load i8, i8* %14
%91 = icmp ne i8 %90, 0
%92 = icmp slt i32 %89, 37
%93 = select i1 %91, i1 %92, i1 false
br i1 %93, label %94, label %97
94: ; preds = %88
%95 = call i32 @putstr(i32 %9, i8* %5, i32 %89, i32 13, i32 6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%96 = add nsw i32 %89, 1
store i8 0, i8* %14
br label %97
97: ; preds = %94, %88
%98 = phi i32 [ %96, %94 ], [ %89, %88 ]
%99 = load i8, i8* %15
%100 = icmp ne i8 %99, 0
%101 = icmp eq i32 %79, 0
%102 = select i1 %100, i1 %101, i1 false
%103 = add nsw i32 %98, 1
%104 = select i1 %102, i32 15, i32 %79
%105 = select i1 %102, i32 %103, i32 %69
%106 = select i1 %102, i32 13, i32 %70
%107 = icmp eq i32 %73, 0
br i1 %107, label %110, label %108
108: ; preds = %97
%109 = add nsw i32 %73, -1
br label %134
110: ; preds = %97
%111 = add nsw i32 %74, %71
%112 = icmp ugt i32 %111, 14
br i1 %112, label %113, label %121
113: ; preds = %110
%114 = add nsw i32 %50, %72
%115 = icmp eq i32 %114, 13
br i1 %115, label %239, label %116
116: ; preds = %113
%117 = sub nsw i32 0, %74
%118 = add nsw i32 %71, 1
%119 = call i32 @putstr(i32 %9, i8* %5, i32 %118, i32 %72, i32 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0))
%120 = add nsw i32 %72, 1
br label %121
121: ; preds = %110, %116
%122 = phi i32 [ %71, %116 ], [ %111, %110 ]
%123 = phi i32 [ %120, %116 ], [ %72, %110 ]
%124 = phi i32 [ %117, %116 ], [ %74, %110 ]
br i1 %54, label %125, label %134
125: ; preds = %121, %125
%126 = phi i64 [ %132, %125 ], [ 0, %121 ]
%127 = shl nsw i64 %126, 5
%128 = getelementptr inbounds [192 x i8], [192 x i8]* %2, i64 0, i64 %127
%129 = trunc i64 %126 to i32
%130 = add i32 %123, %129
%131 = call i32 @putstr(i32 %9, i8* %5, i32 %122, i32 %130, i32 2, i8* %128)
%132 = add nuw nsw i64 %126, 1
%133 = icmp eq i64 %132, %55
br i1 %133, label %134, label %125
134: ; preds = %125, %121, %108
%135 = phi i32 [ %71, %108 ], [ %122, %121 ], [ %122, %125 ]
%136 = phi i32 [ %72, %108 ], [ %123, %121 ], [ %123, %125 ]
%137 = phi i32 [ %109, %108 ], [ %30, %121 ], [ %30, %125 ]
%138 = phi i32 [ %74, %108 ], [ %124, %121 ], [ %124, %125 ]
%139 = icmp sgt i32 %106, 0
br i1 %139, label %140, label %66
140: ; preds = %134
%141 = icmp ult i32 %106, 13
br i1 %141, label %145, label %142
142: ; preds = %140
%143 = add nsw i32 %135, 25
%144 = add nsw i32 %136, %50
br label %165
145: ; preds = %140
%146 = icmp sgt i32 %105, %135
%147 = add nsw i32 %135, 25
%148 = icmp slt i32 %105, %147
%149 = select i1 %146, i1 %148, i1 false
%150 = icmp sge i32 %106, %136
%151 = select i1 %149, i1 %150, i1 false
%152 = add nsw i32 %136, %50
%153 = icmp slt i32 %106, %152
%154 = select i1 %151, i1 %153, i1 false
br i1 %154, label %155, label %161
155: ; preds = %145
%156 = sub nsw i32 %106, %136
%157 = shl nsw i32 %156, 5
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds [192 x i8], [192 x i8]* %2, i64 0, i64 %158
%160 = call i32 @putstr(i32 %9, i8* %5, i32 %135, i32 %106, i32 2, i8* %159)
br label %163
161: ; preds = %145
%162 = call i32 @putstr(i32 %9, i8* %5, i32 %105, i32 %106, i32 0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %163
163: ; preds = %155, %161
%164 = icmp ugt i32 %106, 1
br i1 %164, label %165, label %170
165: ; preds = %142, %163
%166 = phi i32 [ %144, %142 ], [ %152, %163 ]
%167 = phi i32 [ %143, %142 ], [ %147, %163 ]
%168 = add nsw i32 %106, -1
%169 = call i32 @putstr(i32 %9, i8* %5, i32 %105, i32 %168, i32 3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %174
170: ; preds = %163
%171 = icmp sgt i32 %65, 11
%172 = select i1 %171, i32 %65, i32 11
%173 = add nsw i32 %172, -10
br label %174
174: ; preds = %170, %165
%175 = phi i32 [ %152, %170 ], [ %166, %165 ]
%176 = phi i32 [ %147, %170 ], [ %167, %165 ]
%177 = phi i32 [ 0, %170 ], [ %168, %165 ]
%178 = phi i32 [ %173, %170 ], [ %65, %165 ]
%179 = icmp sle i32 %105, %135
%180 = icmp sge i32 %105, %176
%181 = select i1 %179, i1 true, i1 %180
%182 = icmp sle i32 %106, %136
%183 = select i1 %181, i1 true, i1 %182
%184 = icmp sgt i32 %106, %175
%185 = select i1 %183, i1 true, i1 %184
br i1 %185, label %186, label %187
186: ; preds = %174, %187
br label %56
187: ; preds = %174
%188 = sub nsw i32 %177, %136
%189 = shl nsw i32 %188, 5
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds [192 x i8], [192 x i8]* %2, i64 0, i64 %190
%192 = sub nsw i32 %105, %135
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds i8, i8* %191, i64 %193
%195 = load i8, i8* %194
%196 = icmp eq i8 %195, 32
br i1 %196, label %186, label %197
197: ; preds = %187
%198 = getelementptr inbounds i8, i8* %191, i64 %193
%199 = add nsw i32 %178, %51
%200 = add nsw i32 %178, 1
%201 = call i32 @setdec8(i8* %7, i32 %199)
%202 = call i32 @putstr(i32 %9, i8* %5, i32 10, i32 0, i32 7, i8* %7)
%203 = icmp slt i32 %52, %199
br i1 %203, label %204, label %206
204: ; preds = %197
%205 = call i32 @putstr(i32 %9, i8* %5, i32 27, i32 0, i32 7, i8* %7)
br label %206
206: ; preds = %204, %197
%207 = phi i32 [ %199, %204 ], [ %52, %197 ]
br label %208
208: ; preds = %208, %206
%209 = phi i8* [ %198, %206 ], [ %210, %208 ]
%210 = getelementptr inbounds i8, i8* %209, i64 -1
%211 = load i8, i8* %210
%212 = icmp eq i8 %211, 32
br i1 %212, label %213, label %208
213: ; preds = %208
%214 = bitcast i8* %209 to i32*
store i32 538976288, i32* %214
%215 = call i32 @putstr(i32 %9, i8* %5, i32 %135, i32 %177, i32 2, i8* %191)
%216 = icmp sgt i32 %50, 0
br i1 %216, label %217, label %234
217: ; preds = %213
%218 = zext i32 %50 to i64
br label %219
219: ; preds = %217, %231
%220 = phi i64 [ %218, %217 ], [ %232, %231 ]
%221 = trunc i64 %220 to i32
%222 = shl i32 %221, 5
%223 = add i32 %222, -32
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds [192 x i8], [192 x i8]* %2, i64 0, i64 %224
br label %226
226: ; preds = %229, %219
%227 = phi i8* [ %225, %219 ], [ %230, %229 ]
%228 = load i8, i8* %227
switch i8 %228, label %237 [
i8 0, label %231
i8 32, label %229
]
229: ; preds = %226
%230 = getelementptr inbounds i8, i8* %227, i64 1
br label %226
231: ; preds = %226
%232 = add nsw i64 %220, -1
%233 = icmp sgt i64 %220, 1
br i1 %233, label %219, label %234
234: ; preds = %213, %231
%235 = sdiv i32 %30, -3
%236 = add i32 %235, %30
br label %27
237: ; preds = %226
%238 = trunc i64 %220 to i32
br label %42
239: ; preds = %113
%240 = call i32 @putstr(i32 %9, i8* %5, i32 15, i32 6, i32 1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%241 = call i32 @wait(i32 0, i32 %11, i8* %8)
%242 = call i32 @putstr(i32 %9, i8* %5, i32 0, i32 1, i32 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%243 = call i32 @putstr(i32 %9, i8* %5, i32 0, i32 2, i32 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%244 = call i32 @putstr(i32 %9, i8* %5, i32 0, i32 3, i32 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%245 = call i32 @putstr(i32 %9, i8* %5, i32 0, i32 4, i32 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%246 = call i32 @putstr(i32 %9, i8* %5, i32 0, i32 5, i32 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%247 = call i32 @putstr(i32 %9, i8* %5, i32 0, i32 6, i32 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%248 = call i32 @putstr(i32 %9, i8* %5, i32 0, i32 7, i32 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%249 = call i32 @putstr(i32 %9, i8* %5, i32 0, i32 8, i32 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%250 = call i32 @putstr(i32 %9, i8* %5, i32 0, i32 9, i32 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%251 = call i32 @putstr(i32 %9, i8* %5, i32 0, i32 10, i32 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%252 = call i32 @putstr(i32 %9, i8* %5, i32 0, i32 11, i32 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%253 = call i32 @putstr(i32 %9, i8* %5, i32 0, i32 12, i32 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%254 = call i32 @putstr(i32 %9, i8* %5, i32 0, i32 13, i32 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
br label %21
}