#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 choose(int, char *, int, char *);
int /*<<< orphan*/ more();
int /*<<< orphan*/ printf(char *);
page11() {
  printf("The printing on the folder says \"Experimental Self Briefing.\"\n");
  printf("You open it and begin to read the following:\n");
  printf("Step 1: Compel the briefing subject to attend the briefing.\n");
  printf("        Note: See Experimental Briefing Sub Form Indigo-WY-2,\n");
  printf("        \'Experimental Self Briefing Subject Acquisition Through The "
         "Use Of\n");
  printf("         Neurotoxin Room Foggers.\'\n");
  printf("Step 2: Inform the briefing subject that the briefing has begun.\n");
  printf("        ATTENTION: THE BRIEFING HAS BEGUN.\n");
  printf("Step 3: Present the briefing material to the briefing subject.\n");
  printf("        GREETINGS TROUBLESHOOTER.\n");
  printf("        YOU HAVE BEEN SPECIALLY SELECTED TO SINGLEHANDEDLY\n");
  printf("        WIPE OUT A DEN OF TRAITOROUS CHRISTMAS ACTIVITY.  YOUR "
         "MISSION IS TO\n");
  printf("        GO TO GOODS DISTRIBUTION HALL 7-BETA AND ASSESS ANY "
         "CHRISTMAS ACTIVITY\n");
  printf("        YOU FIND THERE.  YOU ARE TO INFILTRATE THESE CHRISTMAS "
         "CELEBRANTS,\n");
  printf("        LOCATE THEIR RINGLEADER, AN UNKNOWN MASTER RETAILER, AND "
         "BRING HIM\n");
  printf("        BACK FOR EXECUTION AND TRIAL.  THANK YOU.  THE COMPUTER IS "
         "YOUR FRIEND.\n");
  printf("Step 4: Sign the briefing subject\'s briefing release form to "
         "indicate that\n");
  printf("        the briefing subject has completed the briefing.\n");
  printf("        ATTENTION: PLEASE SIGN YOUR BRIEFING RELEASE FORM.\n");
  printf("Step 5: Terminate the briefing\n");
  printf("        ATTENTION: THE BRIEFING IS TERMINATED.\n");
  more();
  printf("You walk to the door and hold your signed briefing release form up "
         "to the\n");
  printf("plexiglass window.  A guard scrutinises it for a moment and then "
         "slides back\n");
  printf("the megabolts holding the door shut.  You are now free to continue "
         "the\n");
  printf("mission.\n");
  return choose(
      3, "You wish to ask The Computer for more information about Christmas",
      10, "You have decided to go directly to Goods Distribution Hall 7-beta");
}


