#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 print_power_mode_usage(void) {
  printf("\nUsage : powermode [MODE] [SLEEP_PARAM=1 CTRL MIN_SLEEP MAX_SLEEP]");
  printf("\n                  [INACT_PARAM=2 INACTTO MIN_AWAKE MAX_AWAKE]");
  printf("\nOptions: MODE :     0 - disable power mode");
  printf("\n                    1 - periodic DTIM power save mode");
  printf("\n                    2 - inactivity based power save mode");
  printf("\n   SLEEP_PARAM:");
  printf("\n        CTRL:  0 - disable CTS2Self protection frame Tx before PS");
  printf("\n               1 - enable CTS2Self protection frame Tx before PS");
  printf("\n        MIN_SLEEP: Minimum sleep duration in microseconds");
  printf("\n        MAX_SLEEP: Maximum sleep duration in miroseconds");
  printf("\n   INACT_PARAM: (only for inactivity based power save mode)");
  printf("\n          INACTTO: Inactivity timeout in miroseconds");
  printf("\n        MIN_AWAKE: Minimum awake duration in microseconds");
  printf("\n        MAX_AWAKE: Maximum awake duration in microseconds");
  printf("\n          empty - get current power mode\n");
  return;
}


x86 assembly (clang, -O0):
<print_power_mode_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9a(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc8(%rip),%rdi
call   1030 <printf@plt>
lea    0xfcd(%rip),%rdi
call   1030 <printf@plt>
lea    0x1004(%rip),%rdi
call   1030 <printf@plt>
lea    0x103a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1069(%rip),%rdi
call   1030 <printf@plt>
lea    0x1097(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c8(%rip),%rdi
call   1030 <printf@plt>
lea    0x10f2(%rip),%rdi
call   1030 <printf@plt>
lea    0x1121(%rip),%rdi
call   1030 <printf@plt>
lea    0x1150(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_power_mode_usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <printf@plt>
lea    0xf0f(%rip),%rdi
call   1040 <printf@plt>
lea    0xf42(%rip),%rdi
call   1040 <printf@plt>
lea    0xf62(%rip),%rdi
call   1040 <printf@plt>
lea    0xf8d(%rip),%rdi
call   1040 <printf@plt>
lea    0xfbb(%rip),%rdi
call   1040 <printf@plt>
lea    0xfc0(%rip),%rdi
call   1040 <printf@plt>
lea    0xff7(%rip),%rdi
call   1040 <printf@plt>
lea    0x102d(%rip),%rdi
call   1040 <printf@plt>
lea    0x105c(%rip),%rdi
call   1040 <printf@plt>
lea    0x108a(%rip),%rdi
call   1040 <printf@plt>
lea    0x10bb(%rip),%rdi
call   1040 <printf@plt>
lea    0x10e5(%rip),%rdi
call   1040 <printf@plt>
lea    0x1114(%rip),%rdi
call   1040 <printf@plt>
lea    0x1143(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [67 x i8] c"\0AUsage : powermode [MODE] [SLEEP_PARAM=1 CTRL MIN_SLEEP MAX_SLEEP]\00"
@.str.1 = [63 x i8] c"\0A [INACT_PARAM=2 INACTTO MIN_AWAKE MAX_AWAKE]\00"
@.str.2 = [44 x i8] c"\0AOptions: MODE : 0 - disable power mode\00"
@.str.3 = [55 x i8] c"\0A 1 - periodic DTIM power save mode\00"
@.str.4 = [58 x i8] c"\0A 2 - inactivity based power save mode\00"
@.str.5 = [17 x i8] c"\0A SLEEP_PARAM:\00"
@.str.6 = [67 x i8] c"\0A CTRL: 0 - disable CTS2Self protection frame Tx before PS\00"
@.str.7 = [66 x i8] c"\0A 1 - enable CTS2Self protection frame Tx before PS\00"
@.str.8 = [59 x i8] c"\0A MIN_SLEEP: Minimum sleep duration in microseconds\00"
@.str.9 = [58 x i8] c"\0A MAX_SLEEP: Maximum sleep duration in miroseconds\00"
@.str.10 = [61 x i8] c"\0A INACT_PARAM: (only for inactivity based power save mode)\00"
@.str.11 = [54 x i8] c"\0A INACTTO: Inactivity timeout in miroseconds\00"
@.str.12 = [59 x i8] c"\0A MIN_AWAKE: Minimum awake duration in microseconds\00"
@.str.13 = [59 x i8] c"\0A MAX_AWAKE: Maximum awake duration in microseconds\00"
@.str.14 = [43 x i8] c"\0A empty - get current power mode\0A\00"
define void @print_power_mode_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 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 ([58 x i8], [58 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.14, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [67 x i8] c"\0AUsage : powermode [MODE] [SLEEP_PARAM=1 CTRL MIN_SLEEP MAX_SLEEP]\00"
@.str.1 = [63 x i8] c"\0A [INACT_PARAM=2 INACTTO MIN_AWAKE MAX_AWAKE]\00"
@.str.2 = [44 x i8] c"\0AOptions: MODE : 0 - disable power mode\00"
@.str.3 = [55 x i8] c"\0A 1 - periodic DTIM power save mode\00"
@.str.4 = [58 x i8] c"\0A 2 - inactivity based power save mode\00"
@.str.5 = [17 x i8] c"\0A SLEEP_PARAM:\00"
@.str.6 = [67 x i8] c"\0A CTRL: 0 - disable CTS2Self protection frame Tx before PS\00"
@.str.7 = [66 x i8] c"\0A 1 - enable CTS2Self protection frame Tx before PS\00"
@.str.8 = [59 x i8] c"\0A MIN_SLEEP: Minimum sleep duration in microseconds\00"
@.str.9 = [58 x i8] c"\0A MAX_SLEEP: Maximum sleep duration in miroseconds\00"
@.str.10 = [61 x i8] c"\0A INACT_PARAM: (only for inactivity based power save mode)\00"
@.str.11 = [54 x i8] c"\0A INACTTO: Inactivity timeout in miroseconds\00"
@.str.12 = [59 x i8] c"\0A MIN_AWAKE: Minimum awake duration in microseconds\00"
@.str.13 = [59 x i8] c"\0A MAX_AWAKE: Maximum awake duration in microseconds\00"
@str = [42 x i8] c"\0A empty - get current power mode\00"
define void @print_power_mode_usage() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.12, i64 0, i64 0))
%14 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.13, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str, i64 0, i64 0))
ret void
}