#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 usage(void) {
  printf("Intel(R) Speed Select Technology\n");
  printf("\nUsage:\n");
  printf("intel-speed-select [OPTIONS] FEATURE COMMAND COMMAND_ARGUMENTS\n");
  printf("\nUse this tool to enumerate and control the Intel Speed Select "
         "Technology features,\n");
  printf("\nFEATURE : [perf-profile|base-freq|turbo-freq|core-power]\n");
  printf("\nFor help on each feature, use -h|--help\n");
  printf("\tFor example:  intel-speed-select perf-profile -h\n");
  printf(
      "\nFor additional help on each command for a feature, use --h|--help\n");
  printf(
      "\tFor example:  intel-speed-select perf-profile get-lock-status -h\n");
  printf("\t\t This will print help for the command \"get-lock-status\" for "
         "the feature \"perf-profile\"\n");
  printf("\nOPTIONS\n");
  printf("\t[-c|--cpu] : logical cpu number\n");
  printf("\t\tDefault: Die scoped for all dies in the system with multiple "
         "dies/package\n");
  printf("\t\t\t Or Package scoped for all Packages when each package contains "
         "one die\n");
  printf("\t[-d|--debug] : Debug mode\n");
  printf("\t[-h|--help] : Print help\n");
  printf("\t[-i|--info] : Print platform information\n");
  printf("\t[-o|--out] : Output file\n");
  printf("\t\t\tDefault : stderr\n");
  printf("\t[-f|--format] : output format [json|text]. Default: text\n");
  printf("\t[-v|--version] : Print version\n");
  printf("\nResult format\n");
  printf("\tResult display uses a common format for each command:\n");
  printf("\tResults are formatted in text/JSON with\n");
  printf("\t\tPackage, Die, CPU, and command specific results.\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf65(%rip),%rdi
call   1030 <printf@plt>
lea    0xf94(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb2(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd9(%rip),%rdi
call   1030 <printf@plt>
lea    0x1011(%rip),%rdi
call   1030 <printf@plt>
lea    0x1048(%rip),%rdi
call   1030 <printf@plt>
lea    0x1096(%rip),%rdi
call   1030 <printf@plt>
lea    0x1094(%rip),%rdi
call   1030 <printf@plt>
lea    0x10aa(%rip),%rdi
call   1030 <printf@plt>
lea    0x10eb(%rip),%rdi
call   1030 <printf@plt>
lea    0x112a(%rip),%rdi
call   1030 <printf@plt>
lea    0x113a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1149(%rip),%rdi
call   1030 <printf@plt>
lea    0x1168(%rip),%rdi
call   1030 <printf@plt>
lea    0x1177(%rip),%rdi
call   1030 <printf@plt>
lea    0x1180(%rip),%rdi
call   1030 <printf@plt>
lea    0x11af(%rip),%rdi
call   1030 <printf@plt>
lea    0x11c4(%rip),%rdi
call   1030 <printf@plt>
lea    0x11c8(%rip),%rdi
call   1030 <printf@plt>
lea    0x11f4(%rip),%rdi
call   1030 <printf@plt>
lea    0x1212(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xeed(%rip),%rdi
call   1030 <puts@plt>
lea    0xee9(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf64(%rip),%rdi
call   1030 <puts@plt>
lea    0xf92(%rip),%rdi
call   1030 <puts@plt>
lea    0xfaf(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd5(%rip),%rdi
call   1030 <puts@plt>
lea    0x100c(%rip),%rdi
call   1030 <puts@plt>
lea    0x1042(%rip),%rdi
call   1030 <puts@plt>
lea    0x108f(%rip),%rdi
call   1030 <puts@plt>
lea    0x108c(%rip),%rdi
call   1030 <puts@plt>
lea    0x10a1(%rip),%rdi
call   1030 <puts@plt>
lea    0x10e1(%rip),%rdi
call   1030 <puts@plt>
lea    0x111f(%rip),%rdi
call   1030 <puts@plt>
lea    0x112e(%rip),%rdi
call   1030 <puts@plt>
lea    0x113c(%rip),%rdi
call   1030 <puts@plt>
lea    0x115a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1168(%rip),%rdi
call   1030 <puts@plt>
lea    0x1170(%rip),%rdi
call   1030 <puts@plt>
lea    0x119e(%rip),%rdi
call   1030 <puts@plt>
lea    0x11b2(%rip),%rdi
call   1030 <puts@plt>
lea    0x11b5(%rip),%rdi
call   1030 <puts@plt>
lea    0x11e0(%rip),%rdi
call   1030 <puts@plt>
lea    0x11fd(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [34 x i8] c"Intel(R) Speed Select Technology\0A\00"
@.str.1 = [9 x i8] c"\0AUsage:\0A\00"
@.str.2 = [64 x i8] c"intel-speed-select [OPTIONS] FEATURE COMMAND COMMAND_ARGUMENTS\0A\00"
@.str.3 = [85 x i8] c"\0AUse this tool to enumerate and control the Intel Speed Select Technology features,\0A\00"
@.str.4 = [59 x i8] c"\0AFEATURE : [perf-profile|base-freq|turbo-freq|core-power]\0A\00"
@.str.5 = [42 x i8] c"\0AFor help on each feature, use -h|--help\0A\00"
@.str.6 = [51 x i8] c"\09For example: intel-speed-select perf-profile -h\0A\00"
@.str.7 = [68 x i8] c"\0AFor additional help on each command for a feature, use --h|--help\0A\00"
@.str.8 = [67 x i8] c"\09For example: intel-speed-select perf-profile get-lock-status -h\0A\00"
@.str.9 = [90 x i8] c"\09\09 This will print help for the command \22get-lock-status\22 for the feature \22perf-profile\22\0A\00"
@.str.10 = [10 x i8] c"\0AOPTIONS\0A\00"
@.str.11 = [34 x i8] c"\09[-c|--cpu] : logical cpu number\0A\00"
@.str.12 = [77 x i8] c"\09\09Default: Die scoped for all dies in the system with multiple dies/package\0A\00"
@.str.13 = [75 x i8] c"\09\09\09 Or Package scoped for all Packages when each package contains one die\0A\00"
@.str.14 = [28 x i8] c"\09[-d|--debug] : Debug mode\0A\00"
@.str.15 = [27 x i8] c"\09[-h|--help] : Print help\0A\00"
@.str.16 = [43 x i8] c"\09[-i|--info] : Print platform information\0A\00"
@.str.17 = [27 x i8] c"\09[-o|--out] : Output file\0A\00"
@.str.18 = [21 x i8] c"\09\09\09Default : stderr\0A\00"
@.str.19 = [59 x i8] c"\09[-f|--format] : output format [json|text]. Default: text\0A\00"
@.str.20 = [33 x i8] c"\09[-v|--version] : Print version\0A\00"
@.str.21 = [16 x i8] c"\0AResult format\0A\00"
@.str.22 = [56 x i8] c"\09Result display uses a common format for each command:\0A\00"
@.str.23 = [42 x i8] c"\09Results are formatted in text/JSON with\0A\00"
@.str.24 = [52 x i8] c"\09\09Package, Die, CPU, and command specific results.\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.23, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.24, i64 0, i64 0))
%26 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@str = [33 x i8] c"Intel(R) Speed Select Technology\00"
@str.25 = [8 x i8] c"\0AUsage:\00"
@str.26 = [63 x i8] c"intel-speed-select [OPTIONS] FEATURE COMMAND COMMAND_ARGUMENTS\00"
@str.27 = [84 x i8] c"\0AUse this tool to enumerate and control the Intel Speed Select Technology features,\00"
@str.28 = [58 x i8] c"\0AFEATURE : [perf-profile|base-freq|turbo-freq|core-power]\00"
@str.29 = [41 x i8] c"\0AFor help on each feature, use -h|--help\00"
@str.30 = [50 x i8] c"\09For example: intel-speed-select perf-profile -h\00"
@str.31 = [67 x i8] c"\0AFor additional help on each command for a feature, use --h|--help\00"
@str.32 = [66 x i8] c"\09For example: intel-speed-select perf-profile get-lock-status -h\00"
@str.33 = [89 x i8] c"\09\09 This will print help for the command \22get-lock-status\22 for the feature \22perf-profile\22\00"
@str.34 = [9 x i8] c"\0AOPTIONS\00"
@str.35 = [33 x i8] c"\09[-c|--cpu] : logical cpu number\00"
@str.36 = [76 x i8] c"\09\09Default: Die scoped for all dies in the system with multiple dies/package\00"
@str.37 = [74 x i8] c"\09\09\09 Or Package scoped for all Packages when each package contains one die\00"
@str.38 = [27 x i8] c"\09[-d|--debug] : Debug mode\00"
@str.39 = [26 x i8] c"\09[-h|--help] : Print help\00"
@str.40 = [42 x i8] c"\09[-i|--info] : Print platform information\00"
@str.41 = [26 x i8] c"\09[-o|--out] : Output file\00"
@str.42 = [20 x i8] c"\09\09\09Default : stderr\00"
@str.43 = [58 x i8] c"\09[-f|--format] : output format [json|text]. Default: text\00"
@str.44 = [32 x i8] c"\09[-v|--version] : Print version\00"
@str.45 = [15 x i8] c"\0AResult format\00"
@str.46 = [55 x i8] c"\09Result display uses a common format for each command:\00"
@str.47 = [41 x i8] c"\09Results are formatted in text/JSON with\00"
@str.48 = [51 x i8] c"\09\09Package, Die, CPU, and command specific results.\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.25, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.26, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([84 x i8], [84 x i8]* @str.27, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.28, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.29, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.30, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.31, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.32, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([89 x i8], [89 x i8]* @str.33, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.34, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.35, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.36, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.37, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.38, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.39, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.40, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.41, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.42, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.43, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.44, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.45, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.46, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.47, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.48, i64 0, i64 0))
%26 = tail call i32 @exit(i32 1)
unreachable
}