x86 assembly (clang, -O0):
<page11>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1040 <printf@plt>
lea    0xef8(%rip),%rdi
call   1040 <printf@plt>
lea    0xf1a(%rip),%rdi
call   1040 <printf@plt>
lea    0xf4b(%rip),%rdi
call   1040 <printf@plt>
lea    0xf7e(%rip),%rdi
call   1040 <printf@plt>
lea    0xfbe(%rip),%rdi
call   1040 <printf@plt>
lea    0xfd6(%rip),%rdi
call   1040 <printf@plt>
lea    0x100c(%rip),%rdi
call   1040 <printf@plt>
lea    0x102c(%rip),%rdi
call   1040 <printf@plt>
lea    0x1060(%rip),%rdi
call   1040 <printf@plt>
lea    0x1077(%rip),%rdi
call   1040 <printf@plt>
lea    0x10a7(%rip),%rdi
call   1040 <printf@plt>
lea    0x10e9(%rip),%rdi
call   1040 <printf@plt>
lea    0x112d(%rip),%rdi
call   1040 <printf@plt>
lea    0x116d(%rip),%rdi
call   1040 <printf@plt>
lea    0x11ad(%rip),%rdi
call   1040 <printf@plt>
lea    0x11f2(%rip),%rdi
call   1040 <printf@plt>
lea    0x1232(%rip),%rdi
call   1040 <printf@plt>
lea    0x1260(%rip),%rdi
call   1040 <printf@plt>
lea    0x1290(%rip),%rdi
call   1040 <printf@plt>
lea    0x12a4(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <more@plt>
lea    0x12c1(%rip),%rdi
call   1040 <printf@plt>
lea    0x1300(%rip),%rdi
call   1040 <printf@plt>
lea    0x1342(%rip),%rdi
call   1040 <printf@plt>
lea    0x137e(%rip),%rdi
call   1040 <printf@plt>
mov    $0x3,%edi
lea    0x1377(%rip),%rsi
mov    $0xa,%edx
lea    0x13ad(%rip),%rcx
call   1030 <choose@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<page11>:
push   %rax
lea    0xf4c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9f(%rip),%rdi
call   1030 <puts@plt>
lea    0xfcf(%rip),%rdi
call   1030 <puts@plt>
lea    0x1001(%rip),%rdi
call   1030 <puts@plt>
lea    0x1040(%rip),%rdi
call   1030 <puts@plt>
lea    0x1057(%rip),%rdi
call   1030 <puts@plt>
lea    0x108c(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ab(%rip),%rdi
call   1030 <puts@plt>
lea    0x10de(%rip),%rdi
call   1030 <puts@plt>
lea    0x10f4(%rip),%rdi
call   1030 <puts@plt>
lea    0x1123(%rip),%rdi
call   1030 <puts@plt>
lea    0x1164(%rip),%rdi
call   1030 <puts@plt>
lea    0x11a7(%rip),%rdi
call   1030 <puts@plt>
lea    0x11e6(%rip),%rdi
call   1030 <puts@plt>
lea    0x1225(%rip),%rdi
call   1030 <puts@plt>
lea    0x1269(%rip),%rdi
call   1030 <puts@plt>
lea    0x12a8(%rip),%rdi
call   1030 <puts@plt>
lea    0x12d5(%rip),%rdi
call   1030 <puts@plt>
lea    0x1304(%rip),%rdi
call   1030 <puts@plt>
lea    0x1317(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1050 <more@plt>
lea    0x1333(%rip),%rdi
call   1030 <puts@plt>
lea    0x1371(%rip),%rdi
call   1030 <puts@plt>
lea    0x13b2(%rip),%rdi
call   1030 <puts@plt>
lea    0x13ed(%rip),%rdi
call   1030 <puts@plt>
lea    0xd95(%rip),%rsi
lea    0xdd0(%rip),%rcx
mov    $0x3,%edi
mov    $0xa,%edx
pop    %rax
jmp    1040 <choose@plt>

LLVM IR (-O0):
@.str = [63 x i8] c"The printing on the folder says \22Experimental Self Briefing.\22\0A\00"
@.str.1 = [46 x i8] c"You open it and begin to read the following:\0A\00"
@.str.2 = [61 x i8] c"Step 1: Compel the briefing subject to attend the briefing.\0A\00"
@.str.3 = [63 x i8] c" Note: See Experimental Briefing Sub Form Indigo-WY-2,\0A\00"
@.str.4 = [76 x i8] c" 'Experimental Self Briefing Subject Acquisition Through The Use Of\0A\00"
@.str.5 = [36 x i8] c" Neurotoxin Room Foggers.'\0A\00"
@.str.6 = [66 x i8] c"Step 2: Inform the briefing subject that the briefing has begun.\0A\00"
@.str.7 = [44 x i8] c" ATTENTION: THE BRIEFING HAS BEGUN.\0A\00"
@.str.8 = [64 x i8] c"Step 3: Present the briefing material to the briefing subject.\0A\00"
@.str.9 = [35 x i8] c" GREETINGS TROUBLESHOOTER.\0A\00"
@.str.10 = [60 x i8] c" YOU HAVE BEEN SPECIALLY SELECTED TO SINGLEHANDEDLY\0A\00"
@.str.11 = [78 x i8] c" WIPE OUT A DEN OF TRAITOROUS CHRISTMAS ACTIVITY. YOUR MISSION IS TO\0A\00"
@.str.12 = [80 x i8] c" GO TO GOODS DISTRIBUTION HALL 7-BETA AND ASSESS ANY CHRISTMAS ACTIVITY\0A\00"
@.str.13 = [76 x i8] c" YOU FIND THERE. YOU ARE TO INFILTRATE THESE CHRISTMAS CELEBRANTS,\0A\00"
@.str.14 = [76 x i8] c" LOCATE THEIR RINGLEADER, AN UNKNOWN MASTER RETAILER, AND BRING HIM\0A\00"
@.str.15 = [81 x i8] c" BACK FOR EXECUTION AND TRIAL. THANK YOU. THE COMPUTER IS YOUR FRIEND.\0A\00"
@.str.16 = [76 x i8] c"Step 4: Sign the briefing subject's briefing release form to indicate that\0A\00"
@.str.17 = [58 x i8] c" the briefing subject has completed the briefing.\0A\00"
@.str.18 = [60 x i8] c" ATTENTION: PLEASE SIGN YOUR BRIEFING RELEASE FORM.\0A\00"
@.str.19 = [32 x i8] c"Step 5: Terminate the briefing\0A\00"
@.str.20 = [48 x i8] c" ATTENTION: THE BRIEFING IS TERMINATED.\0A\00"
@.str.21 = [75 x i8] c"You walk to the door and hold your signed briefing release form up to the\0A\00"
@.str.22 = [78 x i8] c"plexiglass window. A guard scrutinises it for a moment and then slides back\0A\00"
@.str.23 = [72 x i8] c"the megabolts holding the door shut. You are now free to continue the\0A\00"
@.str.24 = [10 x i8] c"mission.\0A\00"
@.str.25 = [66 x i8] c"You wish to ask The Computer for more information about Christmas\00"
@.str.26 = [66 x i8] c"You have decided to go directly to Goods Distribution Hall 7-beta\00"
define i32 @page11() {
%1 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 (...) @more()
%23 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.21, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.22, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.23, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.24, i64 0, i64 0))
%27 = call i32 @choose(i32 3, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.25, i64 0, i64 0), i32 10, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.26, i64 0, i64 0))
ret i32 %27
}

