#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    0xf05(%rip),%rdi
call   1030 <printf@plt>
lea    0xf24(%rip),%rdi
call   1030 <printf@plt>
lea    0xf45(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf98(%rip),%rdi
call   1030 <printf@plt>
lea    0xfba(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd8(%rip),%rdi
call   1030 <printf@plt>
lea    0xff8(%rip),%rdi
call   1030 <printf@plt>
lea    0x1001(%rip),%rdi
call   1030 <printf@plt>
lea    0x1038(%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    0xf05(%rip),%rdi
call   1030 <puts@plt>
lea    0xf23(%rip),%rdi
call   1030 <puts@plt>
lea    0xf43(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf94(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb5(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd2(%rip),%rdi
call   1030 <puts@plt>
lea    0xff1(%rip),%rdi
call   1030 <puts@plt>
lea    0xff9(%rip),%rdi
call   1030 <puts@plt>
lea    0x102f(%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 = [33 x i8] c" luna [-jlLoOpdqRW] sourcefile\0A\00"
@.str.3 = [43 x i8] c" -j = no automatic bra->jmp conversion\0A\00"
@.str.4 = [45 x i8] c" -l labelfile = file to store globals in\0A\00"
@.str.5 = [54 x i8] c" -L = call lld to link against standard libraries\0A\00"
@.str.6 = [53 x i8] c" -o outputfile (default is \22c64.out\22 or \22c64.o\22)\0A\00"
@.str.7 = [46 x i8] c" -O = create object instead of executable\0A\00"
@.str.8 = [42 x i8] c" -p = disable pre-proccessing by lupo\0A\00"
@.str.9 = [44 x i8] c" -dname[=macro] = define macro for lupo\0A\00"
@.str.10 = [21 x i8] c" -q = quiet mode\0A\00"
@.str.11 = [67 x i8] c" -R = output raw binary, without 2 byte header (start address)\0A\00"
@.str.12 = [43 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 ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 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 = [32 x i8] c" luna [-jlLoOpdqRW] sourcefile\00"
@str.15 = [42 x i8] c" -j = no automatic bra->jmp conversion\00"
@str.16 = [44 x i8] c" -l labelfile = file to store globals in\00"
@str.17 = [53 x i8] c" -L = call lld to link against standard libraries\00"
@str.18 = [52 x i8] c" -o outputfile (default is \22c64.out\22 or \22c64.o\22)\00"
@str.19 = [45 x i8] c" -O = create object instead of executable\00"
@str.20 = [41 x i8] c" -p = disable pre-proccessing by lupo\00"
@str.21 = [43 x i8] c" -dname[=macro] = define macro for lupo\00"
@str.22 = [20 x i8] c" -q = quiet mode\00"
@str.23 = [66 x i8] c" -R = output raw binary, without 2 byte header (start address)\00"
@str.24 = [42 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 ([32 x i8], [32 x i8]* @str.14, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.15, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.16, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.17, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.18, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.19, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.20, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.21, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.22, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.23, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.24, i64 0, i64 0))
%14 = tail call i32 @exit(i32 1)
unreachable
}