#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*/ fprintf(int /*<<< orphan*/, char *, char *, char *, ...);
int /*<<< orphan*/ stderr;
void Usage(char *RCMD, char *arch) {
  fprintf(stderr, "%s %s %s", "Usage:", RCMD, "[command args]\n\n");
  fprintf(stderr, "%s%s%s", "where 'command args' can be\n\n",
          "  --arch n   for n=i386, x64, 32 or 64\n",
          "  any other arguments listed by ");
  fprintf(stderr, "%s --arch %s --help\n", RCMD, arch);
}


x86 assembly (clang, -O0):
<Usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2eb9(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rcx
lea    0xecc(%rip),%rsi
lea    0xece(%rip),%rdx
lea    0xece(%rip),%r8
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e90(%rip),%rax
mov    (%rax),%edi
lea    0xec8(%rip),%rsi
lea    0xec8(%rip),%rdx
lea    0xedf(%rip),%rcx
lea    0xf00(%rip),%r8
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e64(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    0xf02(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Usage>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%rbx
mov    0x2ebe(%rip),%r15
mov    (%r15),%edi
lea    0xed4(%rip),%rsi
lea    0xed6(%rip),%rdx
lea    0xed6(%rip),%r8
mov    %rbx,%rcx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0xed3(%rip),%rsi
lea    0xed3(%rip),%rdx
lea    0xeea(%rip),%rcx
lea    0xf0b(%rip),%r8
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0xf1b(%rip),%rsi
mov    %rbx,%rdx
mov    %r14,%rcx
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [9 x i8] c"%s %s %s\00"
@.str.1 = [7 x i8] c"Usage:\00"
@.str.2 = [17 x i8] c"[command args]\0A\0A\00"
@.str.3 = [7 x i8] c"%s%s%s\00"
@.str.4 = [30 x i8] c"where 'command args' can be\0A\0A\00"
@.str.5 = [40 x i8] c" --arch n for n=i386, x64, 32 or 64\0A\00"
@.str.6 = [33 x i8] c" any other arguments listed by \00"
@.str.7 = [21 x i8] c"%s --arch %s --help\0A\00"
define void @Usage(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %3
%7 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %6, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%8 = load i32, i32* @stderr
%9 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = load i8*, i8** %3
%12 = load i8*, i8** %4
%13 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i8* %11, i8* %12)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [9 x i8] c"%s %s %s\00"
@.str.1 = [7 x i8] c"Usage:\00"
@.str.2 = [17 x i8] c"[command args]\0A\0A\00"
@.str.3 = [7 x i8] c"%s%s%s\00"
@.str.4 = [30 x i8] c"where 'command args' can be\0A\0A\00"
@.str.5 = [40 x i8] c" --arch n for n=i386, x64, 32 or 64\0A\00"
@.str.6 = [33 x i8] c" any other arguments listed by \00"
@.str.7 = [21 x i8] c"%s --arch %s --help\0A\00"
define void @Usage(i8* %0, i8* %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = tail call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i8* %0, i8* %1)
ret void
}