// File: /workspace/github_c_makefile_star2_O3/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 0x6cd0
movq %rdi, %r12
callq 0x22e0
movq %rax, %r15
movq (%rax), %rax
incq %r12
movsbq %bpl, %rcx
testb $0x20, 0x1(%rax,%rcx,2)
je 0x6c18
movb (%r12), %bpl
incq %r12
testb %bpl, %bpl
jne 0x6bfc
jmp 0x6cd0
cmpb $0x23, %bpl
je 0x6cd0
leaq -0x1(%r12), %r14
leaq 0x48e3(%rip), %rsi      # 0xb511
movq %r14, %rdi
callq 0x20a0
movq %rax, %rbx
addq %r12, %rbx
movzbl -0x1(%rbx), %eax
testl %eax, %eax
je 0x6cb4
cmpl $0x3d, %eax
je 0x6c52
movb $0x0, -0x1(%rbx)
incq %rbx
jmp 0x6c3c
movb $0x0, -0x1(%rbx)
leaq 0x48d3(%rip), %rsi      # 0xb530
movq %rbx, %rdi
callq 0x2140
movsbq (%rbx,%rax), %rcx
testq %rcx, %rcx
je 0x6cbd
movq (%r15), %rdx
testb $0x20, 0x1(%rdx,%rcx,2)
jne 0x6cbd
addq %rax, %rbx
xorl %r13d, %r13d
leaq 0x867a(%rip), %r15      # 0xf300
movq (%r13,%r15), %rsi
movq %r14, %rdi
callq 0x2450
testl %eax, %eax
je 0x6ce1
addq $0x18, %r13
cmpq $0x78, %r13
jne 0x6c86
leaq 0x48ca(%rip), %rdi      # 0xb572
movq %r14, %rsi
xorl %eax, %eax
callq 0x22d0
jmp 0x6ccb
leaq 0x485a(%rip), %rdi      # 0xb515
jmp 0x6cc4
leaq 0x4870(%rip), %rdi      # 0xb534
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 0x6edf
leaq 0x4739(%rip), %rcx      # 0xb430
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x4(%rsp), %rsi
movq %rbx, %rdi
callq 0x7529
testq %rax, %rax
je 0x6ccb
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 0x6edf
leaq 0x394d(%rip), %rsi      # 0xa68f
jmp 0x6efa
leaq 0x4(%rsp), %rsi
movq %rbx, %rdi
callq 0x7529
testq %rax, %rax
je 0x6ccb
movq %rax, %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x2460
movq %rax, %r14
jmp 0x6de9
leaq 0x4(%rsp), %rsi
movq %rbx, %rdi
callq 0x7529
testq %rax, %rax
je 0x6ccb
movq %rax, %rbx
leaq 0x47cd(%rip), %rsi      # 0xb55e
movq %rax, %rdi
callq 0x22f0
xorl %r14d, %r14d
testl %eax, %eax
je 0x6de9
leaq 0x47bd(%rip), %rsi      # 0xb564
movq %rbx, %rdi
callq 0x22f0
testl %eax, %eax
je 0x6de9
movsbl (%rbx), %esi
leaq 0x47aa(%rip), %rdi      # 0xb567
movl $0xb, %edx
callq 0x2320
testq %rax, %rax
je 0x6de3
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x2460
testq %rax, %rax
je 0x6de9
movl $0x1, %r14d
movq 0x10(%r13,%r15), %rax
movl %r14d, (%rax)
jmp 0x6edf
movq 0x10(%r13,%r15), %rax
movq (%rax), %r14
testq %r14, %r14
je 0x6e20
movq (%r14), %rdi
testq %rdi, %rdi
je 0x6e20
addq $0x8, %r14
callq 0x23c0
movq (%r14), %rdi
addq $0x8, %r14
testq %rdi, %rdi
jne 0x6e0f
leaq 0x4(%rsp), %rsi
movq %rbx, %rdi
callq 0x7529
testq %rax, %rax
je 0x6ecf
movq %rax, %r14
movabsq $0x100000000, %rbp      # imm = 0x100000000
movq 0x10(%r13,%r15), %rax
movq (%rax), %r15
testq %r15, %r15
je 0x6e69
movq %r15, %rax
movq %rbp, %rbx
addq %rbp, %rbx
cmpq $0x0, (%rax)
leaq 0x8(%rax), %rax
jne 0x6e56
sarq $0x20, %rbx
jmp 0x6e6e
movl $0x2, %ebx
leaq (,%rbx,8), %rsi
movq %r15, %rdi
callq 0x2540
movq %rax, 0x8dc3(%rip)      # 0xfc48
testq %rax, %rax
je 0x6ee6
movq %rax, %r12
movq %r14, %rdi
callq 0x2570
movq %rax, -0x10(%r12,%rbx,8)
testq %rax, %rax
je 0x6eeb
movq $0x0, -0x8(%r12,%rbx,8)
leaq 0x8451(%rip), %r15      # 0xf300
movq 0x10(%r13,%r15), %rax
movq %r12, (%rax)
xorl %edi, %edi
leaq 0x4(%rsp), %rsi
callq 0x7529
movq %rax, %r14
testq %rax, %rax
jne 0x6e43
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpl $0x0, 0x4(%rsp)
jne 0x6cd0
xorl %ebx, %ebx
jmp 0x6cd0
movq %r15, %rdi
jmp 0x6eee
movq %r12, %rdi
callq 0x23c0
leaq 0x4657(%rip), %rsi      # 0xb551
movl $0x1, %edi
xorl %eax, %eax
callq 0x2250