#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*/ exit(int);
int /*<<< orphan*/ printf(char *);
void PrintOptions(void) {
  printf("QBSP performs geometric level processing of Quake .MAP files to "
         "create\n");
  printf("Quake .BSP files.\n\n");
  printf("qbsp [options] sourcefile [destfile]\n\n");
  printf("Options:\n");
  printf("   -nofill         Doesn't perform outside filling\n");
  printf("   -noclip         Doesn't build clip hulls\n");
  printf("   -onlyents       Only updates .MAP entities\n");
  printf("   -verbose        Print out more .MAP information\n");
  printf("   -noverbose      Print out almost no information at all\n");
  printf("   -splitspecial   Doesn't combine sky and water faces into one "
         "large face\n");
  printf(
      "   -transwater     Computes portal information for transparent water\n");
  printf(
      "   -transsky       Computes portal information for transparent sky\n");
  printf("   -oldaxis        Uses original QBSP texture alignment algorithm\n");
  printf("   -bspleak        Creates a .POR file, used in the BSP editor for "
         "leaky maps\n");
  printf("   -oldleak        Create an old-style QBSP .PTS file (default is "
         "new style)\n");
  printf(
      "   -nopercent      Prevents output of percent completion information\n");
  printf("   -leakdist  [n]  Space between leakfile points (default 2)\n");
  printf(
      "   -subdivide [n]  Use different texture subdivision (default 240)\n");
  printf("   -wadpath <dir>  Search this directory for wad files\n");
  printf("   sourcefile      .MAP file to process\n");
  printf("   destfile        .BSP file to output\n");
  exit(1);
}


