// File: lotuskip[P]yuxtapa/server/settings.cpp
// Function: (anonymous namespace)::check_path_setting(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, bool)
bool check_path_setting(const string &name, string &val, const bool x)
{
	if(x)
	{
		if(access(val.c_str(), X_OK) == -1)
		{
			to_log("Config error: the \'" + name + "\' setting does not "
				"point to a valid executable file: \"" + val + "\".");
			val.clear();
			return true;
		}
		return false;
	}
	struct stat buf;
	if(stat(val.c_str(), &buf) || !(S_ISDIR(buf.st_mode)))
	{
		to_log("Config error: the \'" + name + "\' setting does not "
			"point to a valid directory: \"" + val + "\".");
		val.clear();
		return true;
	}
	return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1d0, %rsp            # imm = 0x1D0
movb %dl, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
andb $0x1, %al
movb %al, -0x19(%rbp)
testb $0x1, -0x19(%rbp)
je 0x1e5ba
movq -0x18(%rbp), %rdi
callq 0x5200
movq %rax, %rdi
movl $0x1, %esi
callq 0x58e0
cmpl $-0x1, %eax
jne 0x1e5b1
movq -0x10(%rbp), %rdx
leaq 0x43212(%rip), %rsi     # 0x616b0
leaq -0xa0(%rbp), %rdi
movq %rdi, -0x1c8(%rbp)
callq 0x1f390
movq -0x1c8(%rbp), %rsi
leaq 0x43205(%rip), %rdx     # 0x616c4
leaq -0x80(%rbp), %rdi
callq 0x18a40
jmp 0x1e4ca
movq -0x18(%rbp), %rdx
leaq -0x60(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x1fb90
jmp 0x1e4dd
leaq 0x43217(%rip), %rdx     # 0x616fb
leaq -0x40(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x18a40
jmp 0x1e4f3
leaq -0x40(%rbp), %rdi
callq 0x28d70
jmp 0x1e4fe
leaq -0x40(%rbp), %rdi
callq 0x5a48
leaq -0x60(%rbp), %rdi
callq 0x5a48
leaq -0x80(%rbp), %rdi
callq 0x5a48
leaq -0xa0(%rbp), %rdi
callq 0x5a48
movq -0x18(%rbp), %rdi
callq 0x5730
movb $0x1, -0x1(%rbp)
jmp 0x1e730
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x1e5a0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x1e597
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x1e58e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x5a48
leaq -0x60(%rbp), %rdi
callq 0x5a48
leaq -0x80(%rbp), %rdi
callq 0x5a48
leaq -0xa0(%rbp), %rdi
callq 0x5a48
jmp 0x1e73e
movb $0x0, -0x1(%rbp)
jmp 0x1e730
movq -0x18(%rbp), %rdi
callq 0x5200
movq %rax, %rdi
leaq -0x140(%rbp), %rsi
callq 0x54a0
cmpl $0x0, %eax
jne 0x1e5ed
movl -0x128(%rbp), %eax
andl $0xf000, %eax           # imm = 0xF000
cmpl $0x4000, %eax           # imm = 0x4000
je 0x1e72c
movq -0x10(%rbp), %rdx
leaq 0x430b8(%rip), %rsi     # 0x616b0
leaq -0x1c0(%rbp), %rdi
movq %rdi, -0x1d0(%rbp)
callq 0x1f390
movq -0x1d0(%rbp), %rsi
leaq 0x430e5(%rip), %rdx     # 0x616fe
leaq -0x1a0(%rbp), %rdi
callq 0x18a40
jmp 0x1e627
movq -0x18(%rbp), %rdx
leaq -0x180(%rbp), %rdi
leaq -0x1a0(%rbp), %rsi
callq 0x1fb90
jmp 0x1e640
leaq 0x430b4(%rip), %rdx     # 0x616fb
leaq -0x160(%rbp), %rdi
leaq -0x180(%rbp), %rsi
callq 0x18a40
jmp 0x1e65c
leaq -0x160(%rbp), %rdi
callq 0x28d70
jmp 0x1e66a
leaq -0x160(%rbp), %rdi
callq 0x5a48
leaq -0x180(%rbp), %rdi
callq 0x5a48
leaq -0x1a0(%rbp), %rdi
callq 0x5a48
leaq -0x1c0(%rbp), %rdi
callq 0x5a48
movq -0x18(%rbp), %rdi
callq 0x5730
movb $0x1, -0x1(%rbp)
jmp 0x1e730
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x1e71e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x1e712
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x1e706
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
leaq -0x160(%rbp), %rdi
callq 0x5a48
leaq -0x180(%rbp), %rdi
callq 0x5a48
leaq -0x1a0(%rbp), %rdi
callq 0x5a48
leaq -0x1c0(%rbp), %rdi
callq 0x5a48
jmp 0x1e73e
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x1d0, %rsp            # imm = 0x1D0
popq %rbp
retq
movq -0xa8(%rbp), %rdi
callq 0x5920
nopw (%rax,%rax)