// File: /workspace/github_c_makefile_star2_O1/tomka[P]cliaspora/config.c
// Function: parse_line
static int
parse_line(char *str)
{
	int   i;
	bool  error;
	char  *var, *val, *p, **sv, **pp;
	
	for (var = str; *var != '\0' && isspace(*var); var++)
		;
	if (*var == '\0' || *var == '#')
		return (0);
	for (val = var + strcspn(var, " =\t"); *val != '=' && *val != '\0';
	    val++)
		*val = '\0';
	if (*val != '=') {
		warnx("Syntax error: Missing '=':"); return (-1);
	}
	*val++ = '\0'; val += strspn(val, " \t\n");
	if (*val == '\0' || isspace(*val)) {
		warnx("Syntax error: Missing value:"); return (-1);
	}
	for (i = 0; i < sizeof(vars) / sizeof(vars[0]); i++) {
		if (strcmp(var, vars[i].name) != 0)
			continue;
		switch (vars[i].type) {
		case VAR_STRINGS:
			for (pp = *vars[i].val.strings;
			    pp != NULL && *pp != NULL; pp++)
				free(*pp);
			for (p = val; (p = cutok(p, &error)) != NULL;
			    p = NULL) {
				sv = *vars[i].val.strings;
				if ((sv = add_string(&sv, p)) == NULL)
					err(EXIT_FAILURE, "add_string()");
				*vars[i].val.strings = sv;
			}
			if (error)
				return (-1);
			break;
		case VAR_STRING:
			if ((p = cutok(val, &error)) == NULL)
				return (-1);
			free(*vars[i].val.string);
			if ((*vars[i].val.string = strdup(p)) == NULL)
				err(EXIT_FAILURE, "strdup()");
			break;
		case VAR_BOOLEAN:
			if ((p = cutok(val, &error)) == NULL)
				return (-1);
			if (strcasecmp(p, "false") == 0 ||
			    strcasecmp(p, "no") == 0  ||
			    (strchr("0123456789", p[0]) != NULL &&
			     strtol(p, NULL, 10) == 0))
				*vars[i].val.boolean = false;
			else
				*vars[i].val.boolean = true;
			break;
		case VAR_INTEGER:
			if ((p = cutok(val, &error)) == NULL)
				return (-1);
			*vars[i].val.integer = strtol(p, NULL, 10);
			break;
		}
		return (0);
	}
	warnx("Unknown variable '%s':", var);
	return (-1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movb (%rdi), %bpl
xorl %ebx, %ebx
testb %bpl, %bpl
je 0x6daf
movq %rdi, %r15
callq 0x22e0
movq (%rax), %rax
incq %r15
movsbq %bpl, %rcx
testb $0x20, 0x1(%rax,%rcx,2)
je 0x6ce3
movb (%r15), %bpl
incq %r15
testb %bpl, %bpl
jne 0x6cc8
jmp 0x6daf
testb %bpl, %bpl
je 0x6daf
movzbl %bpl, %eax
cmpl $0x23, %eax
je 0x6daf
leaq -0x1(%r15), %r14
leaq 0x482d(%rip), %rsi      # 0xb531
movq %r14, %rdi
callq 0x20a0
movq %rax, %rbx
addq %r15, %rbx
movzbl -0x1(%rbx), %eax
testl %eax, %eax
je 0x6d93
cmpl $0x3d, %eax
je 0x6d28
movb $0x0, -0x1(%rbx)
incq %rbx
jmp 0x6d12
movb $0x0, -0x1(%rbx)
leaq 0x481d(%rip), %rsi      # 0xb550
movq %rbx, %rdi
callq 0x2140
movsbq (%rbx,%rax), %r12
testq %r12, %r12
je 0x6d9c
movq %rax, %r15
callq 0x22e0
movq (%rax), %rax
testb $0x20, 0x1(%rax,%r12,2)
jne 0x6d9c
addq %r15, %rbx
xorl %r13d, %r13d
leaq 0x859b(%rip), %r15      # 0xf300
movq (%r13,%r15), %rsi
movq %r14, %rdi
callq 0x2450
testl %eax, %eax
je 0x6dc0
addq $0x18, %r13
cmpq $0x78, %r13
jne 0x6d65
leaq 0x480b(%rip), %rdi      # 0xb592
movq %r14, %rsi
xorl %eax, %eax
callq 0x22d0
jmp 0x6daa
leaq 0x479b(%rip), %rdi      # 0xb535
jmp 0x6da3
leaq 0x47b1(%rip), %rdi      # 0xb554
xorl %eax, %eax
callq 0x22d0
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0xc(%r13,%r15), %eax
cmpq $0x3, %rax
ja 0x6fdc
leaq 0x467a(%rip), %rcx      # 0xb450
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x4(%rsp), %rsi
movq %rbx, %rdi
callq 0x761f
testq %rax, %rax
je 0x6daa
movq %rax, %rbx
movq 0x10(%r13,%r15), %rax
movq (%rax), %rdi
callq 0x23c0
movq %rbx, %rdi
callq 0x2570
movq 0x10(%r13,%r15), %rcx
movq %rax, (%rcx)
testq %rax, %rax
jne 0x6fdc
leaq 0x388a(%rip), %rsi      # 0xa6ab
jmp 0x6fea
leaq 0x4(%rsp), %rsi
movq %rbx, %rdi
callq 0x761f
testq %rax, %rax
je 0x6daa
movq %rax, %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x2460
movq %rax, %r14
jmp 0x6ec8
leaq 0x4(%rsp), %rsi
movq %rbx, %rdi
callq 0x761f
testq %rax, %rax
je 0x6daa
movq %rax, %rbx
leaq 0x470e(%rip), %rsi      # 0xb57e
movq %rax, %rdi
callq 0x22f0
xorl %r14d, %r14d
testl %eax, %eax
je 0x6ec8
leaq 0x46fe(%rip), %rsi      # 0xb584
movq %rbx, %rdi
callq 0x22f0
testl %eax, %eax
je 0x6ec8
movsbl (%rbx), %esi
leaq 0x46eb(%rip), %rdi      # 0xb587
movl $0xb, %edx
callq 0x2320
testq %rax, %rax
je 0x6ec2
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x2460
testq %rax, %rax
je 0x6ec8
movl $0x1, %r14d
movq 0x10(%r13,%r15), %rax
movl %r14d, (%rax)
jmp 0x6fdc
movq 0x10(%r13,%r15), %rax
movq (%rax), %r14
testq %r14, %r14
je 0x6eff
movq (%r14), %rdi
testq %rdi, %rdi
je 0x6eff
addq $0x8, %r14
callq 0x23c0
movq (%r14), %rdi
addq $0x8, %r14
testq %rdi, %rdi
jne 0x6eee
leaq 0x4(%rsp), %rsi
movq %rbx, %rdi
callq 0x761f
testq %rax, %rax
je 0x6fcc
movq %rax, %r14
movabsq $0x100000000, %rbp      # imm = 0x100000000
movq 0x10(%r13,%r15), %rax
movq (%rax), %r15
testq %r15, %r15
je 0x6f4f
movq %r15, 0x8d12(%rip)      # 0xfc48
movq %r15, %rax
movq %rbp, %rbx
addq %rbp, %rbx
cmpq $0x0, (%rax)
leaq 0x8(%rax), %rax
jne 0x6f3c
sarq $0x20, %rbx
jmp 0x6f54
movl $0x2, %ebx
leaq (,%rbx,8), %rsi
movq %r15, %rdi
callq 0x2540
movq %rax, 0x8cdd(%rip)      # 0xfc48
testq %rax, %rax
je 0x6f90
movq %rax, %r12
movq %r14, %rdi
callq 0x2570
movq %rax, -0x10(%r12,%rbx,8)
testq %rax, %rax
je 0x6f95
movq $0x0, -0x8(%r12,%rbx,8)
jmp 0x6fa0
movq %r15, %rdi
jmp 0x6f98
movq %r12, %rdi
callq 0x23c0
xorl %r12d, %r12d
leaq 0x8359(%rip), %r15      # 0xf300
testq %r12, %r12
je 0x6fe3
movq 0x10(%r13,%r15), %rax
movq %r12, (%rax)
xorl %edi, %edi
leaq 0x4(%rsp), %rsi
callq 0x761f
movq %rax, %r14
testq %rax, %rax
jne 0x6f22
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpl $0x0, 0x4(%rsp)
jne 0x6daf
xorl %ebx, %ebx
jmp 0x6daf
leaq 0x4587(%rip), %rsi      # 0xb571
movl $0x1, %edi
xorl %eax, %eax
callq 0x2250