// File: /workspace/github_c_makefile_star2_O2/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
subq $0x18, %rsp
movq %rcx, 0x8(%rsp)
leaq 0x7064(%rip), %rax      # 0xddfc
cmpl $0x0, (%rax)
sete %al
leaq 0x705b(%rip), %rcx      # 0xde00
cmpb $0x0, (%rcx)
sete %cl
testb %cl, %al
jne 0x70a9
leaq 0x6dca(%rip), %rax      # 0xdb84
cmpl $0x0, (%rax)
je 0x70a9
movl %r8d, %r12d
movl %esi, %r13d
movq %rdi, %rbx
leaq 0x6d99(%rip), %r14      # 0xdb6c
cmpl $0x0, (%r14)
je 0x6df0
movl %edx, %eax
orb %r13b, %al
jne 0x6df0
leaq 0x6d99(%rip), %rax      # 0xdb80
cmpl $0x0, (%rax)
jle 0x70a9
movl %r9d, 0x14(%rsp)
movl %edx, %r15d
leaq 0x2d21(%rip), %rsi      # 0x9b20
leaq 0x6e7a(%rip), %rbp      # 0xdc80
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1140
callq 0x1240
movq (%rax), %rax
movsbq (%rbp), %rcx
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x6e30
leaq 0x69fa(%rip), %rax      # 0xd828
incl (%rax)
testb %r13b, %r13b
je 0x6e52
leaq 0x6fa4(%rip), %rax      # 0xdde0
movq (%rax), %rdx
leaq 0x2cde(%rip), %rsi      # 0x9b24
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1140
jmp 0x6e67
leaq 0x222b(%rip), %rdi      # 0x9084
pushq $0x7
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x1220
testb %r12b, %r12b
je 0x6e81
movq 0x8(%rsp), %rax
movzbl (%rax), %edx
movzbl 0x1(%rax), %ecx
leaq 0x2cb0(%rip), %rsi      # 0x9b2f
jmp 0x6eb1
leaq 0x6c24(%rip), %rax      # 0xdaac
movslq (%rax), %rax
leaq 0x6c1e(%rip), %rcx      # 0xdab0
movl (%rcx), %ecx
movl %eax, %edx
orl %ecx, %edx
je 0x6f19
movslq %ecx, %rcx
movq 0x8(%rsp), %rsi
movzbl (%rsi,%rax), %edx
movzbl (%rsi,%rcx), %ecx
leaq 0x2c8b(%rip), %rsi      # 0x9b3c
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1140
xorl %eax, %eax
cmpb $0x0, 0x14(%rsp)
sete %al
leal 0x20(,%rax,2), %edi
movq %rbx, %rsi
callq 0x1110
leaq 0x6929(%rip), %rax      # 0xd804
cmpl $0x1, (%rax)
jne 0x6f0e
leaq 0x6deb(%rip), %rax      # 0xdcd2
movb $0x20, (%rax)
movl (%r14), %edx
testl %edx, %edx
je 0x6f54
leal 0x40(%rdx), %ecx
movb %cl, (%rax)
cmpl $0x1b, %edx
jl 0x6f56
leal 0x46(%rdx), %ecx
cmpl $0x35, %edx
movzbl %cl, %edx
pushq $0x2a
popq %rcx
cmovbl %edx, %ecx
movb %cl, (%rax)
jmp 0x6f56
leaq 0x6dbd(%rip), %rax      # 0xdcd2
movb (%rax), %cl
jmp 0x6f56
movsbl %r15b, %eax
movq %r14, %r12
cmpl $0x2, %eax
je 0x7112
cmpl $0x1, %eax
je 0x70f7
testl %eax, %eax
jne 0x712f
leaq 0x2142(%rip), %rdi      # 0x9083
pushq $0x8
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x1220
jmp 0x712f
movb $0x20, %cl
leaq 0x6c2b(%rip), %rax      # 0xdb88
movl (%rax), %edx
decl %edx
movsbl %cl, %ecx
leaq 0x2c14(%rip), %rsi      # 0x9b7f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1140
leaq 0x6caa(%rip), %rax      # 0xdc26
movsbl (%rax), %edx
leaq 0x2c01(%rip), %rsi      # 0x9b87
leaq 0x7133(%rip), %rcx      # 0xe0c0
movq %rbx, %r14
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1140
leaq 0x6bdb(%rip), %rax      # 0xdb7c
cmpl $0x0, (%rax)
je 0x707b
leaq 0x6afb(%rip), %rcx      # 0xdaac
leaq 0x6af8(%rip), %r13      # 0xdab0
movl (%r13), %eax
orl (%rcx), %eax
movsbq %r15b, %rbp
je 0x701a
pushq $0x2
popq %rbx
leaq 0x6e12(%rip), %r12      # 0xdde0
leaq 0x2bb7(%rip), %r15      # 0x9b8c
cmpq %rbp, %rbx
jge 0x707b
movq (%r12), %rdx
addq %rbx, %rdx
leaq 0x6ac0(%rip), %rax      # 0xdaac
movslq (%rax), %rax
movq 0x8(%rsp), %rsi
addq %rsi, %rax
movzbl (%rbx,%rax), %ecx
movslq (%r13), %rax
addq %rsi, %rax
movzbl (%rbx,%rax), %r8d
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x1140
addq $0x2, %rbx
jmp 0x6fd5
pushq $0x3
popq %r15
pushq $0x3
popq %r12
leaq 0x2b41(%rip), %r13      # 0x9b6a
movl %r15d, %eax
xorl %edx, %edx
divl %r12d
cmpq %rbp, %r15
jge 0x707b
imull $-0x3, %eax, %eax
addl %r15d, %eax
movq %r14, %rbx
jne 0x705f
leaq 0x6d98(%rip), %rax      # 0xdde0
movq (%rax), %rdx
addq %r15, %rdx
movq %rbx, %rdi
leaq 0x2b4b(%rip), %rsi      # 0x9ba3
xorl %eax, %eax
callq 0x1140
movq 0x8(%rsp), %rax
movzbl (%rax,%r15), %edx
movq %rbx, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x1140
incq %r15
jmp 0x7029
pushq $0xa
popq %rdi
movq %r14, %rsi
callq 0x1110
leaq 0x6adf(%rip), %rax      # 0xdb6c
movl (%rax), %eax
leaq 0x68e2(%rip), %rbx      # 0xd978
cmpl (%rbx), %eax
jle 0x70a9
leaq 0x66b7(%rip), %rax      # 0xd758
movq (%rax), %rdi
cmpq %r14, %rdi
je 0x70b8
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x10a0
movl (%rbx), %edx
leaq 0x6eca(%rip), %rbx      # 0xdf90
leaq 0x2a03(%rip), %rsi      # 0x9ad0
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1200
leaq 0x2ad4(%rip), %rdi      # 0x9bb2
pushq $0x2
popq %rdx
movq %rbx, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1ddf
movq 0x8(%rsp), %rax
movzbl (%rax), %edx
leaq 0x2a43(%rip), %rsi      # 0x9b49
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1140
jmp 0x712f
movq 0x8(%rsp), %rax
movzbl (%rax), %edx
movzbl 0x1(%rax), %ecx
leaq 0x2a2f(%rip), %rsi      # 0x9b54
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1140
cmpb $0x3, %r15b
setl %cl
leaq 0x696b(%rip), %r14      # 0xdaa8
movl (%r14), %eax
testl %eax, %eax
setne %dl
orb %cl, %dl
jne 0x716e
movq 0x8(%rsp), %rax
movzbl (%rax), %edx
movzbl 0x2(%rax), %ecx
movzbl 0x1(%rax), %r8d
leaq 0x2a00(%rip), %rsi      # 0x9b61
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1140
movl (%r14), %eax
cmpb $0x3, %r15b
movq %r12, %r14
jl 0x6ebb
testl %eax, %eax
je 0x6ebb
movq 0x8(%rsp), %rax
movzbl (%rax), %edx
movzbl 0x1(%rax), %ecx
movzbl 0x2(%rax), %r8d
leaq 0x29d5(%rip), %rsi      # 0x9b70
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1140
jmp 0x6ebb