#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);
int /*<<< orphan*/ printf(char *);
void Howto() {
  printf("Luna 6502/10-cross-assembler version 1.31\n");
  printf("Usage:\n");
  printf("    luna [-jlLoOpdqRW] sourcefile\n");
  printf("        -j = no automatic bra->jmp conversion\n");
  printf("        -l labelfile = file to store globals in\n");
  printf("        -L = call lld to link against standard libraries\n");
  printf("        -o outputfile (default is \"c64.out\" or \"c64.o\")\n");
  printf("        -O = create object instead of executable\n");
  printf("        -p = disable pre-proccessing by lupo\n");
  printf("        -dname[=macro] = define macro for lupo\n");
  printf("        -q = quiet mode\n");
  printf("        -R = output raw binary, without 2 byte header (start "
         "address)\n");
  printf("        -W = print warnings for unused labels\n");
  exit(1);
}


x86 assembly (clang, -O0):
<Howto>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef4(%rip),%rdi
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
call   1030 <printf@plt>
lea    0xf07(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf7d(%rip),%rdi
call   1030 <printf@plt>
lea    0xfaa(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd0(%rip),%rdi
call   1030 <printf@plt>
lea    0xff2(%rip),%rdi
call   1030 <printf@plt>
lea    0x1016(%rip),%rdi
call   1030 <printf@plt>
lea    0x1023(%rip),%rdi
call   1030 <printf@plt>
lea    0x105e(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<Howto>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef6(%rip),%rdi
call   1030 <puts@plt>
lea    0xef1(%rip),%rdi
call   1030 <puts@plt>
lea    0xf07(%rip),%rdi
call   1030 <puts@plt>
lea    0xf29(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7a(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa6(%rip),%rdi
call   1030 <puts@plt>
lea    0xfcb(%rip),%rdi
call   1030 <puts@plt>
lea    0xfec(%rip),%rdi
call   1030 <puts@plt>
lea    0x100f(%rip),%rdi
call   1030 <puts@plt>
lea    0x101b(%rip),%rdi
call   1030 <puts@plt>
lea    0x1055(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [43 x i8] c"Luna 6502/10-cross-assembler version 1.31\0A\00"
@.str.1 = [8 x i8] c"Usage:\0A\00"
@.str.2 = [35 x i8] c" luna [-jlLoOpdqRW] sourcefile\0A\00"
@.str.3 = [47 x i8] c" -j = no automatic bra->jmp conversion\0A\00"
@.str.4 = [49 x i8] c" -l labelfile = file to store globals in\0A\00"
@.str.5 = [58 x i8] c" -L = call lld to link against standard libraries\0A\00"
@.str.6 = [57 x i8] c" -o outputfile (default is \22c64.out\22 or \22c64.o\22)\0A\00"
@.str.7 = [50 x i8] c" -O = create object instead of executable\0A\00"
@.str.8 = [46 x i8] c" -p = disable pre-proccessing by lupo\0A\00"
@.str.9 = [48 x i8] c" -dname[=macro] = define macro for lupo\0A\00"
@.str.10 = [25 x i8] c" -q = quiet mode\0A\00"
@.str.11 = [71 x i8] c" -R = output raw binary, without 2 byte header (start address)\0A\00"
@.str.12 = [47 x i8] c" -W = print warnings for unused labels\0A\00"
define void @Howto() {
%1 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 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 ([48 x i8], [48 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@str = [42 x i8] c"Luna 6502/10-cross-assembler version 1.31\00"
@str.13 = [7 x i8] c"Usage:\00"
@str.14 = [34 x i8] c" luna [-jlLoOpdqRW] sourcefile\00"
@str.15 = [46 x i8] c" -j = no automatic bra->jmp conversion\00"
@str.16 = [48 x i8] c" -l labelfile = file to store globals in\00"
@str.17 = [57 x i8] c" -L = call lld to link against standard libraries\00"
@str.18 = [56 x i8] c" -o outputfile (default is \22c64.out\22 or \22c64.o\22)\00"
@str.19 = [49 x i8] c" -O = create object instead of executable\00"
@str.20 = [45 x i8] c" -p = disable pre-proccessing by lupo\00"
@str.21 = [47 x i8] c" -dname[=macro] = define macro for lupo\00"
@str.22 = [24 x i8] c" -q = quiet mode\00"
@str.23 = [70 x i8] c" -R = output raw binary, without 2 byte header (start address)\00"
@str.24 = [46 x i8] c" -W = print warnings for unused labels\00"
define void @Howto() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.13, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.14, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.15, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.16, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.17, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.18, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.19, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.20, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.21, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.22, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.23, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.24, i64 0, i64 0))
%14 = tail call i32 @exit(i32 1)
unreachable
}