x86 assembly (clang, -O0):
<PrintOptions>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf11(%rip),%rdi
call   1030 <printf@plt>
lea    0xf19(%rip),%rdi
call   1030 <printf@plt>
lea    0xf34(%rip),%rdi
call   1030 <printf@plt>
lea    0xf32(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf7b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9e(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc6(%rip),%rdi
call   1030 <printf@plt>
lea    0xff5(%rip),%rdi
call   1030 <printf@plt>
lea    0x1035(%rip),%rdi
call   1030 <printf@plt>
lea    0x106f(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a7(%rip),%rdi
call   1030 <printf@plt>
lea    0x10de(%rip),%rdi
call   1030 <printf@plt>
lea    0x1121(%rip),%rdi
call   1030 <printf@plt>
lea    0x1163(%rip),%rdi
call   1030 <printf@plt>
lea    0x119d(%rip),%rdi
call   1030 <printf@plt>
lea    0x11cf(%rip),%rdi
call   1030 <printf@plt>
lea    0x1207(%rip),%rdi
call   1030 <printf@plt>
lea    0x1233(%rip),%rdi
call   1030 <printf@plt>
lea    0x1250(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<PrintOptions>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf13(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf34(%rip),%rdi
call   1030 <puts@plt>
lea    0xf31(%rip),%rdi
call   1030 <puts@plt>
lea    0xf58(%rip),%rdi
call   1030 <puts@plt>
lea    0xf78(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9a(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc1(%rip),%rdi
call   1030 <puts@plt>
lea    0xfef(%rip),%rdi
call   1030 <puts@plt>
lea    0x102e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1067(%rip),%rdi
call   1030 <puts@plt>
lea    0x109e(%rip),%rdi
call   1030 <puts@plt>
lea    0x10d4(%rip),%rdi
call   1030 <puts@plt>
lea    0x1116(%rip),%rdi
call   1030 <puts@plt>
lea    0x1157(%rip),%rdi
call   1030 <puts@plt>
lea    0x1190(%rip),%rdi
call   1030 <puts@plt>
lea    0x11c1(%rip),%rdi
call   1030 <puts@plt>
lea    0x11f8(%rip),%rdi
call   1030 <puts@plt>
lea    0x1223(%rip),%rdi
call   1030 <puts@plt>
lea    0x123f(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [72 x i8] c"QBSP performs geometric level processing of Quake .MAP files to create\0A\00"
@.str.1 = [20 x i8] c"Quake .BSP files.\0A\0A\00"
@.str.2 = [39 x i8] c"qbsp [options] sourcefile [destfile]\0A\0A\00"
@.str.3 = [10 x i8] c"Options:\0A\00"
@.str.4 = [52 x i8] c" -nofill Doesn't perform outside filling\0A\00"
@.str.5 = [45 x i8] c" -noclip Doesn't build clip hulls\0A\00"
@.str.6 = [47 x i8] c" -onlyents Only updates .MAP entities\0A\00"
@.str.7 = [52 x i8] c" -verbose Print out more .MAP information\0A\00"
@.str.8 = [59 x i8] c" -noverbose Print out almost no information at all\0A\00"
@.str.9 = [76 x i8] c" -splitspecial Doesn't combine sky and water faces into one large face\0A\00"
@.str.10 = [70 x i8] c" -transwater Computes portal information for transparent water\0A\00"
@.str.11 = [68 x i8] c" -transsky Computes portal information for transparent sky\0A\00"
@.str.12 = [67 x i8] c" -oldaxis Uses original QBSP texture alignment algorithm\0A\00"
@.str.13 = [79 x i8] c" -bspleak Creates a .POR file, used in the BSP editor for leaky maps\0A\00"
@.str.14 = [78 x i8] c" -oldleak Create an old-style QBSP .PTS file (default is new style)\0A\00"
@.str.15 = [70 x i8] c" -nopercent Prevents output of percent completion information\0A\00"
@.str.16 = [62 x i8] c" -leakdist [n] Space between leakfile points (default 2)\0A\00"
@.str.17 = [68 x i8] c" -subdivide [n] Use different texture subdivision (default 240)\0A\00"
@.str.18 = [56 x i8] c" -wadpath <dir> Search this directory for wad files\0A\00"
@.str.19 = [41 x i8] c" sourcefile .MAP file to process\0A\00"
@.str.20 = [40 x i8] c" destfile .BSP file to output\0A\00"
define void @PrintOptions() {
%1 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@str = [71 x i8] c"QBSP performs geometric level processing of Quake .MAP files to create\00"
@str.21 = [19 x i8] c"Quake .BSP files.\0A\00"
@str.22 = [38 x i8] c"qbsp [options] sourcefile [destfile]\0A\00"
@str.23 = [9 x i8] c"Options:\00"
@str.24 = [51 x i8] c" -nofill Doesn't perform outside filling\00"
@str.25 = [44 x i8] c" -noclip Doesn't build clip hulls\00"
@str.26 = [46 x i8] c" -onlyents Only updates .MAP entities\00"
@str.27 = [51 x i8] c" -verbose Print out more .MAP information\00"
@str.28 = [58 x i8] c" -noverbose Print out almost no information at all\00"
@str.29 = [75 x i8] c" -splitspecial Doesn't combine sky and water faces into one large face\00"
@str.30 = [69 x i8] c" -transwater Computes portal information for transparent water\00"
@str.31 = [67 x i8] c" -transsky Computes portal information for transparent sky\00"
@str.32 = [66 x i8] c" -oldaxis Uses original QBSP texture alignment algorithm\00"
@str.33 = [78 x i8] c" -bspleak Creates a .POR file, used in the BSP editor for leaky maps\00"
@str.34 = [77 x i8] c" -oldleak Create an old-style QBSP .PTS file (default is new style)\00"
@str.35 = [69 x i8] c" -nopercent Prevents output of percent completion information\00"
@str.36 = [61 x i8] c" -leakdist [n] Space between leakfile points (default 2)\00"
@str.37 = [67 x i8] c" -subdivide [n] Use different texture subdivision (default 240)\00"
@str.38 = [55 x i8] c" -wadpath <dir> Search this directory for wad files\00"
@str.39 = [40 x i8] c" sourcefile .MAP file to process\00"
@str.40 = [39 x i8] c" destfile .BSP file to output\00"
define void @PrintOptions() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.21, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.22, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.23, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.24, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.25, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.26, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.27, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.28, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.29, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.30, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.31, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.32, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.33, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.34, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.35, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.36, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.37, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.38, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.39, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.40, i64 0, i64 0))
%22 = tail call i32 @exit(i32 1)
unreachable
}