#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*/ mvprintw(int, int /*<<< orphan*/, char *, ...);
void draw_info(int selectedX, int selectedY, int selectedWidth,
               int selectedHeight) {
  mvprintw(22, 0,
           "                                                                   "
           "             ");
  mvprintw(22, 0, "Current X: %d, Current Y: %d", selectedX, selectedY);
  mvprintw(23, 0,
           "                                                                   "
           "             ");
  mvprintw(23, 0, "Current Width: %d, Current Height: %d", selectedWidth,
           selectedHeight);
}


x86 assembly (clang, -O0):
<draw_info>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    $0x16,%edi
xor    %esi,%esi
lea    0xece(%rip),%rdx
mov    $0x0,%al
call   1030 <mvprintw@plt>
mov    -0x4(%rbp),%ecx
mov    -0x8(%rbp),%r8d
mov    $0x16,%edi
xor    %esi,%esi
lea    0xf03(%rip),%rdx
mov    $0x0,%al
call   1030 <mvprintw@plt>
mov    $0x17,%edi
xor    %esi,%esi
lea    0xe9d(%rip),%rdx
mov    $0x0,%al
call   1030 <mvprintw@plt>
mov    -0xc(%rbp),%ecx
mov    -0x10(%rbp),%r8d
mov    $0x17,%edi
xor    %esi,%esi
lea    0xeef(%rip),%rdx
mov    $0x0,%al
call   1030 <mvprintw@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw_info>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %ecx,%r14d
mov    %edx,%r15d
mov    %esi,%ebx
mov    %edi,%ebp
lea    0xed7(%rip),%r12
mov    $0x16,%edi
xor    %esi,%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1030 <mvprintw@plt>
lea    0xf10(%rip),%rdx
mov    $0x16,%edi
xor    %esi,%esi
mov    %ebp,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1030 <mvprintw@plt>
mov    $0x17,%edi
xor    %esi,%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1030 <mvprintw@plt>
lea    0xf02(%rip),%rdx
mov    $0x17,%edi
xor    %esi,%esi
mov    %r15d,%ecx
mov    %r14d,%r8d
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <mvprintw@plt>

LLVM IR (-O0):
@.str = [81 x i8] c" \00"
@.str.1 = [29 x i8] c"Current X: %d, Current Y: %d\00"
@.str.2 = [38 x i8] c"Current Width: %d, Current Height: %d\00"
define void @draw_info(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 22, i32 0, i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str, i64 0, i64 0))
%10 = load i32, i32* %5
%11 = load i32, i32* %6
%12 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 22, i32 0, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %10, i32 %11)
%13 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 23, i32 0, i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str, i64 0, i64 0))
%14 = load i32, i32* %7
%15 = load i32, i32* %8
%16 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 23, i32 0, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0), i32 %14, i32 %15)
ret void
}

LLVM IR (-O2):
@.str = [81 x i8] c" \00"
@.str.1 = [29 x i8] c"Current X: %d, Current Y: %d\00"
@.str.2 = [38 x i8] c"Current Width: %d, Current Height: %d\00"
define void @draw_info(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i32 (i32, i32, i8*, ...) @mvprintw(i32 22, i32 0, i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 (i32, i32, i8*, ...) @mvprintw(i32 22, i32 0, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %0, i32 %1)
%7 = tail call i32 (i32, i32, i8*, ...) @mvprintw(i32 23, i32 0, i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 (i32, i32, i8*, ...) @mvprintw(i32 23, i32 0, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0), i32 %2, i32 %3)
ret void
}