// File: /workspace/github_c_makefile_star2_O2/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 $0x28, %rsp
andq $0x0, 0x20(%rsp)
movq %rsi, %r13
movl %edi, %ebp
movq (%rsi), %rax
movq %rax, 0x1cd4d(%rip)     # 0x2b9e8
callq 0x16bf8
leaq 0x20089(%rip), %rax     # 0x2ed30
movl $0x3, (%rax)
movslq %ebp, %rax
movq %rax, 0x18(%rsp)
pushq $0x1
popq %rbp
pushq $0x1
popq %r14
movslq %ebp, %r15
cmpq 0x18(%rsp), %r14
jge 0xf012
movq (%r13,%r14,8), %r12
movb (%r12), %bl
cmpb $0x2d, %bl
jne 0xee79
movzbl 0x1(%r12), %eax
leal -0x61(%rax), %ecx
cmpl $0x17, %ecx
ja 0xed20
leaq 0xf0b3(%rip), %rdx      # 0x1dda4
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
jmpq *%rax
addq $0x2, %r12
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3130
testl %eax, %eax
jle 0xeff6
leaq 0x19847(%rip), %rcx     # 0x28560
movl %eax, (%rcx)
jmp 0xeff6
cmpl $0x41, %eax
je 0xee6d
cmpl $0x43, %eax
je 0xed4e
cmpl $0x50, %eax
jne 0xee79
cmpb $0x0, 0x2(%r12)
jne 0xee79
incl 0x1cd13(%rip)           # 0x2ba5c
jmp 0xeff6
cmpb $0x0, 0x2(%r12)
jne 0xee79
movq %r12, %rdi
callq 0xf378
jmp 0xeff6
cmpb $0x0, 0x2(%r12)
jne 0xee79
cmpq $0x0, 0x1cce5(%rip)     # 0x2ba60
jne 0xeff6
leaq 0x23258(%rip), %rax     # 0x31fe0
movq (%rax), %rdi
leaq 0x23206(%rip), %rax     # 0x31f98
movq (%rax), %rsi
callq 0xfc95
pushq $0x4a
popq %rdi
leaq 0xf10d(%rip), %rsi      # 0x1deb1
movq %rax, %rdx
callq 0xf2b3
movq %rax, 0x1ccad(%rip)     # 0x2ba60
movb $0x51, 0x1a(%rax)
jmp 0xeff6
movb 0x2(%r12), %al
testb %al, %al
je 0xeffe
addb $-0x30, %al
cmpb $0x9, %al
ja 0xee79
movzbl %al, %eax
movl %eax, 0x1cc54(%rip)     # 0x2ba30
jmp 0xeff6
cmpb $0x0, 0x2(%r12)
jne 0xee79
leaq 0x1aabc(%rip), %rax     # 0x298b0
incl (%rax)
jmp 0xeff6
addq $0x2, %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x3080
cvtsd2ss %xmm0, %xmm0
leaq 0x1986c(%rip), %rax     # 0x28680
movss %xmm0, (%rax)
jmp 0xeff6
addq $0x2, %r12
movq %r12, %rdi
callq 0xfbf6
jmp 0xeff6
cmpb $0x0, 0x2(%r12)
jne 0xee79
incl 0x1cbf8(%rip)           # 0x2ba34
jmp 0xeff6
cmpb $0x0, 0x2(%r12)
jne 0xee79
movq 0x1cb98(%rip), %rdx     # 0x2b9e8
pushq $0x2
popq %rdi
leaq 0xf05f(%rip), %rsi      # 0x1deb9
pushq $0x1
popq %rcx
pushq $0x9
popq %r8
xorl %eax, %eax
callq 0x10528
jmp 0xeff6
cmpb $0x0, 0x2(%r12)
je 0xf00a
movq %r14, 0x8(%rsp)
movl %ebp, %r14d
movq %r13, %rbp
movq %r12, %rdi
pushq $0x3d
popq %rsi
callq 0x30b0
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0xef60
movq %rax, %r13
movl %r13d, %esi
subl %r12d, %esi
movq %r12, %rdi
callq 0x157c9
leaq 0x1a85b(%rip), %rcx     # 0x29710
movq (%rcx), %rsi
movq %rax, %rdi
callq 0x15ec0
testq %rax, %rax
je 0xef65
movq %rax, %r12
cmpb $0x3d, (%r13)
jne 0xeef1
incq %r13
movq %r13, %rdi
leaq 0x10(%rsp), %rsi
xorl %edx, %edx
callq 0x3130
testl %eax, %eax
jle 0xeef1
movq 0x20(%r12), %rcx
movl %eax, 0x8(%rcx)
movq 0x10(%rsp), %rdi
cmpb $0x2c, (%rdi)
jne 0xef17
incq %rdi
leaq 0x10(%rsp), %rsi
xorl %edx, %edx
callq 0x3130
testl %eax, %eax
jle 0xef17
movq 0x20(%r12), %rcx
movw %ax, 0x4(%rcx)
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0x10(%rsp)
cmpb $0x2c, (%rcx)
movq %rbp, %r13
jne 0xef53
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(%r12), %cl
andb $-0x11, %cl
orb %al, %cl
movb %cl, 0x1b(%r12)
movl %r14d, %ebp
movq 0x8(%rsp), %r14
jmp 0xeff6
movq %rbp, %r13
jmp 0xef76
movq %rbp, %r13
movq 0x8(%rsp), %rax
movq (%rbp,%rax,8), %r12
movb (%r12), %bl
cmpb $0x2d, %bl
movl %r14d, %ebp
jne 0xefb8
movb 0x1(%r12), %bl
testb %bl, %bl
je 0xefb8
movq %r12, %rdi
leaq 0xef3a(%rip), %rsi      # 0x1decb
callq 0x3110
testl %eax, %eax
movq 0x8(%rsp), %r14
je 0xefe3
cmpb $0x58, %bl
jne 0xefef
incq %r12
movq %r12, (%r13,%r14,8)
movb $0x2d, (%r12)
movq (%r13,%r14,8), %r12
jmp 0xefef
cmpq $0x0, 0x1ca30(%rip)     # 0x2b9f0
movq 0x8(%rsp), %r14
je 0xefda
cmpq $0x0, 0x1ca29(%rip)     # 0x2b9f8
jne 0xefef
movq %r12, 0x1ca20(%rip)     # 0x2b9f8
jmp 0xeff6
movq %r12, 0x1ca0f(%rip)     # 0x2b9f0
jmp 0xeff6
leaq 0xeee5(%rip), %r12      # 0x1decf
movq %r12, (%r13,%r14,8)
incl %ebp
movq %r12, (%r13,%r15,8)
incq %r14
jmp 0xecbc
movl $0x2, 0x1ca28(%rip)     # 0x2ba30
jmp 0xeff6
incl 0x1ca48(%rip)           # 0x2ba58
jmp 0xeff6
andq $0x0, (%r13,%r15,8)
leaq 0x22f79(%rip), %rax     # 0x31f98
movq (%rax), %rax
movl 0x8(%rax), %eax
leaq 0x22fc4(%rip), %rcx     # 0x31ff0
movq (%rcx), %rcx
cmpl 0x8(%rcx), %eax
jge 0xf051
leaq 0xedf9(%rip), %rdi      # 0x1de34
leaq 0xee13(%rip), %rsi      # 0x1de55
leaq 0xee1a(%rip), %rcx      # 0x1de63
pushq $0x29
popq %rdx
callq 0x30d0
movq 0x1c998(%rip), %rax     # 0x2b9f0
testq %rax, %rax
je 0xf081
cmpb $0x2d, (%rax)
je 0xf081
xorl %edi, %edi
callq 0x30f0
movq 0x1c980(%rip), %rdi     # 0x2b9f0
xorl %esi, %esi
xorl %eax, %eax
callq 0x3160
testl %eax, %eax
jne 0xf1ce
movq 0x1c970(%rip), %rax     # 0x2b9f8
testq %rax, %rax
je 0xf0b4
cmpb $0x2d, (%rax)
je 0xf0b4
pushq $0x1
popq %rdi
callq 0x30f0
movq 0x1c957(%rip), %rdi     # 0x2b9f8
movl $0x1b6, %esi            # imm = 0x1B6
callq 0x3180
cmpl $0x1, %eax
jne 0xf1e2
xorl %edi, %edi
callq 0xce2c
callq 0xd3c9
leaq 0x1c919(%rip), %rcx     # 0x2b9e0
movl %eax, (%rcx)
movl %ebp, %edi
movq %r13, %rsi
callq 0x18d68
callq 0x60c0
movq 0x1c949(%rip), %rdi     # 0x2ba28
testq %rdi, %rdi
je 0xf0ed
xorl %esi, %esi
xorl %edx, %edx
callq 0xf206
xorps %xmm0, %xmm0
movups %xmm0, 0x1c929(%rip)    # 0x2ba20
movups %xmm0, 0x1c912(%rip)    # 0x2ba10
movups %xmm0, 0x1c8fb(%rip)    # 0x2ba00
movq 0x1c954(%rip), %rax     # 0x2ba60
testq %rax, %rax
je 0xf15f
cmpl $0x0, 0x1c(%rax)
jle 0xf158
andl $0x0, 0x1c93a(%rip)     # 0x2ba58
andb $-0x2, 0x1b(%rax)
andq $0x0, 0x1c936(%rip)     # 0x2ba60
leaq 0x1b7df(%rip), %rax     # 0x2a910
movq (%rax), %rsi
leaq 0xed97(%rip), %rdi      # 0x1ded2
xorl %eax, %eax
callq 0x10a97
movq %rax, %rdi
callq 0xff08
leaq 0xed9f(%rip), %rdi      # 0x1def0
callq 0xff08
jmp 0xf15f
movl $0x3e8, 0x1c(%rax)      # imm = 0x3E8
callq 0x5f02
movl 0x1c8ca(%rip), %eax     # 0x2ba34
orl 0x1c8c0(%rip), %eax     # 0x2ba30
je 0xf1af
leaq 0x1a597(%rip), %rax     # 0x29710
movq (%rax), %rdi
leaq 0xc2(%rip), %rbx        # 0xf245
pushq $0x3
popq %rbp
leaq 0x20(%rsp), %r14
movl %ebp, %esi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x15d9b
leaq 0x1a149(%rip), %rax     # 0x292e8
movq (%rax), %rdi
movl %ebp, %esi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x15d9b
callq 0x18f57
callq 0x10613
leaq 0x1a6ec(%rip), %rax     # 0x298ac
xorl %edi, %edi
cmpl $0x0, (%rax)
setg %dil
callq 0x31a0
movq (%r13), %rdx
movq 0x1c817(%rip), %rcx     # 0x2b9f0
leaq 0xec9a(%rip), %rsi      # 0x1de7a
jmp 0xf1f4
movq (%r13), %rdx
movq 0x1c80b(%rip), %rcx     # 0x2b9f8
leaq 0xec99(%rip), %rsi      # 0x1de8d
pushq $0x2
popq %rdi
xorl %eax, %eax
callq 0x10528
pushq $0x1
popq %rdi
callq 0x31a0