// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x9a52
movq -0x10(%rbp), %rax
movq %rax, 0x91fe(%rip)      # 0x12c50
jmp 0x9a54
movq 0x91f5(%rip), %rax      # 0x12c50
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x19(%rbp)
je 0x9a8f
callq 0x2300
movq (%rax), %rax
movq 0x91d9(%rip), %rcx      # 0x12c50
movsbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x2000, %eax           # imm = 0x2000
cmpl $0x0, %eax
setne %al
movb %al, -0x19(%rbp)
movb -0x19(%rbp), %al
testb $0x1, %al
jne 0x9a98
jmp 0x9aac
movq 0x91b1(%rip), %rax      # 0x12c50
addq $0x1, %rax
movq %rax, 0x91a6(%rip)      # 0x12c50
jmp 0x9a54
movq 0x919d(%rip), %rax      # 0x12c50
movsbl (%rax), %eax
cmpl $0x22, %eax
jne 0x9ad9
movq 0x918e(%rip), %rax      # 0x12c50
addq $0x1, %rax
movq %rax, 0x9183(%rip)      # 0x12c50
movl $0x1, 0x9169(%rip)      # 0x12c40
jmp 0x9ae3
movl $0x0, 0x915d(%rip)      # 0x12c40
movq 0x9166(%rip), %rax      # 0x12c50
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x9b2c
cmpl $0x1, 0x9147(%rip)      # 0x12c40
jne 0x9b15
leaq 0x5b2b(%rip), %rdi      # 0xf62d
movb $0x0, %al
callq 0x22f0
movq -0x18(%rbp), %rax
movl $0x1, (%rax)
jmp 0x9b1f
movq -0x18(%rbp), %rax
movl $0x0, (%rax)
movq $0x0, -0x8(%rbp)
jmp 0x9d07
movq -0x18(%rbp), %rax
movl $0x1, (%rax)
movq 0x9113(%rip), %rax      # 0x12c50
movq %rax, -0x10(%rbp)
movq %rax, 0x9100(%rip)      # 0x12c48
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x9cae
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x5c, %eax
jne 0x9bba
movq -0x10(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x0, %eax
jne 0x9b8c
leaq 0x5adf(%rip), %rdi      # 0xf657
movb $0x0, %al
callq 0x22f0
movq $0x0, -0x8(%rbp)
jmp 0x9d07
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movb 0x1(%rax), %cl
movq 0x90a3(%rip), %rax      # 0x12c48
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x9095(%rip)      # 0x12c48
movb %cl, (%rax)
jmp 0x9c9b
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x22, %eax
je 0x9bea
callq 0x2300
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movsbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x2000, %eax           # imm = 0x2000
cmpl $0x0, %eax
je 0x9c7c
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x22, %eax
jne 0x9c05
movl 0x9044(%rip), %eax      # 0x12c40
xorl $0x1, %eax
movl %eax, 0x903b(%rip)      # 0x12c40
cmpl $0x0, 0x9034(%rip)      # 0x12c40
jne 0x9c5d
movq 0x9033(%rip), %rax      # 0x12c48
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x9025(%rip)      # 0x12c48
movb $0x0, (%rax)
movq 0x9023(%rip), %rax      # 0x12c50
movq %rax, 0x9014(%rip)      # 0x12c48
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, 0x900d(%rip)      # 0x12c50
movq -0x18(%rbp), %rax
movl $0x0, (%rax)
movq 0x8ff4(%rip), %rax      # 0x12c48
movq %rax, -0x8(%rbp)
jmp 0x9d07
movq -0x10(%rbp), %rax
movb (%rax), %cl
movq 0x8fde(%rip), %rax      # 0x12c48
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8fd0(%rip)      # 0x12c48
movb %cl, (%rax)
jmp 0x9c99
movq -0x10(%rbp), %rax
movb (%rax), %cl
movq 0x8fbf(%rip), %rax      # 0x12c48
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8fb1(%rip)      # 0x12c48
movb %cl, (%rax)
jmp 0x9c9b
jmp 0x9c9d
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x9b48
movq 0x8f93(%rip), %rax      # 0x12c48
movb $0x0, (%rax)
movq 0x8f91(%rip), %rax      # 0x12c50
movq %rax, 0x8f82(%rip)      # 0x12c48
movq -0x10(%rbp), %rax
movq %rax, 0x8f7f(%rip)      # 0x12c50
cmpl $0x1, 0x8f68(%rip)      # 0x12c40
jne 0x9cf2
leaq 0x594c(%rip), %rdi      # 0xf62d
movb $0x0, %al
callq 0x22f0
movq $0x0, -0x8(%rbp)
jmp 0x9d07
movq -0x18(%rbp), %rax
movl $0x0, (%rax)
movq 0x8f45(%rip), %rax      # 0x12c48
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)