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

/* Variables and functions */
int /*<<< orphan*/ mvwaddstr(int /*<<< orphan*/ *, int, int, char *);
int /*<<< orphan*/ waddch(int /*<<< orphan*/ *, char);
int /*<<< orphan*/ waddstr(int /*<<< orphan*/ *, char *);
void bigface(WINDOW *win, chtype noseattr) {
  mvwaddstr(win, 0, 16, "\\/     \\/");
  mvwaddstr(win, 1, 17, "\\Y/ \\Y/");
  mvwaddstr(win, 2, 19, "\\=/");
  mvwaddstr(win, 3, 17, "^\\o o/^");
  mvwaddstr(win, 4, 17, "//( )");
  mvwaddstr(win, 5, 7, "^~~~~~~~~// \\");
  waddch(win, 'O' | noseattr);
  waddstr(win, "/");
}


x86 assembly (clang, -O0):
<bigface>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
mov    $0x10,%edx
lea    0xeac(%rip),%rcx
call   1050 <mvwaddstr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x1,%esi
mov    $0x11,%edx
lea    0xe9c(%rip),%rcx
call   1050 <mvwaddstr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x2,%esi
mov    $0x13,%edx
lea    0xe8a(%rip),%rcx
call   1050 <mvwaddstr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x3,%esi
mov    $0x11,%edx
lea    0xe74(%rip),%rcx
call   1050 <mvwaddstr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x4,%esi
mov    $0x11,%edx
lea    0xe62(%rip),%rcx
call   1050 <mvwaddstr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x5,%esi
mov    $0x7,%edx
lea    0xe4e(%rip),%rcx
call   1050 <mvwaddstr@plt>
mov    -0x8(%rbp),%rdi
movsbl -0x9(%rbp),%eax
or     $0x4f,%eax
movsbl %al,%esi
call   1040 <waddch@plt>
mov    -0x8(%rbp),%rdi
lea    0xe1b(%rip),%rsi
call   1030 <waddstr@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bigface>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
lea    0xec1(%rip),%rcx
xor    %esi,%esi
mov    $0x10,%edx
call   1050 <mvwaddstr@plt>
lea    0xeb8(%rip),%rcx
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x11,%edx
call   1050 <mvwaddstr@plt>
lea    0xea7(%rip),%rcx
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x13,%edx
call   1050 <mvwaddstr@plt>
lea    0xe92(%rip),%rcx
mov    %rbx,%rdi
mov    $0x3,%esi
mov    $0x11,%edx
call   1050 <mvwaddstr@plt>
lea    0xe81(%rip),%rcx
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0x11,%edx
call   1050 <mvwaddstr@plt>
lea    0xe6e(%rip),%rcx
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0x7,%edx
call   1050 <mvwaddstr@plt>
or     $0x4f,%bpl
movsbl %bpl,%esi
mov    %rbx,%rdi
call   1040 <waddch@plt>
lea    0xe35(%rip),%rsi
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <waddstr@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"\\/ \\/\00"
@.str.1 = [8 x i8] c"\\Y/ \\Y/\00"
@.str.2 = [4 x i8] c"\\=/\00"
@.str.3 = [8 x i8] c"^\\o o/^\00"
@.str.4 = [6 x i8] c"//( )\00"
@.str.5 = [14 x i8] c"^~~~~~~~~// \\\00"
@.str.6 = [2 x i8] c"/\00"
define void @bigface(i32* %0, i8 signext %1) {
%3 = alloca i32*
%4 = alloca i8
store i32* %0, i32** %3
store i8 %1, i8* %4
%5 = load i32*, i32** %3
%6 = call i32 @mvwaddstr(i32* %5, i32 0, i32 16, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%7 = load i32*, i32** %3
%8 = call i32 @mvwaddstr(i32* %7, i32 1, i32 17, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%9 = load i32*, i32** %3
%10 = call i32 @mvwaddstr(i32* %9, i32 2, i32 19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%11 = load i32*, i32** %3
%12 = call i32 @mvwaddstr(i32* %11, i32 3, i32 17, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%13 = load i32*, i32** %3
%14 = call i32 @mvwaddstr(i32* %13, i32 4, i32 17, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%15 = load i32*, i32** %3
%16 = call i32 @mvwaddstr(i32* %15, i32 5, i32 7, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%17 = load i32*, i32** %3
%18 = load i8, i8* %4
%19 = sext i8 %18 to i32
%20 = or i32 79, %19
%21 = trunc i32 %20 to i8
%22 = call i32 @waddch(i32* %17, i8 signext %21)
%23 = load i32*, i32** %3
%24 = call i32 @waddstr(i32* %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"\\/ \\/\00"
@.str.1 = [8 x i8] c"\\Y/ \\Y/\00"
@.str.2 = [4 x i8] c"\\=/\00"
@.str.3 = [8 x i8] c"^\\o o/^\00"
@.str.4 = [6 x i8] c"//( )\00"
@.str.5 = [14 x i8] c"^~~~~~~~~// \\\00"
@.str.6 = [2 x i8] c"/\00"
define void @bigface(i32* %0, i8 signext %1) {
%3 = tail call i32 @mvwaddstr(i32* %0, i32 0, i32 16, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @mvwaddstr(i32* %0, i32 1, i32 17, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @mvwaddstr(i32* %0, i32 2, i32 19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @mvwaddstr(i32* %0, i32 3, i32 17, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @mvwaddstr(i32* %0, i32 4, i32 17, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 @mvwaddstr(i32* %0, i32 5, i32 7, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%9 = or i8 %1, 79
%10 = tail call i32 @waddch(i32* %0, i8 signext %9)
%11 = tail call i32 @waddstr(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
ret void
}