#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*/ is_clx_n_platform();
int /*<<< orphan*/ printf(char *);
void isst_help(void) {
  printf("perf-profile:\tAn architectural mechanism that allows multiple "
         "optimized \n		performance profiles per system via static "
         "and/or dynamic\n		adjustment of core count, workload, "
         "Tjmax, and\n		TDP, etc.\n");
  printf("\nCommands : For feature=perf-profile\n");
  printf("\tinfo\n");
  if (!is_clx_n_platform()) {
    printf("\tget-lock-status\n");
    printf("\tget-config-levels\n");
    printf("\tget-config-version\n");
    printf("\tget-config-enabled\n");
    printf("\tget-config-current-level\n");
    printf("\tset-config-level\n");
  }
}


x86 assembly (clang, -O0):
<isst_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf8c(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa6(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <is_clx_n_platform@plt>
cmp    $0x0,%eax
jne    11a0 <isst_help+0x80>
lea    0xf91(%rip),%rdi
call   1030 <printf@plt>
lea    0xf97(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9f(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa8(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb1(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc0(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<isst_help>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8e(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa7(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <is_clx_n_platform@plt>
test   %eax,%eax
je     1152 <isst_help+0x32>
pop    %rax
ret
lea    0xf94(%rip),%rdi
call   1030 <puts@plt>
lea    0xf99(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa0(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa8(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb0(%rip),%rdi
call   1030 <puts@plt>
lea    0xfbe(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [195 x i8] c"perf-profile:\09An architectural mechanism that allows multiple optimized \0A\09\09performance profiles per system via static and/or dynamic\0A\09\09adjustment of core count, workload, Tjmax, and\0A\09\09TDP, etc.\0A\00"
@.str.1 = [38 x i8] c"\0ACommands : For feature=perf-profile\0A\00"
@.str.2 = [7 x i8] c"\09info\0A\00"
@.str.3 = [18 x i8] c"\09get-lock-status\0A\00"
@.str.4 = [20 x i8] c"\09get-config-levels\0A\00"
@.str.5 = [21 x i8] c"\09get-config-version\0A\00"
@.str.6 = [21 x i8] c"\09get-config-enabled\0A\00"
@.str.7 = [27 x i8] c"\09get-config-current-level\0A\00"
@.str.8 = [19 x i8] c"\09set-config-level\0A\00"
define void @isst_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([195 x i8], [195 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (...) @is_clx_n_platform()
%5 = icmp ne i32 %4, 0
br i1 %5, label %13, label %6
6: ; preds = %0
%7 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
br label %13
13: ; preds = %6, %0
ret void
}

LLVM IR (-O2):
@str = [194 x i8] c"perf-profile:\09An architectural mechanism that allows multiple optimized \0A\09\09performance profiles per system via static and/or dynamic\0A\09\09adjustment of core count, workload, Tjmax, and\0A\09\09TDP, etc.\00"
@str.9 = [37 x i8] c"\0ACommands : For feature=perf-profile\00"
@str.10 = [6 x i8] c"\09info\00"
@str.11 = [17 x i8] c"\09get-lock-status\00"
@str.12 = [19 x i8] c"\09get-config-levels\00"
@str.13 = [20 x i8] c"\09get-config-version\00"
@str.14 = [20 x i8] c"\09get-config-enabled\00"
@str.15 = [26 x i8] c"\09get-config-current-level\00"
@str.16 = [18 x i8] c"\09set-config-level\00"
define void @isst_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([194 x i8], [194 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.9, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.10, i64 0, i64 0))
%4 = tail call i32 (...) @is_clx_n_platform()
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %13
6: ; preds = %0
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.11, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.12, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.13, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.14, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.15, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.16, i64 0, i64 0))
br label %13
13: ; preds = %6, %0
ret void
}