#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 /*<<< orphan*/ COLOR_BLUE;
int /*<<< orphan*/ COLOR_PAIR(int);
int /*<<< orphan*/ COLOR_WHITE;
int /*<<< orphan*/ attroff(int /*<<< orphan*/);
int /*<<< orphan*/ attron(int /*<<< orphan*/);
int /*<<< orphan*/ init_pair(int, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ move(int, int);
int /*<<< orphan*/ printw(char *, ...);
int /*<<< orphan*/ refresh();
void nstatus(const char *nstring) {
  init_pair(1, COLOR_WHITE, COLOR_BLUE);
  attron(COLOR_PAIR(1));
  move(5, 20);
  printw("                                 ");
  move(5, 20);
  printw("%s", nstring);
  attroff(COLOR_PAIR(1));
  refresh();
}


x86 assembly (clang, -O0):
<nstatus>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2e5d(%rip),%rax
mov    (%rax),%esi
mov    0x2e4c(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
call   1040 <init_pair@plt>
mov    $0x1,%edi
call   1070 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1050 <attron@plt>
mov    $0x5,%edi
mov    $0x14,%esi
call   1090 <move@plt>
lea    0xe41(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
mov    $0x5,%edi
mov    $0x14,%esi
call   1090 <move@plt>
mov    -0x8(%rbp),%rsi
lea    0xe42(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
mov    $0x1,%edi
call   1070 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
mov    $0x0,%al
call   1080 <refresh@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nstatus>:
push   %rbx
mov    %rdi,%rbx
mov    0x2e65(%rip),%rax
mov    (%rax),%esi
mov    0x2e54(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
call   1040 <init_pair@plt>
mov    $0x1,%edi
call   1070 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1050 <attron@plt>
mov    $0x5,%edi
mov    $0x14,%esi
call   1090 <move@plt>
lea    0xe49(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
mov    $0x5,%edi
mov    $0x14,%esi
call   1090 <move@plt>
lea    0xe4e(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printw@plt>
mov    $0x1,%edi
call   1070 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
xor    %eax,%eax
pop    %rbx
jmp    1080 <refresh@plt>

LLVM IR (-O0):
@COLOR_WHITE = global i32 0
@COLOR_BLUE = global i32 0
@.str = [34 x i8] c" \00"
@.str.1 = [3 x i8] c"%s\00"
define void @nstatus(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @COLOR_WHITE
%4 = load i32, i32* @COLOR_BLUE
%5 = call i32 @init_pair(i32 1, i32 %3, i32 %4)
%6 = call i32 @COLOR_PAIR(i32 1)
%7 = call i32 @attron(i32 %6)
%8 = call i32 @move(i32 5, i32 20)
%9 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @move(i32 5, i32 20)
%11 = load i8*, i8** %2
%12 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %11)
%13 = call i32 @COLOR_PAIR(i32 1)
%14 = call i32 @attroff(i32 %13)
%15 = call i32 (...) @refresh()
ret void
}

LLVM IR (-O2):
@COLOR_WHITE = global i32 0
@COLOR_BLUE = global i32 0
@.str = [34 x i8] c" \00"
@.str.1 = [3 x i8] c"%s\00"
define void @nstatus(i8* %0) {
%2 = load i32, i32* @COLOR_WHITE
%3 = load i32, i32* @COLOR_BLUE
%4 = tail call i32 @init_pair(i32 1, i32 %2, i32 %3)
%5 = tail call i32 @COLOR_PAIR(i32 1)
%6 = tail call i32 @attron(i32 %5)
%7 = tail call i32 @move(i32 5, i32 20)
%8 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%9 = tail call i32 @move(i32 5, i32 20)
%10 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%11 = tail call i32 @COLOR_PAIR(i32 1)
%12 = tail call i32 @attroff(i32 %11)
%13 = tail call i32 (...) @refresh()
ret void
}