// File: /workspace/github_c_makefile_star2_O3/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
testq %rdi, %rdi
je 0x2e4a
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movzbl %bl, %edx
callq 0x3865
testb %al, %al
jne 0x2f1e
cmpb $0x1, 0x97c0(%rip)      # 0xc570
jne 0x2dbe
movzbl (%r15), %edi
callq 0x3a2a
movb %al, (%r15)
testb %bl, %bl
je 0x2dca
decq %r14
movq %r14, 0x8(%rsp)
movzbl 0x979f(%rip), %eax      # 0xc570
leaq (%r15,%rax), %rdi
movq %r14, %rdx
subq %rax, %rdx
movl $0x5c, %esi
callq 0x2200
movb $0x0, 0x9784(%rip)      # 0xc570
testq %rax, %rax
je 0x2eb8
movq %rax, %r12
leaq (%r15,%r14), %r13
cmpq %r13, %rax
jae 0x2eb8
movq %r12, %rbp
leaq 0x1(%r12), %rcx
movb (%r12), %al
cmpb $0x5c, %al
jne 0x2e3a
cmpq %r13, %rcx
je 0x2ea1
movzbl 0x1(%r12), %edi
addq $0x2, %r12
callq 0x3a2a
decq %r14
movq %r14, 0x8(%rsp)
movq %r12, %rcx
jmp 0x2e3d
movq %rcx, %r12
movb %al, (%rbp)
incq %rbp
cmpq %r13, %rcx
jb 0x2e08
jmp 0x2eb8
cmpb $0x1, 0x9720(%rip)      # 0xc571
jne 0x2f1e
leaq 0x1982a(%rip), %rax     # 0x1c688
cmpb $0x1, 0x22(%rax)
jne 0x2e70
movl $0xd, %edi
xorl %eax, %eax
callq 0x6cf0
cmpb $0x0, 0x96fb(%rip)      # 0xc572
jne 0x2e98
cmpb $0x1, 0x96f0(%rip)      # 0xc570
je 0x2f67
cmpb $0x1, 0x96e6(%rip)      # 0xc573
je 0x2f2d
callq 0x3783
movb $0x0, 0x96d2(%rip)      # 0xc571
jmp 0x2f1e
testb %bl, %bl
jne 0x2f67
movb $0x1, 0x96c0(%rip)      # 0xc570
decq %r14
movq %r14, 0x8(%rsp)
cmpb $0x1, 0x96b4(%rip)      # 0xc573
jne 0x2efc
leaq 0x96ab(%rip), %rcx      # 0xc573
movq %r15, %rdi
movq %r14, %rsi
movl $0x1, %edx
xorl %r8d, %r8d
callq 0x5978
testb %al, %al
je 0x2f4a
movb 0x968e(%rip), %al       # 0xc573
andb %bl, %al
cmpb $0x1, %al
je 0x2f2d
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x3a80
jmp 0x2f07
movq %r15, %rdi
movq %r14, %rsi
callq 0x3c29
testb %bl, %bl
je 0x2f1e
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3783
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1974c(%rip), %rax     # 0x1c680
movq (%rax), %rdi
leaq 0x512e(%rip), %rcx      # 0x806c
movl $0x5, %esi
movl $0x1, %edx
jmp 0x2f82
leaq 0x1972f(%rip), %rax     # 0x1c680
movq (%rax), %rdi
leaq 0x514d(%rip), %rcx      # 0x80a8
movl $0x5, %esi
movl $0x2, %edx
jmp 0x2f82
leaq 0x19712(%rip), %rax     # 0x1c680
movq (%rax), %rdi
leaq 0x50c7(%rip), %rcx      # 0x803f
movl $0x5, %esi
movl $0x5, %edx
callq 0x2440
movq %rax, %rdi
callq 0x3e30