#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_usage() {
  printf("\n Usage : nct5104dpin [ --get|--set ] [--pin ] --val < 0|1 > --dir "
         "<direction_for_gpio> \n");
  printf("\n --pin               : Takes decimal value for pin \n");
  printf("\n --val               : Takes value to be written for pin [0|1]\n");
  printf("\n --dir               : Direction of GPIO ( 0 => OUT ; 1 => IN) \n");
  printf("\n\n");
  printf("\n Examples:\n");
  printf("\n * Get a pin value: nct5104dpin --pin 7 \n");
  printf("\n * Get a pin value: nct5104dpin --get --pin 14 \n");
  printf("\n * Set a pin value: nct5104dpin --set --pin 14 --val 1 \n");
  printf("\n * Set a pin direction: nct5104dpin --set --pin 14 --dir out \n");
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf33(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf92(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc8(%rip),%rdi
call   1030 <printf@plt>
lea    0xfbf(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc0(%rip),%rdi
call   1030 <printf@plt>
lea    0xfdf(%rip),%rdi
call   1030 <printf@plt>
lea    0x1005(%rip),%rdi
call   1030 <printf@plt>
lea    0x1033(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf35(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf92(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc7(%rip),%rdi
call   1030 <puts@plt>
lea    0xfbd(%rip),%rdi
call   1030 <puts@plt>
lea    0xfbd(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdb(%rip),%rdi
call   1030 <puts@plt>
lea    0x1000(%rip),%rdi
call   1030 <puts@plt>
lea    0x102d(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [90 x i8] c"\0A Usage : nct5104dpin [ --get|--set ] [--pin ] --val < 0|1 > --dir <direction_for_gpio> \0A\00"
@.str.1 = [54 x i8] c"\0A --pin : Takes decimal value for pin \0A\00"
@.str.2 = [65 x i8] c"\0A --val : Takes value to be written for pin [0|1]\0A\00"
@.str.3 = [66 x i8] c"\0A --dir : Direction of GPIO ( 0 => OUT ; 1 => IN) \0A\00"
@.str.4 = [3 x i8] c"\0A\0A\00"
@.str.5 = [13 x i8] c"\0A Examples:\0A\00"
@.str.6 = [43 x i8] c"\0A * Get a pin value: nct5104dpin --pin 7 \0A\00"
@.str.7 = [50 x i8] c"\0A * Get a pin value: nct5104dpin --get --pin 14 \0A\00"
@.str.8 = [58 x i8] c"\0A * Set a pin value: nct5104dpin --set --pin 14 --val 1 \0A\00"
@.str.9 = [64 x i8] c"\0A * Set a pin direction: nct5104dpin --set --pin 14 --dir out \0A\00"
define void @print_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.9, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [89 x i8] c"\0A Usage : nct5104dpin [ --get|--set ] [--pin ] --val < 0|1 > --dir <direction_for_gpio> \00"
@str.10 = [53 x i8] c"\0A --pin : Takes decimal value for pin \00"
@str.11 = [64 x i8] c"\0A --val : Takes value to be written for pin [0|1]\00"
@str.12 = [65 x i8] c"\0A --dir : Direction of GPIO ( 0 => OUT ; 1 => IN) \00"
@str.13 = [2 x i8] c"\0A\00"
@str.14 = [12 x i8] c"\0A Examples:\00"
@str.15 = [42 x i8] c"\0A * Get a pin value: nct5104dpin --pin 7 \00"
@str.16 = [49 x i8] c"\0A * Get a pin value: nct5104dpin --get --pin 14 \00"
@str.17 = [57 x i8] c"\0A * Set a pin value: nct5104dpin --set --pin 14 --val 1 \00"
@str.18 = [63 x i8] c"\0A * Set a pin direction: nct5104dpin --set --pin 14 --dir out \00"
define void @print_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([89 x i8], [89 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.10, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.11, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.12, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.13, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.14, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.15, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.16, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.17, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.18, i64 0, i64 0))
ret void
}