#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*/ A_REVERSE;
int COLS;
scalar_t__ LINES;
int /*<<< orphan*/ attroff(int /*<<< orphan*/);
int /*<<< orphan*/ attron(int /*<<< orphan*/);
char *basename(char *);
int /*<<< orphan*/ clrtoeol();
int /*<<< orphan*/ move(scalar_t__, int /*<<< orphan*/);
int /*<<< orphan*/ mvaddstr(scalar_t__, int, char *);
int /*<<< orphan*/ refresh();
int strlen(char *);
void notify(char *info, char *type, char *name) {
  move(LINES - 1, 0);
  clrtoeol();
  mvaddstr(LINES - 1, 0, info);
  attron(A_REVERSE);
  mvaddstr(LINES - 1, COLS / 2, type);
  attroff(A_REVERSE);
  mvaddstr(LINES - 1, COLS / 2 + strlen(type) + 2, basename(name));
  refresh();
  return;
}


x86 assembly (clang, -O0):
<notify>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    0x2e4d(%rip),%rax
mov    (%rax),%rdi
sub    $0x1,%rdi
xor    %esi,%esi
call   10a0 <move@plt>
mov    $0x0,%al
call   1080 <clrtoeol@plt>
mov    0x2e31(%rip),%rax
mov    (%rax),%rdi
sub    $0x1,%rdi
mov    -0x8(%rbp),%rdx
xor    %esi,%esi
call   1090 <mvaddstr@plt>
mov    0x2e00(%rip),%rax
mov    (%rax),%edi
call   1050 <attron@plt>
mov    0x2e0a(%rip),%rax
mov    (%rax),%rdi
sub    $0x1,%rdi
mov    0x2df4(%rip),%rax
mov    (%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
mov    -0x10(%rbp),%rdx
call   1090 <mvaddstr@plt>
mov    0x2dc8(%rip),%rax
mov    (%rax),%edi
call   1030 <attroff@plt>
mov    0x2dd2(%rip),%rax
mov    (%rax),%rax
sub    $0x1,%rax
mov    %rax,-0x28(%rbp)
mov    0x2db8(%rip),%rax
mov    (%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x2c(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x2c(%rbp),%eax
add    %ecx,%eax
add    $0x2,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rdi
call   1060 <basename@plt>
mov    -0x28(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    %rax,%rdx
call   1090 <mvaddstr@plt>
mov    $0x0,%al
call   1070 <refresh@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<notify>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
mov    0x2e50(%rip),%rbp
mov    0x0(%rbp),%rdi
add    $0xffffffffffffffff,%rdi
xor    %esi,%esi
call   10a0 <move@plt>
xor    %eax,%eax
call   1080 <clrtoeol@plt>
mov    0x0(%rbp),%rdi
add    $0xffffffffffffffff,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1090 <mvaddstr@plt>
mov    0x2e09(%rip),%rbx
mov    (%rbx),%edi
call   1050 <attron@plt>
mov    0x0(%rbp),%rdi
add    $0xffffffffffffffff,%rdi
mov    0x2e03(%rip),%r12
mov    (%r12),%eax
mov    %eax,%esi
shr    $0x1f,%esi
add    %eax,%esi
sar    %esi
mov    %r15,%rdx
call   1090 <mvaddstr@plt>
mov    (%rbx),%edi
call   1030 <attroff@plt>
mov    0x0(%rbp),%rbx
add    $0xffffffffffffffff,%rbx
mov    (%r12),%eax
mov    %eax,%ebp
shr    $0x1f,%ebp
add    %eax,%ebp
sar    %ebp
mov    %r15,%rdi
call   1040 <strlen@plt>
add    %eax,%ebp
add    $0x2,%ebp
mov    %r14,%rdi
call   1060 <basename@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %rax,%rdx
call   1090 <mvaddstr@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1070 <refresh@plt>

LLVM IR (-O0):
@LINES = global i64 0
@A_REVERSE = global i32 0
@COLS = global i32 0
define void @notify(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load i64, i64* @LINES
%8 = sub nsw i64 %7, 1
%9 = call i32 @move(i64 %8, i32 0)
%10 = call i32 (...) @clrtoeol()
%11 = load i64, i64* @LINES
%12 = sub nsw i64 %11, 1
%13 = load i8*, i8** %4
%14 = call i32 @mvaddstr(i64 %12, i32 0, i8* %13)
%15 = load i32, i32* @A_REVERSE
%16 = call i32 @attron(i32 %15)
%17 = load i64, i64* @LINES
%18 = sub nsw i64 %17, 1
%19 = load i32, i32* @COLS
%20 = sdiv i32 %19, 2
%21 = load i8*, i8** %5
%22 = call i32 @mvaddstr(i64 %18, i32 %20, i8* %21)
%23 = load i32, i32* @A_REVERSE
%24 = call i32 @attroff(i32 %23)
%25 = load i64, i64* @LINES
%26 = sub nsw i64 %25, 1
%27 = load i32, i32* @COLS
%28 = sdiv i32 %27, 2
%29 = load i8*, i8** %5
%30 = call i32 @strlen(i8* %29)
%31 = add nsw i32 %28, %30
%32 = add nsw i32 %31, 2
%33 = load i8*, i8** %6
%34 = call i8* @basename(i8* %33)
%35 = call i32 @mvaddstr(i64 %26, i32 %32, i8* %34)
%36 = call i32 (...) @refresh()
ret void
}

LLVM IR (-O2):
@LINES = global i64 0
@A_REVERSE = global i32 0
@COLS = global i32 0
define void @notify(i8* %0, i8* %1, i8* %2) {
%4 = load i64, i64* @LINES
%5 = add nsw i64 %4, -1
%6 = tail call i32 @move(i64 %5, i32 0)
%7 = tail call i32 (...) @clrtoeol()
%8 = load i64, i64* @LINES
%9 = add nsw i64 %8, -1
%10 = tail call i32 @mvaddstr(i64 %9, i32 0, i8* %0)
%11 = load i32, i32* @A_REVERSE
%12 = tail call i32 @attron(i32 %11)
%13 = load i64, i64* @LINES
%14 = add nsw i64 %13, -1
%15 = load i32, i32* @COLS
%16 = sdiv i32 %15, 2
%17 = tail call i32 @mvaddstr(i64 %14, i32 %16, i8* %1)
%18 = load i32, i32* @A_REVERSE
%19 = tail call i32 @attroff(i32 %18)
%20 = load i64, i64* @LINES
%21 = add nsw i64 %20, -1
%22 = load i32, i32* @COLS
%23 = sdiv i32 %22, 2
%24 = tail call i32 @strlen(i8* %1)
%25 = add i32 %24, 2
%26 = add i32 %25, %23
%27 = tail call i8* @basename(i8* %2)
%28 = tail call i32 @mvaddstr(i64 %21, i32 %26, i8* %27)
%29 = tail call i32 (...) @refresh()
ret void
}