#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 /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
void ShowHelp() {
  printf("sh2d Version %s by Bart Trzynadlowski: A Free SH-1/SH-2 "
         "Disassembler\n",
         "0.2");
  printf("Usage:     sh2d <file> [options]\n");
  printf("Options:   -?,-h        Show this help text\n");
  printf("           -s #         Start offset (hexadecimal)\n");
  printf("           -l #         Number of bytes (decimal)\n");
  printf("           -o #         Set origin (hexadecimal)\n");
  printf("           -sh1         SH-1 disassembly only\n");
  printf("           -sh2         SH-2 disassembly (default)\n");
  exit(0);
}


x86 assembly (clang, -O0):
<ShowHelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xf14(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf3d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf63(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf88(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfac(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfcd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<ShowHelp>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0xf07(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xefd(%rip),%rdi
call   1030 <puts@plt>
lea    0xf12(%rip),%rdi
call   1030 <puts@plt>
lea    0xf32(%rip),%rdi
call   1030 <puts@plt>
lea    0xf59(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7f(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa4(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc6(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [70 x i8] c"sh2d Version %s by Bart Trzynadlowski: A Free SH-1/SH-2 Disassembler\0A\00"
@.str.1 = [4 x i8] c"0.2\00"
@.str.2 = [34 x i8] c"Usage: sh2d <file> [options]\0A\00"
@.str.3 = [45 x i8] c"Options: -?,-h Show this help text\0A\00"
@.str.4 = [52 x i8] c" -s # Start offset (hexadecimal)\0A\00"
@.str.5 = [51 x i8] c" -l # Number of bytes (decimal)\0A\00"
@.str.6 = [50 x i8] c" -o # Set origin (hexadecimal)\0A\00"
@.str.7 = [47 x i8] c" -sh1 SH-1 disassembly only\0A\00"
@.str.8 = [52 x i8] c" -sh2 SH-2 disassembly (default)\0A\00"
define void @ShowHelp() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.8, i64 0, i64 0))
%9 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [70 x i8] c"sh2d Version %s by Bart Trzynadlowski: A Free SH-1/SH-2 Disassembler\0A\00"
@.str.1 = [4 x i8] c"0.2\00"
@str = [33 x i8] c"Usage: sh2d <file> [options]\00"
@str.9 = [44 x i8] c"Options: -?,-h Show this help text\00"
@str.10 = [51 x i8] c" -s # Start offset (hexadecimal)\00"
@str.11 = [50 x i8] c" -l # Number of bytes (decimal)\00"
@str.12 = [49 x i8] c" -o # Set origin (hexadecimal)\00"
@str.13 = [46 x i8] c" -sh1 SH-1 disassembly only\00"
@str.14 = [51 x i8] c" -sh2 SH-2 disassembly (default)\00"
define void @ShowHelp() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.9, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.10, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.11, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.12, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.13, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.14, i64 0, i64 0))
%9 = tail call i32 @exit(i32 0)
unreachable
}