// File: /workspace/github_cpp_makefile_star2_O1/demon386[P]git-store/./libs/program_options/src/value_semantic.cpp
// Function: boost::program_options::validate(boost::any&, std::vector<std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>, std::allocator<std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>> const&, bool*, int)
BOOST_PROGRAM_OPTIONS_DECL 
    void validate(any& v, const vector<wstring>& xs, bool*, int)
    {
        check_first_occurrence(v);
        wstring s(get_single_string(xs, true));

        for (size_t i = 0; i < s.size(); ++i)
            s[i] = wchar_t(tolower(s[i]));

        if (s.empty() || s == L"on" || s == L"yes" || s == L"1" || s == L"true")
            v = any(true);
        else if (s == L"off" || s == L"no" || s == L"0" || s == L"false")
            v = any(false);
        else
            boost::throw_exception(invalid_bool_value(convert_value(s)));
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rsi, %r14
movq %rdi, %rbx
callq 0x1f9f9
movq %r14, %rdi
movl $0x1, %esi
callq 0x2178b
leaq -0x38(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rsi
movq 0x8(%rax), %rax
leaq (%rsi,%rax,4), %rdx
leaq -0x48(%rbp), %r14
movq %r14, %rdi
callq 0x1e8a2
movq 0x8(%r14), %r14
testq %r14, %r14
je 0x1fb79
movq -0x48(%rbp), %r12
xorl %r13d, %r13d
movl (%r12,%r13,4), %edi
callq 0xb670
movl %eax, (%r12,%r13,4)
incq %r13
cmpq %r13, %r14
jne 0x1faa2
leaq 0x155a2(%rip), %rsi     # 0x35060
leaq -0x48(%rbp), %rdi
callq 0xb5d0
testl %eax, %eax
je 0x1fb79
leaq 0x15596(%rip), %rsi     # 0x3506c
leaq -0x48(%rbp), %rdi
callq 0xb5d0
testl %eax, %eax
je 0x1fb79
leaq 0x1558e(%rip), %rsi     # 0x3507c
leaq -0x48(%rbp), %rdi
callq 0xb5d0
testl %eax, %eax
je 0x1fb79
leaq 0x15582(%rip), %rsi     # 0x35084
leaq -0x48(%rbp), %rdi
callq 0xb5d0
testl %eax, %eax
je 0x1fb79
leaq 0x15582(%rip), %rsi     # 0x35098
leaq -0x48(%rbp), %rdi
callq 0xb5d0
testl %eax, %eax
je 0x1fb5f
leaq 0x1557e(%rip), %rsi     # 0x350a8
leaq -0x48(%rbp), %rdi
callq 0xb5d0
testl %eax, %eax
je 0x1fb5f
leaq 0x15576(%rip), %rsi     # 0x350b4
leaq -0x48(%rbp), %rdi
callq 0xb5d0
testl %eax, %eax
je 0x1fb5f
leaq 0x1556a(%rip), %rsi     # 0x350bc
leaq -0x48(%rbp), %rdi
callq 0xb5d0
testl %eax, %eax
jne 0x1fbc2
movl $0x10, %edi
callq 0xb460
leaq 0x2b2e8(%rip), %rcx     # 0x4ae58
movq %rcx, (%rax)
movb $0x0, 0x8(%rax)
jmp 0x1fb91
movl $0x10, %edi
callq 0xb460
leaq 0x2b2ce(%rip), %rcx     # 0x4ae58
movq %rcx, (%rax)
movb $0x1, 0x8(%rax)
movq (%rbx), %rdi
movq %rax, (%rbx)
testq %rdi, %rdi
je 0x1fba2
movq (%rdi), %rax
callq *0x8(%rax)
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x1fbb0
callq 0xb430
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x68(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x1fc30
leaq -0x128(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x1ffdc
leaq -0x128(%rbp), %rdi
callq 0x21687
movq %rax, %rbx
leaq -0x128(%rbp), %rdi
callq 0xedb6
jmp 0x1fbff
movq %rax, %rbx
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1fc1a
callq 0xb430
jmp 0x1fc1a
jmp 0x1fc17
jmp 0x1fc17
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x1fc28
callq 0xb430
movq %rbx, %rdi
callq 0xb7f0