// File: /workspace/github_c_makefile_star2_O0/mist64[P]cbm6502asm/src/line.c
// Function: parselin
void parselin() {
	int i = 0, j;
	char linestat[FIRSTCHAR + 1];

	while ((s3 = strchr(line, '\f'))) { /* search for form feeds */
		for (linestat[FIRSTCHAR] = j = 0; j < FIRSTCHAR;
		     linestat[j++] = ' ')
			;
		fprintf(file_tmp, "%s%c%s\n", linestat, 'p',
		        " .page"); /* generate .page */
		*s3 = ' ';
	}

	p1[0] = p2[0] = p3[0] = 0; /* fields */
	s1 = p1;
	s2 = p2;
	s3 = p3; /* pointers to fields */

	j = strlen(line) - 1; /* remove trailing spaces */
	if (j < 0) return;
	while (isspace(line[j]) && j) line[j--] = 0;
	if (j < 0) return;
	if (line[i] != ';' &&
	    line[i]) { /* don't get fields for comments & blank lines */
		if (!isspace(line[i]))
			for (j = 0; !isspace(line[i]) && line[i]; i++, j++)
				p1[j] = toupper(line[i]);
		p1[j] = 0;
		while (isspace(line[i])) i++;
		for (j = 0; !isspace(line[i]) && line[i]; j++, i++)
			p2[j] = toupper(line[i]);
		p2[j] = 0;
		while (isspace(line[i]) && line[i]) i++;
		while (line[i]) *s3++ = line[i++]; /* the rest of the line */
		*s3++ = 0;
		*s3++ = 0;
		s3 = p3;
	}
	if (*s2 == ';') *s2 = 0;
	if (*s3 == ';') *s3 = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl $0x0, -0x4(%rbp)
leaq 0xa3da(%rip), %rdi      # 0x110a0
movl $0xc, %esi
callq 0x10c0
leaq 0xa3b9(%rip), %rcx      # 0x11090
movq %rax, (%rcx)
cmpq $0x0, %rax
je 0x6d3e
movl $0x0, -0x8(%rbp)
movb $0x0, -0x10(%rbp)
cmpl $0x20, -0x8(%rbp)
jge 0x6d07
jmp 0x6cf3
movl -0x8(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x8(%rbp)
cltq
movb $0x20, -0x30(%rbp,%rax)
jmp 0x6ceb
leaq 0x9a2a(%rip), %rax      # 0x10738
movq (%rax), %rdi
leaq -0x30(%rbp), %rdx
leaq 0x6bcd(%rip), %rsi      # 0xd8e9
movl $0x70, %ecx
leaq 0x6bc9(%rip), %r8       # 0xd8f1
movb $0x0, %al
callq 0x1120
leaq 0xa35a(%rip), %rax      # 0x11090
movq (%rax), %rax
movb $0x20, (%rax)
jmp 0x6cbf
leaq 0xa2bb(%rip), %rax      # 0x11000
movb $0x0, (%rax)
leaq 0xa221(%rip), %rax      # 0x10f70
movb $0x0, (%rax)
leaq 0x9c97(%rip), %rax      # 0x109f0
movb $0x0, (%rax)
leaq 0x9d15(%rip), %rax      # 0x10a78
leaq 0x9c86(%rip), %rcx      # 0x109f0
movq %rcx, (%rax)
leaq 0xa314(%rip), %rax      # 0x11088
leaq 0xa1f5(%rip), %rcx      # 0x10f70
movq %rcx, (%rax)
leaq 0xa30b(%rip), %rax      # 0x11090
leaq 0xa274(%rip), %rcx      # 0x11000
movq %rcx, (%rax)
leaq 0xa30a(%rip), %rdi      # 0x110a0
callq 0x10a0
subq $0x1, %rax
movl %eax, -0x8(%rbp)
cmpl $0x0, -0x8(%rbp)
jge 0x6dad
jmp 0x7116
jmp 0x6daf
callq 0x1200
movq (%rax), %rax
movslq -0x8(%rbp), %rdx
leaq 0xa2de(%rip), %rcx      # 0x110a0
movsbl (%rcx,%rdx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %ecx
andl $0x2000, %ecx           # imm = 0x2000
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x31(%rbp)
je 0x6de7
cmpl $0x0, -0x8(%rbp)
setne %al
movb %al, -0x31(%rbp)
movb -0x31(%rbp), %al
testb $0x1, %al
jne 0x6df0
jmp 0x6e0b
movl -0x8(%rbp), %eax
movl %eax, %ecx
addl $-0x1, %ecx
movl %ecx, -0x8(%rbp)
movslq %eax, %rcx
leaq 0xa29b(%rip), %rax      # 0x110a0
movb $0x0, (%rax,%rcx)
jmp 0x6daf
cmpl $0x0, -0x8(%rbp)
jge 0x6e16
jmp 0x7116
movslq -0x4(%rbp), %rcx
leaq 0xa27f(%rip), %rax      # 0x110a0
movsbl (%rax,%rcx), %eax
cmpl $0x3b, %eax
je 0x70d8
movslq -0x4(%rbp), %rcx
leaq 0xa267(%rip), %rax      # 0x110a0
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0x70d8
callq 0x1200
movq (%rax), %rax
movslq -0x4(%rbp), %rdx
leaq 0xa247(%rip), %rcx      # 0x110a0
movsbl (%rcx,%rdx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x2000, %eax           # imm = 0x2000
cmpl $0x0, %eax
jne 0x6f05
movl $0x0, -0x8(%rbp)
callq 0x1200
movq (%rax), %rax
movslq -0x4(%rbp), %rdx
leaq 0xa214(%rip), %rcx      # 0x110a0
movsbl (%rcx,%rdx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %ecx
andl $0x2000, %ecx           # imm = 0x2000
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x32(%rbp)
jne 0x6ebf
movslq -0x4(%rbp), %rcx
leaq 0xa1ee(%rip), %rax      # 0x110a0
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x32(%rbp)
movb -0x32(%rbp), %al
testb $0x1, %al
jne 0x6ec8
jmp 0x6f03
movslq -0x4(%rbp), %rcx
leaq 0xa1cd(%rip), %rax      # 0x110a0
movsbl (%rax,%rcx), %edi
callq 0x1080
movb %al, %dl
movslq -0x8(%rbp), %rcx
leaq 0x9b07(%rip), %rax      # 0x109f0
movb %dl, (%rax,%rcx)
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x6e79
jmp 0x6f05
movslq -0x8(%rbp), %rcx
leaq 0x9ae0(%rip), %rax      # 0x109f0
movb $0x0, (%rax,%rcx)
callq 0x1200
movq (%rax), %rax
movslq -0x4(%rbp), %rdx
leaq 0xa179(%rip), %rcx      # 0x110a0
movsbl (%rcx,%rdx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x2000, %eax           # imm = 0x2000
cmpl $0x0, %eax
je 0x6f47
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x6f14
movl $0x0, -0x8(%rbp)
callq 0x1200
movq (%rax), %rax
movslq -0x4(%rbp), %rdx
leaq 0xa13f(%rip), %rcx      # 0x110a0
movsbl (%rcx,%rdx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %ecx
andl $0x2000, %ecx           # imm = 0x2000
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x33(%rbp)
jne 0x6f94
movslq -0x4(%rbp), %rcx
leaq 0xa119(%rip), %rax      # 0x110a0
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x33(%rbp)
movb -0x33(%rbp), %al
testb $0x1, %al
jne 0x6f9d
jmp 0x6fd8
movslq -0x4(%rbp), %rcx
leaq 0xa0f8(%rip), %rax      # 0x110a0
movsbl (%rax,%rcx), %edi
callq 0x1080
movb %al, %dl
movslq -0x8(%rbp), %rcx
leaq 0x9fb2(%rip), %rax      # 0x10f70
movb %dl, (%rax,%rcx)
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x6f4e
movslq -0x8(%rbp), %rcx
leaq 0x9f8d(%rip), %rax      # 0x10f70
movb $0x0, (%rax,%rcx)
callq 0x1200
movq (%rax), %rax
movslq -0x4(%rbp), %rdx
leaq 0xa0a6(%rip), %rcx      # 0x110a0
movsbl (%rcx,%rdx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %ecx
andl $0x2000, %ecx           # imm = 0x2000
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x34(%rbp)
je 0x702d
movslq -0x4(%rbp), %rcx
leaq 0xa080(%rip), %rax      # 0x110a0
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x34(%rbp)
movb -0x34(%rbp), %al
testb $0x1, %al
jne 0x7036
jmp 0x7041
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x6fe7
jmp 0x7043
movslq -0x4(%rbp), %rcx
leaq 0xa052(%rip), %rax      # 0x110a0
cmpb $0x0, (%rax,%rcx)
je 0x708b
movl -0x4(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x4(%rbp)
movslq %eax, %rcx
leaq 0xa037(%rip), %rax      # 0x110a0
movb (%rax,%rcx), %cl
leaq 0xa01d(%rip), %rax      # 0x11090
movq (%rax), %rax
movq %rax, %rsi
addq $0x1, %rsi
leaq 0xa00c(%rip), %rdx      # 0x11090
movq %rsi, (%rdx)
movb %cl, (%rax)
jmp 0x7043
leaq 0x9ffe(%rip), %rax      # 0x11090
movq (%rax), %rax
movq %rax, %rdx
addq $0x1, %rdx
leaq 0x9fed(%rip), %rcx      # 0x11090
movq %rdx, (%rcx)
movb $0x0, (%rax)
leaq 0x9fe0(%rip), %rax      # 0x11090
movq (%rax), %rax
movq %rax, %rdx
addq $0x1, %rdx
leaq 0x9fcf(%rip), %rcx      # 0x11090
movq %rdx, (%rcx)
movb $0x0, (%rax)
leaq 0x9fc2(%rip), %rax      # 0x11090
leaq 0x9f2b(%rip), %rcx      # 0x11000
movq %rcx, (%rax)
leaq 0x9fa9(%rip), %rax      # 0x11088
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $0x3b, %eax
jne 0x70f7
leaq 0x9f97(%rip), %rax      # 0x11088
movq (%rax), %rax
movb $0x0, (%rax)
leaq 0x9f92(%rip), %rax      # 0x11090
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $0x3b, %eax
jne 0x7116
leaq 0x9f80(%rip), %rax      # 0x11090
movq (%rax), %rax
movb $0x0, (%rax)
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)