#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*/ mvaddch(int, int, char);
void drawFive(int y, int x) {
  mvaddch(y + 5, x + 10, 'O');
  mvaddch(y + 5, x + 2, 'O');
  mvaddch(y + 3, x + 6, 'O');
  mvaddch(y + 1, x + 10, 'O');
  mvaddch(y + 1, x + 2, 'O');
}


x86 assembly (clang, -O0):
<drawFive>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
add    $0x5,%edi
mov    -0x8(%rbp),%esi
add    $0xa,%esi
mov    $0x4f,%edx
call   1030 <mvaddch@plt>
mov    -0x4(%rbp),%edi
add    $0x5,%edi
mov    -0x8(%rbp),%esi
add    $0x2,%esi
mov    $0x4f,%edx
call   1030 <mvaddch@plt>
mov    -0x4(%rbp),%edi
add    $0x3,%edi
mov    -0x8(%rbp),%esi
add    $0x6,%esi
mov    $0x4f,%edx
call   1030 <mvaddch@plt>
mov    -0x4(%rbp),%edi
add    $0x1,%edi
mov    -0x8(%rbp),%esi
add    $0xa,%esi
mov    $0x4f,%edx
call   1030 <mvaddch@plt>
mov    -0x4(%rbp),%edi
add    $0x1,%edi
mov    -0x8(%rbp),%esi
add    $0x2,%esi
mov    $0x4f,%edx
call   1030 <mvaddch@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<drawFive>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %esi,%ebx
mov    %edi,%r14d
lea    0x5(%r14),%ebp
lea    0xa(%rbx),%r15d
mov    %ebp,%edi
mov    %r15d,%esi
mov    $0x4f,%edx
call   1030 <mvaddch@plt>
lea    0x2(%rbx),%r12d
mov    %ebp,%edi
mov    %r12d,%esi
mov    $0x4f,%edx
call   1030 <mvaddch@plt>
lea    0x3(%r14),%edi
add    $0x6,%ebx
mov    %ebx,%esi
mov    $0x4f,%edx
call   1030 <mvaddch@plt>
add    $0x1,%r14d
mov    %r14d,%edi
mov    %r15d,%esi
mov    $0x4f,%edx
call   1030 <mvaddch@plt>
mov    %r14d,%edi
mov    %r12d,%esi
mov    $0x4f,%edx
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <mvaddch@plt>

LLVM IR (-O0):
define void @drawFive(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = add nsw i32 %5, 5
%7 = load i32, i32* %4
%8 = add nsw i32 %7, 10
%9 = call i32 @mvaddch(i32 %6, i32 %8, i8 signext 79)
%10 = load i32, i32* %3
%11 = add nsw i32 %10, 5
%12 = load i32, i32* %4
%13 = add nsw i32 %12, 2
%14 = call i32 @mvaddch(i32 %11, i32 %13, i8 signext 79)
%15 = load i32, i32* %3
%16 = add nsw i32 %15, 3
%17 = load i32, i32* %4
%18 = add nsw i32 %17, 6
%19 = call i32 @mvaddch(i32 %16, i32 %18, i8 signext 79)
%20 = load i32, i32* %3
%21 = add nsw i32 %20, 1
%22 = load i32, i32* %4
%23 = add nsw i32 %22, 10
%24 = call i32 @mvaddch(i32 %21, i32 %23, i8 signext 79)
%25 = load i32, i32* %3
%26 = add nsw i32 %25, 1
%27 = load i32, i32* %4
%28 = add nsw i32 %27, 2
%29 = call i32 @mvaddch(i32 %26, i32 %28, i8 signext 79)
ret void
}

LLVM IR (-O2):
define void @drawFive(i32 %0, i32 %1) {
%3 = add nsw i32 %0, 5
%4 = add nsw i32 %1, 10
%5 = tail call i32 @mvaddch(i32 %3, i32 %4, i8 signext 79)
%6 = add nsw i32 %1, 2
%7 = tail call i32 @mvaddch(i32 %3, i32 %6, i8 signext 79)
%8 = add nsw i32 %0, 3
%9 = add nsw i32 %1, 6
%10 = tail call i32 @mvaddch(i32 %8, i32 %9, i8 signext 79)
%11 = add nsw i32 %0, 1
%12 = tail call i32 @mvaddch(i32 %11, i32 %4, i8 signext 79)
%13 = tail call i32 @mvaddch(i32 %11, i32 %6, i8 signext 79)
ret void
}