#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 usage(void) {
  printf("Usage:\n");
  printf("get_usb3phy [page] [hex-reg]\n");
  printf("	Get value of usb3 phy reg 0xXX at the page.\n");
  printf("	[page] = 0 | 1, [hex-reg] = 0xXX\n\n");
  printf("set_usb3phy [page] [hex-reg] [hex-value]\n");
  printf("	Set 0xYYYY to usb3 phy reg 0xXX at the page.\n");
  printf("	[page] = 0 | 1, [hex-reg] = 0xXX, [hex-value] = 0xYYYY\n\n");
  printf("get_phy [port] [hex-reg]\n");
  printf("	Get value of usb2 phy reg 0xXX on the port.\n");
  printf("	[port] = 0 | 1, [hex-reg] = 0xXX\n\n");
  printf("set_phy [port] [hex-reg] [hex-value]\n");
  printf("	Set 0xYY to usb2 phy reg 0xXX on the port.\n");
  printf("	[port] = 0 | 1, [hex-reg] = 0xXX, [hex-value] = 0xYY\n\n");
  printf("dbg [on/off]\n");
  printf("	Turn on/off debug message\n");
  printf("	[on/off] = on | off\n\n");
  printf("test_pkt [port]\n");
  printf("	Continually send test packet on the port, for host only.\n");
  printf("	[port] = 0 | 1\n\n");
  printf("r [hex-addr] [len]\n");
  printf("	Dump memory data from memory address 0xXXXXXXXX to (0xXXXXXXXX "
         "+ N -1).\n");
  printf("	[hex-addr] = 0xXXXXXXXX, [len] = N\n\n");
  printf("w [hex-addr] [hex-value]\n");
  printf(
      "	Write a word of data, 0xYYYYYYYY , at memory address 0xXXXXXXXX.\n");
  printf("	[hex-addr] = 0xXXXXXXXX, [hex-value] = 0xYYYYYYYY\n\n");
  printf("get_dev_desc [steps]\n");
  printf("	Single step of get device descriptor, for EHCI only.\n");
  printf("	[steps] = 1 | 2 | 3 (1: SETUP stage, 2: DATA stage, 3: STATUS "
         "stage)\n\n");
  return;
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
call   1030 <printf@plt>
lea    0xf15(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9c(%rip),%rdi
call   1030 <printf@plt>
lea    0xfaa(%rip),%rdi
call   1030 <printf@plt>
lea    0xfcc(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe4(%rip),%rdi
call   1030 <printf@plt>
lea    0xffe(%rip),%rdi
call   1030 <printf@plt>
lea    0x101f(%rip),%rdi
call   1030 <printf@plt>
lea    0x104b(%rip),%rdi
call   1030 <printf@plt>
lea    0x104d(%rip),%rdi
call   1030 <printf@plt>
lea    0x105d(%rip),%rdi
call   1030 <printf@plt>
lea    0x1068(%rip),%rdi
call   1030 <printf@plt>
lea    0x106d(%rip),%rdi
call   1030 <printf@plt>
lea    0x109c(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a2(%rip),%rdi
call   1030 <printf@plt>
lea    0x10aa(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e8(%rip),%rdi
call   1030 <printf@plt>
lea    0x1102(%rip),%rdi
call   1030 <printf@plt>
lea    0x1110(%rip),%rdi
call   1030 <printf@plt>
lea    0x1147(%rip),%rdi
call   1030 <printf@plt>
lea    0x1170(%rip),%rdi
call   1030 <printf@plt>
lea    0x117a(%rip),%rdi
call   1030 <printf@plt>
lea    0x11a5(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xee3(%rip),%rdi
call   1030 <puts@plt>
lea    0xef4(%rip),%rdi
call   1030 <puts@plt>
lea    0xf15(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf49(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf98(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa5(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc6(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdd(%rip),%rdi
call   1030 <puts@plt>
lea    0xff6(%rip),%rdi
call   1030 <puts@plt>
lea    0x1016(%rip),%rdi
call   1030 <puts@plt>
lea    0x1041(%rip),%rdi
call   1030 <puts@plt>
lea    0x1042(%rip),%rdi
call   1030 <puts@plt>
lea    0x1051(%rip),%rdi
call   1030 <puts@plt>
lea    0x105b(%rip),%rdi
call   1030 <puts@plt>
lea    0x105f(%rip),%rdi
call   1030 <puts@plt>
lea    0x108d(%rip),%rdi
call   1030 <puts@plt>
lea    0x1092(%rip),%rdi
call   1030 <puts@plt>
lea    0x1099(%rip),%rdi
call   1030 <puts@plt>
lea    0x10d6(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ef(%rip),%rdi
call   1030 <puts@plt>
lea    0x10fc(%rip),%rdi
call   1030 <puts@plt>
lea    0x1132(%rip),%rdi
call   1030 <puts@plt>
lea    0x115a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1163(%rip),%rdi
call   1030 <puts@plt>
lea    0x118d(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"Usage:\0A\00"
@.str.1 = [30 x i8] c"get_usb3phy [page] [hex-reg]\0A\00"
@.str.2 = [46 x i8] c"\09Get value of usb3 phy reg 0xXX at the page.\0A\00"
@.str.3 = [36 x i8] c"\09[page] = 0 | 1, [hex-reg] = 0xXX\0A\0A\00"
@.str.4 = [42 x i8] c"set_usb3phy [page] [hex-reg] [hex-value]\0A\00"
@.str.5 = [47 x i8] c"\09Set 0xYYYY to usb3 phy reg 0xXX at the page.\0A\00"
@.str.6 = [58 x i8] c"\09[page] = 0 | 1, [hex-reg] = 0xXX, [hex-value] = 0xYYYY\0A\0A\00"
@.str.7 = [26 x i8] c"get_phy [port] [hex-reg]\0A\00"
@.str.8 = [46 x i8] c"\09Get value of usb2 phy reg 0xXX on the port.\0A\00"
@.str.9 = [36 x i8] c"\09[port] = 0 | 1, [hex-reg] = 0xXX\0A\0A\00"
@.str.10 = [38 x i8] c"set_phy [port] [hex-reg] [hex-value]\0A\00"
@.str.11 = [45 x i8] c"\09Set 0xYY to usb2 phy reg 0xXX on the port.\0A\00"
@.str.12 = [56 x i8] c"\09[port] = 0 | 1, [hex-reg] = 0xXX, [hex-value] = 0xYY\0A\0A\00"
@.str.13 = [14 x i8] c"dbg [on/off]\0A\00"
@.str.14 = [28 x i8] c"\09Turn on/off debug message\0A\00"
@.str.15 = [23 x i8] c"\09[on/off] = on | off\0A\0A\00"
@.str.16 = [17 x i8] c"test_pkt [port]\0A\00"
@.str.17 = [59 x i8] c"\09Continually send test packet on the port, for host only.\0A\00"
@.str.18 = [18 x i8] c"\09[port] = 0 | 1\0A\0A\00"
@.str.19 = [20 x i8] c"r [hex-addr] [len]\0A\00"
@.str.20 = [74 x i8] c"\09Dump memory data from memory address 0xXXXXXXXX to (0xXXXXXXXX + N -1).\0A\00"
@.str.21 = [38 x i8] c"\09[hex-addr] = 0xXXXXXXXX, [len] = N\0A\0A\00"
@.str.22 = [26 x i8] c"w [hex-addr] [hex-value]\0A\00"
@.str.23 = [67 x i8] c"\09Write a word of data, 0xYYYYYYYY , at memory address 0xXXXXXXXX.\0A\00"
@.str.24 = [53 x i8] c"\09[hex-addr] = 0xXXXXXXXX, [hex-value] = 0xYYYYYYYY\0A\0A\00"
@.str.25 = [22 x i8] c"get_dev_desc [steps]\0A\00"
@.str.26 = [55 x i8] c"\09Single step of get device descriptor, for EHCI only.\0A\00"
@.str.27 = [72 x i8] c"\09[steps] = 1 | 2 | 3 (1: SETUP stage, 2: DATA stage, 3: STATUS stage)\0A\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.23, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.24, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.25, i64 0, i64 0))
%27 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.26, i64 0, i64 0))
%28 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.27, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [7 x i8] c"Usage:\00"
@str.28 = [29 x i8] c"get_usb3phy [page] [hex-reg]\00"
@str.29 = [45 x i8] c"\09Get value of usb3 phy reg 0xXX at the page.\00"
@str.30 = [35 x i8] c"\09[page] = 0 | 1, [hex-reg] = 0xXX\0A\00"
@str.31 = [41 x i8] c"set_usb3phy [page] [hex-reg] [hex-value]\00"
@str.32 = [46 x i8] c"\09Set 0xYYYY to usb3 phy reg 0xXX at the page.\00"
@str.33 = [57 x i8] c"\09[page] = 0 | 1, [hex-reg] = 0xXX, [hex-value] = 0xYYYY\0A\00"
@str.34 = [25 x i8] c"get_phy [port] [hex-reg]\00"
@str.35 = [45 x i8] c"\09Get value of usb2 phy reg 0xXX on the port.\00"
@str.36 = [35 x i8] c"\09[port] = 0 | 1, [hex-reg] = 0xXX\0A\00"
@str.37 = [37 x i8] c"set_phy [port] [hex-reg] [hex-value]\00"
@str.38 = [44 x i8] c"\09Set 0xYY to usb2 phy reg 0xXX on the port.\00"
@str.39 = [55 x i8] c"\09[port] = 0 | 1, [hex-reg] = 0xXX, [hex-value] = 0xYY\0A\00"
@str.40 = [13 x i8] c"dbg [on/off]\00"
@str.41 = [27 x i8] c"\09Turn on/off debug message\00"
@str.42 = [22 x i8] c"\09[on/off] = on | off\0A\00"
@str.43 = [16 x i8] c"test_pkt [port]\00"
@str.44 = [58 x i8] c"\09Continually send test packet on the port, for host only.\00"
@str.45 = [17 x i8] c"\09[port] = 0 | 1\0A\00"
@str.46 = [19 x i8] c"r [hex-addr] [len]\00"
@str.47 = [73 x i8] c"\09Dump memory data from memory address 0xXXXXXXXX to (0xXXXXXXXX + N -1).\00"
@str.48 = [37 x i8] c"\09[hex-addr] = 0xXXXXXXXX, [len] = N\0A\00"
@str.49 = [25 x i8] c"w [hex-addr] [hex-value]\00"
@str.50 = [66 x i8] c"\09Write a word of data, 0xYYYYYYYY , at memory address 0xXXXXXXXX.\00"
@str.51 = [52 x i8] c"\09[hex-addr] = 0xXXXXXXXX, [hex-value] = 0xYYYYYYYY\0A\00"
@str.52 = [21 x i8] c"get_dev_desc [steps]\00"
@str.53 = [54 x i8] c"\09Single step of get device descriptor, for EHCI only.\00"
@str.54 = [71 x i8] c"\09[steps] = 1 | 2 | 3 (1: SETUP stage, 2: DATA stage, 3: STATUS stage)\0A\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.28, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.29, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.30, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.31, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.32, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.33, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.34, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.35, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.36, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.37, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.38, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.39, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.40, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.41, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.42, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.43, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.44, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.45, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.46, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.47, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.48, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.49, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.50, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.51, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.52, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.53, i64 0, i64 0))
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.54, i64 0, i64 0))
ret void
}