#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*/ msg;
typedef int /*<<< orphan*/ WINDOW;

/* Variables and functions */
int /*<<< orphan*/ ACS_HLINE;
int /*<<< orphan*/ ACS_VLINE;
int /*<<< orphan*/ COLOR_PAIR(int);
int /*<<< orphan*/ box(int /*<<< orphan*/ *, int /*<<< orphan*/,
                       int /*<<< orphan*/);
int /*<<< orphan*/ delwin(int /*<<< orphan*/ *);
int /*<<< orphan*/ getmaxyx(int /*<<< orphan*/, int, int);
int /*<<< orphan*/ mvwaddch(int /*<<< orphan*/ *, int, int, char);
int /*<<< orphan*/ mvwprintw(int /*<<< orphan*/ *, int, int, char *, char *);
int /*<<< orphan*/ *newwin(int, int, int, int);
int /*<<< orphan*/ refresh();
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ snprintf(char *, int, char *, char *);
int /*<<< orphan*/ stdscr;
int strlen(char *);
int /*<<< orphan*/ strncpy(char *, char *, int);
int /*<<< orphan*/ touchwin(int /*<<< orphan*/);
int /*<<< orphan*/ wattrset(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ wrefresh(int /*<<< orphan*/ *);
void nintro() {
  WINDOW *info;
  int i;
  int b;
  int maxrow;
  int maxcol;
  char msg[50];
  getmaxyx(stdscr, maxrow, maxcol);
  info = newwin(15, 50, (maxrow - 7) / 2, (maxcol - 50) / 2);
  wattrset(info, COLOR_PAIR(6));
  box(info, ACS_VLINE, ACS_HLINE);
  wattrset(info, COLOR_PAIR(5));
  for (i = 1; i < 14; i++) {
    for (b = 1; b < 49; b++) {
      mvwaddch(info, i, b, ' ');
    }
  }
  strncpy(msg, "Intelligent War Dialer  [iWar]", sizeof(msg));
  mvwprintw(info, 1, (50 - strlen(msg)) / 2, "%s", msg);
  strncpy(msg, "http://www.softwink.com/iwar", sizeof(msg));
  mvwprintw(info, 2, (50 - strlen(msg)) / 2, "%s", msg);
  snprintf(msg, sizeof(msg), "Version: %s", "0.071");
  mvwprintw(info, 3, (50 - strlen(msg)) / 2, "%s", msg);
  strncpy(msg, "\"Now with 101% more VoIP!\"", sizeof(msg));
  mvwprintw(info, 4, (50 - strlen(msg)) / 2, "%s", msg);
  wattrset(info, COLOR_PAIR(6));
  strncpy(msg, "Written By Da Beave", sizeof(msg));
  mvwprintw(info, 6, (50 - strlen(msg)) / 2, "%s", msg);
  wattrset(info, COLOR_PAIR(5));
  strncpy(msg, "Released Jan. 16th 2006", sizeof(msg));
  mvwprintw(info, 8, (50 - strlen(msg)) / 2, "%s", msg);
  strncpy(msg, "Contact Information:", sizeof(msg));
  mvwprintw(info, 10, (50 - strlen(msg)) / 2, "%s", msg);
  strncpy(msg, "Email: beave@softwink.com", sizeof(msg));
  mvwprintw(info, 11, (50 - strlen(msg)) / 2, "%s", msg);
  strncpy(msg, "IRC: irc.telephreak.org #telephreak", sizeof(msg));
  mvwprintw(info, 12, (50 - strlen(msg)) / 2, "%s", msg);
  wrefresh(info);
  sleep(3);
  delwin(info);
  touchwin(stdscr);
  refresh();
}


x86 assembly (clang, -O0):
<nintro>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    0x2de6(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
call   10a0 <getmaxyx@plt>
mov    -0x14(%rbp),%eax
sub    $0x7,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x64(%rbp)
mov    -0x18(%rbp),%eax
sub    $0x32,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0x64(%rbp),%edx
mov    %eax,%ecx
mov    $0xf,%edi
mov    $0x32,%esi
call   1090 <newwin@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    $0x6,%edi
call   10d0 <COLOR_PAIR@plt>
mov    -0x60(%rbp),%rdi
mov    %eax,%esi
call   1050 <wattrset@plt>
mov    -0x8(%rbp),%rdi
mov    0x2d62(%rip),%rax
mov    (%rax),%esi
mov    0x2d61(%rip),%rax
mov    (%rax),%edx
call   10b0 <box@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    $0x5,%edi
call   10d0 <COLOR_PAIR@plt>
mov    -0x58(%rbp),%rdi
mov    %eax,%esi
call   1050 <wattrset@plt>
movl   $0x1,-0xc(%rbp)
cmpl   $0xe,-0xc(%rbp)
jge    12f2 <nintro+0x102>
movl   $0x1,-0x10(%rbp)
cmpl   $0x31,-0x10(%rbp)
jge    12df <nintro+0xef>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    $0x20,%ecx
call   1100 <mvwaddch@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    12b3 <nintro+0xc3>
jmp    12e4 <nintro+0xf4>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    12a2 <nintro+0xb2>
lea    -0x50(%rbp),%rdi
lea    0xd03(%rip),%rsi
mov    $0x32,%edx
call   1030 <strncpy@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0xc0(%rbp)
lea    -0x50(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0xc0(%rbp),%rdi
mov    %eax,%ecx
mov    $0x32,%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edx
lea    -0x50(%rbp),%r8
mov    $0x1,%esi
lea    0xd00(%rip),%rcx
call   10f0 <mvwprintw@plt>
lea    -0x50(%rbp),%rdi
lea    0xcca(%rip),%rsi
mov    $0x32,%edx
call   1030 <strncpy@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0xb8(%rbp)
lea    -0x50(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0xb8(%rbp),%rdi
mov    %eax,%ecx
mov    $0x32,%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edx
lea    -0x50(%rbp),%r8
mov    $0x2,%esi
lea    0xca8(%rip),%rcx
call   10f0 <mvwprintw@plt>
lea    -0x50(%rbp),%rdi
mov    $0x32,%esi
lea    0xc8a(%rip),%rdx
lea    0xc8f(%rip),%rcx
call   1080 <snprintf@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0xb0(%rbp)
lea    -0x50(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0xb0(%rbp),%rdi
mov    %eax,%ecx
mov    $0x32,%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edx
lea    -0x50(%rbp),%r8
mov    $0x3,%esi
lea    0xc49(%rip),%rcx
call   10f0 <mvwprintw@plt>
lea    -0x50(%rbp),%rdi
lea    0xc42(%rip),%rsi
mov    $0x32,%edx
call   1030 <strncpy@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0xa8(%rbp)
lea    -0x50(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0xa8(%rbp),%rdi
mov    %eax,%ecx
mov    $0x32,%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edx
lea    -0x50(%rbp),%r8
mov    $0x4,%esi
lea    0xbf1(%rip),%rcx
call   10f0 <mvwprintw@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0xa0(%rbp)
mov    $0x6,%edi
call   10d0 <COLOR_PAIR@plt>
mov    -0xa0(%rbp),%rdi
mov    %eax,%esi
call   1050 <wattrset@plt>
lea    -0x50(%rbp),%rdi
lea    0xbe2(%rip),%rsi
mov    $0x32,%edx
call   1030 <strncpy@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x98(%rbp)
lea    -0x50(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x98(%rbp),%rdi
mov    %eax,%ecx
mov    $0x32,%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edx
lea    -0x50(%rbp),%r8
mov    $0x6,%esi
lea    0xb76(%rip),%rcx
call   10f0 <mvwprintw@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x90(%rbp)
mov    $0x5,%edi
call   10d0 <COLOR_PAIR@plt>
mov    -0x90(%rbp),%rdi
mov    %eax,%esi
call   1050 <wattrset@plt>
lea    -0x50(%rbp),%rdi
lea    0xb7b(%rip),%rsi
mov    $0x32,%edx
call   1030 <strncpy@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x88(%rbp)
lea    -0x50(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x88(%rbp),%rdi
mov    %eax,%ecx
mov    $0x32,%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edx
lea    -0x50(%rbp),%r8
mov    $0x8,%esi
lea    0xafb(%rip),%rcx
call   10f0 <mvwprintw@plt>
lea    -0x50(%rbp),%rdi
lea    0xb3b(%rip),%rsi
mov    $0x32,%edx
call   1030 <strncpy@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x80(%rbp)
lea    -0x50(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x80(%rbp),%rdi
mov    %eax,%ecx
mov    $0x32,%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edx
lea    -0x50(%rbp),%r8
mov    $0xa,%esi
lea    0xaa9(%rip),%rcx
call   10f0 <mvwprintw@plt>
lea    -0x50(%rbp),%rdi
lea    0xafe(%rip),%rsi
mov    $0x32,%edx
call   1030 <strncpy@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x78(%rbp)
lea    -0x50(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x78(%rbp),%rdi
mov    %eax,%ecx
mov    $0x32,%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edx
lea    -0x50(%rbp),%r8
mov    $0xb,%esi
lea    0xa57(%rip),%rcx
call   10f0 <mvwprintw@plt>
lea    -0x50(%rbp),%rdi
lea    0xac6(%rip),%rsi
mov    $0x32,%edx
call   1030 <strncpy@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x70(%rbp)
lea    -0x50(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x70(%rbp),%rdi
mov    %eax,%ecx
mov    $0x32,%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edx
lea    -0x50(%rbp),%r8
mov    $0xc,%esi
lea    0xa05(%rip),%rcx
call   10f0 <mvwprintw@plt>
mov    -0x8(%rbp),%rdi
call   1070 <wrefresh@plt>
mov    $0x3,%edi
call   1110 <sleep@plt>
mov    -0x8(%rbp),%rdi
call   10c0 <delwin@plt>
mov    0x2980(%rip),%rax
mov    (%rax),%edi
call   1040 <touchwin@plt>
mov    $0x0,%al
call   10e0 <refresh@plt>
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nintro>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x40,%rsp
mov    0x2de5(%rip),%r12
mov    (%r12),%edi
call   10a0 <getmaxyx@plt>
mov    $0xf,%edi
mov    $0x32,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1090 <newwin@plt>
mov    %rax,%rbx
mov    $0x6,%edi
call   10d0 <COLOR_PAIR@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1050 <wattrset@plt>
mov    0x2d93(%rip),%rax
mov    (%rax),%esi
mov    0x2d92(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
call   10b0 <box@plt>
mov    $0x5,%edi
call   10d0 <COLOR_PAIR@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1050 <wattrset@plt>
mov    $0x1,%ebp
nopl   0x0(%rax)
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %ebp,%edx
mov    $0x20,%ecx
call   1100 <mvwaddch@plt>
add    $0x1,%ebp
cmp    $0x31,%ebp
jne    1270 <nintro+0x80>
mov    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0x2,%esi
mov    %ebp,%edx
mov    $0x20,%ecx
call   1100 <mvwaddch@plt>
add    $0x1,%ebp
cmp    $0x31,%ebp
jne    12a0 <nintro+0xb0>
mov    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0x3,%esi
mov    %ebp,%edx
mov    $0x20,%ecx
call   1100 <mvwaddch@plt>
add    $0x1,%ebp
cmp    $0x31,%ebp
jne    12d0 <nintro+0xe0>
mov    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0x4,%esi
mov    %ebp,%edx
mov    $0x20,%ecx
call   1100 <mvwaddch@plt>
add    $0x1,%ebp
cmp    $0x31,%ebp
jne    1300 <nintro+0x110>
mov    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0x5,%esi
mov    %ebp,%edx
mov    $0x20,%ecx
call   1100 <mvwaddch@plt>
add    $0x1,%ebp
cmp    $0x31,%ebp
jne    1330 <nintro+0x140>
mov    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0x6,%esi
mov    %ebp,%edx
mov    $0x20,%ecx
call   1100 <mvwaddch@plt>
add    $0x1,%ebp
cmp    $0x31,%ebp
jne    1360 <nintro+0x170>
mov    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0x7,%esi
mov    %ebp,%edx
mov    $0x20,%ecx
call   1100 <mvwaddch@plt>
add    $0x1,%ebp
cmp    $0x31,%ebp
jne    1390 <nintro+0x1a0>
mov    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0x8,%esi
mov    %ebp,%edx
mov    $0x20,%ecx
call   1100 <mvwaddch@plt>
add    $0x1,%ebp
cmp    $0x31,%ebp
jne    13c0 <nintro+0x1d0>
mov    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0x9,%esi
mov    %ebp,%edx
mov    $0x20,%ecx
call   1100 <mvwaddch@plt>
add    $0x1,%ebp
cmp    $0x31,%ebp
jne    13f0 <nintro+0x200>
mov    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0xa,%esi
mov    %ebp,%edx
mov    $0x20,%ecx
call   1100 <mvwaddch@plt>
add    $0x1,%ebp
cmp    $0x31,%ebp
jne    1420 <nintro+0x230>
mov    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0xb,%esi
mov    %ebp,%edx
mov    $0x20,%ecx
call   1100 <mvwaddch@plt>
add    $0x1,%ebp
cmp    $0x31,%ebp
jne    1450 <nintro+0x260>
mov    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0xc,%esi
mov    %ebp,%edx
mov    $0x20,%ecx
call   1100 <mvwaddch@plt>
add    $0x1,%ebp
cmp    $0x31,%ebp
jne    1480 <nintro+0x290>
mov    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0xd,%esi
mov    %ebp,%edx
mov    $0x20,%ecx
call   1100 <mvwaddch@plt>
add    $0x1,%ebp
cmp    $0x31,%ebp
jne    14b0 <nintro+0x2c0>
lea    0xb2d(%rip),%rsi
mov    %rsp,%r14
mov    $0x32,%ebp
mov    %r14,%rdi
mov    $0x32,%edx
call   1030 <strncpy@plt>
mov    %r14,%rdi
call   1060 <strlen@plt>
mov    $0x32,%ecx
sub    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
add    %ecx,%edx
sar    %edx
lea    0xb3e(%rip),%r15
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %r15,%rcx
mov    %r14,%r8
call   10f0 <mvwprintw@plt>
lea    0xafe(%rip),%rsi
mov    %r14,%rdi
mov    $0x32,%edx
call   1030 <strncpy@plt>
mov    %r14,%rdi
call   1060 <strlen@plt>
mov    $0x32,%ecx
sub    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
add    %ecx,%edx
sar    %edx
mov    %rbx,%rdi
mov    $0x2,%esi
mov    %r15,%rcx
mov    %r14,%r8
call   10f0 <mvwprintw@plt>
lea    0xadc(%rip),%rdx
lea    0xae1(%rip),%rcx
mov    %r14,%rdi
mov    $0x32,%esi
call   1080 <snprintf@plt>
mov    %r14,%rdi
call   1060 <strlen@plt>
mov    $0x32,%ecx
sub    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
add    %ecx,%edx
sar    %edx
mov    %rbx,%rdi
mov    $0x3,%esi
mov    %r15,%rcx
mov    %r14,%r8
call   10f0 <mvwprintw@plt>
lea    0xaa8(%rip),%rsi
mov    %r14,%rdi
mov    $0x32,%edx
call   1030 <strncpy@plt>
mov    %r14,%rdi
call   1060 <strlen@plt>
mov    $0x32,%ecx
sub    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
add    %ecx,%edx
sar    %edx
mov    %rbx,%rdi
mov    $0x4,%esi
mov    %r15,%rcx
mov    %r14,%r8
call   10f0 <mvwprintw@plt>
mov    $0x6,%edi
call   10d0 <COLOR_PAIR@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1050 <wattrset@plt>
lea    0xa70(%rip),%rsi
mov    %r14,%rdi
mov    $0x32,%edx
call   1030 <strncpy@plt>
mov    %r14,%rdi
call   1060 <strlen@plt>
mov    $0x32,%ecx
sub    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
add    %ecx,%edx
sar    %edx
mov    %rbx,%rdi
mov    $0x6,%esi
mov    %r15,%rcx
mov    %r14,%r8
call   10f0 <mvwprintw@plt>
mov    $0x5,%edi
call   10d0 <COLOR_PAIR@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1050 <wattrset@plt>
lea    0xa31(%rip),%rsi
mov    %r14,%rdi
mov    $0x32,%edx
call   1030 <strncpy@plt>
mov    %r14,%rdi
call   1060 <strlen@plt>
mov    $0x32,%ecx
sub    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
add    %ecx,%edx
sar    %edx
mov    %rbx,%rdi
mov    $0x8,%esi
mov    %r15,%rcx
mov    %r14,%r8
call   10f0 <mvwprintw@plt>
lea    0xa0a(%rip),%rsi
mov    %r14,%rdi
mov    $0x32,%edx
call   1030 <strncpy@plt>
mov    %r14,%rdi
call   1060 <strlen@plt>
mov    $0x32,%ecx
sub    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
add    %ecx,%edx
sar    %edx
mov    %rbx,%rdi
mov    $0xa,%esi
mov    %r15,%rcx
mov    %r14,%r8
call   10f0 <mvwprintw@plt>
lea    0x9e0(%rip),%rsi
mov    %r14,%rdi
mov    $0x32,%edx
call   1030 <strncpy@plt>
mov    %r14,%rdi
call   1060 <strlen@plt>
mov    $0x32,%ecx
sub    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
add    %ecx,%edx
sar    %edx
mov    %rbx,%rdi
mov    $0xb,%esi
mov    %r15,%rcx
mov    %r14,%r8
call   10f0 <mvwprintw@plt>
lea    0x9bb(%rip),%rsi
mov    %r14,%rdi
mov    $0x32,%edx
call   1030 <strncpy@plt>
mov    %r14,%rdi
call   1060 <strlen@plt>
sub    %eax,%ebp
mov    %ebp,%edx
shr    $0x1f,%edx
add    %ebp,%edx
sar    %edx
mov    %rbx,%rdi
mov    $0xc,%esi
mov    %r15,%rcx
mov    %r14,%r8
call   10f0 <mvwprintw@plt>
mov    %rbx,%rdi
call   1070 <wrefresh@plt>
mov    $0x3,%edi
call   1110 <sleep@plt>
mov    %rbx,%rdi
call   10c0 <delwin@plt>
mov    (%r12),%edi
call   1040 <touchwin@plt>
xor    %eax,%eax
call   10e0 <refresh@plt>
add    $0x40,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdscr = global i32 0
@ACS_VLINE = global i32 0
@ACS_HLINE = global i32 0
@.str = [31 x i8] c"Intelligent War Dialer [iWar]\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [29 x i8] c"http://www.softwink.com/iwar\00"
@.str.3 = [12 x i8] c"Version: %s\00"
@.str.4 = [6 x i8] c"0.071\00"
@.str.5 = [27 x i8] c"\22Now with 101% more VoIP!\22\00"
@.str.6 = [20 x i8] c"Written By Da Beave\00"
@.str.7 = [24 x i8] c"Released Jan. 16th 2006\00"
@.str.8 = [21 x i8] c"Contact Information:\00"
@.str.9 = [26 x i8] c"Email: beave@softwink.com\00"
@.str.10 = [36 x i8] c"IRC: irc.telephreak.org #telephreak\00"
define void @nintro() {
%1 = alloca i32*
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca [50 x i8]
%7 = load i32, i32* @stdscr
%8 = load i32, i32* %4
%9 = load i32, i32* %5
%10 = call i32 @getmaxyx(i32 %7, i32 %8, i32 %9)
%11 = load i32, i32* %4
%12 = sub nsw i32 %11, 7
%13 = sdiv i32 %12, 2
%14 = load i32, i32* %5
%15 = sub nsw i32 %14, 50
%16 = sdiv i32 %15, 2
%17 = call i32* @newwin(i32 15, i32 50, i32 %13, i32 %16)
store i32* %17, i32** %1
%18 = load i32*, i32** %1
%19 = call i32 @COLOR_PAIR(i32 6)
%20 = call i32 @wattrset(i32* %18, i32 %19)
%21 = load i32*, i32** %1
%22 = load i32, i32* @ACS_VLINE
%23 = load i32, i32* @ACS_HLINE
%24 = call i32 @box(i32* %21, i32 %22, i32 %23)
%25 = load i32*, i32** %1
%26 = call i32 @COLOR_PAIR(i32 5)
%27 = call i32 @wattrset(i32* %25, i32 %26)
store i32 1, i32* %2
br label %28
28: ; preds = %44, %0
%29 = load i32, i32* %2
%30 = icmp slt i32 %29, 14
br i1 %30, label %31, label %47
31: ; preds = %28
store i32 1, i32* %3
br label %32
32: ; preds = %40, %31
%33 = load i32, i32* %3
%34 = icmp slt i32 %33, 49
br i1 %34, label %35, label %43
35: ; preds = %32
%36 = load i32*, i32** %1
%37 = load i32, i32* %2
%38 = load i32, i32* %3
%39 = call i32 @mvwaddch(i32* %36, i32 %37, i32 %38, i8 signext 32)
br label %40
40: ; preds = %35
%41 = load i32, i32* %3
%42 = add nsw i32 %41, 1
store i32 %42, i32* %3
br label %32
43: ; preds = %32
br label %44
44: ; preds = %43
%45 = load i32, i32* %2
%46 = add nsw i32 %45, 1
store i32 %46, i32* %2
br label %28
47: ; preds = %28
%48 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%49 = call i32 @strncpy(i8* %48, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i32 50)
%50 = load i32*, i32** %1
%51 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%52 = call i32 @strlen(i8* %51)
%53 = sub nsw i32 50, %52
%54 = sdiv i32 %53, 2
%55 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%56 = call i32 @mvwprintw(i32* %50, i32 1, i32 %54, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %55)
%57 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%58 = call i32 @strncpy(i8* %57, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i32 50)
%59 = load i32*, i32** %1
%60 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%61 = call i32 @strlen(i8* %60)
%62 = sub nsw i32 50, %61
%63 = sdiv i32 %62, 2
%64 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%65 = call i32 @mvwprintw(i32* %59, i32 2, i32 %63, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %64)
%66 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%67 = call i32 @snprintf(i8* %66, i32 50, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%68 = load i32*, i32** %1
%69 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%70 = call i32 @strlen(i8* %69)
%71 = sub nsw i32 50, %70
%72 = sdiv i32 %71, 2
%73 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%74 = call i32 @mvwprintw(i32* %68, i32 3, i32 %72, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %73)
%75 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%76 = call i32 @strncpy(i8* %75, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i32 50)
%77 = load i32*, i32** %1
%78 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%79 = call i32 @strlen(i8* %78)
%80 = sub nsw i32 50, %79
%81 = sdiv i32 %80, 2
%82 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%83 = call i32 @mvwprintw(i32* %77, i32 4, i32 %81, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %82)
%84 = load i32*, i32** %1
%85 = call i32 @COLOR_PAIR(i32 6)
%86 = call i32 @wattrset(i32* %84, i32 %85)
%87 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%88 = call i32 @strncpy(i8* %87, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 50)
%89 = load i32*, i32** %1
%90 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%91 = call i32 @strlen(i8* %90)
%92 = sub nsw i32 50, %91
%93 = sdiv i32 %92, 2
%94 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%95 = call i32 @mvwprintw(i32* %89, i32 6, i32 %93, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %94)
%96 = load i32*, i32** %1
%97 = call i32 @COLOR_PAIR(i32 5)
%98 = call i32 @wattrset(i32* %96, i32 %97)
%99 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%100 = call i32 @strncpy(i8* %99, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0), i32 50)
%101 = load i32*, i32** %1
%102 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%103 = call i32 @strlen(i8* %102)
%104 = sub nsw i32 50, %103
%105 = sdiv i32 %104, 2
%106 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%107 = call i32 @mvwprintw(i32* %101, i32 8, i32 %105, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %106)
%108 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%109 = call i32 @strncpy(i8* %108, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i32 50)
%110 = load i32*, i32** %1
%111 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%112 = call i32 @strlen(i8* %111)
%113 = sub nsw i32 50, %112
%114 = sdiv i32 %113, 2
%115 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%116 = call i32 @mvwprintw(i32* %110, i32 10, i32 %114, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %115)
%117 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%118 = call i32 @strncpy(i8* %117, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0), i32 50)
%119 = load i32*, i32** %1
%120 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%121 = call i32 @strlen(i8* %120)
%122 = sub nsw i32 50, %121
%123 = sdiv i32 %122, 2
%124 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%125 = call i32 @mvwprintw(i32* %119, i32 11, i32 %123, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %124)
%126 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%127 = call i32 @strncpy(i8* %126, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0), i32 50)
%128 = load i32*, i32** %1
%129 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%130 = call i32 @strlen(i8* %129)
%131 = sub nsw i32 50, %130
%132 = sdiv i32 %131, 2
%133 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%134 = call i32 @mvwprintw(i32* %128, i32 12, i32 %132, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %133)
%135 = load i32*, i32** %1
%136 = call i32 @wrefresh(i32* %135)
%137 = call i32 @sleep(i32 3)
%138 = load i32*, i32** %1
%139 = call i32 @delwin(i32* %138)
%140 = load i32, i32* @stdscr
%141 = call i32 @touchwin(i32 %140)
%142 = call i32 (...) @refresh()
ret void
}

LLVM IR (-O2):
@stdscr = global i32 0
@ACS_VLINE = global i32 0
@ACS_HLINE = global i32 0
@.str = [31 x i8] c"Intelligent War Dialer [iWar]\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [29 x i8] c"http://www.softwink.com/iwar\00"
@.str.3 = [12 x i8] c"Version: %s\00"
@.str.4 = [6 x i8] c"0.071\00"
@.str.5 = [27 x i8] c"\22Now with 101% more VoIP!\22\00"
@.str.6 = [20 x i8] c"Written By Da Beave\00"
@.str.7 = [24 x i8] c"Released Jan. 16th 2006\00"
@.str.8 = [21 x i8] c"Contact Information:\00"
@.str.9 = [26 x i8] c"Email: beave@softwink.com\00"
@.str.10 = [36 x i8] c"IRC: irc.telephreak.org #telephreak\00"
define void @nintro() {
%1 = alloca [50 x i8]
%2 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 0
%3 = load i32, i32* @stdscr
%4 = tail call i32 @getmaxyx(i32 %3, i32 undef, i32 undef)
%5 = tail call i32* @newwin(i32 15, i32 50, i32 0, i32 0)
%6 = tail call i32 @COLOR_PAIR(i32 6)
%7 = tail call i32 @wattrset(i32* %5, i32 %6)
%8 = load i32, i32* @ACS_VLINE
%9 = load i32, i32* @ACS_HLINE
%10 = tail call i32 @box(i32* %5, i32 %8, i32 %9)
%11 = tail call i32 @COLOR_PAIR(i32 5)
%12 = tail call i32 @wattrset(i32* %5, i32 %11)
br label %13
13: ; preds = %0, %13
%14 = phi i32 [ 1, %0 ], [ %16, %13 ]
%15 = tail call i32 @mvwaddch(i32* %5, i32 1, i32 %14, i8 signext 32)
%16 = add nuw nsw i32 %14, 1
%17 = icmp eq i32 %16, 49
br i1 %17, label %18, label %13
18: ; preds = %13, %18
%19 = phi i32 [ %21, %18 ], [ 1, %13 ]
%20 = tail call i32 @mvwaddch(i32* %5, i32 2, i32 %19, i8 signext 32)
%21 = add nuw nsw i32 %19, 1
%22 = icmp eq i32 %21, 49
br i1 %22, label %23, label %18
23: ; preds = %18, %23
%24 = phi i32 [ %26, %23 ], [ 1, %18 ]
%25 = tail call i32 @mvwaddch(i32* %5, i32 3, i32 %24, i8 signext 32)
%26 = add nuw nsw i32 %24, 1
%27 = icmp eq i32 %26, 49
br i1 %27, label %28, label %23
28: ; preds = %23, %28
%29 = phi i32 [ %31, %28 ], [ 1, %23 ]
%30 = tail call i32 @mvwaddch(i32* %5, i32 4, i32 %29, i8 signext 32)
%31 = add nuw nsw i32 %29, 1
%32 = icmp eq i32 %31, 49
br i1 %32, label %33, label %28
33: ; preds = %28, %33
%34 = phi i32 [ %36, %33 ], [ 1, %28 ]
%35 = tail call i32 @mvwaddch(i32* %5, i32 5, i32 %34, i8 signext 32)
%36 = add nuw nsw i32 %34, 1
%37 = icmp eq i32 %36, 49
br i1 %37, label %38, label %33
38: ; preds = %33, %38
%39 = phi i32 [ %41, %38 ], [ 1, %33 ]
%40 = tail call i32 @mvwaddch(i32* %5, i32 6, i32 %39, i8 signext 32)
%41 = add nuw nsw i32 %39, 1
%42 = icmp eq i32 %41, 49
br i1 %42, label %43, label %38
43: ; preds = %38, %43
%44 = phi i32 [ %46, %43 ], [ 1, %38 ]
%45 = tail call i32 @mvwaddch(i32* %5, i32 7, i32 %44, i8 signext 32)
%46 = add nuw nsw i32 %44, 1
%47 = icmp eq i32 %46, 49
br i1 %47, label %48, label %43
48: ; preds = %43, %48
%49 = phi i32 [ %51, %48 ], [ 1, %43 ]
%50 = tail call i32 @mvwaddch(i32* %5, i32 8, i32 %49, i8 signext 32)
%51 = add nuw nsw i32 %49, 1
%52 = icmp eq i32 %51, 49
br i1 %52, label %53, label %48
53: ; preds = %48, %53
%54 = phi i32 [ %56, %53 ], [ 1, %48 ]
%55 = tail call i32 @mvwaddch(i32* %5, i32 9, i32 %54, i8 signext 32)
%56 = add nuw nsw i32 %54, 1
%57 = icmp eq i32 %56, 49
br i1 %57, label %58, label %53
58: ; preds = %53, %58
%59 = phi i32 [ %61, %58 ], [ 1, %53 ]
%60 = tail call i32 @mvwaddch(i32* %5, i32 10, i32 %59, i8 signext 32)
%61 = add nuw nsw i32 %59, 1
%62 = icmp eq i32 %61, 49
br i1 %62, label %63, label %58
63: ; preds = %58, %63
%64 = phi i32 [ %66, %63 ], [ 1, %58 ]
%65 = tail call i32 @mvwaddch(i32* %5, i32 11, i32 %64, i8 signext 32)
%66 = add nuw nsw i32 %64, 1
%67 = icmp eq i32 %66, 49
br i1 %67, label %68, label %63
68: ; preds = %63, %68
%69 = phi i32 [ %71, %68 ], [ 1, %63 ]
%70 = tail call i32 @mvwaddch(i32* %5, i32 12, i32 %69, i8 signext 32)
%71 = add nuw nsw i32 %69, 1
%72 = icmp eq i32 %71, 49
br i1 %72, label %73, label %68
73: ; preds = %68, %73
%74 = phi i32 [ %76, %73 ], [ 1, %68 ]
%75 = tail call i32 @mvwaddch(i32* %5, i32 13, i32 %74, i8 signext 32)
%76 = add nuw nsw i32 %74, 1
%77 = icmp eq i32 %76, 49
br i1 %77, label %78, label %73
78: ; preds = %73
%79 = call i32 @strncpy(i8* %2, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i32 50)
%80 = call i32 @strlen(i8* %2)
%81 = sub nsw i32 50, %80
%82 = sdiv i32 %81, 2
%83 = call i32 @mvwprintw(i32* %5, i32 1, i32 %82, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%84 = call i32 @strncpy(i8* %2, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i32 50)
%85 = call i32 @strlen(i8* %2)
%86 = sub nsw i32 50, %85
%87 = sdiv i32 %86, 2
%88 = call i32 @mvwprintw(i32* %5, i32 2, i32 %87, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%89 = call i32 @snprintf(i8* %2, i32 50, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%90 = call i32 @strlen(i8* %2)
%91 = sub nsw i32 50, %90
%92 = sdiv i32 %91, 2
%93 = call i32 @mvwprintw(i32* %5, i32 3, i32 %92, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%94 = call i32 @strncpy(i8* %2, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i32 50)
%95 = call i32 @strlen(i8* %2)
%96 = sub nsw i32 50, %95
%97 = sdiv i32 %96, 2
%98 = call i32 @mvwprintw(i32* %5, i32 4, i32 %97, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%99 = call i32 @COLOR_PAIR(i32 6)
%100 = call i32 @wattrset(i32* %5, i32 %99)
%101 = call i32 @strncpy(i8* %2, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 50)
%102 = call i32 @strlen(i8* %2)
%103 = sub nsw i32 50, %102
%104 = sdiv i32 %103, 2
%105 = call i32 @mvwprintw(i32* %5, i32 6, i32 %104, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%106 = call i32 @COLOR_PAIR(i32 5)
%107 = call i32 @wattrset(i32* %5, i32 %106)
%108 = call i32 @strncpy(i8* %2, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0), i32 50)
%109 = call i32 @strlen(i8* %2)
%110 = sub nsw i32 50, %109
%111 = sdiv i32 %110, 2
%112 = call i32 @mvwprintw(i32* %5, i32 8, i32 %111, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%113 = call i32 @strncpy(i8* %2, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i32 50)
%114 = call i32 @strlen(i8* %2)
%115 = sub nsw i32 50, %114
%116 = sdiv i32 %115, 2
%117 = call i32 @mvwprintw(i32* %5, i32 10, i32 %116, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%118 = call i32 @strncpy(i8* %2, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0), i32 50)
%119 = call i32 @strlen(i8* %2)
%120 = sub nsw i32 50, %119
%121 = sdiv i32 %120, 2
%122 = call i32 @mvwprintw(i32* %5, i32 11, i32 %121, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%123 = call i32 @strncpy(i8* %2, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0), i32 50)
%124 = call i32 @strlen(i8* %2)
%125 = sub nsw i32 50, %124
%126 = sdiv i32 %125, 2
%127 = call i32 @mvwprintw(i32* %5, i32 12, i32 %126, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%128 = call i32 @wrefresh(i32* %5)
%129 = call i32 @sleep(i32 3)
%130 = call i32 @delwin(i32* %5)
%131 = load i32, i32* @stdscr
%132 = call i32 @touchwin(i32 %131)
%133 = call i32 (...) @refresh()
ret void
}