// File: /workspace/github_c_makefile_star2_O3/Oric4ever[P]lcc65/6502/build/../src/main.c
// Function: main
int main(int argc, char *argv[]) {
	Symbol symroot = 0;		/* root of the global symbols */
	static Events z;

	assert(MAXKIDS >= 2);
	assert(MAXSYMS >= 2);
	progname = argv[0];
	typeInit();
	level = GLOBAL;
	argc = doargs(argc, argv);
	assert(inttype->size >= voidptype->size);
	if (infile && *infile != '-') {
		close(0);
		if (open(infile, 0) != 0) {
			fprint(2, "%s: can't read %s\n", argv[0], infile);
			exit(1);
		}
	}
	if (outfile && *outfile != '-') {
		close(1);
		if (creat(outfile, 0666) != 1) {
			fprint(2, "%s: can't write %s\n", argv[0], outfile);
			exit(1);
		}
	}
	inputInit(0);
	t = gettok();
	progbeg(argc, argv);
	stabinit(firstfile, argc, argv);
	program();
	if (events.end)
		apply(events.end, (Generic)0, (Generic)0);
	events = z;
	emitYYnull();
	finalize();
	if (glevel || xref) {
		Coordinate src;
		foreach(types, GLOBAL, typestab, (Generic)&symroot);
		foreach(identifiers, GLOBAL, typestab, (Generic)&symroot);
		src.file = firstfile;
		src.x = 0;
		src.y = lineno;
		if (glevel > 2 || xref)
			stabend(&src, symroot, (Coordinate **)list_to_a(append((Generic)0, loci), 0),
				(Symbol *)list_to_a(append((Generic)0, tables), 0),
				symbols ? (Symbol *)list_to_a(symbols, 0) : 0);
		else
			stabend(&src, 0, 0, 0, 0);
	}
#ifdef progend
	progend(0);
#else
	progend();
#endif
	outflush();
	exit(errcnt > 0);
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movl %edi, %r14d
movq $0x0, 0x10(%rsp)
movq (%rsi), %rax
movq %rax, 0x1cd65(%rip)     # 0x2c9e8
callq 0x180c0
leaq 0x200a1(%rip), %rax     # 0x2fd30
movl $0x3, (%rax)
movl $0x1, 0x4(%rsp)
cmpl $0x2, %r14d
jl 0xffe4
movl %r14d, %r12d
movl $0x1, 0x4(%rsp)
movl $0x1, %r13d
movq (%rbx,%r13,8), %r14
movb (%r14), %bpl
cmpb $0x2d, %bpl
jne 0xfe6e
movzbl 0x1(%r14), %eax
cmpl $0x60, %eax
jle 0xfd15
addl $-0x61, %eax
cmpl $0x17, %eax
ja 0xfe6e
leaq 0x100be(%rip), %rcx     # 0x1fda4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
addq $0x2, %r14
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3130
testl %eax, %eax
jle 0xffc2
leaq 0x19852(%rip), %rcx     # 0x29560
movl %eax, (%rcx)
jmp 0xffc2
cmpl $0x41, %eax
je 0xfe63
cmpl $0x43, %eax
je 0xfd42
cmpl $0x50, %eax
jne 0xfe6e
cmpb $0x0, 0x2(%r14)
jne 0xfe6e
incl 0x1cd1f(%rip)           # 0x2ca5c
jmp 0xffc2
cmpb $0x0, 0x2(%r14)
jne 0xfe6e
movq %r14, %rdi
callq 0x10381
jmp 0xffc2
cmpb $0x0, 0x2(%r14)
jne 0xfe6e
cmpq $0x0, 0x1ccf3(%rip)     # 0x2ca60
jne 0xffc2
leaq 0x23266(%rip), %rax     # 0x32fe0
movq (%rax), %rdi
leaq 0x23214(%rip), %rax     # 0x32f98
movq (%rax), %rsi
callq 0x10cfa
movl $0x4a, %edi
leaq 0x10119(%rip), %rsi     # 0x1feb1
movq %rax, %rdx
callq 0x102cc
movq %rax, 0x1ccb9(%rip)     # 0x2ca60
movb $0x51, 0x1a(%rax)
jmp 0xffc2
movb 0x2(%r14), %al
testb %al, %al
je 0xffd0
addb $-0x30, %al
cmpb $0x9, %al
ja 0xfe6e
movzbl %al, %eax
movl %eax, 0x1cc61(%rip)     # 0x2ca30
jmp 0xffc2
cmpb $0x0, 0x2(%r14)
jne 0xfe6e
leaq 0x1aaca(%rip), %rax     # 0x2a8b0
incl (%rax)
jmp 0xffc2
cmpb $0x0, 0x2(%r14)
jne 0xfe6e
incl 0x1cc3a(%rip)           # 0x2ca34
jmp 0xffc2
addq $0x2, %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x3080
cvtsd2ss %xmm0, %xmm0
leaq 0x19868(%rip), %rax     # 0x29680
movss %xmm0, (%rax)
jmp 0xffc2
cmpb $0x0, 0x2(%r14)
jne 0xfe6e
movq 0x1cbb9(%rip), %rdx     # 0x2c9e8
movl $0x2, %edi
leaq 0x1007e(%rip), %rsi     # 0x1feb9
movl $0x1, %ecx
movl $0x9, %r8d
xorl %eax, %eax
callq 0x115a8
jmp 0xffc2
addq $0x2, %r14
movq %r14, %rdi
callq 0x10c59
jmp 0xffc2
cmpb $0x0, 0x2(%r14)
je 0xffdc
movq %r14, %rdi
movl $0x3d, %esi
callq 0x30b0
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0xff47
movq %rax, %r15
movl %r15d, %esi
subl %r14d, %esi
movq %r14, %rdi
callq 0x16b50
leaq 0x1a86f(%rip), %rcx     # 0x2a710
movq (%rcx), %rsi
movq %rax, %rdi
callq 0x1728e
testq %rax, %rax
je 0xff40
movq %rax, %r14
cmpb $0x3d, (%r15)
jne 0xfedb
incq %r15
movq %r15, %rdi
leaq 0x8(%rsp), %rsi
xorl %edx, %edx
callq 0x3130
testl %eax, %eax
jle 0xfedb
movq 0x20(%r14), %rcx
movl %eax, 0x8(%rcx)
movq 0x8(%rsp), %rdi
cmpb $0x2c, (%rdi)
jne 0xff00
incq %rdi
leaq 0x8(%rsp), %rsi
xorl %edx, %edx
callq 0x3130
testl %eax, %eax
jle 0xff00
movq 0x20(%r14), %rcx
movw %ax, 0x4(%rcx)
movq 0x8(%rsp), %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0x8(%rsp)
cmpb $0x2c, (%rcx)
jne 0xffc2
movb (%rax), %al
cmpb $0x30, %al
setne %cl
shlb $0x4, %cl
testb %al, %al
movzbl %cl, %eax
movl $0x0, %ecx
cmovel %ecx, %eax
movb 0x1b(%r14), %cl
andb $-0x11, %cl
orb %al, %cl
movb %cl, 0x1b(%r14)
jmp 0xffc2
movq (%rbx,%r13,8), %r14
movb (%r14), %bpl
cmpb $0x2d, %bpl
jne 0xff80
movb 0x1(%r14), %bpl
testb %bpl, %bpl
je 0xff80
movq %r14, %rdi
leaq 0xff6b(%rip), %rsi      # 0x1fecb
callq 0x3110
testl %eax, %eax
je 0xffa6
cmpb $0x58, %bpl
jne 0xffb1
incq %r14
movq %r14, (%rbx,%r13,8)
movb $0x2d, (%r14)
movq (%rbx,%r13,8), %r14
jmp 0xffb1
cmpq $0x0, 0x1ca68(%rip)     # 0x2c9f0
je 0xff9d
cmpq $0x0, 0x1ca66(%rip)     # 0x2c9f8
jne 0xffb1
movq %r14, 0x1ca5d(%rip)     # 0x2c9f8
jmp 0xffc2
movq %r14, 0x1ca4c(%rip)     # 0x2c9f0
jmp 0xffc2
leaq 0xff22(%rip), %r14      # 0x1fecf
movq %r14, (%rbx,%r13,8)
movl 0x4(%rsp), %ecx
movslq %ecx, %rax
incl %ecx
movl %ecx, 0x4(%rsp)
movq %r14, (%rbx,%rax,8)
incq %r13
cmpq %r13, %r12
jne 0xfcb8
jmp 0xffe4
movl $0x2, 0x1ca56(%rip)     # 0x2ca30
jmp 0xffc2
incl 0x1ca76(%rip)           # 0x2ca58
jmp 0xffc2
movl 0x4(%rsp), %ebp
movslq %ebp, %rax
movq $0x0, (%rbx,%rax,8)
leaq 0x22f9e(%rip), %rax     # 0x32f98
movq (%rax), %rax
movl 0x8(%rax), %eax
leaq 0x22fe9(%rip), %rcx     # 0x32ff0
movq (%rcx), %rcx
cmpl 0x8(%rcx), %eax
jge 0x1002e
leaq 0xfe1e(%rip), %rdi      # 0x1fe34
leaq 0xfe38(%rip), %rsi      # 0x1fe55
leaq 0xfe3f(%rip), %rcx      # 0x1fe63
movl $0x29, %edx
callq 0x30d0
movq 0x1c9bb(%rip), %rax     # 0x2c9f0
testq %rax, %rax
je 0x1005e
cmpb $0x2d, (%rax)
je 0x1005e
xorl %edi, %edi
callq 0x30f0
movq 0x1c9a3(%rip), %rdi     # 0x2c9f0
xorl %esi, %esi
xorl %eax, %eax
callq 0x3160
testl %eax, %eax
jne 0x101e1
movq 0x1c993(%rip), %rax     # 0x2c9f8
testq %rax, %rax
je 0x10093
cmpb $0x2d, (%rax)
je 0x10093
movl $0x1, %edi
callq 0x30f0
movq 0x1c978(%rip), %rdi     # 0x2c9f8
movl $0x1b6, %esi            # imm = 0x1B6
callq 0x3180
cmpl $0x1, %eax
jne 0x101f4
xorl %edi, %edi
callq 0xdb7c
callq 0xe195
leaq 0x1c93a(%rip), %r14     # 0x2c9e0
movl %eax, (%r14)
movl %ebp, %edi
movq %rbx, %rsi
callq 0x1a268
callq 0x67c2
movq 0x1c969(%rip), %rbx     # 0x2ca28
testq %rbx, %rbx
je 0x100dd
movq %rbx, %r15
movq (%r15), %rax
movq 0x8(%rax), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq *(%rax)
movq 0x8(%r15), %r15
cmpq %rbx, %r15
jne 0x100c7
xorps %xmm0, %xmm0
movups %xmm0, 0x1c939(%rip)    # 0x2ca20
movups %xmm0, 0x1c922(%rip)    # 0x2ca10
movups %xmm0, 0x1c90b(%rip)    # 0x2ca00
movq 0x1c964(%rip), %rax     # 0x2ca60
testq %rax, %rax
je 0x1016f
cmpl $0x0, 0x1c(%rax)
jle 0x10168
movl $0x0, 0x1c947(%rip)     # 0x2ca58
andb $-0x2, 0x1b(%rax)
movq $0x0, 0x1c940(%rip) # 0x2ca60
leaq 0x1b7e9(%rip), %rax     # 0x2b910
movq (%rax), %rsi
leaq 0xfda1(%rip), %rdi      # 0x1fed2
xorl %eax, %eax
callq 0x11b33
movq %rax, %rdi
callq 0xdfe2
callq 0xe195
movl %eax, (%r14)
callq 0x67c2
leaq 0xfd9c(%rip), %rdi      # 0x1fef0
callq 0xdfe2
callq 0xe195
movl %eax, (%r14)
callq 0x67c2
jmp 0x1016f
movl $0x3e8, 0x1c(%rax)      # imm = 0x3E8
callq 0x65ff
movl 0x1c8ba(%rip), %eax     # 0x2ca34
orl 0x1c8b0(%rip), %eax     # 0x2ca30
je 0x101c2
leaq 0x1a587(%rip), %rax     # 0x2a710
movq (%rax), %rdi
leaq 0xc7(%rip), %rbx        # 0x1025a
leaq 0x10(%rsp), %r14
movl $0x3, %esi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x17170
leaq 0x1a139(%rip), %rax     # 0x2a2e8
movq (%rax), %rdi
movl $0x3, %esi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x17170
callq 0x1a442
callq 0x11693
leaq 0x1a6d9(%rip), %rax     # 0x2a8ac
xorl %edi, %edi
cmpl $0x0, (%rax)
setg %dil
callq 0x31a0
movq (%rbx), %rdx
movq 0x1c805(%rip), %rcx     # 0x2c9f0
leaq 0xfc88(%rip), %rsi      # 0x1fe7a
jmp 0x10205
movq (%rbx), %rdx
movq 0x1c7fa(%rip), %rcx     # 0x2c9f8
leaq 0xfc88(%rip), %rsi      # 0x1fe8d
movl $0x2, %edi
xorl %eax, %eax
callq 0x115a8
movl $0x1, %edi
callq 0x31a0