LLVM IR (-O2):
@.str.25 = [66 x i8] c"You wish to ask The Computer for more information about Christmas\00"
@.str.26 = [66 x i8] c"You have decided to go directly to Goods Distribution Hall 7-beta\00"
@str = [62 x i8] c"The printing on the folder says \22Experimental Self Briefing.\22\00"
@str.27 = [45 x i8] c"You open it and begin to read the following:\00"
@str.28 = [60 x i8] c"Step 1: Compel the briefing subject to attend the briefing.\00"
@str.29 = [62 x i8] c" Note: See Experimental Briefing Sub Form Indigo-WY-2,\00"
@str.30 = [75 x i8] c" 'Experimental Self Briefing Subject Acquisition Through The Use Of\00"
@str.31 = [35 x i8] c" Neurotoxin Room Foggers.'\00"
@str.32 = [65 x i8] c"Step 2: Inform the briefing subject that the briefing has begun.\00"
@str.33 = [43 x i8] c" ATTENTION: THE BRIEFING HAS BEGUN.\00"
@str.34 = [63 x i8] c"Step 3: Present the briefing material to the briefing subject.\00"
@str.35 = [34 x i8] c" GREETINGS TROUBLESHOOTER.\00"
@str.36 = [59 x i8] c" YOU HAVE BEEN SPECIALLY SELECTED TO SINGLEHANDEDLY\00"
@str.37 = [77 x i8] c" WIPE OUT A DEN OF TRAITOROUS CHRISTMAS ACTIVITY. YOUR MISSION IS TO\00"
@str.38 = [79 x i8] c" GO TO GOODS DISTRIBUTION HALL 7-BETA AND ASSESS ANY CHRISTMAS ACTIVITY\00"
@str.39 = [75 x i8] c" YOU FIND THERE. YOU ARE TO INFILTRATE THESE CHRISTMAS CELEBRANTS,\00"
@str.40 = [75 x i8] c" LOCATE THEIR RINGLEADER, AN UNKNOWN MASTER RETAILER, AND BRING HIM\00"
@str.41 = [80 x i8] c" BACK FOR EXECUTION AND TRIAL. THANK YOU. THE COMPUTER IS YOUR FRIEND.\00"
@str.42 = [75 x i8] c"Step 4: Sign the briefing subject's briefing release form to indicate that\00"
@str.43 = [57 x i8] c" the briefing subject has completed the briefing.\00"
@str.44 = [59 x i8] c" ATTENTION: PLEASE SIGN YOUR BRIEFING RELEASE FORM.\00"
@str.45 = [31 x i8] c"Step 5: Terminate the briefing\00"
@str.46 = [47 x i8] c" ATTENTION: THE BRIEFING IS TERMINATED.\00"
@str.47 = [74 x i8] c"You walk to the door and hold your signed briefing release form up to the\00"
@str.48 = [77 x i8] c"plexiglass window. A guard scrutinises it for a moment and then slides back\00"
@str.49 = [71 x i8] c"the megabolts holding the door shut. You are now free to continue the\00"
@str.50 = [9 x i8] c"mission.\00"
define i32 @page11() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.27, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.28, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.29, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.30, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.31, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.32, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.33, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.34, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.35, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.36, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.37, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.38, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.39, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.40, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.41, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.42, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.43, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.44, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.45, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.46, i64 0, i64 0))
%22 = tail call i32 (...) @more()
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.47, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.48, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.49, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.50, i64 0, i64 0))
%27 = tail call i32 @choose(i32 3, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.25, i64 0, i64 0), i32 10, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.26, i64 0, i64 0))
ret i32 %27
}