// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/xconfig.c
// Function: set_option
static void set_option(struct xconfig_option *option, const char *arg) {
	unset_option(option);
	switch (option->type) {
		case XCONFIG_BOOL:
			*(int *)option->dest.i = 1;
			break;
		case XCONFIG_INT:
			*(int *)option->dest.i = strtol(arg, NULL, 0);
			break;
		case XCONFIG_UINT:
			*(unsigned *)option->dest.u = strtoul(arg, NULL, 0);
			break;
		case XCONFIG_STRING:
			*(char **)option->dest.s = xstrdup(arg);
			break;
		case XCONFIG_STR_LIST:
			*(char ***)option->dest.sl = split_string(arg);
			break;
		case XCONFIG_CALL_0:
			((void (*)(void))option->dest.c0)();
			break;
		case XCONFIG_CALL_1:
			((void (*)(const char *))option->dest.c1)(arg);
			break;
		default:
			break;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x9e5f
movq %r14, (%rsp)
movl (%r14), %eax
cmpq $0x6, %rax
ja 0x9ce7
leaq 0x1869(%rip), %rcx      # 0xb370
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rsp), %rax
movq 0x10(%rax), %rax
movl $0x1, (%rax)
jmp 0x9ce7
movq %rbx, %rdi
callq 0x42f0
leaq 0x1(%rax), %rdi
callq 0x41e0
testq %rax, %rax
je 0x9cda
movq $0x0, 0x20(%rsp)
xorl %r14d, %r14d
movq $0x0, 0x8(%rsp)
movq %rax, %rbp
movq %rax, 0x18(%rsp)
movq %rax, %r13
movzbl (%rbx), %r15d
cmpl $0x5c, %r15d
je 0x9b6e
testl %r15d, %r15d
jne 0x9b7a
jmp 0x9ba2
movb 0x1(%rbx), %cl
movl $0x2, %eax
testb %cl, %cl
jne 0x9b96
movsbq %r15b, %r12
callq 0x4340
movq (%rax), %rax
testb $0x20, 0x1(%rax,%r12,2)
jne 0x9ba2
movl $0x1, %eax
movl %r15d, %ecx
addq %rax, %rbx
movb %cl, (%r13)
incq %r13
jmp 0x9b5d
movb $0x0, (%r13)
cmpb $0x0, (%rbp)
je 0x9bc2
leal 0x1(%r14), %r15d
movq 0x20(%rsp), %rcx
cmpl %ecx, %r15d
jge 0x9bc7
movq 0x8(%rsp), %rcx
jmp 0x9c06
movl %r14d, %r15d
jmp 0x9c18
movl %r15d, 0x14(%rsp)
movq %rbp, %r15
movslq %ecx, %rax
leaq 0x20(,%rax,8), %rsi
movq 0x8(%rsp), %r12
movq %r12, %rdi
movq %rcx, %rbp
callq 0x46c0
testq %rax, %rax
je 0x9cc3
addl $0x4, %ebp
movq %rbp, 0x20(%rsp)
movq %rax, %rcx
movq %r15, %rbp
movl 0x14(%rsp), %r15d
movslq %r14d, %rax
movq %rcx, 0x8(%rsp)
movq %rbp, (%rcx,%rax,8)
incq %r13
movq %r13, %rbp
callq 0x4340
movq (%rax), %rax
decq %rbx
movsbq 0x1(%rbx), %rcx
incq %rbx
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x9c23
movl %r15d, %r14d
testb %cl, %cl
jne 0x9b5d
testl %r15d, %r15d
je 0x9cd0
movslq %r15d, %rax
movq 0x8(%rsp), %rcx
movq $0x0, (%rcx,%rax,8)
jmp 0x9cdc
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4720
jmp 0x9c8a
movq %rbx, %rdi
callq 0x9f30
movq (%rsp), %rcx
movq 0x10(%rcx), %rcx
movq %rax, (%rcx)
jmp 0x9ce7
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4420
movq (%rsp), %rcx
movq 0x10(%rcx), %rcx
movl %eax, (%rcx)
jmp 0x9ce7
movq (%rsp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *0x10(%rax)
movq %rbx, %rdi
movq (%rsp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *0x10(%rax)
testq %r12, %r12
je 0x9cd0
movq %r12, %rdi
callq 0x42d0
movq 0x18(%rsp), %rdi
callq 0x42d0
xorl %ecx, %ecx
movq (%rsp), %rax
movq 0x10(%rax), %rax
movq %rcx, (%rax)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq