#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 EXIT_FAILURE;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int invokation(char *prg_name) {
  fprintf(stderr,
          "%s [-v] [-a as] [-d gas|sun] [-o outfile] file file file ...\n",
          prg_name);
  fputs("\t-a as\t- assembler-bin to use\t(d: as)\n", stderr);
  fputs("\t-d [gas|sun|coff]\t- assembler dialekt\t(d: gas)\n", stderr);
  fputs("\t-o outfile\t- output filename\t(d: what as takes)\n", stderr);
  fputs("\t-e\t- also export the base data as symbol\n", stderr);
  fputs("\t-v\t- dump text written to assambler\n", stderr);
  fputs("\t-u\t- unhidden trampoline\n", stderr);
  fputs("\t-r\t- relative trampoline\n", stderr);
  fputs("\t-n\t- no trampoline, only with -e\n", stderr);
  fputs("\t-c\t- switch special char from '@' to '%' (ARM), only with GAS\n",
        stderr);
  fputs("\tfile\t- the filename to \n", stderr);
  return EXIT_FAILURE;
}


x86 assembly (clang, -O0):
<invokation>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xec0(%rip),%rsi
call   1040 <fprintf@plt>
mov    0x2e94(%rip),%rax
mov    (%rax),%esi
lea    0xee9(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e7f(%rip),%rax
mov    (%rax),%esi
lea    0xefb(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e6a(%rip),%rax
mov    (%rax),%esi
lea    0xf17(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e55(%rip),%rax
mov    (%rax),%esi
lea    0xf34(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e40(%rip),%rax
mov    (%rax),%esi
lea    0xf4a(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e2b(%rip),%rax
mov    (%rax),%esi
lea    0xf5b(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e16(%rip),%rax
mov    (%rax),%esi
lea    0xf61(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e01(%rip),%rax
mov    (%rax),%esi
lea    0xf67(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2dec(%rip),%rax
mov    (%rax),%esi
lea    0xf75(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2dd7(%rip),%rax
mov    (%rax),%esi
lea    0xfa0(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2dba(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<invokation>:
push   %rbx
mov    %rdi,%rdx
mov    0x2eb5(%rip),%rbx
mov    (%rbx),%edi
lea    0xecc(%rip),%rsi
call   1040 <fprintf@plt>
mov    (%rbx),%esi
lea    0xefc(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf15(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf38(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf5c(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf79(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf91(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf9e(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xfab(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xfc0(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xff2(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e0c(%rip),%rax
mov    (%rax),%eax
pop    %rbx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [62 x i8] c"%s [-v] [-a as] [-d gas|sun] [-o outfile] file file file ...\0A\00"
@.str.1 = [39 x i8] c"\09-a as\09- assembler-bin to use\09(d: as)\0A\00"
@.str.2 = [49 x i8] c"\09-d [gas|sun|coff]\09- assembler dialekt\09(d: gas)\0A\00"
@.str.3 = [50 x i8] c"\09-o outfile\09- output filename\09(d: what as takes)\0A\00"
@.str.4 = [43 x i8] c"\09-e\09- also export the base data as symbol\0A\00"
@.str.5 = [38 x i8] c"\09-v\09- dump text written to assambler\0A\00"
@.str.6 = [27 x i8] c"\09-u\09- unhidden trampoline\0A\00"
@.str.7 = [27 x i8] c"\09-r\09- relative trampoline\0A\00"
@.str.8 = [35 x i8] c"\09-n\09- no trampoline, only with -e\0A\00"
@.str.9 = [64 x i8] c"\09-c\09- switch special char from '@' to '%' (ARM), only with GAS\0A\00"
@.str.10 = [26 x i8] c"\09file\09- the filename to \0A\00"
@EXIT_FAILURE = global i32 0
define i32 @invokation(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = load i32, i32* @stderr
%7 = call i32 @fputs(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 %6)
%8 = load i32, i32* @stderr
%9 = call i32 @fputs(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0), i32 %8)
%10 = load i32, i32* @stderr
%11 = call i32 @fputs(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0), i32 %10)
%12 = load i32, i32* @stderr
%13 = call i32 @fputs(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0), i32 %12)
%14 = load i32, i32* @stderr
%15 = call i32 @fputs(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i32 %14)
%16 = load i32, i32* @stderr
%17 = call i32 @fputs(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0), i32 %16)
%18 = load i32, i32* @stderr
%19 = call i32 @fputs(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i32 %18)
%20 = load i32, i32* @stderr
%21 = call i32 @fputs(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0), i32 %20)
%22 = load i32, i32* @stderr
%23 = call i32 @fputs(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.9, i64 0, i64 0), i32 %22)
%24 = load i32, i32* @stderr
%25 = call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0), i32 %24)
%26 = load i32, i32* @EXIT_FAILURE
ret i32 %26
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [62 x i8] c"%s [-v] [-a as] [-d gas|sun] [-o outfile] file file file ...\0A\00"
@.str.1 = [39 x i8] c"\09-a as\09- assembler-bin to use\09(d: as)\0A\00"
@.str.2 = [49 x i8] c"\09-d [gas|sun|coff]\09- assembler dialekt\09(d: gas)\0A\00"
@.str.3 = [50 x i8] c"\09-o outfile\09- output filename\09(d: what as takes)\0A\00"
@.str.4 = [43 x i8] c"\09-e\09- also export the base data as symbol\0A\00"
@.str.5 = [38 x i8] c"\09-v\09- dump text written to assambler\0A\00"
@.str.6 = [27 x i8] c"\09-u\09- unhidden trampoline\0A\00"
@.str.7 = [27 x i8] c"\09-r\09- relative trampoline\0A\00"
@.str.8 = [35 x i8] c"\09-n\09- no trampoline, only with -e\0A\00"
@.str.9 = [64 x i8] c"\09-c\09- switch special char from '@' to '%' (ARM), only with GAS\0A\00"
@.str.10 = [26 x i8] c"\09file\09- the filename to \0A\00"
@EXIT_FAILURE = global i32 0
define i32 @invokation(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = load i32, i32* @stderr
%5 = tail call i32 @fputs(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%6 = load i32, i32* @stderr
%7 = tail call i32 @fputs(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0), i32 %6)
%8 = load i32, i32* @stderr
%9 = tail call i32 @fputs(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0), i32 %8)
%10 = load i32, i32* @stderr
%11 = tail call i32 @fputs(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0), i32 %10)
%12 = load i32, i32* @stderr
%13 = tail call i32 @fputs(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i32 %12)
%14 = load i32, i32* @stderr
%15 = tail call i32 @fputs(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0), i32 %14)
%16 = load i32, i32* @stderr
%17 = tail call i32 @fputs(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i32 %16)
%18 = load i32, i32* @stderr
%19 = tail call i32 @fputs(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0), i32 %18)
%20 = load i32, i32* @stderr
%21 = tail call i32 @fputs(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.9, i64 0, i64 0), i32 %20)
%22 = load i32, i32* @stderr
%23 = tail call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0), i32 %22)
%24 = load i32, i32* @EXIT_FAILURE
ret i32 %24
}