#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 Help() {
  printf("\n  __________ Register Tool Usage ___________ \n");
  printf("/--------------------------------------------\\\n");
  printf("|      sr    [value]      get/set sr.        |\n");
  printf("|      srb   [value]      get/set srb.       |\n");
  printf("|      cr    [value]      get/set cr.        |\n");
  printf("|      crb   [value]      get/set crb.       |\n");
  printf("|      pmu   [value]      get/set pmu.       |\n");
  printf("|      mmio  [value]      get/set mmio.      |\n");
  printf("|      gpio  [value]      get/set gpio.      |\n");
  printf("|      dump  fileName     dump regs to file. |\n");
  printf("|      ld    fileName     load dumped file.  |\n");
  printf("|      diff  f-A f-B      diff 2 dumped file.|\n");
  printf("|      ldd   a/b[l/r]     [ldda/lddb]        |\n");
  printf("|            load diff a/b or left/right.    |\n");
  printf("|      q                  quit.              |\n");
  printf("\\--------------------------------------------/\n\n");
  printf("Note: if backspace Not work well, please use Del.\n");
}


x86 assembly (clang, -O0):
<Help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf51(%rip),%rdi
call   1030 <printf@plt>
lea    0xf75(%rip),%rdi
call   1030 <printf@plt>
lea    0xf99(%rip),%rdi
call   1030 <printf@plt>
lea    0xfbd(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe1(%rip),%rdi
call   1030 <printf@plt>
lea    0x1005(%rip),%rdi
call   1030 <printf@plt>
lea    0x1029(%rip),%rdi
call   1030 <printf@plt>
lea    0x104d(%rip),%rdi
call   1030 <printf@plt>
lea    0x1071(%rip),%rdi
call   1030 <printf@plt>
lea    0x1095(%rip),%rdi
call   1030 <printf@plt>
lea    0x10b9(%rip),%rdi
call   1030 <printf@plt>
lea    0x10dd(%rip),%rdi
call   1030 <printf@plt>
lea    0x1101(%rip),%rdi
call   1030 <printf@plt>
lea    0x1126(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<Help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf51(%rip),%rdi
call   1030 <puts@plt>
lea    0xf74(%rip),%rdi
call   1030 <puts@plt>
lea    0xf97(%rip),%rdi
call   1030 <puts@plt>
lea    0xfba(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdd(%rip),%rdi
call   1030 <puts@plt>
lea    0x1000(%rip),%rdi
call   1030 <puts@plt>
lea    0x1023(%rip),%rdi
call   1030 <puts@plt>
lea    0x1046(%rip),%rdi
call   1030 <puts@plt>
lea    0x1069(%rip),%rdi
call   1030 <puts@plt>
lea    0x108c(%rip),%rdi
call   1030 <puts@plt>
lea    0x10af(%rip),%rdi
call   1030 <puts@plt>
lea    0x10d2(%rip),%rdi
call   1030 <puts@plt>
lea    0x10f5(%rip),%rdi
call   1030 <puts@plt>
lea    0x1119(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [48 x i8] c"\0A __________ Register Tool Usage ___________ \0A\00"
@.str.1 = [48 x i8] c"/--------------------------------------------\\\0A\00"
@.str.2 = [48 x i8] c"| sr [value] get/set sr. |\0A\00"
@.str.3 = [48 x i8] c"| srb [value] get/set srb. |\0A\00"
@.str.4 = [48 x i8] c"| cr [value] get/set cr. |\0A\00"
@.str.5 = [48 x i8] c"| crb [value] get/set crb. |\0A\00"
@.str.6 = [48 x i8] c"| pmu [value] get/set pmu. |\0A\00"
@.str.7 = [48 x i8] c"| mmio [value] get/set mmio. |\0A\00"
@.str.8 = [48 x i8] c"| gpio [value] get/set gpio. |\0A\00"
@.str.9 = [48 x i8] c"| dump fileName dump regs to file. |\0A\00"
@.str.10 = [48 x i8] c"| ld fileName load dumped file. |\0A\00"
@.str.11 = [48 x i8] c"| diff f-A f-B diff 2 dumped file.|\0A\00"
@.str.12 = [48 x i8] c"| ldd a/b[l/r] [ldda/lddb] |\0A\00"
@.str.13 = [48 x i8] c"| load diff a/b or left/right. |\0A\00"
@.str.14 = [48 x i8] c"| q quit. |\0A\00"
@.str.15 = [49 x i8] c"\\--------------------------------------------/\0A\0A\00"
@.str.16 = [51 x i8] c"Note: if backspace Not work well, please use Del.\0A\00"
define void @Help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.16, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [47 x i8] c"\0A __________ Register Tool Usage ___________ \00"
@str.17 = [47 x i8] c"/--------------------------------------------\\\00"
@str.18 = [47 x i8] c"| sr [value] get/set sr. |\00"
@str.19 = [47 x i8] c"| srb [value] get/set srb. |\00"
@str.20 = [47 x i8] c"| cr [value] get/set cr. |\00"
@str.21 = [47 x i8] c"| crb [value] get/set crb. |\00"
@str.22 = [47 x i8] c"| pmu [value] get/set pmu. |\00"
@str.23 = [47 x i8] c"| mmio [value] get/set mmio. |\00"
@str.24 = [47 x i8] c"| gpio [value] get/set gpio. |\00"
@str.25 = [47 x i8] c"| dump fileName dump regs to file. |\00"
@str.26 = [47 x i8] c"| ld fileName load dumped file. |\00"
@str.27 = [47 x i8] c"| diff f-A f-B diff 2 dumped file.|\00"
@str.28 = [47 x i8] c"| ldd a/b[l/r] [ldda/lddb] |\00"
@str.29 = [47 x i8] c"| load diff a/b or left/right. |\00"
@str.30 = [47 x i8] c"| q quit. |\00"
@str.31 = [48 x i8] c"\\--------------------------------------------/\0A\00"
@str.32 = [50 x i8] c"Note: if backspace Not work well, please use Del.\00"
define void @Help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.17, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.18, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.19, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.20, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.21, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.22, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.23, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.24, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.25, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.26, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.27, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.28, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.29, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.30, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.31, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.32, i64 0, i64 0))
ret void
}