#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*/ add_help_line(char *, int *);
void general_help() {
  int i = 1;
  add_help_line("[0-9] : Switch player view", &i);
  add_help_line("Z[GHDPB] : Switch zone view", &i);
  i++;
  add_help_line("= : Load deck", &i);
  i++;
  add_help_line("p : Pass", &i);
  add_help_line("d : Done", &i);
  i++;
  add_help_line("D : Draw", &i);
  add_help_line("V : Show selected card", &i);
  add_help_line("M[GDHPB] : Move card to zone", &i);
  add_help_line("T : Tap selected card", &i);
  add_help_line("c[0-9] : Transfer card control to player", &i);
  add_help_line("S[0-9][0-9] : Put into play an x/x token", &i);
  add_help_line("[+-] : Add/Remove a counter on a card", &i);
}


x86 assembly (clang, -O0):
<general_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x1,-0x4(%rbp)
lea    0xeda(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1030 <add_help_line@plt>
lea    0xee5(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1030 <add_help_line@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
lea    0xee8(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1030 <add_help_line@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
lea    0xedd(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1030 <add_help_line@plt>
lea    0xed6(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1030 <add_help_line@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
lea    0xec6(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1030 <add_help_line@plt>
lea    0xebf(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1030 <add_help_line@plt>
lea    0xec6(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1030 <add_help_line@plt>
lea    0xed3(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1030 <add_help_line@plt>
lea    0xed9(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1030 <add_help_line@plt>
lea    0xef2(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1030 <add_help_line@plt>
lea    0xf0b(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1030 <add_help_line@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<general_help>:
push   %rbx
sub    $0x10,%rsp
movl   $0x1,0xc(%rsp)
lea    0xedc(%rip),%rdi
lea    0xc(%rsp),%rbx
mov    %rbx,%rsi
call   1030 <add_help_line@plt>
lea    0xee3(%rip),%rdi
mov    %rbx,%rsi
call   1030 <add_help_line@plt>
addl   $0x1,0xc(%rsp)
lea    0xeeb(%rip),%rdi
mov    %rbx,%rsi
call   1030 <add_help_line@plt>
addl   $0x1,0xc(%rsp)
lea    0xee5(%rip),%rdi
mov    %rbx,%rsi
call   1030 <add_help_line@plt>
lea    0xedf(%rip),%rdi
mov    %rbx,%rsi
call   1030 <add_help_line@plt>
addl   $0x1,0xc(%rsp)
lea    0xed4(%rip),%rdi
mov    %rbx,%rsi
call   1030 <add_help_line@plt>
lea    0xece(%rip),%rdi
mov    %rbx,%rsi
call   1030 <add_help_line@plt>
lea    0xed6(%rip),%rdi
mov    %rbx,%rsi
call   1030 <add_help_line@plt>
lea    0xee4(%rip),%rdi
mov    %rbx,%rsi
call   1030 <add_help_line@plt>
lea    0xeeb(%rip),%rdi
mov    %rbx,%rsi
call   1030 <add_help_line@plt>
lea    0xf05(%rip),%rdi
mov    %rbx,%rsi
call   1030 <add_help_line@plt>
lea    0xf1f(%rip),%rdi
mov    %rbx,%rsi
call   1030 <add_help_line@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [27 x i8] c"[0-9] : Switch player view\00"
@.str.1 = [28 x i8] c"Z[GHDPB] : Switch zone view\00"
@.str.2 = [14 x i8] c"= : Load deck\00"
@.str.3 = [9 x i8] c"p : Pass\00"
@.str.4 = [9 x i8] c"d : Done\00"
@.str.5 = [9 x i8] c"D : Draw\00"
@.str.6 = [23 x i8] c"V : Show selected card\00"
@.str.7 = [29 x i8] c"M[GDHPB] : Move card to zone\00"
@.str.8 = [22 x i8] c"T : Tap selected card\00"
@.str.9 = [41 x i8] c"c[0-9] : Transfer card control to player\00"
@.str.10 = [41 x i8] c"S[0-9][0-9] : Put into play an x/x token\00"
@.str.11 = [38 x i8] c"[+-] : Add/Remove a counter on a card\00"
define void @general_help() {
%1 = alloca i32
store i32 1, i32* %1
%2 = call i32 @add_help_line(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32* %1)
%3 = call i32 @add_help_line(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = add nsw i32 %4, 1
store i32 %5, i32* %1
%6 = call i32 @add_help_line(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32* %1)
%7 = load i32, i32* %1
%8 = add nsw i32 %7, 1
store i32 %8, i32* %1
%9 = call i32 @add_help_line(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32* %1)
%10 = call i32 @add_help_line(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%11 = load i32, i32* %1
%12 = add nsw i32 %11, 1
store i32 %12, i32* %1
%13 = call i32 @add_help_line(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32* %1)
%14 = call i32 @add_help_line(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i32* %1)
%15 = call i32 @add_help_line(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i32* %1)
%16 = call i32 @add_help_line(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32* %1)
%17 = call i32 @add_help_line(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.9, i64 0, i64 0), i32* %1)
%18 = call i32 @add_help_line(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0), i32* %1)
%19 = call i32 @add_help_line(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.11, i64 0, i64 0), i32* %1)
ret void
}

LLVM IR (-O2):
@.str = [27 x i8] c"[0-9] : Switch player view\00"
@.str.1 = [28 x i8] c"Z[GHDPB] : Switch zone view\00"
@.str.2 = [14 x i8] c"= : Load deck\00"
@.str.3 = [9 x i8] c"p : Pass\00"
@.str.4 = [9 x i8] c"d : Done\00"
@.str.5 = [9 x i8] c"D : Draw\00"
@.str.6 = [23 x i8] c"V : Show selected card\00"
@.str.7 = [29 x i8] c"M[GDHPB] : Move card to zone\00"
@.str.8 = [22 x i8] c"T : Tap selected card\00"
@.str.9 = [41 x i8] c"c[0-9] : Transfer card control to player\00"
@.str.10 = [41 x i8] c"S[0-9][0-9] : Put into play an x/x token\00"
@.str.11 = [38 x i8] c"[+-] : Add/Remove a counter on a card\00"
define void @general_help() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 1, i32* %1
%3 = call i32 @add_help_line(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = call i32 @add_help_line(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%5 = load i32, i32* %1
%6 = add nsw i32 %5, 1
store i32 %6, i32* %1
%7 = call i32 @add_help_line(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32* %1)
%8 = load i32, i32* %1
%9 = add nsw i32 %8, 1
store i32 %9, i32* %1
%10 = call i32 @add_help_line(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32* %1)
%11 = call i32 @add_help_line(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%12 = load i32, i32* %1
%13 = add nsw i32 %12, 1
store i32 %13, i32* %1
%14 = call i32 @add_help_line(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32* %1)
%15 = call i32 @add_help_line(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i32* %1)
%16 = call i32 @add_help_line(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i32* %1)
%17 = call i32 @add_help_line(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32* %1)
%18 = call i32 @add_help_line(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.9, i64 0, i64 0), i32* %1)
%19 = call i32 @add_help_line(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0), i32* %1)
%20 = call i32 @add_help_line(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.11, i64 0, i64 0), i32* %1)
ret void
}