// File: /workspace/github_c_makefile_star2_O1/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 0x6743(%rip), %rax      # 0xddec
cmpl $0x0, (%rax)
sete %al
leaq 0x673a(%rip), %rcx      # 0xddf0
cmpb $0x0, (%rcx)
sete %cl
testb %cl, %al
jne 0x7982
leaq 0x64a9(%rip), %rax      # 0xdb74
cmpl $0x0, (%rax)
je 0x7982
movl %r8d, %r12d
movl %edx, %ebp
movl %esi, %r13d
movq %rdi, %rbx
leaq 0x6476(%rip), %rax      # 0xdb5c
cmpl $0x0, (%rax)
je 0x7702
movl %ebp, %eax
orb %r13b, %al
jne 0x7702
leaq 0x6477(%rip), %rax      # 0xdb70
cmpl $0x0, (%rax)
jle 0x7982
movl %r9d, 0x4(%rsp)
leaq 0x3430(%rip), %rsi      # 0xab3e
leaq 0x655b(%rip), %r15      # 0xdc70
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x1140
callq 0x1230
movq (%rax), %rax
movsbq (%r15), %rcx
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x773e
leaq 0x60dc(%rip), %rax      # 0xd818
incl (%rax)
testb %r13b, %r13b
je 0x7760
leaq 0x6686(%rip), %rax      # 0xddd0
movq (%rax), %rdx
leaq 0x33ee(%rip), %rsi      # 0xab42
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1140
jmp 0x7779
leaq 0x291d(%rip), %rdi      # 0xa084
movl $0x7, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x1210
testb %r12b, %r12b
je 0x7790
movzbl (%r14), %edx
movzbl 0x1(%r14), %ecx
leaq 0x33bf(%rip), %rsi      # 0xab4d
jmp 0x77c1
leaq 0x6305(%rip), %rax      # 0xda9c
movslq (%rax), %rax
leaq 0x62ff(%rip), %rcx      # 0xdaa0
movl (%rcx), %ecx
movl %eax, %edx
orl %ecx, %edx
je 0x7991
movslq %ecx, %rcx
movzbl (%r14,%rax), %edx
movzbl (%r14,%rcx), %ecx
leaq 0x3399(%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 0x6009(%rip), %rax      # 0xd7f4
cmpl $0x1, (%rax)
jne 0x781e
leaq 0x64cb(%rip), %rax      # 0xdcc2
movb $0x20, (%rax)
leaq 0x635b(%rip), %rcx      # 0xdb5c
movl (%rcx), %ecx
testl %ecx, %ecx
je 0x780c
leal 0x40(%rcx), %edx
movb %dl, (%rax)
cmpl $0x1b, %ecx
jl 0x7816
leal 0x46(%rcx), %edx
movb %dl, (%rax)
cmpl $0x35, %ecx
jl 0x781e
movb $0x2a, (%rax)
leaq 0x6353(%rip), %rax      # 0xdb78
movl (%rax), %edx
decl %edx
leaq 0x6492(%rip), %rax      # 0xdcc2
movsbl (%rax), %ecx
leaq 0x3363(%rip), %rsi      # 0xab9d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1140
leaq 0x63cb(%rip), %rax      # 0xdc16
movsbl (%rax), %edx
leaq 0x3350(%rip), %rsi      # 0xaba5
leaq 0x6854(%rip), %rcx      # 0xe0b0
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1140
leaq 0x62ff(%rip), %rax      # 0xdb6c
cmpl $0x0, (%rax)
je 0x7951
leaq 0x621f(%rip), %r13      # 0xda9c
leaq 0x621c(%rip), %r15      # 0xdaa0
movl (%r15), %eax
orl (%r13), %eax
je 0x78e3
cmpb $0x3, %bpl
jl 0x7951
movzbl %bpl, %ebp
addq $0x2, %r14
movl $0x2, %r12d
leaq 0x6524(%rip), %rax      # 0xddd0
movq (%rax), %rdx
addq %r12, %rdx
movslq (%r13), %rax
movzbl (%r14,%rax), %ecx
movslq (%r15), %rax
movzbl (%r14,%rax), %r8d
movq %rbx, %rdi
leaq 0x32dd(%rip), %rsi      # 0xabaa
xorl %eax, %eax
callq 0x1140
addq $0x2, %r12
addq $0x2, %r14
cmpq %rbp, %r12
jb 0x78a5
jmp 0x7951
cmpb $0x4, %bpl
jl 0x7951
movzbl %bpl, %r13d
movl $0x3, %ebp
movl $0xfffffffd, %r15d      # imm = 0xFFFFFFFD
leaq 0x3289(%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 0x7934
leaq 0x64b3(%rip), %rax      # 0xddd0
movq (%rax), %rdx
addq %rbp, %rdx
movq %rbx, %rdi
leaq 0x3294(%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 0x78ff
movl $0xa, %edi
movq %rbx, %rsi
callq 0x1110
leaq 0x61f7(%rip), %rax      # 0xdb5c
movl (%rax), %eax
leaq 0x5ffa(%rip), %r14      # 0xd968
cmpl (%r14), %eax
jle 0x7982
leaq 0x5dce(%rip), %rax      # 0xd748
movq (%rax), %rdi
cmpq %rbx, %rdi
je 0x79c6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movsbl %bpl, %eax
cmpl $0x2, %eax
je 0x7a1f
cmpl $0x1, %eax
je 0x7a08
testl %eax, %eax
jne 0x7a39
leaq 0x26d1(%rip), %rdi      # 0xa083
movl $0x8, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x1210
jmp 0x7a39
callq 0x10a0
movl (%r14), %edx
leaq 0x65ab(%rip), %rbx      # 0xdf80
leaq 0x3112(%rip), %rsi      # 0xaaee
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11f0
leaq 0x31e3(%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 0x1e94
movzbl (%r14), %edx
leaq 0x3154(%rip), %rsi      # 0xab67
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1140
jmp 0x7a39
movzbl (%r14), %edx
movzbl 0x1(%r14), %ecx
leaq 0x3143(%rip), %rsi      # 0xab72
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1140
leaq 0x6058(%rip), %r15      # 0xda98
cmpb $0x3, %bpl
jl 0x7a6b
cmpl $0x0, (%r15)
jne 0x7a6b
movzbl (%r14), %edx
movzbl 0x2(%r14), %ecx
movzbl 0x1(%r14), %r8d
leaq 0x311e(%rip), %rsi      # 0xab7f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1140
cmpb $0x3, %bpl
jl 0x77cb
cmpl $0x0, (%r15)
je 0x77cb
movzbl (%r14), %edx
movzbl 0x1(%r14), %ecx
movzbl 0x2(%r14), %r8d
leaq 0x30fa(%rip), %rsi      # 0xab8e
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1140
jmp 0x77cb