// File: /workspace/github_c_makefile_star2_O1/hcmiya[P]opuscomment/src/parse-tags.c
// Function: line_vc
static void line_vc(uint8_t *line, size_t n, bool lf) {
	static bool escape_pending = false;
	
	if (!line) {
		if (!first_call) {
			if (O.tag_check_line_term) {
				err_noterm();
			}
			if (!keep_blank) {
				if (escape_pending) err_esc();
				if (on_field) err_nosep();
				finalize_record();
			}
			first_call = true;
		}
		return;
	}
	
	if(test_blank(line, n, lf)) return;
	
	if (escape_pending) {
		*line = esctab(*line);
	}
	
	if (lf) n--;
	uint8_t *bs = memchr(line + escape_pending, 0x5c, n - escape_pending);
	escape_pending = false;
	if (bs) {
		uint8_t *unesc = bs, *end = line + n;
		while (bs < end) {
			uint8_t c = *bs++;
			if (c == 0x5c) {
				if (bs == end) {
					if (lf) err_esc();
					escape_pending = true;
					n--;
					break;
				}
				c = esctab(*bs++);
				n--;
			}
			*unesc++ = c;
		}
	}
	if (on_field) {
		if(!test_tag_field(line, n, true, &on_field, NULL)) err_name();
		if (on_field && lf) err_nosep();
		test_mbp(&line, &n);
	}
	else {
		append_buffer(line, n);
	}
	if (lf) {
		finalize_record();
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
testq %rdi, %rdi
je 0x2e63
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
movzbl %bl, %edx
callq 0x3871
testb %al, %al
jne 0x2f1b
cmpb $0x1, 0x97bb(%rip)      # 0xc570
jne 0x2dc3
movzbl (%r14), %edi
callq 0x3a6e
movb %al, (%r14)
testb %bl, %bl
je 0x2dcf
decq %r15
movq %r15, 0x8(%rsp)
movzbl 0x979a(%rip), %eax      # 0xc570
leaq (%r14,%rax), %rdi
movq 0x8(%rsp), %r12
movq %r12, %rdx
subq %rax, %rdx
movl $0x5c, %esi
callq 0x2200
movb $0x0, 0x977a(%rip)      # 0xc570
testq %rax, %rax
je 0x2eba
movq %rax, %r15
addq %r12, %r14
movq %rax, %r12
cmpq %r14, %r12
jae 0x2eba
leaq 0x1(%r12), %rcx
movb (%r12), %al
cmpb $0x5c, %al
jne 0x2e3a
cmpq %r14, %rcx
je 0x2e4b
movzbl 0x1(%r12), %edi
addq $0x2, %r12
callq 0x3a6e
decq 0x8(%rsp)
movq %r12, %rcx
movb %al, (%r15)
incq %r15
movb $0x1, %al
movq %rcx, %r12
testb %al, %al
jne 0x2e08
jmp 0x2eba
testb %bl, %bl
jne 0x2f27
movb $0x1, 0x9716(%rip)      # 0xc570
decq 0x8(%rsp)
xorl %eax, %eax
jmp 0x2e42
cmpb $0x1, 0x9707(%rip)      # 0xc571
jne 0x2f1b
leaq 0x19811(%rip), %rax     # 0x1c688
cmpb $0x1, 0x22(%rax)
jne 0x2e89
movl $0xd, %edi
xorl %eax, %eax
callq 0x6d34
cmpb $0x0, 0x96e2(%rip)      # 0xc572
jne 0x2eb1
cmpb $0x1, 0x96d7(%rip)      # 0xc570
je 0x2f27
cmpb $0x1, 0x96cd(%rip)      # 0xc573
je 0x2f44
callq 0x378f
movb $0x0, 0x96b9(%rip)      # 0xc571
jmp 0x2f1b
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
cmpb $0x1, 0x96a8(%rip)      # 0xc573
jne 0x2f02
leaq 0x969f(%rip), %rcx      # 0xc573
movl $0x1, %edx
xorl %r8d, %r8d
callq 0x5988
testb %al, %al
je 0x2f61
movb 0x9688(%rip), %al       # 0xc573
andb %bl, %al
cmpb $0x1, %al
je 0x2f44
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x3ac4
jmp 0x2f07
callq 0x3c4b
testb %bl, %bl
je 0x2f1b
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x378f
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x19752(%rip), %rax     # 0x1c680
movq (%rax), %rdi
leaq 0x5109(%rip), %rcx      # 0x8041
movl $0x5, %esi
movl $0x5, %edx
jmp 0x2f7c
leaq 0x19735(%rip), %rax     # 0x1c680
movq (%rax), %rdi
leaq 0x5119(%rip), %rcx      # 0x806e
movl $0x5, %esi
movl $0x1, %edx
jmp 0x2f7c
leaq 0x19718(%rip), %rax     # 0x1c680
movq (%rax), %rdi
leaq 0x5138(%rip), %rcx      # 0x80aa
movl $0x5, %esi
movl $0x2, %edx
callq 0x2440
movq %rax, %rdi
callq 0x3e34