#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*/ printf(char *);
void help() {
  printf("Warning:\n");
  printf("  USE THIS PROGRAM AT YOU OWN RISK. IT MAY DAMAGE YOUR HARDWARE.\n");
  printf("\n");
  printf("Usage: \n");
  printf(
      "  k15ctl -h                                              This help\n");
  printf("  k15ctl -cpu <cpu>[-<cpun>]                             Print a lot "
         "of information about CPU(s) <cpu>(-<cpun>)\n");
  printf("  k15ctl -cpu <cpu>[-<cpun>] -p <p-state> [parameters]   Configure "
         "the P-State for CPU(s) <cpu>(-<cpun>), see below\n");
  printf("  k15ctl -cpu <cpu>[-<cpun>] -b <bp-state> [parameters]  Configure "
         "the Boosted P-State for CPU(s) <cpu>(-<cpun>), see below\n");
  printf("  k15ctl -nb <nb>[-<nbn>] -np <np-state> [parameters]    Configure "
         "the P-State for Northbridge(s) <nb>(-<nbn>), see below\n");
  printf("\n");
  printf("Global Parameter:\n");
  printf("  -dry-run         Shows the resulting P-State table without "
         "modifying any register.\n");
  printf("\n");
  printf("Parameters for the P-State configuration:\n");
  printf("  -cf <CpuFid>     CPU Frequency ID\n");
  printf("  -cd <CpuDid>     CPU Divisor ID\n");
  printf("  -cv <CpuVid>     CPU Voltage ID\n");
  printf("  -cnp <NbPstate>  Associated Northbridge P-State\n");
  printf("  -pd <mW>         Power dissipation in mW\n");
  printf("  -en <Enable>     Enable or Disable P-State\n");
  printf("\n");
  printf("Parameters for the Northbridge P-State configuration:\n");
  printf("  -nf <NbFid>      Northbridge Frequency ID\n");
  printf("  -nd <NbDid>      Northbridge Divisor ID\n");
  printf("  -nv <NbVid>      Northbridge Voltage ID\n");
  printf("  -nen <Enable>    Enable or Disable Northbridge P-State\n");
  printf("\n");
  printf("Examples: \n");
  printf("  k15ctl -cpu 0-3                                         Print a "
         "lot of information about cores 0-3\n");
  printf(
      "  k15ctl -cpu 0-3 -p 0 -nv 46 -cv 22 -cd 0 -cf 16         Set NbVid=46, "
      "CpuVid=22, CpuDiD=0, CpuFid=16 for CPUs 0-3 and P-State 0\n");
  printf("  k15ctl -cpu 0-3 -b 1 -cf 22 -nb 0 -np 0 -nf 22 -dry-run Shows the "
         "resulting table for boosted P-State 0 on CPUs 0-3 with CpuFid=22 and "
         "Northbridge P-State 0 on Northbridge 0 with NbFid=22\n");
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee3(%rip),%rdi
call   1030 <printf@plt>
lea    0xf20(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf42(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa7(%rip),%rdi
call   1030 <printf@plt>
lea    0x1010(%rip),%rdi
call   1030 <printf@plt>
lea    0x1081(%rip),%rdi
call   1030 <printf@plt>
lea    0xecc(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e4(%rip),%rdi
call   1030 <printf@plt>
lea    0x10eb(%rip),%rdi
call   1030 <printf@plt>
lea    0xea8(%rip),%rdi
call   1030 <printf@plt>
lea    0x1129(%rip),%rdi
call   1030 <printf@plt>
lea    0x1148(%rip),%rdi
call   1030 <printf@plt>
lea    0x1161(%rip),%rdi
call   1030 <printf@plt>
lea    0x1178(%rip),%rdi
call   1030 <printf@plt>
lea    0x118f(%rip),%rdi
call   1030 <printf@plt>
lea    0x11b6(%rip),%rdi
call   1030 <printf@plt>
lea    0x11d6(%rip),%rdi
call   1030 <printf@plt>
lea    0xe48(%rip),%rdi
call   1030 <printf@plt>
lea    0x11ec(%rip),%rdi
call   1030 <printf@plt>
lea    0x1217(%rip),%rdi
call   1030 <printf@plt>
lea    0x1238(%rip),%rdi
call   1030 <printf@plt>
lea    0x1257(%rip),%rdi
call   1030 <printf@plt>
lea    0x1276(%rip),%rdi
call   1030 <printf@plt>
lea    0xe00(%rip),%rdi
call   1030 <printf@plt>
lea    0x1298(%rip),%rdi
call   1030 <printf@plt>
lea    0x1298(%rip),%rdi
call   1030 <printf@plt>
lea    0x12f2(%rip),%rdi
call   1030 <printf@plt>
lea    0x1369(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xed5(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf00(%rip),%rdi
call   1040 <puts@plt>
lea    0xefc(%rip),%rdi
call   1040 <puts@plt>
lea    0xf33(%rip),%rdi
call   1040 <puts@plt>
lea    0xf97(%rip),%rdi
call   1040 <puts@plt>
lea    0xfff(%rip),%rdi
call   1040 <puts@plt>
lea    0x106f(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x10d3(%rip),%rdi
call   1040 <puts@plt>
lea    0x10d9(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1118(%rip),%rdi
call   1040 <puts@plt>
lea    0x1136(%rip),%rdi
call   1040 <puts@plt>
lea    0x114e(%rip),%rdi
call   1040 <puts@plt>
lea    0x1164(%rip),%rdi
call   1040 <puts@plt>
lea    0x117a(%rip),%rdi
call   1040 <puts@plt>
lea    0x11a0(%rip),%rdi
call   1040 <puts@plt>
lea    0x11bf(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x11d6(%rip),%rdi
call   1040 <puts@plt>
lea    0x1200(%rip),%rdi
call   1040 <puts@plt>
lea    0x1220(%rip),%rdi
call   1040 <puts@plt>
lea    0x123e(%rip),%rdi
call   1040 <puts@plt>
lea    0x125c(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x127f(%rip),%rdi
call   1040 <puts@plt>
lea    0x127e(%rip),%rdi
call   1040 <puts@plt>
lea    0x12d7(%rip),%rdi
call   1040 <puts@plt>
lea    0x134d(%rip),%rdi
pop    %rax
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"Warning:\0A\00"
@.str.1 = [66 x i8] c" USE THIS PROGRAM AT YOU OWN RISK. IT MAY DAMAGE YOUR HARDWARE.\0A\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [9 x i8] c"Usage: \0A\00"
@.str.4 = [68 x i8] c" k15ctl -h This help\0A\00"
@.str.5 = [113 x i8] c" k15ctl -cpu <cpu>[-<cpun>] Print a lot of information about CPU(s) <cpu>(-<cpun>)\0A\00"
@.str.6 = [117 x i8] c" k15ctl -cpu <cpu>[-<cpun>] -p <p-state> [parameters] Configure the P-State for CPU(s) <cpu>(-<cpun>), see below\0A\00"
@.str.7 = [125 x i8] c" k15ctl -cpu <cpu>[-<cpun>] -b <bp-state> [parameters] Configure the Boosted P-State for CPU(s) <cpu>(-<cpun>), see below\0A\00"
@.str.8 = [123 x i8] c" k15ctl -nb <nb>[-<nbn>] -np <np-state> [parameters] Configure the P-State for Northbridge(s) <nb>(-<nbn>), see below\0A\00"
@.str.9 = [19 x i8] c"Global Parameter:\0A\00"
@.str.10 = [86 x i8] c" -dry-run Shows the resulting P-State table without modifying any register.\0A\00"
@.str.11 = [43 x i8] c"Parameters for the P-State configuration:\0A\00"
@.str.12 = [37 x i8] c" -cf <CpuFid> CPU Frequency ID\0A\00"
@.str.13 = [35 x i8] c" -cd <CpuDid> CPU Divisor ID\0A\00"
@.str.14 = [35 x i8] c" -cv <CpuVid> CPU Voltage ID\0A\00"
@.str.15 = [51 x i8] c" -cnp <NbPstate> Associated Northbridge P-State\0A\00"
@.str.16 = [44 x i8] c" -pd <mW> Power dissipation in mW\0A\00"
@.str.17 = [46 x i8] c" -en <Enable> Enable or Disable P-State\0A\00"
@.str.18 = [55 x i8] c"Parameters for the Northbridge P-State configuration:\0A\00"
@.str.19 = [45 x i8] c" -nf <NbFid> Northbridge Frequency ID\0A\00"
@.str.20 = [43 x i8] c" -nd <NbDid> Northbridge Divisor ID\0A\00"
@.str.21 = [43 x i8] c" -nv <NbVid> Northbridge Voltage ID\0A\00"
@.str.22 = [58 x i8] c" -nen <Enable> Enable or Disable Northbridge P-State\0A\00"
@.str.23 = [12 x i8] c"Examples: \0A\00"
@.str.24 = [102 x i8] c" k15ctl -cpu 0-3 Print a lot of information about cores 0-3\0A\00"
@.str.25 = [131 x i8] c" k15ctl -cpu 0-3 -p 0 -nv 46 -cv 22 -cd 0 -cf 16 Set NbVid=46, CpuVid=22, CpuDiD=0, CpuFid=16 for CPUs 0-3 and P-State 0\0A\00"
@.str.26 = [191 x i8] c" k15ctl -cpu 0-3 -b 1 -cf 22 -nb 0 -np 0 -nf 22 -dry-run Shows the resulting table for boosted P-State 0 on CPUs 0-3 with CpuFid=22 and Northbridge P-State 0 on Northbridge 0 with NbFid=22\0A\00"
define void @help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([117 x i8], [117 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([125 x i8], [125 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([123 x i8], [123 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.11, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.13, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.15, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.16, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.17, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.18, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.19, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.20, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.21, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.22, i64 0, i64 0))
%27 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%28 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.23, i64 0, i64 0))
%29 = call i32 @printf(i8* getelementptr inbounds ([102 x i8], [102 x i8]* @.str.24, i64 0, i64 0))
%30 = call i32 @printf(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.25, i64 0, i64 0))
%31 = call i32 @printf(i8* getelementptr inbounds ([191 x i8], [191 x i8]* @.str.26, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [9 x i8] c"Warning:\00"
@str.27 = [65 x i8] c" USE THIS PROGRAM AT YOU OWN RISK. IT MAY DAMAGE YOUR HARDWARE.\00"
@str.28 = [8 x i8] c"Usage: \00"
@str.29 = [67 x i8] c" k15ctl -h This help\00"
@str.30 = [112 x i8] c" k15ctl -cpu <cpu>[-<cpun>] Print a lot of information about CPU(s) <cpu>(-<cpun>)\00"
@str.31 = [116 x i8] c" k15ctl -cpu <cpu>[-<cpun>] -p <p-state> [parameters] Configure the P-State for CPU(s) <cpu>(-<cpun>), see below\00"
@str.32 = [124 x i8] c" k15ctl -cpu <cpu>[-<cpun>] -b <bp-state> [parameters] Configure the Boosted P-State for CPU(s) <cpu>(-<cpun>), see below\00"
@str.33 = [122 x i8] c" k15ctl -nb <nb>[-<nbn>] -np <np-state> [parameters] Configure the P-State for Northbridge(s) <nb>(-<nbn>), see below\00"
@str.34 = [18 x i8] c"Global Parameter:\00"
@str.35 = [85 x i8] c" -dry-run Shows the resulting P-State table without modifying any register.\00"
@str.36 = [42 x i8] c"Parameters for the P-State configuration:\00"
@str.37 = [36 x i8] c" -cf <CpuFid> CPU Frequency ID\00"
@str.38 = [34 x i8] c" -cd <CpuDid> CPU Divisor ID\00"
@str.39 = [34 x i8] c" -cv <CpuVid> CPU Voltage ID\00"
@str.40 = [50 x i8] c" -cnp <NbPstate> Associated Northbridge P-State\00"
@str.41 = [43 x i8] c" -pd <mW> Power dissipation in mW\00"
@str.42 = [45 x i8] c" -en <Enable> Enable or Disable P-State\00"
@str.43 = [54 x i8] c"Parameters for the Northbridge P-State configuration:\00"
@str.44 = [44 x i8] c" -nf <NbFid> Northbridge Frequency ID\00"
@str.45 = [42 x i8] c" -nd <NbDid> Northbridge Divisor ID\00"
@str.46 = [42 x i8] c" -nv <NbVid> Northbridge Voltage ID\00"
@str.47 = [57 x i8] c" -nen <Enable> Enable or Disable Northbridge P-State\00"
@str.48 = [11 x i8] c"Examples: \00"
@str.49 = [101 x i8] c" k15ctl -cpu 0-3 Print a lot of information about cores 0-3\00"
@str.50 = [130 x i8] c" k15ctl -cpu 0-3 -p 0 -nv 46 -cv 22 -cd 0 -cf 16 Set NbVid=46, CpuVid=22, CpuDiD=0, CpuFid=16 for CPUs 0-3 and P-State 0\00"
@str.51 = [190 x i8] c" k15ctl -cpu 0-3 -b 1 -cf 22 -nb 0 -np 0 -nf 22 -dry-run Shows the resulting table for boosted P-State 0 on CPUs 0-3 with CpuFid=22 and Northbridge P-State 0 on Northbridge 0 with NbFid=22\00"
define void @help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.27, i64 0, i64 0))
%3 = tail call i32 @putchar(i32 10)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.28, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.29, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([112 x i8], [112 x i8]* @str.30, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([116 x i8], [116 x i8]* @str.31, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([124 x i8], [124 x i8]* @str.32, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([122 x i8], [122 x i8]* @str.33, i64 0, i64 0))
%10 = tail call i32 @putchar(i32 10)
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.34, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str.35, i64 0, i64 0))
%13 = tail call i32 @putchar(i32 10)
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.36, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.37, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.38, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.39, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.40, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.41, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.42, i64 0, i64 0))
%21 = tail call i32 @putchar(i32 10)
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.43, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.44, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.45, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.46, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.47, i64 0, i64 0))
%27 = tail call i32 @putchar(i32 10)
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.48, i64 0, i64 0))
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([101 x i8], [101 x i8]* @str.49, i64 0, i64 0))
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([130 x i8], [130 x i8]* @str.50, i64 0, i64 0))
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([190 x i8], [190 x i8]* @str.51, i64 0, i64 0))
ret void
}