// File: /workspace/github_c_makefile_star2_O0/bobrippling[P]tim/ncurses.c
// Function: nc_init
void nc_init()
{
	static int init = 0;

	if(!init){
		init = 1;

		initscr();
		noecho();
		cbreak();
		raw();
		scrollok(stdscr, 1);

		nonl();
		intrflush(stdscr, 0);

		set_escdelay(0);

		if(has_colors()){
			start_color();
			use_default_colors();

			init_pair(1 + COLOR_BLACK,   COLOR_BLACK,   -1);
			init_pair(1 + COLOR_GREEN,   COLOR_GREEN,   -1);
			init_pair(1 + COLOR_WHITE,   COLOR_WHITE,   -1);
			init_pair(1 + COLOR_RED,     COLOR_RED,     -1);
			init_pair(1 + COLOR_CYAN,    COLOR_CYAN,    -1);
			init_pair(1 + COLOR_MAGENTA, COLOR_MAGENTA, -1);
			init_pair(1 + COLOR_BLUE,    COLOR_BLUE,    -1);
			init_pair(1 + COLOR_YELLOW,  COLOR_YELLOW,  -1);

			init_pair(9 + COLOR_BLACK,   -1, COLOR_BLACK);
			init_pair(9 + COLOR_GREEN,   -1, COLOR_GREEN);
			init_pair(9 + COLOR_WHITE,   -1, COLOR_WHITE);
			init_pair(9 + COLOR_RED,     -1, COLOR_RED);
			init_pair(9 + COLOR_CYAN,    -1, COLOR_CYAN);
			init_pair(9 + COLOR_MAGENTA, -1, COLOR_MAGENTA);
			init_pair(9 + COLOR_BLUE,    -1, COLOR_BLUE);
			init_pair(9 + COLOR_YELLOW,  -1, COLOR_YELLOW);
		}
	}else{
		refresh();
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpl $0x0, 0x17b7d(%rip)     # 0x1c3c8
jne 0x49f4
movl $0x1, 0x17b6d(%rip)     # 0x1c3c8
callq 0x4220
callq 0x4180
callq 0x43a0
callq 0x4320
movq 0x17732(%rip), %rax     # 0x1bfa8
movq (%rax), %rdi
movl $0x1, %esi
callq 0x40b0
callq 0x40d0
movq 0x17719(%rip), %rax     # 0x1bfa8
movq (%rax), %rdi
xorl %esi, %esi
callq 0x4390
xorl %edi, %edi
callq 0x4140
callq 0x4030
testb $0x1, %al
jne 0x48ae
jmp 0x49f2
callq 0x4260
callq 0x41f0
movl $0x1, %edi
xorl %esi, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x43b0
movl $0x3, %edi
movl $0x2, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x43b0
movl $0x8, %edi
movl $0x7, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x43b0
movl $0x2, %edi
movl $0x1, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x43b0
movl $0x7, %edi
movl $0x6, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x43b0
movl $0x6, %edi
movl $0x5, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x43b0
movl $0x5, %edi
movl $0x4, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x43b0
movl $0x4, %edi
movl $0x3, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x43b0
movl $0x9, %edi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edx, %edx
callq 0x43b0
movl $0xb, %edi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x2, %edx
callq 0x43b0
movl $0x10, %edi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x7, %edx
callq 0x43b0
movl $0xa, %edi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x1, %edx
callq 0x43b0
movl $0xf, %edi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x6, %edx
callq 0x43b0
movl $0xe, %edi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x5, %edx
callq 0x43b0
movl $0xd, %edi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x4, %edx
callq 0x43b0
movl $0xc, %edi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x3, %edx
callq 0x43b0
jmp 0x4a03
movq 0x175ad(%rip), %rax     # 0x1bfa8
movq (%rax), %rdi
callq 0x4230
popq %rbp
retq
nopw %cs:(%rax,%rax)