#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*/ exit(int);
int /*<<< orphan*/ printf(char *);
void usage(void) {
  printf("usage: avivotool [options] [command]\n");
  printf("         --debug            - show a little debug info\n");
  printf("         --skip=1           - use the second radeon card\n");
  printf("         regs <set>         - show a listing of some random "
         "registers\n");
  printf("                              <set> restricts: all, core, mc, crtc1, "
         "cur1\n");
  printf("         regmatch <pattern> - show registers matching wildcard "
         "pattern\n");
  printf("         regset <pattern> <value> - set registers matching wildcard "
         "pattern\n");
  printf("         romtables <path>   - dumps the BIOS tables from either a "
         "given path\n");
  printf("                              or 'mmap' to get it from memory\n");
  printf("         output <output> <enable|disable> - turns the specified\n");
  printf("                                            output on or off\n");
  printf("         i2c-monitor        - do something\n");
  printf("         i2c-monitor <gpio_in> <gpio_out> - do something\n");
  exit(-1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xeef(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf49(%rip),%rdi
call   1030 <printf@plt>
lea    0xf84(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc3(%rip),%rdi
call   1030 <printf@plt>
lea    0xfff(%rip),%rdi
call   1030 <printf@plt>
lea    0x1040(%rip),%rdi
call   1030 <printf@plt>
lea    0x1082(%rip),%rdi
call   1030 <printf@plt>
lea    0x10b5(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ea(%rip),%rdi
call   1030 <printf@plt>
lea    0x111c(%rip),%rdi
call   1030 <printf@plt>
lea    0x113c(%rip),%rdi
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef1(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf49(%rip),%rdi
call   1030 <puts@plt>
lea    0xf83(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc1(%rip),%rdi
call   1030 <puts@plt>
lea    0xffc(%rip),%rdi
call   1030 <puts@plt>
lea    0x103c(%rip),%rdi
call   1030 <puts@plt>
lea    0x107d(%rip),%rdi
call   1030 <puts@plt>
lea    0x10af(%rip),%rdi
call   1030 <puts@plt>
lea    0x10e3(%rip),%rdi
call   1030 <puts@plt>
lea    0x1114(%rip),%rdi
call   1030 <puts@plt>
lea    0x1133(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [38 x i8] c"usage: avivotool [options] [command]\0A\00"
@.str.1 = [56 x i8] c" --debug - show a little debug info\0A\00"
@.str.2 = [58 x i8] c" --skip=1 - use the second radeon card\0A\00"
@.str.3 = [71 x i8] c" regs <set> - show a listing of some random registers\0A\00"
@.str.4 = [75 x i8] c" <set> restricts: all, core, mc, crtc1, cur1\0A\00"
@.str.5 = [72 x i8] c" regmatch <pattern> - show registers matching wildcard pattern\0A\00"
@.str.6 = [77 x i8] c" regset <pattern> <value> - set registers matching wildcard pattern\0A\00"
@.str.7 = [78 x i8] c" romtables <path> - dumps the BIOS tables from either a given path\0A\00"
@.str.8 = [63 x i8] c" or 'mmap' to get it from memory\0A\00"
@.str.9 = [65 x i8] c" output <output> <enable|disable> - turns the specified\0A\00"
@.str.10 = [62 x i8] c" output on or off\0A\00"
@.str.11 = [44 x i8] c" i2c-monitor - do something\0A\00"
@.str.12 = [58 x i8] c" i2c-monitor <gpio_in> <gpio_out> - do something\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @exit(i32 -1)
unreachable
}

LLVM IR (-O2):
@str = [37 x i8] c"usage: avivotool [options] [command]\00"
@str.13 = [55 x i8] c" --debug - show a little debug info\00"
@str.14 = [57 x i8] c" --skip=1 - use the second radeon card\00"
@str.15 = [70 x i8] c" regs <set> - show a listing of some random registers\00"
@str.16 = [74 x i8] c" <set> restricts: all, core, mc, crtc1, cur1\00"
@str.17 = [71 x i8] c" regmatch <pattern> - show registers matching wildcard pattern\00"
@str.18 = [76 x i8] c" regset <pattern> <value> - set registers matching wildcard pattern\00"
@str.19 = [77 x i8] c" romtables <path> - dumps the BIOS tables from either a given path\00"
@str.20 = [62 x i8] c" or 'mmap' to get it from memory\00"
@str.21 = [64 x i8] c" output <output> <enable|disable> - turns the specified\00"
@str.22 = [61 x i8] c" output on or off\00"
@str.23 = [43 x i8] c" i2c-monitor - do something\00"
@str.24 = [57 x i8] c" i2c-monitor <gpio_in> <gpio_out> - do something\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.13, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.14, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.15, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.16, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.17, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.18, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.19, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.20, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.21, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.22, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.23, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.24, i64 0, i64 0))
%14 = tail call i32 @exit(i32 -1)
unreachable
}