#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*/ 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 ntimer(int ntimer) {
  init_pair(1, COLOR_WHITE, COLOR_BLUE);
  attron(COLOR_PAIR(1));
  move(6, 20);
  printw("         ");
  move(6, 20);
  printw("%d", ntimer);
  refresh();
}


x86 assembly (clang, -O0):
<ntimer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2e6e(%rip),%rax
mov    (%rax),%esi
mov    0x2e5d(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
call   1030 <init_pair@plt>
mov    $0x1,%edi
call   1060 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1040 <attron@plt>
mov    $0x6,%edi
mov    $0x14,%esi
call   1080 <move@plt>
lea    0xe52(%rip),%rdi
mov    $0x0,%al
call   1050 <printw@plt>
mov    $0x6,%edi
mov    $0x14,%esi
call   1080 <move@plt>
mov    -0x4(%rbp),%esi
lea    0xe3c(%rip),%rdi
mov    $0x0,%al
call   1050 <printw@plt>
mov    $0x0,%al
call   1070 <refresh@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ntimer>:
push   %rbx
mov    %edi,%ebx
mov    0x2e76(%rip),%rax
mov    (%rax),%esi
mov    0x2e65(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
call   1030 <init_pair@plt>
mov    $0x1,%edi
call   1060 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1040 <attron@plt>
mov    $0x6,%edi
mov    $0x14,%esi
call   1080 <move@plt>
lea    0xe5a(%rip),%rdi
xor    %eax,%eax
call   1050 <printw@plt>
mov    $0x6,%edi
mov    $0x14,%esi
call   1080 <move@plt>
lea    0xe47(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printw@plt>
xor    %eax,%eax
pop    %rbx
jmp    1070 <refresh@plt>

LLVM IR (-O0):
@COLOR_WHITE = global i32 0
@COLOR_BLUE = global i32 0
@.str = [10 x i8] c" \00"
@.str.1 = [3 x i8] c"%d\00"
define void @ntimer(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %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 6, i32 20)
%9 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @move(i32 6, i32 20)
%11 = load i32, i32* %2
%12 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %11)
%13 = call i32 (...) @refresh()
ret void
}

LLVM IR (-O2):
@COLOR_WHITE = global i32 0
@COLOR_BLUE = global i32 0
@.str = [10 x i8] c" \00"
@.str.1 = [3 x i8] c"%d\00"
define void @ntimer(i32 %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 6, i32 20)
%8 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%9 = tail call i32 @move(i32 6, i32 20)
%10 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %0)
%11 = tail call i32 (...) @refresh()
ret void
}