#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*/ Term_clear();
int /*<<< orphan*/ bell(char *);
char inkey();
int /*<<< orphan*/ message_flush();
int /*<<< orphan*/ prt(char *, int, int);
int /*<<< orphan*/ screen_load();
int /*<<< orphan*/ screen_save();
int /*<<< orphan*/ spoil_artifact(char *);
int /*<<< orphan*/ spoil_ego_desc(char *);
int /*<<< orphan*/ spoil_feat_desc(char *);
int /*<<< orphan*/ spoil_feat_info(char *);
int /*<<< orphan*/ spoil_magic_info(char *);
int /*<<< orphan*/ spoil_mon_desc(char *);
int /*<<< orphan*/ spoil_mon_info(char *);
int /*<<< orphan*/ spoil_obj_desc(char *);
int /*<<< orphan*/ spoil_object(char *);
int /*<<< orphan*/ spoil_slay_table(char *);
void do_cmd_spoilers(void) {
  char ch;
  screen_save();
  while (1) {
    Term_clear();
    prt("Create a spoiler file.", 2, 0);
    prt("(1) Brief Object Info (obj-desc.spo)", 5, 5);
    prt("(2) Full Object Info (obj-info.spo)", 6, 5);
    prt("(3) Full Artifact Info (art-info.spo)", 7, 5);
    prt("(4) Brief Monster Info (mon-desc.spo)", 8, 5);
    prt("(5) Full Monster Info (mon-info.spo)", 9, 5);
    prt("(6) Brief Terrain Info (ter-desc.spo)", 10, 5);
    prt("(7) Full Terrain Info (ter-info.spo)", 11, 5);
    prt("(8) Brief Ego Item Info (ego-desc.spo)", 12, 5);
    prt("(9) Slay Table (slay-tbl.spo)", 13, 5);
    prt("(0) Spell Casting (mag-info.spo)", 14, 5);
    prt("Command: ", 16, 0);
    ch = inkey();
    if (ch == '\033') {
      break;
    } else if (ch == '1') {
      spoil_obj_desc("obj-desc.spo");
    } else if (ch == '2') {
      spoil_object("obj-info.spo");
    } else if (ch == '3') {
      spoil_artifact("art-info.spo");
    } else if (ch == '4') {
      spoil_mon_desc("mon-desc.spo");
    } else if (ch == '5') {
      spoil_mon_info("mon-info.spo");
    } else if (ch == '6') {
      spoil_feat_desc("ter-desc.spo");
    } else if (ch == '7') {
      spoil_feat_info("ter-info.spo");
    } else if (ch == '8') {
      spoil_ego_desc("ego-desc.spo");
    } else if (ch == '9') {
      spoil_slay_table("slay-tbl.spo");
    } else if (ch == '0') {
      spoil_magic_info("mag-info.spo");
    } else {
      bell("Illegal command for spoilers!");
    }
    message_flush();
  }
  screen_load();
}


