// File: /workspace/github_c_makefile_star2_O1/tomka[P]cliaspora/config.c
// Function: cutok
static char *
cutok(char *str, bool *error)
{
	static int   quote;
	static char *p, *start = NULL;

	if (str != NULL)
		start = str;
	while (*start != '\0' && isspace(*start))
		start++;
	if (*start == '"') {
		start++; quote = 1;
	} else
		quote = 0;
	if (*start == '\0') {
		if (quote == 1) {
			warnx("Syntax error: Unterminated quoted string:");
			*error = true;
		} else
			*error = false;
		return (NULL);
	}
	*error = true;
	for (p = str = start; *str != '\0'; str++) {
		if (*str == '\\') {
			if (*(str + 1) == '\0') {
				warnx("Syntax error: " \
				    "Incomplete escape sequence:");
				return (NULL);
			}
			*p++ = *++str;
		} else if (*str == '"' || isspace(*str)) {
			if (*str == '"')
				quote ^= 1;
			if (quote == 0) {
				*p++ = '\0'; p = start; start = str + 1;
				*error = false;
				return (p);
			} else
				*p++ = *str;
		} else
			*p++ = *str;
	}
	*p = '\0'; p = start; start = str;
	if (quote == 1) {
		warnx("Syntax error: Unterminated quoted string:");
		return (NULL);
	}
	*error = false;
	return (p);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
testq %rdi, %rdi
je 0x7639
movq %rdi, 0x8607(%rip)      # 0xfc40
movq 0x8600(%rip), %r14      # 0xfc40
movb (%r14), %bpl
testb %bpl, %bpl
je 0x7674
callq 0x22e0
movq (%rax), %rax
incq %r14
movsbq %bpl, %rcx
testb $0x20, 0x1(%rax,%rcx,2)
je 0x7735
movq %r14, 0x85d7(%rip)      # 0xfc40
movb (%r14), %bpl
incq %r14
testb %bpl, %bpl
jne 0x7653
xorl %eax, %eax
xorl %ecx, %ecx
movl %ecx, 0x85b2(%rip)      # 0xfc30
movq 0x85bb(%rip), %r14      # 0xfc40
cmpb $0x0, (%r14)
je 0x7712
movq %rbx, (%rsp)
movl $0x1, (%rbx)
movq %r14, 0x8598(%rip)      # 0xfc38
movl 0x858a(%rip), %ebp      # 0xfc30
leaq 0x1(%r14), %r12
movq %r14, %r15
movzbl (%r15), %r13d
cmpl $0x22, %r13d
je 0x76df
cmpl $0x5c, %r13d
je 0x76ee
testl %r13d, %r13d
je 0x7781
movsbq %r13b, %rbx
callq 0x22e0
movq (%rax), %rax
testb $0x20, 0x1(%rax,%rbx,2)
je 0x76fe
cmpb $0x22, %r13b
jne 0x76e8
xorl $0x1, %ebp
movl %ebp, 0x8548(%rip)      # 0xfc30
testl %ebp, %ebp
jne 0x76fe
jmp 0x7759
movb 0x1(%r15), %r13b
testb %r13b, %r13b
je 0x77b7
incq %r15
movq %r12, 0x8533(%rip)      # 0xfc38
movb %r13b, -0x1(%r12)
incq %r15
incq %r12
jmp 0x76ad
xorl %ecx, %ecx
testb %al, %al
je 0x772b
leaq 0x3e8a(%rip), %rdi      # 0xb5a9
xorl %eax, %eax
callq 0x22d0
movl $0x1, %ecx
movl %ecx, (%rbx)
xorl %r14d, %r14d
jmp 0x77c8
xorl %eax, %eax
movl $0x0, %ecx
cmpb $0x22, %bpl
jne 0x7678
movq %r14, 0x84f3(%rip)      # 0xfc40
movl $0x1, %ecx
movb $0x1, %al
jmp 0x7678
movq 0x84d8(%rip), %rax      # 0xfc38
leaq 0x1(%rax), %rcx
movq %rcx, 0x84cd(%rip)      # 0xfc38
movb $0x0, (%rax)
movq %r14, 0x84c3(%rip)      # 0xfc38
incq %r15
movq %r15, 0x84c1(%rip)      # 0xfc40
jmp 0x77ab
movq 0x84b0(%rip), %rax      # 0xfc38
movb $0x0, (%rax)
movq %r14, 0x84a6(%rip)      # 0xfc38
movq %r15, 0x84a7(%rip)      # 0xfc40
cmpl $0x1, 0x8490(%rip)      # 0xfc30
jne 0x77ab
leaq 0x3e00(%rip), %rdi      # 0xb5a9
jmp 0x77be
movq (%rsp), %rax
movl $0x0, (%rax)
jmp 0x77c8
leaq 0x3e15(%rip), %rdi      # 0xb5d3
xorl %r14d, %r14d
xorl %eax, %eax
callq 0x22d0
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq