#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 */
unsigned int EXIT_SUCCESS;
int /*<<< orphan*/ exit(unsigned int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stderr;
void usage(unsigned status) {
  if (status != EXIT_SUCCESS)
    fprintf(stderr, "Try 'hdmi_switcher -help' for more"
                    " information.\n");
  else {
    printf("Usage: hdmi_switcher OPTIONS \n");
    printf("\n"
           "-r    Receiver mode                       \n"
           "-t    Tramsmitter mode                    \n"
           "                                          \n"
           "The string in ~/.config/hdmi_switcher/mode\n"
           "characterizes the work mode of program:   \n"
           "\"expand\" - two desktops                 \n"
           "\"switch\" - external desktop           \n\n"
           "Author: Edgar Kaziahmedov edos@linux.com  \n");
  }
  exit(status);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    0x2e93(%rip),%rcx
cmp    (%rcx),%eax
je     1167 <usage+0x37>
mov    0x2e8c(%rip),%rax
mov    (%rax),%edi
lea    0xea3(%rip),%rsi
call   1040 <fprintf@plt>
jmp    117f <usage+0x4f>
lea    0xec3(%rip),%rdi
call   1030 <printf@plt>
lea    0xed6(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %edi,%ebx
mov    0x2e9e(%rip),%rax
cmp    %edi,(%rax)
jne    115d <usage+0x2d>
lea    0xeec(%rip),%rdi
call   1030 <puts@plt>
lea    0xefe(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,%edi
call   1050 <exit@plt>
mov    0x2e7c(%rip),%rax
mov    (%rax),%edi
lea    0xe93(%rip),%rsi
call   1040 <fprintf@plt>
mov    %ebx,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@EXIT_SUCCESS = global i32 0
@stderr = global i32 0
@.str = [49 x i8] c"Try 'hdmi_switcher -help' for more information.\0A\00"
@.str.1 = [31 x i8] c"Usage: hdmi_switcher OPTIONS \0A\00"
@.str.2 = [341 x i8] c"\0A-r Receiver mode \0A-t Tramsmitter mode \0A \0AThe string in ~/.config/hdmi_switcher/mode\0Acharacterizes the work mode of program: \0A\22expand\22 - two desktops \0A\22switch\22 - external desktop \0A\0AAuthor: Edgar Kaziahmedov edos@linux.com \0A\00"
define void @usage(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* @EXIT_SUCCESS
%5 = icmp ne i32 %3, %4
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, i32* @stderr
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
br label %12
9: ; preds = %1
%10 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([341 x i8], [341 x i8]* @.str.2, i64 0, i64 0))
br label %12
12: ; preds = %9, %6
%13 = load i32, i32* %2
%14 = call i32 @exit(i32 %13)
unreachable
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
@stderr = global i32 0
@.str = [49 x i8] c"Try 'hdmi_switcher -help' for more information.\0A\00"
@str = [30 x i8] c"Usage: hdmi_switcher OPTIONS \00"
@str.3 = [340 x i8] c"\0A-r Receiver mode \0A-t Tramsmitter mode \0A \0AThe string in ~/.config/hdmi_switcher/mode\0Acharacterizes the work mode of program: \0A\22expand\22 - two desktops \0A\22switch\22 - external desktop \0A\0AAuthor: Edgar Kaziahmedov edos@linux.com \00"
define void @usage(i32 %0) {
%2 = load i32, i32* @EXIT_SUCCESS
%3 = icmp eq i32 %2, %0
br i1 %3, label %7, label %4
4: ; preds = %1
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
br label %10
7: ; preds = %1
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([340 x i8], [340 x i8]* @str.3, i64 0, i64 0))
br label %10
10: ; preds = %7, %4
%11 = tail call i32 @exit(i32 %0)
unreachable
}