// File: /workspace/github_c_makefile_star2_O0/zenlinux[P]cwm/linux.c
// Function: fparseln
char *
fparseln(FILE *fp, size_t *size, size_t *lineno, const char str[3],
    int flags)
{
	static const char dstr[3] = { '\\', '\\', '#' };
	char	*buf = NULL, *ptr, *cp, esc, con, nl, com;
	size_t	s, len = 0;
	int	cnt = 1;

	if (str == NULL)
		str = dstr;

	esc = str[0];
	con = str[1];
	com = str[2];

	/*
	 * XXX: it would be cool to be able to specify the newline character,
	 * but unfortunately, fgetln does not let us
	 */
	nl  = '\n';

	while (cnt) {
		cnt = 0;

		if (lineno)
			(*lineno)++;

		if ((ptr = fgetln(fp, &s)) == NULL)
			break;

		if (s && com) {		/* Check and eliminate comments */
			for (cp = ptr; cp < ptr + s; cp++)
				if (*cp == com && !isescaped(ptr, cp, esc)) {
					s = cp - ptr;
					cnt = s == 0 && buf == NULL;
					break;
				}
		}

		if (s && nl) {		/* Check and eliminate newlines */
			cp = &ptr[s - 1];

			if (*cp == nl)
				s--;	/* forget newline */
		}

		if (s && con) {		/* Check and eliminate continuations */
			cp = &ptr[s - 1];

			if (*cp == con && !isescaped(ptr, cp, esc)) {
				s--;	/* forget escape */
				cnt = 1;
			}
		}

		if (s == 0 && buf != NULL)
			continue;

		if ((cp = realloc(buf, len + s + 1)) == NULL) {
			free(buf);
			return NULL;
		}
		buf = cp;

		(void) memcpy(buf + len, ptr, s);
		len += s;
		buf[len] = '\0';
	}

	if ((flags & FPARSELN_UNESCALL) != 0 && esc && buf != NULL &&
	    strchr(buf, esc) != NULL) {
		ptr = cp = buf;
		while (cp[0] != '\0') {
			int skipesc;

			while (cp[0] != '\0' && cp[0] != esc)
				*ptr++ = *cp++;
			if (cp[0] == '\0' || cp[1] == '\0')
				break;

			skipesc = 0;
			if (cp[1] == com)
				skipesc += (flags & FPARSELN_UNESCCOMM);
			if (cp[1] == con)
				skipesc += (flags & FPARSELN_UNESCCONT);
			if (cp[1] == esc)
				skipesc += (flags & FPARSELN_UNESCESC);
			if (cp[1] != com && cp[1] != con && cp[1] != esc)
				skipesc = (flags & FPARSELN_UNESCREST);

			if (skipesc)
				cp++;
			else
				*ptr++ = *cp++;
			*ptr++ = *cp++;
		}
		*ptr = '\0';
		len = strlen(buf);
	}

	if (size)
		*size = len;
	return buf;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movq $0x0, -0x38(%rbp)
movq $0x0, -0x60(%rbp)
movl $0x1, -0x64(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x130b5
leaq 0x1f4e(%rip), %rax      # 0x14fff
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movb (%rax), %al
movb %al, -0x49(%rbp)
movq -0x28(%rbp), %rax
movb 0x1(%rax), %al
movb %al, -0x4a(%rbp)
movq -0x28(%rbp), %rax
movb 0x2(%rax), %al
movb %al, -0x4c(%rbp)
movb $0xa, -0x4b(%rbp)
cmpl $0x0, -0x64(%rbp)
je 0x132d2
movl $0x0, -0x64(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x130fc
movq -0x20(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movq -0x10(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x12ed0
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
jne 0x13118
jmp 0x132d2
cmpq $0x0, -0x58(%rbp)
je 0x131b3
movsbl -0x4c(%rbp), %eax
cmpl $0x0, %eax
je 0x131b3
movq -0x40(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq -0x40(%rbp), %rcx
addq -0x58(%rbp), %rcx
cmpq %rcx, %rax
jae 0x131b1
movq -0x48(%rbp), %rax
movsbl (%rax), %eax
movsbl -0x4c(%rbp), %ecx
cmpl %ecx, %eax
jne 0x131a1
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
movsbl -0x49(%rbp), %edx
callq 0x134d0
cmpl $0x0, %eax
jne 0x131a1
movq -0x48(%rbp), %rax
movq -0x40(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x58(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x58(%rbp)
movb %al, -0x69(%rbp)
jne 0x13194
cmpq $0x0, -0x38(%rbp)
sete %al
movb %al, -0x69(%rbp)
movb -0x69(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x64(%rbp)
jmp 0x131b1
jmp 0x131a3
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x13138
jmp 0x131b3
cmpq $0x0, -0x58(%rbp)
je 0x131f3
movsbl -0x4b(%rbp), %eax
cmpl $0x0, %eax
je 0x131f3
movq -0x40(%rbp), %rax
movq -0x58(%rbp), %rcx
subq $0x1, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movsbl (%rax), %eax
movsbl -0x4b(%rbp), %ecx
cmpl %ecx, %eax
jne 0x131f1
movq -0x58(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x58(%rbp)
jmp 0x131f3
cmpq $0x0, -0x58(%rbp)
je 0x13250
movsbl -0x4a(%rbp), %eax
cmpl $0x0, %eax
je 0x13250
movq -0x40(%rbp), %rax
movq -0x58(%rbp), %rcx
subq $0x1, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movsbl (%rax), %eax
movsbl -0x4a(%rbp), %ecx
cmpl %ecx, %eax
jne 0x1324e
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
movsbl -0x49(%rbp), %edx
callq 0x134d0
cmpl $0x0, %eax
jne 0x1324e
movq -0x58(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x58(%rbp)
movl $0x1, -0x64(%rbp)
jmp 0x13250
cmpq $0x0, -0x58(%rbp)
jne 0x13263
cmpq $0x0, -0x38(%rbp)
je 0x13263
jmp 0x130d6
movq -0x38(%rbp), %rdi
movq -0x60(%rbp), %rsi
addq -0x58(%rbp), %rsi
addq $0x1, %rsi
callq 0x57d0
movq %rax, -0x48(%rbp)
cmpq $0x0, %rax
jne 0x13298
movq -0x38(%rbp), %rdi
callq 0x52f0
movq $0x0, -0x8(%rbp)
jmp 0x134bc
movq -0x48(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
addq -0x60(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq -0x58(%rbp), %rdx
callq 0x5860
movq -0x58(%rbp), %rax
addq -0x60(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x38(%rbp), %rax
movq -0x60(%rbp), %rcx
movb $0x0, (%rax,%rcx)
jmp 0x130d6
movl -0x2c(%rbp), %eax
andl $0xf, %eax
cmpl $0x0, %eax
je 0x134a2
movsbl -0x49(%rbp), %eax
cmpl $0x0, %eax
je 0x134a2
cmpq $0x0, -0x38(%rbp)
je 0x134a2
movq -0x38(%rbp), %rdi
movsbl -0x49(%rbp), %esi
callq 0x5520
cmpq $0x0, %rax
je 0x134a2
movq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq %rax, -0x40(%rbp)
movq -0x48(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x1348e
jmp 0x1332e
movq -0x48(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x6a(%rbp)
je 0x13352
movq -0x48(%rbp), %rax
movsbl (%rax), %eax
movsbl -0x49(%rbp), %ecx
cmpl %ecx, %eax
setne %al
movb %al, -0x6a(%rbp)
movb -0x6a(%rbp), %al
testb $0x1, %al
jne 0x1335b
jmp 0x1337f
movq -0x48(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x48(%rbp)
movb (%rax), %cl
movq -0x40(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x40(%rbp)
movb %cl, (%rax)
jmp 0x1332e
movq -0x48(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x13398
movq -0x48(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x0, %eax
jne 0x1339d
jmp 0x1348e
movl $0x0, -0x68(%rbp)
movq -0x48(%rbp), %rax
movsbl 0x1(%rax), %eax
movsbl -0x4c(%rbp), %ecx
cmpl %ecx, %eax
jne 0x133c0
movl -0x2c(%rbp), %eax
andl $0x4, %eax
addl -0x68(%rbp), %eax
movl %eax, -0x68(%rbp)
movq -0x48(%rbp), %rax
movsbl 0x1(%rax), %eax
movsbl -0x4a(%rbp), %ecx
cmpl %ecx, %eax
jne 0x133dc
movl -0x2c(%rbp), %eax
andl $0x2, %eax
addl -0x68(%rbp), %eax
movl %eax, -0x68(%rbp)
movq -0x48(%rbp), %rax
movsbl 0x1(%rax), %eax
movsbl -0x49(%rbp), %ecx
cmpl %ecx, %eax
jne 0x133f8
movl -0x2c(%rbp), %eax
andl $0x1, %eax
addl -0x68(%rbp), %eax
movl %eax, -0x68(%rbp)
movq -0x48(%rbp), %rax
movsbl 0x1(%rax), %eax
movsbl -0x4c(%rbp), %ecx
cmpl %ecx, %eax
je 0x13431
movq -0x48(%rbp), %rax
movsbl 0x1(%rax), %eax
movsbl -0x4a(%rbp), %ecx
cmpl %ecx, %eax
je 0x13431
movq -0x48(%rbp), %rax
movsbl 0x1(%rax), %eax
movsbl -0x49(%rbp), %ecx
cmpl %ecx, %eax
je 0x13431
movl -0x2c(%rbp), %eax
andl $0x8, %eax
movl %eax, -0x68(%rbp)
cmpl $0x0, -0x68(%rbp)
je 0x13445
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x13467
movq -0x48(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x48(%rbp)
movb (%rax), %cl
movq -0x40(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x40(%rbp)
movb %cl, (%rax)
movq -0x48(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x48(%rbp)
movb (%rax), %cl
movq -0x40(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x40(%rbp)
movb %cl, (%rax)
jmp 0x1331c
movq -0x40(%rbp), %rax
movb $0x0, (%rax)
movq -0x38(%rbp), %rdi
callq 0x5320
movq %rax, -0x60(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x134b4
movq -0x60(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)