// File: /workspace/github_cpp_makefile_star2_O3/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 0x1f875
movq %r14, %rdi
movl $0x1, %esi
callq 0x215e1
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 0x1e728
movq 0x8(%r14), %r14
testq %r14, %r14
je 0x1f9f5
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 0x1f91e
leaq 0x15726(%rip), %rsi     # 0x35060
leaq -0x48(%rbp), %rdi
callq 0xb5d0
testl %eax, %eax
je 0x1f9f5
leaq 0x1571a(%rip), %rsi     # 0x3506c
leaq -0x48(%rbp), %rdi
callq 0xb5d0
testl %eax, %eax
je 0x1f9f5
leaq 0x15712(%rip), %rsi     # 0x3507c
leaq -0x48(%rbp), %rdi
callq 0xb5d0
testl %eax, %eax
je 0x1f9f5
leaq 0x15706(%rip), %rsi     # 0x35084
leaq -0x48(%rbp), %rdi
callq 0xb5d0
testl %eax, %eax
je 0x1f9f5
leaq 0x15706(%rip), %rsi     # 0x35098
leaq -0x48(%rbp), %rdi
callq 0xb5d0
testl %eax, %eax
je 0x1f9db
leaq 0x15702(%rip), %rsi     # 0x350a8
leaq -0x48(%rbp), %rdi
callq 0xb5d0
testl %eax, %eax
je 0x1f9db
leaq 0x156fa(%rip), %rsi     # 0x350b4
leaq -0x48(%rbp), %rdi
callq 0xb5d0
testl %eax, %eax
je 0x1f9db
leaq 0x156ee(%rip), %rsi     # 0x350bc
leaq -0x48(%rbp), %rdi
callq 0xb5d0
testl %eax, %eax
jne 0x1fa3e
movl $0x10, %edi
callq 0xb460
leaq 0x2b46c(%rip), %rcx     # 0x4ae58
movq %rcx, (%rax)
movb $0x0, 0x8(%rax)
jmp 0x1fa0d
movl $0x10, %edi
callq 0xb460
leaq 0x2b452(%rip), %rcx     # 0x4ae58
movq %rcx, (%rax)
movb $0x1, 0x8(%rax)
movq (%rbx), %rdi
movq %rax, (%rbx)
testq %rdi, %rdi
je 0x1fa1e
movq (%rdi), %rax
callq *0x8(%rax)
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x1fa2c
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 0x1faac
leaq -0x128(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x1fe50
leaq -0x128(%rbp), %rdi
callq 0x214ea
movq %rax, %rbx
leaq -0x128(%rbp), %rdi
callq 0xed30
jmp 0x1fa7b
movq %rax, %rbx
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1fa96
callq 0xb430
jmp 0x1fa96
jmp 0x1fa93
jmp 0x1fa93
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x1faa4
callq 0xb430
movq %rbx, %rdi
callq 0xb7f0