#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 /*<<< orphan*/, int, char *);
void io_printhelp() {
  int x = 14;
  int y = 4;
  mvprintw(y++, x, "##########################");
  mvprintw(y++, x, "#    C-Settlers Help:    #");
  mvprintw(y++, x, "# Keys:                  #");
  mvprintw(y++, x, "#  Arrows move cursor    #");
  mvprintw(y++, x, "#  b - build settlement  #");
  mvprintw(y++, x, "#    - builds city if    #");
  mvprintw(y++, x, "#      settlement exists #");
  mvprintw(y++, x, "#  r - build a road      #");
  mvprintw(y++, x, "#  t - trade             #");
  mvprintw(y++, x, "#  c - access devel card #");
  mvprintw(y++, x, "#      window            #");
  mvprintw(y++, x, "#    - cancel trade      #");
  mvprintw(y++, x, "#  p - pass turn         #");
  mvprintw(y++, x, "#  q - exit              #");
  mvprintw(y++, x, "#  h - display this      #");
  mvprintw(y++, x, "#      message           #");
  mvprintw(y++, x, "##########################");
}


x86 assembly (clang, -O0):
<io_printhelp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0xe,-0x4(%rbp)
movl   $0x4,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%esi
lea    0xec5(%rip),%rdx
call   1030 <mvprintw@plt>
mov    -0x8(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%esi
lea    0xec6(%rip),%rdx
call   1030 <mvprintw@plt>
mov    -0x8(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%esi
lea    0xec7(%rip),%rdx
call   1030 <mvprintw@plt>
mov    -0x8(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%esi
lea    0xec8(%rip),%rdx
call   1030 <mvprintw@plt>
mov    -0x8(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%esi
lea    0xec9(%rip),%rdx
call   1030 <mvprintw@plt>
mov    -0x8(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%esi
lea    0xeca(%rip),%rdx
call   1030 <mvprintw@plt>
mov    -0x8(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%esi
lea    0xecb(%rip),%rdx
call   1030 <mvprintw@plt>
mov    -0x8(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%esi
lea    0xecc(%rip),%rdx
call   1030 <mvprintw@plt>
mov    -0x8(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%esi
lea    0xecd(%rip),%rdx
call   1030 <mvprintw@plt>
mov    -0x8(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%esi
lea    0xece(%rip),%rdx
call   1030 <mvprintw@plt>
mov    -0x8(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%esi
lea    0xecf(%rip),%rdx
call   1030 <mvprintw@plt>
mov    -0x8(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%esi
lea    0xed0(%rip),%rdx
call   1030 <mvprintw@plt>
mov    -0x8(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%esi
lea    0xed1(%rip),%rdx
call   1030 <mvprintw@plt>
mov    -0x8(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%esi
lea    0xed2(%rip),%rdx
call   1030 <mvprintw@plt>
mov    -0x8(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%esi
lea    0xed3(%rip),%rdx
call   1030 <mvprintw@plt>
mov    -0x8(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%esi
lea    0xed4(%rip),%rdx
call   1030 <mvprintw@plt>
mov    -0x8(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%esi
lea    0xd25(%rip),%rdx
call   1030 <mvprintw@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<io_printhelp>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    $0x4,%edi
mov    $0xe,%esi
mov    %rbx,%rdx
call   1030 <mvprintw@plt>
lea    0xeea(%rip),%rdx
mov    $0x5,%edi
mov    $0xe,%esi
call   1030 <mvprintw@plt>
lea    0xeef(%rip),%rdx
mov    $0x6,%edi
mov    $0xe,%esi
call   1030 <mvprintw@plt>
lea    0xef4(%rip),%rdx
mov    $0x7,%edi
mov    $0xe,%esi
call   1030 <mvprintw@plt>
lea    0xef9(%rip),%rdx
mov    $0x8,%edi
mov    $0xe,%esi
call   1030 <mvprintw@plt>
lea    0xefe(%rip),%rdx
mov    $0x9,%edi
mov    $0xe,%esi
call   1030 <mvprintw@plt>
lea    0xf03(%rip),%rdx
mov    $0xa,%edi
mov    $0xe,%esi
call   1030 <mvprintw@plt>
lea    0xf08(%rip),%rdx
mov    $0xb,%edi
mov    $0xe,%esi
call   1030 <mvprintw@plt>
lea    0xf0d(%rip),%rdx
mov    $0xc,%edi
mov    $0xe,%esi
call   1030 <mvprintw@plt>
lea    0xf12(%rip),%rdx
mov    $0xd,%edi
mov    $0xe,%esi
call   1030 <mvprintw@plt>
lea    0xf17(%rip),%rdx
mov    $0xe,%edi
mov    $0xe,%esi
call   1030 <mvprintw@plt>
lea    0xf1c(%rip),%rdx
mov    $0xf,%edi
mov    $0xe,%esi
call   1030 <mvprintw@plt>
lea    0xf21(%rip),%rdx
mov    $0x10,%edi
mov    $0xe,%esi
call   1030 <mvprintw@plt>
lea    0xf26(%rip),%rdx
mov    $0x11,%edi
mov    $0xe,%esi
call   1030 <mvprintw@plt>
lea    0xf2b(%rip),%rdx
mov    $0x12,%edi
mov    $0xe,%esi
call   1030 <mvprintw@plt>
lea    0xf30(%rip),%rdx
mov    $0x13,%edi
mov    $0xe,%esi
call   1030 <mvprintw@plt>
mov    $0x14,%edi
mov    $0xe,%esi
mov    %rbx,%rdx
pop    %rbx
jmp    1030 <mvprintw@plt>

LLVM IR (-O0):
@.str = [27 x i8] c"##########################\00"
@.str.1 = [27 x i8] c"# C-Settlers Help: #\00"
@.str.2 = [27 x i8] c"# Keys: #\00"
@.str.3 = [27 x i8] c"# Arrows move cursor #\00"
@.str.4 = [27 x i8] c"# b - build settlement #\00"
@.str.5 = [27 x i8] c"# - builds city if #\00"
@.str.6 = [27 x i8] c"# settlement exists #\00"
@.str.7 = [27 x i8] c"# r - build a road #\00"
@.str.8 = [27 x i8] c"# t - trade #\00"
@.str.9 = [27 x i8] c"# c - access devel card #\00"
@.str.10 = [27 x i8] c"# window #\00"
@.str.11 = [27 x i8] c"# - cancel trade #\00"
@.str.12 = [27 x i8] c"# p - pass turn #\00"
@.str.13 = [27 x i8] c"# q - exit #\00"
@.str.14 = [27 x i8] c"# h - display this #\00"
@.str.15 = [27 x i8] c"# message #\00"
define void @io_printhelp() {
%1 = alloca i32
%2 = alloca i32
store i32 14, i32* %1
store i32 4, i32* %2
%3 = load i32, i32* %2
%4 = add nsw i32 %3, 1
store i32 %4, i32* %2
%5 = load i32, i32* %1
%6 = call i32 @mvprintw(i32 %3, i32 %5, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%7 = load i32, i32* %2
%8 = add nsw i32 %7, 1
store i32 %8, i32* %2
%9 = load i32, i32* %1
%10 = call i32 @mvprintw(i32 %7, i32 %9, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%11 = load i32, i32* %2
%12 = add nsw i32 %11, 1
store i32 %12, i32* %2
%13 = load i32, i32* %1
%14 = call i32 @mvprintw(i32 %11, i32 %13, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%15 = load i32, i32* %2
%16 = add nsw i32 %15, 1
store i32 %16, i32* %2
%17 = load i32, i32* %1
%18 = call i32 @mvprintw(i32 %15, i32 %17, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
%19 = load i32, i32* %2
%20 = add nsw i32 %19, 1
store i32 %20, i32* %2
%21 = load i32, i32* %1
%22 = call i32 @mvprintw(i32 %19, i32 %21, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%23 = load i32, i32* %2
%24 = add nsw i32 %23, 1
store i32 %24, i32* %2
%25 = load i32, i32* %1
%26 = call i32 @mvprintw(i32 %23, i32 %25, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%27 = load i32, i32* %2
%28 = add nsw i32 %27, 1
store i32 %28, i32* %2
%29 = load i32, i32* %1
%30 = call i32 @mvprintw(i32 %27, i32 %29, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%31 = load i32, i32* %2
%32 = add nsw i32 %31, 1
store i32 %32, i32* %2
%33 = load i32, i32* %1
%34 = call i32 @mvprintw(i32 %31, i32 %33, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
%35 = load i32, i32* %2
%36 = add nsw i32 %35, 1
store i32 %36, i32* %2
%37 = load i32, i32* %1
%38 = call i32 @mvprintw(i32 %35, i32 %37, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0))
%39 = load i32, i32* %2
%40 = add nsw i32 %39, 1
store i32 %40, i32* %2
%41 = load i32, i32* %1
%42 = call i32 @mvprintw(i32 %39, i32 %41, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0))
%43 = load i32, i32* %2
%44 = add nsw i32 %43, 1
store i32 %44, i32* %2
%45 = load i32, i32* %1
%46 = call i32 @mvprintw(i32 %43, i32 %45, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.10, i64 0, i64 0))
%47 = load i32, i32* %2
%48 = add nsw i32 %47, 1
store i32 %48, i32* %2
%49 = load i32, i32* %1
%50 = call i32 @mvprintw(i32 %47, i32 %49, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0))
%51 = load i32, i32* %2
%52 = add nsw i32 %51, 1
store i32 %52, i32* %2
%53 = load i32, i32* %1
%54 = call i32 @mvprintw(i32 %51, i32 %53, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0))
%55 = load i32, i32* %2
%56 = add nsw i32 %55, 1
store i32 %56, i32* %2
%57 = load i32, i32* %1
%58 = call i32 @mvprintw(i32 %55, i32 %57, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.13, i64 0, i64 0))
%59 = load i32, i32* %2
%60 = add nsw i32 %59, 1
store i32 %60, i32* %2
%61 = load i32, i32* %1
%62 = call i32 @mvprintw(i32 %59, i32 %61, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0))
%63 = load i32, i32* %2
%64 = add nsw i32 %63, 1
store i32 %64, i32* %2
%65 = load i32, i32* %1
%66 = call i32 @mvprintw(i32 %63, i32 %65, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.15, i64 0, i64 0))
%67 = load i32, i32* %2
%68 = add nsw i32 %67, 1
store i32 %68, i32* %2
%69 = load i32, i32* %1
%70 = call i32 @mvprintw(i32 %67, i32 %69, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [27 x i8] c"##########################\00"
@.str.1 = [27 x i8] c"# C-Settlers Help: #\00"
@.str.2 = [27 x i8] c"# Keys: #\00"
@.str.3 = [27 x i8] c"# Arrows move cursor #\00"
@.str.4 = [27 x i8] c"# b - build settlement #\00"
@.str.5 = [27 x i8] c"# - builds city if #\00"
@.str.6 = [27 x i8] c"# settlement exists #\00"
@.str.7 = [27 x i8] c"# r - build a road #\00"
@.str.8 = [27 x i8] c"# t - trade #\00"
@.str.9 = [27 x i8] c"# c - access devel card #\00"
@.str.10 = [27 x i8] c"# window #\00"
@.str.11 = [27 x i8] c"# - cancel trade #\00"
@.str.12 = [27 x i8] c"# p - pass turn #\00"
@.str.13 = [27 x i8] c"# q - exit #\00"
@.str.14 = [27 x i8] c"# h - display this #\00"
@.str.15 = [27 x i8] c"# message #\00"
define void @io_printhelp() {
%1 = tail call i32 @mvprintw(i32 4, i32 14, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @mvprintw(i32 5, i32 14, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @mvprintw(i32 6, i32 14, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @mvprintw(i32 7, i32 14, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @mvprintw(i32 8, i32 14, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @mvprintw(i32 9, i32 14, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @mvprintw(i32 10, i32 14, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @mvprintw(i32 11, i32 14, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @mvprintw(i32 12, i32 14, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @mvprintw(i32 13, i32 14, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @mvprintw(i32 14, i32 14, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @mvprintw(i32 15, i32 14, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @mvprintw(i32 16, i32 14, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0))
%14 = tail call i32 @mvprintw(i32 17, i32 14, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.13, i64 0, i64 0))
%15 = tail call i32 @mvprintw(i32 18, i32 14, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0))
%16 = tail call i32 @mvprintw(i32 19, i32 14, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.15, i64 0, i64 0))
%17 = tail call i32 @mvprintw(i32 20, i32 14, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
ret void
}