// File: /workspace/github_c_makefile_star2_O1/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, %ebp
movq $0x0, 0x10(%rsp)
movq (%rsi), %rax
movq %rax, 0x1bd66(%rip)     # 0x2b9e8
callq 0x18238
leaq 0x1f0a2(%rip), %rax     # 0x2ed30
movl $0x3, (%rax)
movl $0x1, 0x4(%rsp)
cmpl $0x2, %ebp
jl 0x100c1
movl %ebp, %r13d
movl $0x1, 0x4(%rsp)
movl $0x1, %r12d
leaq 0x1014d(%rip), %r14     # 0x1fe0a
leaq 0x10149(%rip), %r15     # 0x1fe0d
movq (%rbx,%r12,8), %rbp
movq %rbp, %rdi
movq %r14, %rsi
callq 0x3110
testl %eax, %eax
je 0xfef0
movl $0x2, %edx
movq %rbp, %rdi
movq %r14, %rsi
callq 0x3050
testl %eax, %eax
jne 0xfd06
movb 0x2(%rbp), %al
addb $-0x30, %al
cmpb $0x9, %al
ja 0xfd06
movzbl %al, %eax
movl %eax, 0x1bd2f(%rip)     # 0x2ba30
jmp 0xff27
movq %rbp, %rdi
movq %r15, %rsi
callq 0x3110
testl %eax, %eax
je 0xfefc
movq %rbp, %rdi
leaq 0x100ed(%rip), %rsi     # 0x1fe10
callq 0x3110
testl %eax, %eax
je 0xff04
movq %rbp, %rdi
leaq 0x100d9(%rip), %rsi     # 0x1fe13
callq 0x3110
testl %eax, %eax
je 0xff0c
movq %rbp, %rdi
leaq 0x100c5(%rip), %rsi     # 0x1fe16
callq 0x3110
testl %eax, %eax
je 0xff1e
movq %rbp, %rdi
leaq 0x10095(%rip), %rsi     # 0x1fdfd
callq 0x3110
testl %eax, %eax
je 0xff14
movq %rbp, %rdi
leaq 0x10081(%rip), %rsi     # 0x1fe00
callq 0x3110
testl %eax, %eax
je 0xff14
movl $0x2, %edx
movq %rbp, %rdi
leaq 0x10056(%rip), %rsi     # 0x1fdf1
callq 0x3050
testl %eax, %eax
je 0xff14
movq %rbp, %rdi
leaq 0x10067(%rip), %rsi     # 0x1fe19
callq 0x3110
testl %eax, %eax
je 0xff38
movl $0x2, %edx
movq %rbp, %rdi
leaq 0x10056(%rip), %rsi     # 0x1fe24
callq 0x3050
testl %eax, %eax
je 0xff7c
movq %rbp, %rdi
leaq 0x10042(%rip), %rsi     # 0x1fe27
callq 0x3110
testl %eax, %eax
je 0xff8a
movl $0x2, %edx
movq %rbp, %rdi
leaq 0x1003b(%rip), %rsi     # 0x1fe3c
callq 0x3050
testl %eax, %eax
je 0xffb4
movl $0x2, %edx
movq %rbp, %rdi
leaq 0x10022(%rip), %rsi     # 0x1fe3f
callq 0x3050
testl %eax, %eax
je 0x10034
movq %rbp, %rdi
movl $0x3d, %esi
callq 0x30b0
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0xffd6
movl %eax, %esi
subl %ebp, %esi
movq %rbp, %rdi
movq %rax, %rbp
callq 0x16c24
leaq 0x198b5(%rip), %rcx     # 0x29710
movq (%rcx), %rsi
movq %rax, %rdi
callq 0x173d9
testq %rax, %rax
je 0xffd6
movq %rbp, %rdi
movq %rax, %rbp
cmpb $0x3d, (%rdi)
jne 0xfe94
incq %rdi
leaq 0x8(%rsp), %rsi
xorl %edx, %edx
callq 0x3130
testl %eax, %eax
jle 0xfe94
movq 0x20(%rbp), %rcx
movl %eax, 0x8(%rcx)
movq 0x8(%rsp), %rdi
cmpb $0x2c, (%rdi)
jne 0xfeb9
incq %rdi
leaq 0x8(%rsp), %rsi
xorl %edx, %edx
callq 0x3130
testl %eax, %eax
jle 0xfeb9
movq 0x20(%rbp), %rcx
movw %ax, 0x4(%rcx)
movq 0x8(%rsp), %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0x8(%rsp)
cmpb $0x2c, (%rcx)
jne 0xff27
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(%rbp), %cl
andb $-0x11, %cl
orb %al, %cl
movb %cl, 0x1b(%rbp)
jmp 0xff27
movl $0x2, 0x1bb36(%rip)     # 0x2ba30
jmp 0xff27
incl 0x1bb32(%rip)           # 0x2ba34
jmp 0xff27
incl 0x1bb4e(%rip)           # 0x2ba58
jmp 0xff27
incl 0x1bb4a(%rip)           # 0x2ba5c
jmp 0xff27
movq %rbp, %rdi
callq 0x10487
jmp 0xff27
leaq 0x1998b(%rip), %rax     # 0x298b0
incl (%rax)
incq %r12
cmpq %r12, %r13
jne 0xfcc4
jmp 0x100c1
cmpq $0x0, 0x1bb20(%rip)     # 0x2ba60
jne 0xff27
leaq 0x22097(%rip), %rax     # 0x31fe0
movq (%rax), %rdi
leaq 0x22045(%rip), %rax     # 0x31f98
movq (%rax), %rsi
callq 0x10e0b
movl $0x4a, %edi
leaq 0xfeb5(%rip), %rsi      # 0x1fe1c
movq %rax, %rdx
callq 0x103a9
movq %rax, 0x1baea(%rip)     # 0x2ba60
movb $0x51, 0x1a(%rax)
jmp 0xff27
addq $0x2, %rbp
movq %rbp, %rdi
callq 0x10d6a
jmp 0xff27
movq 0x1ba57(%rip), %rdx     # 0x2b9e8
movl $0x2, %edi
leaq 0xfe8d(%rip), %rsi      # 0x1fe2a
movl $0x1, %ecx
movl $0x9, %r8d
xorl %eax, %eax
callq 0x116f4
jmp 0xff27
addq $0x2, %rbp
movq %rbp, %rdi
xorl %esi, %esi
callq 0x3080
cvtsd2ss %xmm0, %xmm0
leaq 0x186b3(%rip), %rax     # 0x28680
movss %xmm0, (%rax)
jmp 0xff27
movq (%rbx,%r12,8), %rbp
movq %rbp, %rdi
leaq 0xedad(%rip), %rsi      # 0x1ed91
callq 0x3110
testl %eax, %eax
je 0x1005a
cmpb $0x2d, (%rbp)
jne 0x1005a
movq %rbp, %rdi
leaq 0xfe45(%rip), %rsi      # 0x1fe42
callq 0x3110
testl %eax, %eax
je 0x1009c
movl $0x2, %edx
movq %rbp, %rdi
leaq 0xfe30(%rip), %rsi      # 0x1fe49
callq 0x3050
testl %eax, %eax
jne 0x100a7
leaq 0x1(%rbp), %rax
movq %rax, (%rbx,%r12,8)
movb $0x2d, 0x1(%rbp)
jmp 0x100a7
addq $0x2, %rbp
movq %rbp, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3130
testl %eax, %eax
jle 0xff27
leaq 0x1850d(%rip), %rcx     # 0x28560
movl %eax, (%rcx)
jmp 0xff27
cmpq $0x0, 0x1b98e(%rip)     # 0x2b9f0
je 0x10084
cmpq $0x0, 0x1b98c(%rip)     # 0x2b9f8
je 0x10090
movl 0x4(%rsp), %ecx
movslq %ecx, %rax
incl %ecx
movl %ecx, 0x4(%rsp)
movq %rbp, (%rbx,%rax,8)
jmp 0xff27
movq %rbp, 0x1b965(%rip)     # 0x2b9f0
jmp 0xff27
movq %rbp, 0x1b961(%rip)     # 0x2b9f8
jmp 0xff27
leaq 0xfda3(%rip), %rax      # 0x1fe46
movq %rax, (%rbx,%r12,8)
movq (%rbx,%r12,8), %rax
movl 0x4(%rsp), %edx
movslq %edx, %rcx
incl %edx
movl %edx, 0x4(%rsp)
movq %rax, (%rbx,%rcx,8)
jmp 0xff27
movl 0x4(%rsp), %ebp
movslq %ebp, %rax
movq $0x0, (%rbx,%rax,8)
leaq 0x21ec1(%rip), %rax     # 0x31f98
movq (%rax), %rax
movl 0x8(%rax), %eax
leaq 0x21f0c(%rip), %rcx     # 0x31ff0
movq (%rcx), %rcx
cmpl 0x8(%rcx), %eax
jge 0x1010b
leaq 0xfc91(%rip), %rdi      # 0x1fd84
leaq 0xfcab(%rip), %rsi      # 0x1fda5
leaq 0xfcb2(%rip), %rcx      # 0x1fdb3
movl $0x29, %edx
callq 0x30d0
movq 0x1b8de(%rip), %rax     # 0x2b9f0
testq %rax, %rax
je 0x1013b
cmpb $0x2d, (%rax)
je 0x1013b
xorl %edi, %edi
callq 0x30f0
movq 0x1b8c6(%rip), %rdi     # 0x2b9f0
xorl %esi, %esi
xorl %eax, %eax
callq 0x3160
testl %eax, %eax
jne 0x102be
movq 0x1b8b6(%rip), %rax     # 0x2b9f8
testq %rax, %rax
je 0x10170
cmpb $0x2d, (%rax)
je 0x10170
movl $0x1, %edi
callq 0x30f0
movq 0x1b89b(%rip), %rdi     # 0x2b9f8
movl $0x1b6, %esi            # imm = 0x1B6
callq 0x3180
cmpl $0x1, %eax
jne 0x102d1
xorl %edi, %edi
callq 0xdbb4
callq 0xe1c6
leaq 0x1b85d(%rip), %r14     # 0x2b9e0
movl %eax, (%r14)
movl %ebp, %edi
movq %rbx, %rsi
callq 0x1a484
callq 0x67b1
movq 0x1b88c(%rip), %rbx     # 0x2ba28
testq %rbx, %rbx
je 0x101ba
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 0x101a4
xorps %xmm0, %xmm0
movups %xmm0, 0x1b85c(%rip)    # 0x2ba20
movups %xmm0, 0x1b845(%rip)    # 0x2ba10
movups %xmm0, 0x1b82e(%rip)    # 0x2ba00
movq 0x1b887(%rip), %rax     # 0x2ba60
testq %rax, %rax
je 0x1024c
cmpl $0x0, 0x1c(%rax)
jle 0x10245
movl $0x0, 0x1b86a(%rip)     # 0x2ba58
andb $-0x2, 0x1b(%rax)
movq $0x0, 0x1b863(%rip) # 0x2ba60
leaq 0x1a70c(%rip), %rax     # 0x2a910
movq (%rax), %rsi
leaq 0xfc3e(%rip), %rdi      # 0x1fe4c
xorl %eax, %eax
callq 0x11c7f
movq %rax, %rdi
callq 0xe005
callq 0xe1c6
movl %eax, (%r14)
callq 0x67b1
leaq 0xfc39(%rip), %rdi      # 0x1fe6a
callq 0xe005
callq 0xe1c6
movl %eax, (%r14)
callq 0x67b1
jmp 0x1024c
movl $0x3e8, 0x1c(%rax)      # imm = 0x3E8
callq 0x65ea
movl 0x1b7dd(%rip), %eax     # 0x2ba34
orl 0x1b7d3(%rip), %eax     # 0x2ba30
je 0x1029f
leaq 0x194aa(%rip), %rax     # 0x29710
movq (%rax), %rdi
leaq 0xc7(%rip), %rbx        # 0x10337
leaq 0x10(%rsp), %r14
movl $0x3, %esi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x172b1
leaq 0x1905c(%rip), %rax     # 0x292e8
movq (%rax), %rdi
movl $0x3, %esi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x172b1
callq 0x1a671
callq 0x117df
leaq 0x195fc(%rip), %rax     # 0x298ac
xorl %edi, %edi
cmpl $0x0, (%rax)
setg %dil
callq 0x31a0
movq (%rbx), %rdx
movq 0x1b728(%rip), %rcx     # 0x2b9f0
leaq 0xfafb(%rip), %rsi      # 0x1fdca
jmp 0x102e2
movq (%rbx), %rdx
movq 0x1b71d(%rip), %rcx     # 0x2b9f8
leaq 0xfafb(%rip), %rsi      # 0x1fddd
movl $0x2, %edi
xorl %eax, %eax
callq 0x116f4
movl $0x1, %edi
callq 0x31a0