x86 assembly (clang, -O0):
<do_cmd_spoilers>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1110 <screen_save@plt>
mov    $0x0,%al
call   10d0 <Term_clear@plt>
lea    0xdd3(%rip),%rdi
mov    $0x2,%esi
xor    %edx,%edx
call   1090 <prt@plt>
lea    0xdd7(%rip),%rdi
mov    $0x5,%edx
mov    %edx,%esi
call   1090 <prt@plt>
lea    0xde9(%rip),%rdi
mov    $0x6,%esi
mov    $0x5,%edx
call   1090 <prt@plt>
lea    0xdf7(%rip),%rdi
mov    $0x7,%esi
mov    $0x5,%edx
call   1090 <prt@plt>
lea    0xe07(%rip),%rdi
mov    $0x8,%esi
mov    $0x5,%edx
call   1090 <prt@plt>
lea    0xe17(%rip),%rdi
mov    $0x9,%esi
mov    $0x5,%edx
call   1090 <prt@plt>
lea    0xe26(%rip),%rdi
mov    $0xa,%esi
mov    $0x5,%edx
call   1090 <prt@plt>
lea    0xe36(%rip),%rdi
mov    $0xb,%esi
mov    $0x5,%edx
call   1090 <prt@plt>
lea    0xe45(%rip),%rdi
mov    $0xc,%esi
mov    $0x5,%edx
call   1090 <prt@plt>
lea    0xe56(%rip),%rdi
mov    $0xd,%esi
mov    $0x5,%edx
call   1090 <prt@plt>
lea    0xe5e(%rip),%rdi
mov    $0xe,%esi
mov    $0x5,%edx
call   1090 <prt@plt>
lea    0xe69(%rip),%rdi
mov    $0x10,%esi
xor    %edx,%edx
call   1090 <prt@plt>
mov    $0x0,%al
call   1130 <inkey@plt>
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0x1b,%eax
jne    1341 <do_cmd_spoilers+0x131>
jmp    14b7 <do_cmd_spoilers+0x2a7>
movsbl -0x1(%rbp),%eax
cmp    $0x31,%eax
jne    135f <do_cmd_spoilers+0x14f>
lea    0xe37(%rip),%rdi
call   10e0 <spoil_obj_desc@plt>
jmp    14a6 <do_cmd_spoilers+0x296>
movsbl -0x1(%rbp),%eax
cmp    $0x32,%eax
jne    137d <do_cmd_spoilers+0x16d>
lea    0xe26(%rip),%rdi
call   1060 <spoil_object@plt>
jmp    14a1 <do_cmd_spoilers+0x291>
movsbl -0x1(%rbp),%eax
cmp    $0x33,%eax
jne    139b <do_cmd_spoilers+0x18b>
lea    0xe15(%rip),%rdi
call   10b0 <spoil_artifact@plt>
jmp    149c <do_cmd_spoilers+0x28c>
movsbl -0x1(%rbp),%eax
cmp    $0x34,%eax
jne    13b9 <do_cmd_spoilers+0x1a9>
lea    0xe04(%rip),%rdi
call   1120 <spoil_mon_desc@plt>
jmp    1497 <do_cmd_spoilers+0x287>
movsbl -0x1(%rbp),%eax
cmp    $0x35,%eax
jne    13d7 <do_cmd_spoilers+0x1c7>
lea    0xdf3(%rip),%rdi
call   1040 <spoil_mon_info@plt>
jmp    1492 <do_cmd_spoilers+0x282>
movsbl -0x1(%rbp),%eax
cmp    $0x36,%eax
jne    13f5 <do_cmd_spoilers+0x1e5>
lea    0xde2(%rip),%rdi
call   1100 <spoil_feat_desc@plt>
jmp    148d <do_cmd_spoilers+0x27d>
movsbl -0x1(%rbp),%eax
cmp    $0x37,%eax
jne    1413 <do_cmd_spoilers+0x203>
lea    0xdd1(%rip),%rdi
call   10f0 <spoil_feat_info@plt>
jmp    1488 <do_cmd_spoilers+0x278>
movsbl -0x1(%rbp),%eax
cmp    $0x38,%eax
jne    1431 <do_cmd_spoilers+0x221>
lea    0xdc0(%rip),%rdi
call   10c0 <spoil_ego_desc@plt>
jmp    1483 <do_cmd_spoilers+0x273>
movsbl -0x1(%rbp),%eax
cmp    $0x39,%eax
jne    144f <do_cmd_spoilers+0x23f>
lea    0xdaf(%rip),%rdi
call   1080 <spoil_slay_table@plt>
jmp    147e <do_cmd_spoilers+0x26e>
movsbl -0x1(%rbp),%eax
cmp    $0x30,%eax
jne    146d <do_cmd_spoilers+0x25d>
lea    0xd9e(%rip),%rdi
call   10a0 <spoil_magic_info@plt>
jmp    1479 <do_cmd_spoilers+0x269>
lea    0xd9a(%rip),%rdi
call   1030 <bell@plt>
jmp    147e <do_cmd_spoilers+0x26e>
jmp    1483 <do_cmd_spoilers+0x273>
jmp    1488 <do_cmd_spoilers+0x278>
jmp    148d <do_cmd_spoilers+0x27d>
jmp    1492 <do_cmd_spoilers+0x282>
jmp    1497 <do_cmd_spoilers+0x287>
jmp    149c <do_cmd_spoilers+0x28c>
jmp    14a1 <do_cmd_spoilers+0x291>
jmp    14a6 <do_cmd_spoilers+0x296>
jmp    14ab <do_cmd_spoilers+0x29b>
mov    $0x0,%al
call   1070 <message_flush@plt>
jmp    121f <do_cmd_spoilers+0xf>
mov    $0x0,%al
call   1050 <screen_load@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_cmd_spoilers>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
xor    %eax,%eax
call   1110 <screen_save@plt>
lea    0xf4a(%rip),%r15
lea    0xf68(%rip),%r12
lea    0xf88(%rip),%r13
lea    0xf9f(%rip),%rbx
lea    0xfb9(%rip),%rbp
lea    0xdb4(%rip),%r14
jmp    1267 <do_cmd_spoilers+0x57>
lea    0x1035(%rip),%rdi
call   1030 <bell@plt>
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1070 <message_flush@plt>
xor    %eax,%eax
call   10d0 <Term_clear@plt>
lea    0xe07(%rip),%rdi
mov    $0x2,%esi
xor    %edx,%edx
call   1090 <prt@plt>
lea    0xe0b(%rip),%rdi
mov    $0x5,%esi
mov    $0x5,%edx
call   1090 <prt@plt>
lea    0xe1a(%rip),%rdi
mov    $0x6,%esi
mov    $0x5,%edx
call   1090 <prt@plt>
lea    0xe28(%rip),%rdi
mov    $0x7,%esi
mov    $0x5,%edx
call   1090 <prt@plt>
lea    0xe38(%rip),%rdi
mov    $0x8,%esi
mov    $0x5,%edx
call   1090 <prt@plt>
lea    0xe48(%rip),%rdi
mov    $0x9,%esi
mov    $0x5,%edx
call   1090 <prt@plt>
lea    0xe57(%rip),%rdi
mov    $0xa,%esi
mov    $0x5,%edx
call   1090 <prt@plt>
mov    %r15,%rdi
mov    $0xb,%esi
mov    $0x5,%edx
call   1090 <prt@plt>
mov    %r12,%rdi
mov    $0xc,%esi
mov    $0x5,%edx
call   1090 <prt@plt>
mov    %r13,%rdi
mov    $0xd,%esi
mov    $0x5,%edx
call   1090 <prt@plt>
mov    %rbx,%rdi
mov    $0xe,%esi
mov    $0x5,%edx
call   1090 <prt@plt>
mov    %rbp,%rdi
mov    $0x10,%esi
xor    %edx,%edx
call   1090 <prt@plt>
xor    %eax,%eax
call   1130 <inkey@plt>
add    $0xe5,%al
cmp    $0x1e,%al
ja     124e <do_cmd_spoilers+0x3e>
movzbl %al,%eax
movslq (%r14,%rax,4),%rax
add    %r14,%rax
jmp    *%rax
lea    0xefd(%rip),%rdi
call   10a0 <spoil_magic_info@plt>
jmp    1260 <do_cmd_spoilers+0x50>
lea    0xe77(%rip),%rdi
call   10e0 <spoil_obj_desc@plt>
jmp    1260 <do_cmd_spoilers+0x50>
lea    0xe73(%rip),%rdi
call   1060 <spoil_object@plt>
jmp    1260 <do_cmd_spoilers+0x50>
lea    0xe6f(%rip),%rdi
call   10b0 <spoil_artifact@plt>
jmp    1260 <do_cmd_spoilers+0x50>
lea    0xe6b(%rip),%rdi
call   1120 <spoil_mon_desc@plt>
jmp    1260 <do_cmd_spoilers+0x50>
lea    0xe67(%rip),%rdi
call   1040 <spoil_mon_info@plt>
jmp    1260 <do_cmd_spoilers+0x50>
lea    0xe63(%rip),%rdi
call   1100 <spoil_feat_desc@plt>
jmp    1260 <do_cmd_spoilers+0x50>
lea    0xe5f(%rip),%rdi
call   10f0 <spoil_feat_info@plt>
jmp    1260 <do_cmd_spoilers+0x50>
lea    0xe5b(%rip),%rdi
call   10c0 <spoil_ego_desc@plt>
jmp    1260 <do_cmd_spoilers+0x50>
lea    0xe57(%rip),%rdi
call   1080 <spoil_slay_table@plt>
jmp    1260 <do_cmd_spoilers+0x50>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <screen_load@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"Create a spoiler file.\00"
@.str.1 = [37 x i8] c"(1) Brief Object Info (obj-desc.spo)\00"
@.str.2 = [36 x i8] c"(2) Full Object Info (obj-info.spo)\00"
@.str.3 = [38 x i8] c"(3) Full Artifact Info (art-info.spo)\00"
@.str.4 = [38 x i8] c"(4) Brief Monster Info (mon-desc.spo)\00"
@.str.5 = [37 x i8] c"(5) Full Monster Info (mon-info.spo)\00"
@.str.6 = [38 x i8] c"(6) Brief Terrain Info (ter-desc.spo)\00"
@.str.7 = [37 x i8] c"(7) Full Terrain Info (ter-info.spo)\00"
@.str.8 = [39 x i8] c"(8) Brief Ego Item Info (ego-desc.spo)\00"
@.str.9 = [30 x i8] c"(9) Slay Table (slay-tbl.spo)\00"
@.str.10 = [33 x i8] c"(0) Spell Casting (mag-info.spo)\00"
@.str.11 = [10 x i8] c"Command: \00"
@.str.12 = [13 x i8] c"obj-desc.spo\00"
@.str.13 = [13 x i8] c"obj-info.spo\00"
@.str.14 = [13 x i8] c"art-info.spo\00"
@.str.15 = [13 x i8] c"mon-desc.spo\00"
@.str.16 = [13 x i8] c"mon-info.spo\00"
@.str.17 = [13 x i8] c"ter-desc.spo\00"
@.str.18 = [13 x i8] c"ter-info.spo\00"
@.str.19 = [13 x i8] c"ego-desc.spo\00"
@.str.20 = [13 x i8] c"slay-tbl.spo\00"
@.str.21 = [13 x i8] c"mag-info.spo\00"
@.str.22 = [30 x i8] c"Illegal command for spoilers!\00"
define void @do_cmd_spoilers() {
%1 = alloca i8
%2 = call i32 (...) @screen_save()
br label %3
3: ; preds = %0, %94
%4 = call i32 (...) @Term_clear()
%5 = call i32 @prt(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 2, i32 0)
%6 = call i32 @prt(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i32 5, i32 5)
%7 = call i32 @prt(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i32 6, i32 5)
%8 = call i32 @prt(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0), i32 7, i32 5)
%9 = call i32 @prt(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0), i32 8, i32 5)
%10 = call i32 @prt(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0), i32 9, i32 5)
%11 = call i32 @prt(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0), i32 10, i32 5)
%12 = call i32 @prt(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0), i32 11, i32 5)
%13 = call i32 @prt(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0), i32 12, i32 5)
%14 = call i32 @prt(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0), i32 13, i32 5)
%15 = call i32 @prt(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0), i32 14, i32 5)
%16 = call i32 @prt(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i32 16, i32 0)
%17 = call signext i8 (...) @inkey()
store i8 %17, i8* %1
%18 = load i8, i8* %1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 27
br i1 %20, label %21, label %22
21: ; preds = %3
br label %96
22: ; preds = %3
%23 = load i8, i8* %1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 49
br i1 %25, label %26, label %28
26: ; preds = %22
%27 = call i32 @spoil_obj_desc(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0))
br label %93
28: ; preds = %22
%29 = load i8, i8* %1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 50
br i1 %31, label %32, label %34
32: ; preds = %28
%33 = call i32 @spoil_object(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0))
br label %92
34: ; preds = %28
%35 = load i8, i8* %1
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 51
br i1 %37, label %38, label %40
38: ; preds = %34
%39 = call i32 @spoil_artifact(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0))
br label %91
40: ; preds = %34
%41 = load i8, i8* %1
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %42, 52
br i1 %43, label %44, label %46
44: ; preds = %40
%45 = call i32 @spoil_mon_desc(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0))
br label %90
46: ; preds = %40
%47 = load i8, i8* %1
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 53
br i1 %49, label %50, label %52
50: ; preds = %46
%51 = call i32 @spoil_mon_info(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0))
br label %89
52: ; preds = %46
%53 = load i8, i8* %1
%54 = sext i8 %53 to i32
%55 = icmp eq i32 %54, 54
br i1 %55, label %56, label %58
56: ; preds = %52
%57 = call i32 @spoil_feat_desc(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0))
br label %88
58: ; preds = %52
%59 = load i8, i8* %1
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %60, 55
br i1 %61, label %62, label %64
62: ; preds = %58
%63 = call i32 @spoil_feat_info(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0))
br label %87
64: ; preds = %58
%65 = load i8, i8* %1
%66 = sext i8 %65 to i32
%67 = icmp eq i32 %66, 56
br i1 %67, label %68, label %70
68: ; preds = %64
%69 = call i32 @spoil_ego_desc(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.19, i64 0, i64 0))
br label %86
70: ; preds = %64
%71 = load i8, i8* %1
%72 = sext i8 %71 to i32
%73 = icmp eq i32 %72, 57
br i1 %73, label %74, label %76
74: ; preds = %70
%75 = call i32 @spoil_slay_table(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0))
br label %85
76: ; preds = %70
%77 = load i8, i8* %1
%78 = sext i8 %77 to i32
%79 = icmp eq i32 %78, 48
br i1 %79, label %80, label %82
80: ; preds = %76
%81 = call i32 @spoil_magic_info(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.21, i64 0, i64 0))
br label %84
82: ; preds = %76
%83 = call i32 @bell(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.22, i64 0, i64 0))
br label %84
84: ; preds = %82, %80
br label %85
85: ; preds = %84, %74
br label %86
86: ; preds = %85, %68
br label %87
87: ; preds = %86, %62
br label %88
88: ; preds = %87, %56
br label %89
89: ; preds = %88, %50
br label %90
90: ; preds = %89, %44
br label %91
91: ; preds = %90, %38
br label %92
92: ; preds = %91, %32
br label %93
93: ; preds = %92, %26
br label %94
94: ; preds = %93
%95 = call i32 (...) @message_flush()
br label %3
96: ; preds = %21
%97 = call i32 (...) @screen_load()
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"Create a spoiler file.\00"
@.str.1 = [37 x i8] c"(1) Brief Object Info (obj-desc.spo)\00"
@.str.2 = [36 x i8] c"(2) Full Object Info (obj-info.spo)\00"
@.str.3 = [38 x i8] c"(3) Full Artifact Info (art-info.spo)\00"
@.str.4 = [38 x i8] c"(4) Brief Monster Info (mon-desc.spo)\00"
@.str.5 = [37 x i8] c"(5) Full Monster Info (mon-info.spo)\00"
@.str.6 = [38 x i8] c"(6) Brief Terrain Info (ter-desc.spo)\00"
@.str.7 = [37 x i8] c"(7) Full Terrain Info (ter-info.spo)\00"
@.str.8 = [39 x i8] c"(8) Brief Ego Item Info (ego-desc.spo)\00"
@.str.9 = [30 x i8] c"(9) Slay Table (slay-tbl.spo)\00"
@.str.10 = [33 x i8] c"(0) Spell Casting (mag-info.spo)\00"
@.str.11 = [10 x i8] c"Command: \00"
@.str.12 = [13 x i8] c"obj-desc.spo\00"
@.str.13 = [13 x i8] c"obj-info.spo\00"
@.str.14 = [13 x i8] c"art-info.spo\00"
@.str.15 = [13 x i8] c"mon-desc.spo\00"
@.str.16 = [13 x i8] c"mon-info.spo\00"
@.str.17 = [13 x i8] c"ter-desc.spo\00"
@.str.18 = [13 x i8] c"ter-info.spo\00"
@.str.19 = [13 x i8] c"ego-desc.spo\00"
@.str.20 = [13 x i8] c"slay-tbl.spo\00"
@.str.21 = [13 x i8] c"mag-info.spo\00"
@.str.22 = [30 x i8] c"Illegal command for spoilers!\00"
define void @do_cmd_spoilers() {
%1 = tail call i32 (...) @screen_save()
br label %2
2: ; preds = %39, %0
%3 = tail call i32 (...) @Term_clear()
%4 = tail call i32 @prt(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 2, i32 0)
%5 = tail call i32 @prt(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i32 5, i32 5)
%6 = tail call i32 @prt(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i32 6, i32 5)
%7 = tail call i32 @prt(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0), i32 7, i32 5)
%8 = tail call i32 @prt(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0), i32 8, i32 5)
%9 = tail call i32 @prt(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0), i32 9, i32 5)
%10 = tail call i32 @prt(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0), i32 10, i32 5)
%11 = tail call i32 @prt(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0), i32 11, i32 5)
%12 = tail call i32 @prt(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0), i32 12, i32 5)
%13 = tail call i32 @prt(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0), i32 13, i32 5)
%14 = tail call i32 @prt(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0), i32 14, i32 5)
%15 = tail call i32 @prt(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i32 16, i32 0)
%16 = tail call signext i8 (...) @inkey()
switch i8 %16, label %37 [
i8 27, label %41
i8 49, label %17
i8 50, label %19
i8 51, label %21
i8 52, label %23
i8 53, label %25
i8 54, label %27
i8 55, label %29
i8 56, label %31
i8 57, label %33
i8 48, label %35
]
17: ; preds = %2
%18 = tail call i32 @spoil_obj_desc(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0))
br label %39
19: ; preds = %2
%20 = tail call i32 @spoil_object(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0))
br label %39
21: ; preds = %2
%22 = tail call i32 @spoil_artifact(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0))
br label %39
23: ; preds = %2
%24 = tail call i32 @spoil_mon_desc(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0))
br label %39
25: ; preds = %2
%26 = tail call i32 @spoil_mon_info(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0))
br label %39
27: ; preds = %2
%28 = tail call i32 @spoil_feat_desc(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0))
br label %39
29: ; preds = %2
%30 = tail call i32 @spoil_feat_info(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0))
br label %39
31: ; preds = %2
%32 = tail call i32 @spoil_ego_desc(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.19, i64 0, i64 0))
br label %39
33: ; preds = %2
%34 = tail call i32 @spoil_slay_table(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0))
br label %39
35: ; preds = %2
%36 = tail call i32 @spoil_magic_info(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.21, i64 0, i64 0))
br label %39
37: ; preds = %2
%38 = tail call i32 @bell(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.22, i64 0, i64 0))
br label %39
39: ; preds = %17, %21, %25, %29, %33, %37, %35, %31, %27, %23, %19
%40 = tail call i32 (...) @message_flush()
br label %2
41: ; preds = %2
%42 = tail call i32 (...) @screen_load()
ret void
}