// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x110, %rsp            # imm = 0x110
movq %rsi, %rbx
movq %rdi, %r14
testl %edx, %edx
je 0x1109a
movq (%rbx), %rdi
movl $0x1, %esi
callq 0x4700
cmpl $-0x1, %eax
jne 0x110bf
leaq 0x1b625(%rip), %rsi     # 0x2c676
leaq -0x80(%rbp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0x11dd6
leaq 0x1b623(%rip), %rsi     # 0x2c68a
movq %r15, %rdi
callq 0x47c0
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1123e
movq %rdx, -0x40(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x30(%rbp)
jmp 0x11245
movq (%rbx), %rdi
leaq -0x130(%rbp), %rsi
callq 0x4390
testl %eax, %eax
jne 0x110c6
movl $0xf000, %eax           # imm = 0xF000
andl -0x118(%rbp), %eax
cmpl $0x4000, %eax           # imm = 0x4000
jne 0x110c6
xorl %eax, %eax
jmp 0x11385
leaq 0x1b5a9(%rip), %rsi     # 0x2c676
leaq -0xa0(%rbp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0x11dd6
leaq 0x1b5de(%rip), %rsi     # 0x2c6c4
movq %r15, %rdi
callq 0x47c0
leaq -0x70(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x11112
movq %rdx, -0x80(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x70(%rbp)
jmp 0x11119
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq -0x80(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
callq 0x4130
leaq -0x30(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x11164
movq %rdx, -0x40(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x30(%rbp)
jmp 0x1116b
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq -0x40(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1b534(%rip), %rsi     # 0x2c6c1
callq 0x47c0
leaq -0x50(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x111b7
movq %rdx, -0x60(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x50(%rbp)
jmp 0x111bf
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq -0x60(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x15050
movq -0x60(%rbp), %rdi
cmpq %r12, %rdi
je 0x111f4
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x43f0
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x11209
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x43f0
movq -0x80(%rbp), %rdi
cmpq %r14, %rdi
je 0x1121e
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x43f0
leaq -0x90(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11375
movq -0x90(%rbp), %rsi
jmp 0x1136d
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq -0x40(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
callq 0x4130
leaq -0x50(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x11290
movq %rdx, -0x60(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x50(%rbp)
jmp 0x11297
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq -0x60(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1b408(%rip), %rsi     # 0x2c6c1
callq 0x47c0
leaq -0x120(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x112ec
movq %rdx, -0x130(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x120(%rbp)
jmp 0x112f4
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq -0x130(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x15050
movq -0x130(%rbp), %rdi
cmpq %r12, %rdi
je 0x11332
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x43f0
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0x11347
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x43f0
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x1135c
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x43f0
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11375
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x43f0
movq $0x0, 0x8(%rbx)
movq (%rbx), %rax
movb $0x0, (%rax)
movb $0x1, %al
addq $0x110, %rsp            # imm = 0x110
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x130(%rbp), %rdi
cmpq %r12, %rdi
je 0x113b8
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x43f0
jmp 0x113b8
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0x113d2
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x43f0
jmp 0x113d2
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x113ec
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x43f0
jmp 0x113ec
movq %rax, %rbx
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1146f
movq -0x70(%rbp), %rsi
jmp 0x11467
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r12, %rdi
je 0x1141c
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x43f0
jmp 0x1141c
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x11436
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x43f0
jmp 0x11436
movq %rax, %rbx
movq -0x80(%rbp), %rdi
cmpq %r14, %rdi
je 0x11450
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x43f0
jmp 0x11450
movq %rax, %rbx
leaq -0x90(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1146f
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x43f0
movq %rbx, %rdi
callq 0x4750