// File: /workspace/github_c_makefile_star2_O1/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 0xa059
movq %r14, (%rsp)
movl (%r14), %eax
cmpq $0x6, %rax
ja 0x9e9a
leaq 0x26bd(%rip), %rcx      # 0xc374
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rsp), %rax
movq 0x10(%rax), %rax
movl $0x1, (%rax)
jmp 0x9e9a
movq %rbx, %rdi
callq 0x42f0
leaq 0x1(%rax), %rdi
callq 0x41e0
testq %rax, %rax
je 0x9e8d
xorl %r14d, %r14d
xorl %r15d, %r15d
movq $0x0, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movq %rax, 0x20(%rsp)
movq %rax, %r13
movzbl (%rbx), %r12d
cmpl $0x5c, %r12d
je 0x9d1a
testl %r12d, %r12d
jne 0x9d2b
jmp 0x9d52
movb 0x1(%rbx), %cl
movl $0x2, %eax
testb %cl, %cl
jne 0x9d46
testb %r12b, %r12b
je 0x9d52
movsbq %r12b, %rbp
callq 0x4340
movq (%rax), %rcx
movl $0x1, %eax
testb $0x20, 0x1(%rcx,%rbp,2)
movl %r12d, %ecx
jne 0x9d52
addq %rax, %rbx
movb %cl, (%r13)
incq %r13
jmp 0x9d09
movb $0x0, (%r13)
movq 0x10(%rsp), %rax
cmpb $0x0, (%rax)
je 0x9d71
leal 0x1(%r15), %ebp
cmpl %r14d, %ebp
jge 0x9d76
movq 0x8(%rsp), %rax
jmp 0x9dcc
movl %r15d, %ebp
jmp 0x9de0
movl %r14d, 0x1c(%rsp)
movslq %r14d, %rax
leaq 0x20(,%rax,8), %rsi
movq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x46c0
movq %rax, %r12
testq %rax, %rax
jne 0x9db5
testq %r14, %r14
je 0x9da8
movq %r14, %rdi
callq 0x42d0
movq 0x20(%rsp), %rdi
callq 0x42d0
movq %r14, %rax
testq %r12, %r12
je 0x9e8d
movl 0x1c(%rsp), %r14d
addl $0x4, %r14d
movq %rax, 0x8(%rsp)
movslq %r15d, %rcx
movq 0x10(%rsp), %rdx
movq %rdx, (%rax,%rcx,8)
incq %r13
movq %r13, 0x10(%rsp)
callq 0x4340
movq (%rax), %rax
decq %rbx
movsbq 0x1(%rbx), %rcx
incq %rbx
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x9deb
movl %ebp, %r15d
testb %cl, %cl
jne 0x9d09
testl %ebp, %ebp
je 0x9e83
movslq %ebp, %rax
movq 0x8(%rsp), %rcx
movq $0x0, (%rcx,%rax,8)
jmp 0x9e8f
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4730
jmp 0x9e4a
movq %rbx, %rdi
callq 0xa128
movq (%rsp), %rcx
movq 0x10(%rcx), %rcx
movq %rax, (%rcx)
jmp 0x9e9a
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4420
movq (%rsp), %rcx
movq 0x10(%rcx), %rcx
movl %eax, (%rcx)
jmp 0x9e9a
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)
movq 0x20(%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