// File: /workspace/github_cpp_makefile_star2_O2/demon386[P]git-store/./libs/program_options/src/variables_map.cpp
// Function: boost::program_options::store(boost::program_options::basic_parsed_options<char> const&, boost::program_options::variables_map&, bool)
BOOST_PROGRAM_OPTIONS_DECL
    void store(const parsed_options& options, variables_map& xm,
               bool utf8)
    {
        // TODO: what if we have different definition
        // for the same option name during different calls
        // 'store'.
        assert(options.description);
        const options_description& desc = *options.description;

        // We need to access map's operator[], not the overriden version
        // variables_map. Ehmm.. messy.
        std::map<std::string, variable_value>& m = xm;

        std::set<std::string> new_final;

        // Declared once, to please Intel in VC++ mode;
        unsigned i;

        // Declared here so can be used to provide context for exceptions
        string option_name;
        string original_token;

        try
        {

            // First, convert/store all given options
            for (i = 0; i < options.options.size(); ++i) {

                option_name = options.options[i].string_key;
                original_token = options.options[i].original_tokens.size() ?
                                options.options[i].original_tokens[0] :
                                option_name;
                // Skip positional options without name
                if (option_name.empty())
                    continue;

                // Ignore unregistered option. The 'unregistered'
                // field can be true only if user has explicitly asked
                // to allow unregistered options. We can't store them
                // to variables map (lacking any information about paring),
                // so just ignore them.
                if (options.options[i].unregistered)
                    continue;

                // If option has final value, skip this assignment
                if (xm.m_final.count(option_name))
                    continue;

                string original_token = options.options[i].original_tokens.size() ?
                                        options.options[i].original_tokens[0]     : "";
                const option_description& d = desc.find(option_name, false,
                                                        false, false);

                variable_value& v = m[option_name];
                if (v.defaulted()) {
                    // Explicit assignment here erases defaulted value
                    v = variable_value();
                }

                d.semantic()->parse(v.value(), options.options[i].value, utf8);

                v.m_value_semantic = d.semantic();

                // The option is not composing, and the value is explicitly
                // provided. Ignore values of this option for subsequent
                // calls to 'store'. We store this to a temporary set,
                // so that several assignment inside *this* 'store' call
                // are allowed.
                if (!d.semantic()->is_composing())
                    new_final.insert(option_name);
            }
        }
#ifndef BOOST_NO_EXCEPTIONS
        catch(error_with_option_name& e)
        {
            // add context and rethrow
            e.add_context(option_name, original_token, options.m_options_prefix);
            throw;
        }
#endif
        xm.m_final.insert(new_final.begin(), new_final.end());



        // Second, apply default values and store required options.
        const vector<shared_ptr<option_description> >& all = desc.options();
        for(i = 0; i < all.size(); ++i)
        {
            const option_description& d = *all[i];
            string key = d.key("");
            // FIXME: this logic relies on knowledge of option_description
            // internals.
            // The 'key' is empty if options description contains '*'.
            // In that
            // case, default value makes no sense at all.
            if (key.empty())
            {
                continue;
            }
            if (m.count(key) == 0) {

                boost::any def;
                if (d.semantic()->apply_default(def)) {
                    m[key] = variable_value(def, true);
                    m[key].m_value_semantic = d.semantic();
                }
            }

            // add empty value if this is an required option
            if (d.semantic()->is_required()) {

                // For option names specified in multiple ways, e.g. on the command line,
                // config file etc, the following precedence rules apply:
                //  "--"  >  ("-" or "/")  >  ""
                //  Precedence is set conveniently by a single call to length()
                string canonical_name = d.canonical_display_name(options.m_options_prefix);
                if (canonical_name.length() > xm.m_required[key].length())
                    xm.m_required[key] = canonical_name;
            }
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rdi, -0x30(%rbp)
movq 0x18(%rdi), %rax
movq %rax, -0x78(%rbp)
testq %rax, %rax
je 0x20a96
leaq -0x108(%rbp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq -0xb0(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
leaq 0x10(%rsi), %rcx
movq %rcx, -0x68(%rbp)
xorl %ebx, %ebx
leaq -0xd0(%rbp), %rcx
movq %rcx, -0x10(%rcx)
andq $0x0, -0x8(%rcx)
movb %bl, (%rax)
movb %bl, (%rcx)
movq %rsi, -0x60(%rbp)
leaq 0x40(%rsi), %rax
movq %rax, -0x80(%rbp)
leaq -0xc0(%rbp), %r14
movzbl %dl, %eax
movl %eax, -0x6c(%rbp)
movl %ebx, %ebx
movq -0x30(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rax
subq %rsi, %rax
cqto
pushq $0x60
popq %rcx
idivq %rcx
cmpq %rbx, %rax
jbe 0x2084c
imulq $0x60, %rbx, %r15
addq %r15, %rsi
movq %r14, %rdi
callq 0xc2b0
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq 0x40(%rax,%r15), %rsi
cmpq %rsi, 0x48(%rax,%r15)
cmoveq %r14, %rsi
leaq -0xe0(%rbp), %rdi
callq 0xc2b0
cmpq $0x0, -0xb8(%rbp)
je 0x20845
movq -0x30(%rbp), %rax
movq (%rax), %rax
cmpb $0x0, 0x58(%rax,%r15)
jne 0x20845
movq -0x80(%rbp), %rdi
movq %r14, %rsi
callq 0x20ef4
testq %rax, %rax
jne 0x20845
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq 0x40(%rax,%r15), %rsi
cmpq %rsi, 0x48(%rax,%r15)
je 0x20724
leaq -0xa0(%rbp), %rdi
callq 0xc660
jmp 0x2073b
leaq -0xa0(%rbp), %rdi
leaq 0xc750(%rip), %rsi      # 0x2ce82
leaq -0x50(%rbp), %rdx
callq 0xc1b0
movq -0x78(%rbp), %rdi
movq %r14, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x15244
movq %rax, %r13
movq -0x68(%rbp), %rdi
movq %r14, %rsi
callq 0x20f18
movq %rax, %r14
cmpb $0x1, 0x8(%rax)
jne 0x20790
andq $0x0, -0x50(%rbp)
movb $0x0, -0x48(%rbp)
leaq -0x40(%rbp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq %r14, %rdi
leaq -0x50(%rbp), %r12
movq %r12, %rsi
callq 0x20f82
movq %r12, %rdi
callq 0x20fb4
leaq -0x50(%rbp), %r12
movq %r12, %rdi
movq %r13, %rsi
callq 0x14c94
movq %r12, %rdi
callq 0xeba4
movq -0x30(%rbp), %rcx
movq (%rcx), %rcx
leaq (%rcx,%r15), %rdx
addq $0x28, %rdx
movq (%rax), %r8
movq %rax, %rdi
movq %r14, %rsi
movl -0x6c(%rbp), %ecx
callq *0x30(%r8)
leaq -0x48(%rbp), %rdi
callq 0xf63a
movq %r12, %rdi
movq %r13, %rsi
callq 0x14c94
addq $0x10, %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x20fe2
leaq -0x48(%rbp), %rdi
callq 0xf63a
movq %r12, %rdi
movq %r13, %rsi
callq 0x14c94
movq %r12, %rdi
callq 0xeba4
movq (%rax), %rcx
movq %rax, %rdi
callq *0x20(%rcx)
movl %eax, %r14d
leaq -0x48(%rbp), %rdi
callq 0xf63a
testb %r14b, %r14b
jne 0x20832
leaq -0x110(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x1368a
leaq -0xa0(%rbp), %rdi
callq 0xc9a0
leaq -0xc0(%rbp), %r14
incl %ebx
jmp 0x2067c
movq -0xf8(%rbp), %rsi
movq -0x80(%rbp), %rdi
leaq -0x108(%rbp), %rdx
callq 0x21698
movq -0x78(%rbp), %rdi
callq 0x1549c
movq %rax, %r13
movq -0x60(%rbp), %rax
addq $0x70, %rax
movq %rax, -0x60(%rbp)
xorl %ebx, %ebx
leaq -0x50(%rbp), %r14
leaq -0xa0(%rbp), %r15
movl %ebx, %ebx
movq (%r13), %rdi
movq 0x8(%r13), %rax
subq %rdi, %rax
sarq $0x4, %rax
cmpq %rbx, %rax
jbe 0x20a60
movq %rbx, %rax
shlq $0x4, %rax
addq %rax, %rdi
callq 0x1620c
movq %rax, %r12
movq %r14, %rdi
leaq 0xc5c4(%rip), %rsi      # 0x2ce82
leaq -0x58(%rbp), %rdx
callq 0xc1b0
movq %r12, %rdi
movq %r14, %rsi
callq 0x14b50
movq %r15, %rdi
movq %rax, %rsi
callq 0xc660
movq %r14, %rdi
callq 0xc9a0
cmpq $0x0, -0x98(%rbp)
je 0x20a51
movq -0x68(%rbp), %rdi
movq %r15, %rsi
callq 0x2101c
testq %rax, %rax
jne 0x209c7
andq $0x0, -0x58(%rbp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x14c94
movq %r14, %rdi
callq 0xeba4
movq (%rax), %rcx
movq %rax, %rdi
leaq -0x58(%rbp), %rsi
callq *0x38(%rcx)
movl %eax, %r15d
leaq -0x48(%rbp), %rdi
callq 0xf63a
testb %r15b, %r15b
leaq -0xa0(%rbp), %r15
je 0x209b8
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0x20956
movq (%rdi), %rax
callq *0x18(%rax)
jmp 0x20958
xorl %eax, %eax
movq %rax, -0x50(%rbp)
movb $0x1, -0x48(%rbp)
leaq -0x40(%rbp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq -0x68(%rbp), %rdi
movq %r15, %rsi
callq 0x20f18
movq %rax, %rdi
movq %r14, %rsi
callq 0x20f82
movq %r14, %rdi
callq 0x20fb4
movq %r14, %rdi
movq %r12, %rsi
callq 0x14c94
movq -0x68(%rbp), %rdi
movq %r15, %rsi
callq 0x20f18
addq $0x10, %rax
movq %rax, %rdi
movq %r14, %rsi
callq 0x20fe2
leaq -0x48(%rbp), %rdi
callq 0xf63a
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0x209c7
movq (%rdi), %rax
callq *0x8(%rax)
movq %r14, %rdi
movq %r12, %rsi
callq 0x14c94
movq %r14, %rdi
callq 0xeba4
movq (%rax), %rcx
movq %rax, %rdi
callq *0x28(%rcx)
movl %eax, %r15d
leaq -0x48(%rbp), %rdi
callq 0xf63a
testb %r15b, %r15b
leaq -0xa0(%rbp), %r15
je 0x20a51
movq -0x30(%rbp), %rax
movl 0x20(%rax), %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x14b8e
movq -0x48(%rbp), %r15
movq -0x60(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0xf180
cmpq 0x8(%rax), %r15
jbe 0x20a42
movq -0x60(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0xf180
movq %rax, %rdi
movq %r14, %rsi
callq 0xc2b0
movq %r14, %rdi
callq 0xc9a0
leaq -0xa0(%rbp), %r15
movq %r15, %rdi
callq 0xc9a0
incl %ebx
jmp 0x20888
leaq -0xe0(%rbp), %rdi
callq 0xc9a0
leaq -0xc0(%rbp), %rdi
callq 0xc9a0
leaq -0x110(%rbp), %rdi
callq 0x13024
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xecc0(%rip), %rdi      # 0x2f75d
leaq 0xeccd(%rip), %rsi      # 0x2f771
leaq 0xecf3(%rip), %rcx      # 0x2f79e
pushq $0x1d
popq %rdx
callq 0xc350
jmp 0x20b58
jmp 0x20b58
jmp 0x20b6b
jmp 0x20b18
jmp 0x20b6b
jmp 0x20b18
movq %rax, %r14
leaq -0x50(%rbp), %rdi
callq 0x20fb4
jmp 0x20b1b
jmp 0x20b0a
jmp 0x20af6
jmp 0x20adf
movq %rdx, %r15
movq %rax, %r14
leaq -0x48(%rbp), %rdi
callq 0xf63a
jmp 0x20afc
jmp 0x20af6
jmp 0x20af6
jmp 0x20af6
movq %rdx, %r15
movq %rax, %r14
leaq -0xa0(%rbp), %rdi
callq 0xc9a0
jmp 0x20b71
movq %rax, %r14
leaq -0x48(%rbp), %rdi
callq 0xf63a
jmp 0x20b1b
movq %rax, %r14
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0x20b4f
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x20b4f
jmp 0x20b4c
movq %rax, %r14
leaq -0x48(%rbp), %rdi
callq 0xf63a
jmp 0x20b4f
movq %rax, %r14
leaq -0x50(%rbp), %rdi
callq 0xc9a0
jmp 0x20b4f
jmp 0x20b4c
movq %rax, %r14
leaq -0xa0(%rbp), %rdi
jmp 0x20b64
movq %rax, %r14
jmp 0x20ba9
movq %rax, %r14
leaq -0x50(%rbp), %rdi
callq 0xc9a0
jmp 0x20ba9
movq %rdx, %r15
movq %rax, %r14
cmpl $0x1, %r15d
jne 0x20ba9
movq %r14, %rdi
callq 0xc1d0
movq -0x30(%rbp), %rcx
movl 0x20(%rcx), %ecx
leaq -0xc0(%rbp), %rsi
leaq -0xe0(%rbp), %rdx
movq %rax, %rdi
callq 0xeb64
callq 0xc700
movq %rax, %r14
callq 0xc7e0
leaq -0xe0(%rbp), %rdi
callq 0xc9a0
leaq -0xc0(%rbp), %rdi
callq 0xc9a0
leaq -0x110(%rbp), %rdi
callq 0x13024
movq %r14, %rdi
callq 0xc850
movq %rax, %rdi
callq 0xeb96