// File: /workspace/github_c_makefile_star2_O0/Oric4ever[P]lcc65/6502/build/../src/main.c
// Function: doargs
static int doargs(int argc, char *argv[])  {
	char *s;
	int i, j, x;
	Symbol p;

	for (i = j = 1; i < argc; i++)
		if (strcmp(argv[i], "-g") == 0)
			glevel = 2;
		else if (strncmp(argv[i], "-g", 2) == 0
		&& argv[i][2] && argv[i][2] >= '0' && argv[i][2] <= '9')
			glevel = argv[i][2] - '0';
		else if (strcmp(argv[i], "-x") == 0)
			xref++;
		else if (strcmp(argv[i], "-A") == 0)
			Aflag++;
		else if (strcmp(argv[i], "-P") == 0)
			Pflag++;
		else if (strcmp(argv[i], "-w") == 0)
			wflag++;
		else if (strcmp(argv[i], "-b") == 0 || strcmp(argv[i], "-C") == 0
		|| strncmp(argv[i], "-a", 2) == 0)
			bbinit(argv[i]);
		else if (strcmp(argv[i], "-n") == 0) {
			if (!YYnull) {
				YYnull = mksymbol(EXTERN, "_YYnull", ftype(voidtype, inttype));
				YYnull->sclass = STATIC;
			}
		} else if (strncmp(argv[i], "-t", 2) == 0)
			traceinit(&argv[i][2]);
		else if (strcmp(argv[i], "-v") == 0)
			fprint(2, "%s version %d.%d\n", progname, VERSION>>8, VERSION&0xff);
		else if (strncmp(argv[i], "-s", 2) == 0)
			density = strtod(&argv[i][2], (char **)0);
		else if (strncmp(argv[i], "-e", 2) == 0) {
			if ((x = strtol(&argv[i][2], (char **)0, 0)) > 0)
				errlimit = x;
		} else if ((s = strchr(argv[i], '=')) &&
			(p = lookup(stringn(argv[i], s - argv[i]), types))) {
			if (*s == '=') {
				if ((x = strtol(s + 1, &s, 0)) > 0)
					p->type->size = x;
			}
			if (*s == ',') {
				if ((x = strtol(s + 1, &s, 0)) > 0)
					p->type->align = x;
			}
			if (*s++ == ',')
				p->addressed = !(*s == 0 || *s == '0');
		} else if (strcmp(argv[i], "-") == 0 || *argv[i] != '-') {
			if (infile == 0)
				infile = argv[i];
			else if (outfile == 0)
				outfile = argv[i];
			else
				argv[j++] = argv[i];
		} else {
			if (strcmp(argv[i], "-XP") == 0)
				argv[i] = "-p";
			else if (strncmp(argv[i], "-X", 2) == 0)
				*++argv[i] = '-';
			argv[j++] = argv[i];
		}
	argv[j] = 0;
	return j;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x1, -0x20(%rbp)
movl $0x1, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0x4(%rbp), %eax
jge 0x18622
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x18dd6(%rip), %rsi     # 0x30e02
callq 0x30f0
cmpl $0x0, %eax
jne 0x18045
movl $0x2, 0x25bc0(%rip)     # 0x3dc00
jmp 0x18612
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x18daa(%rip), %rsi     # 0x30e02
movl $0x2, %edx
callq 0x3050
cmpl $0x0, %eax
jne 0x180c4
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x2(%rax), %eax
cmpl $0x0, %eax
je 0x180c4
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x2(%rax), %eax
cmpl $0x30, %eax
jl 0x180c4
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x2(%rax), %eax
cmpl $0x39, %eax
jg 0x180c4
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x2(%rax), %eax
subl $0x30, %eax
movl %eax, 0x25b41(%rip)     # 0x3dc00
jmp 0x18610
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x18d2e(%rip), %rsi     # 0x30e05
callq 0x30f0
cmpl $0x0, %eax
jne 0x180f5
movl 0x25b1d(%rip), %eax     # 0x3dc04
addl $0x1, %eax
movl %eax, 0x25b14(%rip)     # 0x3dc04
jmp 0x1860e
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x18d00(%rip), %rsi     # 0x30e08
callq 0x30f0
cmpl $0x0, %eax
jne 0x18126
movl 0x25b10(%rip), %eax     # 0x3dc28
addl $0x1, %eax
movl %eax, 0x25b07(%rip)     # 0x3dc28
jmp 0x1860c
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x18cd2(%rip), %rsi     # 0x30e0b
callq 0x30f0
cmpl $0x0, %eax
jne 0x18157
movl 0x25ae3(%rip), %eax     # 0x3dc2c
addl $0x1, %eax
movl %eax, 0x25ada(%rip)     # 0x3dc2c
jmp 0x1860a
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x18ca4(%rip), %rsi     # 0x30e0e
callq 0x30f0
cmpl $0x0, %eax
jne 0x1818e
leaq 0x238c5(%rip), %rax     # 0x3ba40
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x238b9(%rip), %rax     # 0x3ba40
movl %ecx, (%rax)
jmp 0x18608
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x18c54(%rip), %rsi     # 0x30df5
callq 0x30f0
cmpl $0x0, %eax
je 0x181ea
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x18c3a(%rip), %rsi     # 0x30df8
callq 0x30f0
cmpl $0x0, %eax
je 0x181ea
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x18c0e(%rip), %rsi     # 0x30de9
movl $0x2, %edx
callq 0x3050
cmpl $0x0, %eax
jne 0x18200
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x18a20
jmp 0x18606
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x18bfe(%rip), %rsi     # 0x30e11
callq 0x30f0
cmpl $0x0, %eax
jne 0x1826b
cmpq $0x0, 0x25a0b(%rip)     # 0x3dc30
jne 0x18266
leaq 0x2c012(%rip), %rax     # 0x44240
movq (%rax), %rdi
leaq 0x2bfc0(%rip), %rax     # 0x441f8
movq (%rax), %rsi
callq 0x197a0
movq %rax, %rdx
movl $0x4a, %edi
leaq 0x18bc5(%rip), %rsi     # 0x30e14
callq 0x18830
movq %rax, 0x259d5(%rip)     # 0x3dc30
movq 0x259ce(%rip), %rax     # 0x3dc30
movb $0x51, 0x1a(%rax)
jmp 0x18604
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x18b9e(%rip), %rsi     # 0x30e1c
movl $0x2, %edx
callq 0x3050
cmpl $0x0, %eax
jne 0x182a7
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
addq $0x2, %rdi
callq 0x196c0
jmp 0x18602
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x18b65(%rip), %rsi     # 0x30e1f
callq 0x30f0
cmpl $0x0, %eax
jne 0x182ee
movq 0x258ed(%rip), %rdx     # 0x3dbb8
movl $0x2, %edi
leaq 0x18b4b(%rip), %rsi     # 0x30e22
movl $0x1, %ecx
movl $0x9, %r8d
movb $0x0, %al
callq 0x1a630
jmp 0x18600
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x18b33(%rip), %rsi     # 0x30e34
movl $0x2, %edx
callq 0x3050
cmpl $0x0, %eax
jne 0x1833d
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
addq $0x2, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x3070
cvtsd2ss %xmm0, %xmm0
leaq 0x21c7c(%rip), %rax     # 0x39fb0
movss %xmm0, (%rax)
jmp 0x185fe
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x18ae7(%rip), %rsi     # 0x30e37
movl $0x2, %edx
callq 0x3050
cmpl $0x0, %eax
jne 0x18393
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
addq $0x2, %rdi
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq 0x3110
movl %eax, -0x24(%rbp)
cmpl $0x0, %eax
jle 0x1838e
movl -0x24(%rbp), %ecx
leaq 0x21354(%rip), %rax     # 0x396e0
movl %ecx, (%rax)
jmp 0x185fc
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movl $0x3d, %esi
callq 0x30a0
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
je 0x184cd
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movslq -0x1c(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
subq %rcx, %rax
movl %eax, %esi
callq 0x23830
movq %rax, %rdi
leaq 0x23179(%rip), %rax     # 0x3b560
movq (%rax), %rsi
callq 0x24670
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0x184cd
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3d, %eax
jne 0x18434
movq -0x18(%rbp), %rdi
addq $0x1, %rdi
leaq -0x18(%rbp), %rsi
xorl %edx, %edx
callq 0x3110
movl %eax, -0x24(%rbp)
cmpl $0x0, %eax
jle 0x18432
movl -0x24(%rbp), %ecx
movq -0x30(%rbp), %rax
movq 0x20(%rax), %rax
movl %ecx, 0x8(%rax)
jmp 0x18434
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2c, %eax
jne 0x1846f
movq -0x18(%rbp), %rdi
addq $0x1, %rdi
leaq -0x18(%rbp), %rsi
xorl %edx, %edx
callq 0x3110
movl %eax, -0x24(%rbp)
cmpl $0x0, %eax
jle 0x1846d
movl -0x24(%rbp), %eax
movw %ax, %cx
movq -0x30(%rbp), %rax
movq 0x20(%rax), %rax
movw %cx, 0x4(%rax)
jmp 0x1846f
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movsbl (%rax), %eax
cmpl $0x2c, %eax
jne 0x184c8
movq -0x18(%rbp), %rax
movsbl (%rax), %ecx
movb $0x1, %al
cmpl $0x0, %ecx
movb %al, -0x31(%rbp)
je 0x184a7
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x30, %eax
sete %al
movb %al, -0x31(%rbp)
movb -0x31(%rbp), %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %ecx
movq -0x30(%rbp), %rax
movb %cl, %dl
movb 0x1b(%rax), %cl
andb $0x1, %dl
shlb $0x4, %dl
andb $-0x11, %cl
orb %dl, %cl
movb %cl, 0x1b(%rax)
jmp 0x185fa
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x178d2(%rip), %rsi     # 0x2fdb2
callq 0x30f0
cmpl $0x0, %eax
je 0x184fe
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
je 0x18565
cmpq $0x0, 0x256ba(%rip)     # 0x3dbc0
jne 0x1851d
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x256a5(%rip)     # 0x3dbc0
jmp 0x18560
cmpq $0x0, 0x256a3(%rip)     # 0x3dbc8
jne 0x1853c
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x2568e(%rip)     # 0x3dbc8
jmp 0x1855e
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x10(%rbp), %rax
movl -0x20(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x20(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0x18560
jmp 0x185f8
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x188c2(%rip), %rsi     # 0x30e3a
callq 0x30f0
cmpl $0x0, %eax
jne 0x18597
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
leaq 0x188ad(%rip), %rdx     # 0x30e3e
movq %rdx, (%rax,%rcx,8)
jmp 0x185d6
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x18897(%rip), %rsi     # 0x30e41
movl $0x2, %edx
callq 0x3050
cmpl $0x0, %eax
jne 0x185d4
movq -0x10(%rbp), %rcx
movslq -0x1c(%rbp), %rdx
movq (%rcx,%rdx,8), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, (%rcx,%rdx,8)
movb $0x2d, 0x1(%rax)
jmp 0x185d6
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x10(%rbp), %rax
movl -0x20(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x20(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0x185fa
jmp 0x185fc
jmp 0x185fe
jmp 0x18600
jmp 0x18602
jmp 0x18604
jmp 0x18606
jmp 0x18608
jmp 0x1860a
jmp 0x1860c
jmp 0x1860e
jmp 0x18610
jmp 0x18612
jmp 0x18614
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x1800d
movq -0x10(%rbp), %rax
movslq -0x20(%rbp), %rcx
movq $0x0, (%rax,%rcx,8)
movl -0x20(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)