// File: /workspace/github_c_makefile_star2_O3/mist64[P]cbm6502asm/src/outline.c
// Function: outline1
void outline1(FILE *file, char addr, char data, char *d, char equ, char known) {
	int i;
	if (!print && !error) /* don't print certain directives unless error */
		return;
	if (!list) /* don't print if .Nlist directive active */
		return;
	if (macrolevel)
		if (!addr && !data && mlist < 1) /* no code */
			return;

	fprintf(file, "%5s", error_field);
	if (!isspace(*error_field)) errcount++;
	if (addr)
		fprintf(file, "%04.4lX   ", old_loc);
	else
		fprintf(file, "       ");
	if (equ)
		fprintf(file, "=%02X%02X   ", 255 & d[0], 255 & d[1]);
	else {
		if (word || dbyt)
			fprintf(file, "%02X%02X    ", 255 & d[word],
			        255 & d[dbyt]);
		else {
			if (data == 0) fprintf(file, "        ");
			if (data == 1) fprintf(file, "%02X      ", 255 & d[0]);
			if (data == 2)
				fprintf(file, "%02X %02X   ", 255 & d[0],
				        255 & d[1]);
			if (data >= 3 && !byte)
				fprintf(file, "%02X %02X%02X ", 255 & d[0],
				        255 & d[2], 255 & d[1]);
			if (data >= 3 && byte)
				fprintf(file, "%02X %02X %02X", 255 & d[0],
				        255 & d[1], 255 & d[2]);
		}
	}
	if (known)
		fprintf(file, " ");
	else
		fprintf(file, "\"");
	if (pass == 1) {
		maclev = ' ';
		if (macrolevel) maclev = 'A' + macrolevel - 1;
		if (macrolevel > 26) maclev = 'a' + macrolevel - 27;
		if (macrolevel > 52) maclev = '*';
	}
	fprintf(file, "%8d%c  ", linenum - 1, maclev);
	fprintf(file, "%c%s", spechar, line);
	if (gen) {
		if (word || dbyt)
			for (i = 2; i < data; i += 2)
				fprintf(file, "\n     %04lX   %02X%02X",
				        old_loc + i, 255 & d[i + word],
				        255 & d[i + dbyt]);
		else
			for (i = 3; i < data; i++) {
				if (!(i % 3))
					fprintf(file, "\n     %04lX   ",
					        old_loc + i);
				fprintf(file, "%02X ", 255 & d[i]);
			}
	}
	fprintf(file, "\n");
	if (macrolevel > maxmaclev && file == file_tmp) {
		fclose(file_tmp);
		sprintf(p2, "%d", maxmaclev);
		error_msg("\nMacros nested too deep. Max depth = ", p2, 2);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
leaq 0x676c(%rip), %rax      # 0xddec
cmpl $0x0, (%rax)
sete %al
leaq 0x6763(%rip), %rcx      # 0xddf0
cmpb $0x0, (%rcx)
sete %cl
testb %cl, %al
jne 0x79aa
leaq 0x64d2(%rip), %rax      # 0xdb74
cmpl $0x0, (%rax)
je 0x79aa
movl %r8d, %r12d
movl %esi, %r13d
movq %rdi, %rbx
leaq 0x64a1(%rip), %rax      # 0xdb5c
cmpl $0x0, (%rax)
je 0x76d7
movl %edx, %eax
orb %r13b, %al
jne 0x76d7
leaq 0x64a2(%rip), %rax      # 0xdb70
cmpl $0x0, (%rax)
jle 0x79aa
movl %r9d, 0x4(%rsp)
movl %edx, %r15d
leaq 0x3458(%rip), %rsi      # 0xab3e
leaq 0x6583(%rip), %rbp      # 0xdc70
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1140
callq 0x1230
movq (%rax), %rax
movsbq (%rbp), %rcx
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x7717
leaq 0x6103(%rip), %rax      # 0xd818
incl (%rax)
testb %r13b, %r13b
je 0x7739
leaq 0x66ad(%rip), %rax      # 0xddd0
movq (%rax), %rdx
leaq 0x3415(%rip), %rsi      # 0xab42
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1140
jmp 0x7752
leaq 0x2944(%rip), %rdi      # 0xa084
movl $0x7, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x1210
testb %r12b, %r12b
je 0x7769
movzbl (%r14), %edx
movzbl 0x1(%r14), %ecx
leaq 0x33e6(%rip), %rsi      # 0xab4d
jmp 0x779a
leaq 0x632c(%rip), %rax      # 0xda9c
movslq (%rax), %rax
leaq 0x6326(%rip), %rcx      # 0xdaa0
movl (%rcx), %ecx
movl %eax, %edx
orl %ecx, %edx
je 0x780a
movslq %ecx, %rcx
movzbl (%r14,%rax), %edx
movzbl (%r14,%rcx), %ecx
leaq 0x33c0(%rip), %rsi      # 0xab5a
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1140
xorl %eax, %eax
cmpb $0x0, 0x4(%rsp)
sete %al
leal 0x20(,%rax,2), %edi
movq %rbx, %rsi
callq 0x1110
leaq 0x6030(%rip), %rax      # 0xd7f4
cmpl $0x1, (%rax)
jne 0x77ff
leaq 0x64f2(%rip), %rax      # 0xdcc2
movb $0x20, (%rax)
leaq 0x6382(%rip), %rcx      # 0xdb5c
movl (%rcx), %edx
testl %edx, %edx
je 0x7846
leal 0x40(%rdx), %ecx
movb %cl, (%rax)
cmpl $0x1b, %edx
jl 0x7848
leal 0x46(%rdx), %ecx
cmpl $0x35, %edx
movzbl %cl, %edx
movl $0x2a, %ecx
cmovbl %edx, %ecx
movb %cl, (%rax)
jmp 0x7848
leaq 0x64bc(%rip), %rax      # 0xdcc2
movb (%rax), %cl
jmp 0x7848
movsbl %r15b, %eax
cmpl $0x2, %eax
je 0x7a15
cmpl $0x1, %eax
je 0x79fb
testl %eax, %eax
jne 0x7a2a
leaq 0x2854(%rip), %rdi      # 0xa083
movl $0x8, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x1210
jmp 0x77a4
movb $0x20, %cl
leaq 0x6329(%rip), %rax      # 0xdb78
movl (%rax), %edx
decl %edx
movsbl %cl, %ecx
leaq 0x3340(%rip), %rsi      # 0xab9d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1140
leaq 0x63a8(%rip), %rax      # 0xdc16
movsbl (%rax), %edx
leaq 0x332d(%rip), %rsi      # 0xaba5
leaq 0x6831(%rip), %rcx      # 0xe0b0
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1140
leaq 0x62dc(%rip), %rax      # 0xdb6c
cmpl $0x0, (%rax)
je 0x7979
leaq 0x61fc(%rip), %r13      # 0xda9c
leaq 0x61f9(%rip), %rsi      # 0xdaa0
movl (%rsi), %eax
orl (%r13), %eax
je 0x790b
cmpb $0x3, %r15b
jl 0x7979
movzbl %r15b, %ebp
addq $0x2, %r14
movl $0x2, %r12d
leaq 0x6502(%rip), %rax      # 0xddd0
movq (%rax), %rdx
addq %r12, %rdx
movslq (%r13), %rax
movzbl (%r14,%rax), %ecx
movslq (%rsi), %rax
movzbl (%r14,%rax), %r8d
movq %rbx, %rdi
movq %rsi, %r15
leaq 0x32b8(%rip), %rsi      # 0xabaa
xorl %eax, %eax
callq 0x1140
movq %r15, %rsi
addq $0x2, %r12
addq $0x2, %r14
cmpq %rbp, %r12
jb 0x78c7
jmp 0x7979
cmpb $0x4, %r15b
jl 0x7979
movzbl %r15b, %r13d
movl $0x3, %ebp
movl $0xfffffffd, %r15d      # imm = 0xFFFFFFFD
leaq 0x3261(%rip), %r12      # 0xab88
movl %ebp, %eax
movl $0xaaaaaaab, %ecx       # imm = 0xAAAAAAAB
imulq %rcx, %rax
shrq $0x21, %rax
leal (%rax,%rax,2), %eax
addl %r15d, %eax
jne 0x795c
leaq 0x648b(%rip), %rax      # 0xddd0
movq (%rax), %rdx
addq %rbp, %rdx
movq %rbx, %rdi
leaq 0x326c(%rip), %rsi      # 0xabc1
xorl %eax, %eax
callq 0x1140
movzbl (%r14,%rbp), %edx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x1140
incq %rbp
decl %r15d
cmpq %rbp, %r13
jne 0x7927
movl $0xa, %edi
movq %rbx, %rsi
callq 0x1110
leaq 0x61cf(%rip), %rax      # 0xdb5c
movl (%rax), %eax
leaq 0x5fd2(%rip), %r14      # 0xd968
cmpl (%r14), %eax
jle 0x79aa
leaq 0x5da6(%rip), %rax      # 0xd748
movq (%rax), %rdi
cmpq %rbx, %rdi
je 0x79b9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x10a0
movl (%r14), %edx
leaq 0x65b8(%rip), %rbx      # 0xdf80
leaq 0x311f(%rip), %rsi      # 0xaaee
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11f0
leaq 0x31f0(%rip), %rdi      # 0xabd0
movq %rbx, %rsi
movl $0x2, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1e8b
movzbl (%r14), %edx
leaq 0x3161(%rip), %rsi      # 0xab67
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1140
jmp 0x77a4
movzbl (%r14), %edx
movzbl 0x1(%r14), %ecx
leaq 0x314d(%rip), %rsi      # 0xab72
jmp 0x779a
cmpb $0x3, %r15b
setl %cl
leaq 0x6060(%rip), %r12      # 0xda98
movl (%r12), %eax
testl %eax, %eax
setne %dl
orb %cl, %dl
jne 0x7a68
movzbl (%r14), %edx
movzbl 0x2(%r14), %ecx
movzbl 0x1(%r14), %r8d
leaq 0x3125(%rip), %rsi      # 0xab7f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1140
movl (%r12), %eax
cmpb $0x3, %r15b
jl 0x77a4
testl %eax, %eax
je 0x77a4
movzbl (%r14), %edx
movzbl 0x1(%r14), %ecx
movzbl 0x2(%r14), %r8d
leaq 0x30ff(%rip), %rsi      # 0xab8e
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1140
jmp 0x77a4