// File: /workspace/github_cpp_makefile_star2_O2/demon386[P]git-store/./libs/program_options/src/cmdline.cpp
// Function: boost::program_options::detail::cmdline::run()
vector<option>
    cmdline::run()
    {
        // The parsing is done by having a set of 'style parsers'
        // and trying then in order. Each parser is passed a vector
        // of unparsed tokens and can consume some of them (by
        // removing elements on front) and return a vector of options.
        //
        // We try each style parser in turn, untill some input
        // is consumed. The returned vector of option may contain the
        // result of just syntactic parsing of token, say --foo will
        // be parsed as option with name 'foo', and the style parser
        // is not required to care if that option is defined, and how
        // many tokens the value may take.
        // So, after vector is returned, we validate them.
        assert(m_desc);

        vector<style_parser> style_parsers;      

        if (m_style_parser)
            style_parsers.push_back(m_style_parser);

        if (m_additional_parser)
            style_parsers.push_back(
                boost::bind(&cmdline::handle_additional_parser, this, _1));

        if (m_style & allow_long)
            style_parsers.push_back(
                boost::bind(&cmdline::parse_long_option, this, _1));

        if ((m_style & allow_long_disguise))
            style_parsers.push_back(
                boost::bind(&cmdline::parse_disguised_long_option, this, _1));

        if ((m_style & allow_short) && (m_style & allow_dash_for_short))
            style_parsers.push_back(
                boost::bind(&cmdline::parse_short_option, this, _1));

        if ((m_style & allow_short) && (m_style & allow_slash_for_short))
            style_parsers.push_back(boost::bind(&cmdline::parse_dos_option, this, _1));

        style_parsers.push_back(boost::bind(&cmdline::parse_terminator, this, _1));

        vector<option> result;
        while(!args.empty())
        {
            bool ok = false;
            for(unsigned i = 0; i < style_parsers.size(); ++i)
            {
                unsigned current_size = static_cast<unsigned>(args.size());
                vector<option> next = style_parsers[i](args);

                // Check that option names
                // are valid, and that all values are in place.
                if (!next.empty())
                {
                    vector<string> e;
                    for(unsigned k = 0; k < next.size()-1; ++k) {
                        finish_option(next[k], e, style_parsers);
                    }
                    // For the last option, pass the unparsed tokens
                    // so that they can be added to next.back()'s values
                    // if appropriate.
                    finish_option(next.back(), args, style_parsers);
                    for (unsigned j = 0; j < next.size(); ++j)
                        result.push_back(next[j]);                    
                }
                                
                if (args.size() != current_size) {
                    ok = true;
                    break;                
                } 
            }
            
            if (!ok) {
                option opt;
                opt.value.push_back(args[0]);
                opt.original_tokens.push_back(args[0]);
                result.push_back(opt);
                args.erase(args.begin());
            }
        }

        /* If an key option is followed by a positional option,
           can can consume more tokens (e.g. it's multitoken option),
           give those tokens to it.  */
        vector<option> result2;
        for (unsigned i = 0; i < result.size(); ++i)
        {
            result2.push_back(result[i]);
            option& opt = result2.back();

            if (opt.string_key.empty())
                continue;

            const option_description* xd;
            try
            {
                xd = m_desc->find_nothrow(opt.string_key, 
                                            is_style_active(allow_guessing),
                                            is_style_active(long_case_insensitive),
                                            is_style_active(short_case_insensitive));
            } 
            catch(error_with_option_name& e)
            {
                // add context and rethrow
                e.add_context(opt.string_key, opt.original_tokens[0], get_canonical_option_prefix());
                throw;
            }

            if (!xd)
                continue;

            if (xd->semantic()->adjacent_tokens_only())
                continue;

            unsigned min_tokens = xd->semantic()->min_tokens();
            unsigned max_tokens = xd->semantic()->max_tokens();
            if (min_tokens < max_tokens && opt.value.size() < max_tokens)
            {
                // This option may grab some more tokens.
                // We only allow to grab tokens that are not already
                // recognized as key options.

                int can_take_more = max_tokens - static_cast<int>(opt.value.size());
                unsigned j = i+1;
                for (; can_take_more && j < result.size(); --can_take_more, ++j)
                {
                    option& opt2 = result[j];
                    if (!opt2.string_key.empty())
                        break;

                    if (opt2.position_key == INT_MAX)
                    {
                        // We use INT_MAX to mark positional options that
                        // were found after the '--' terminator and therefore
                        // should stay positional forever.
                        break;
                    }

                    assert(opt2.value.size() == 1);
                    
                    opt.value.push_back(opt2.value[0]);

                    assert(opt2.original_tokens.size() == 1);

                    opt.original_tokens.push_back(opt2.original_tokens[0]);
                }
                i = j-1;
            }
        }
        result.swap(result2);
        

        // Assign position keys to positional options.
        int position_key = 0;
        for(unsigned i = 0; i < result.size(); ++i) {
            if (result[i].string_key.empty())
                result[i].position_key = position_key++;
        }

        if (m_positional)
        {
            unsigned position = 0;
            for (unsigned i = 0; i < result.size(); ++i) {
                option& opt = result[i];
                if (opt.position_key != -1) {
                    if (position >= m_positional->max_total_count())
                    {
                        boost::throw_exception(too_many_positional_options_error());
                    }
                    opt.string_key = m_positional->name_for_position(position);
                    ++position;
                }
            }
        }
        
        // set case sensitive flag
        for (unsigned i = 0; i < result.size(); ++i) {
            if (result[i].string_key.size() > 2 ||
                        (result[i].string_key.size() > 1 && result[i].string_key[0] != '-'))
            {
                // it is a long option
                result[i].case_insensitive = is_style_active(long_case_insensitive);
            }
            else
            {
                // it is a short option
                result[i].case_insensitive = is_style_active(short_case_insensitive);
            }
        }

        return result;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdi, -0x38(%rbp)
cmpq $0x0, 0x20(%rsi)
je 0xd6d6
movq %rsi, %rbx
andq $0x0, -0x60(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x70(%rbp)
cmpq $0x0, 0x50(%rsi)
je 0xcfc8
leaq 0x50(%rbx), %rsi
leaq -0x70(%rbp), %rdi
callq 0xe9fe
cmpq $0x0, 0x30(%rbx)
je 0xd009
leaq 0x80e(%rip), %rax       # 0xd7e4
leaq -0xd0(%rbp), %rsi
movq %rax, 0x8(%rsi)
andq $0x0, 0x10(%rsi)
movq %rbx, 0x18(%rsi)
leaq 0x391d0(%rip), %rax     # 0x461c1
movq %rax, (%rsi)
leaq -0x70(%rbp), %rdi
callq 0x104de
leaq -0xd0(%rbp), %rdi
callq 0xe818
movl 0x18(%rbx), %eax
testb $0x1, %al
je 0xd04d
leaq 0x8c3(%rip), %rax       # 0xd8da
leaq -0xd0(%rbp), %rsi
movq %rax, 0x8(%rsi)
andq $0x0, 0x10(%rsi)
movq %rbx, 0x18(%rsi)
leaq 0x3918f(%rip), %rax     # 0x461c1
movq %rax, (%rsi)
leaq -0x70(%rbp), %rdi
callq 0x104de
leaq -0xd0(%rbp), %rdi
callq 0xe818
movl 0x18(%rbx), %eax
btl $0xc, %eax
jae 0xd090
leaq 0xad0(%rip), %rax       # 0xdb2a
leaq -0xd0(%rbp), %rsi
movq %rax, 0x8(%rsi)
andq $0x0, 0x10(%rsi)
movq %rbx, 0x18(%rsi)
leaq 0x3914c(%rip), %rax     # 0x461c1
movq %rax, (%rsi)
leaq -0x70(%rbp), %rdi
callq 0x104de
leaq -0xd0(%rbp), %rdi
callq 0xe818
movl 0x18(%rbx), %eax
movl %eax, %ecx
notl %ecx
testb $0x6, %cl
jne 0xd0d6
leaq 0xbe6(%rip), %rax       # 0xdc86
leaq -0xd0(%rbp), %rsi
movq %rax, 0x8(%rsi)
andq $0x0, 0x10(%rsi)
movq %rbx, 0x18(%rsi)
leaq 0x39106(%rip), %rax     # 0x461c1
movq %rax, (%rsi)
leaq -0x70(%rbp), %rdi
callq 0x104de
leaq -0xd0(%rbp), %rdi
callq 0xe818
movl 0x18(%rbx), %eax
notl %eax
testb $0xa, %al
movq %rbx, -0x30(%rbp)
jne 0xd11c
leaq 0xf1d(%rip), %rax       # 0xe004
leaq -0xd0(%rbp), %rsi
movq %rax, 0x8(%rsi)
andq $0x0, 0x10(%rsi)
movq %rbx, 0x18(%rsi)
leaq 0x390bf(%rip), %rbx     # 0x461c1
movq %rbx, (%rsi)
leaq -0x70(%rbp), %rdi
callq 0x104de
leaq -0xd0(%rbp), %rdi
callq 0xe818
jmp 0xd123
leaq 0x3909e(%rip), %rbx     # 0x461c1
leaq 0x1050(%rip), %rax      # 0xe17a
leaq -0xd0(%rbp), %rsi
movq %rax, 0x8(%rsi)
andq $0x0, 0x10(%rsi)
movq -0x30(%rbp), %rax
movq %rax, 0x18(%rsi)
movq %rbx, (%rsi)
leaq -0x70(%rbp), %rdi
callq 0x104de
leaq -0xd0(%rbp), %rdi
callq 0xe818
movq -0x38(%rbp), %rax
andq $0x0, 0x10(%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
leaq -0x50(%rbp), %r13
leaq -0x70(%rbp), %r12
movq -0x30(%rbp), %rcx
movq (%rcx), %rax
cmpq 0x8(%rcx), %rax
je 0xd335
xorl %ebx, %ebx
movl %ebx, %ebx
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %rbx, %rax
jbe 0xd2b0
movq -0x30(%rbp), %rdx
movq 0x8(%rdx), %r14
subq (%rdx), %r14
movq %rbx, %rax
shlq $0x5, %rax
addq %rax, %rsi
leaq -0xd0(%rbp), %rdi
callq 0xea3a
movq -0xd0(%rbp), %rsi
movq -0xc8(%rbp), %rcx
cmpq %rcx, %rsi
je 0xd27e
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
andq $0x0, -0x40(%rbp)
xorl %r15d, %r15d
movl %r15d, %r15d
movq %rcx, %rax
subq %rsi, %rax
cqto
pushq $0x60
popq %rdi
idivq %rdi
decq %rax
cmpq %r15, %rax
jbe 0xd227
imulq $0x60, %r15, %rax
addq %rax, %rsi
movq -0x30(%rbp), %rdi
movq %r13, %rdx
movq %r12, %rcx
callq 0xe288
incl %r15d
movq -0xd0(%rbp), %rsi
movq -0xc8(%rbp), %rcx
jmp 0xd1e5
addq $-0x60, %rcx
movq -0x30(%rbp), %rdi
movq %rcx, %rsi
movq %rdi, %rdx
movq %r12, %rcx
callq 0xe288
xorl %r15d, %r15d
movl %r15d, %r15d
movq -0xd0(%rbp), %rsi
movq -0xc8(%rbp), %rax
subq %rsi, %rax
cqto
pushq $0x60
popq %rcx
idivq %rcx
cmpq %r15, %rax
jbe 0xd276
imulq $0x60, %r15, %rax
addq %rax, %rsi
movq -0x38(%rbp), %rdi
callq 0xea8c
incl %r15d
jmp 0xd240
movq %r13, %rdi
callq 0xe840
shrq $0x5, %r14
movq -0x30(%rbp), %rax
movq 0x8(%rax), %r15
subq (%rax), %r15
sarq $0x5, %r15
movl %r14d, %r14d
leaq -0xd0(%rbp), %rdi
callq 0xeac8
incl %ebx
cmpq %r14, %r15
je 0xd184
jmp 0xd171
leaq -0xc0(%rbp), %rax
movq %rax, -0xd0(%rbp)
andq $0x0, -0xc8(%rbp)
movb $0x0, -0xc0(%rbp)
orl $-0x1, -0xb0(%rbp)
xorps %xmm0, %xmm0
leaq -0xa8(%rbp), %rdi
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
andw $0x0, 0x30(%rdi)
movq -0x30(%rbp), %rbx
movq (%rbx), %rsi
callq 0xeaf4
movq (%rbx), %rsi
leaq -0x90(%rbp), %rdi
callq 0xeaf4
movq -0x38(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0xea8c
movq (%rbx), %rsi
movq %rbx, %rdi
callq 0xeb30
leaq -0xd0(%rbp), %rdi
callq 0xeb3a
jmp 0xd171
xorps %xmm0, %xmm0
leaq -0xd0(%rbp), %rax
movaps %xmm0, (%rax)
andq $0x0, 0x10(%rax)
xorl %ebx, %ebx
leaq -0x50(%rbp), %r14
movl %ebx, %ecx
movq -0x38(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdi
movq %rdi, %rax
subq %rsi, %rax
cqto
pushq $0x60
popq %r8
idivq %r8
cmpq %rcx, %rax
jbe 0xd52d
imulq $0x60, %rcx, %rax
addq %rax, %rsi
leaq -0xd0(%rbp), %rdi
callq 0xea8c
movq -0x30(%rbp), %rax
movq -0xc8(%rbp), %rcx
cmpq $0x0, -0x58(%rcx)
je 0xd526
movq %rcx, %r15
leaq -0x60(%rcx), %r12
movq 0x20(%rax), %rdi
movl 0x18(%rax), %r8d
movl %r8d, %edx
shrl $0x9, %edx
andl $0x1, %edx
movl %r8d, %ecx
shrl $0xa, %ecx
andl $0x1, %ecx
shrl $0xb, %r8d
andl $0x1, %r8d
movq %r12, %rsi
callq 0x152bc
movq %rax, %r13
testq %rax, %rax
je 0xd526
movq %r14, %rdi
movq %r13, %rsi
callq 0x14c94
movq %r14, %rdi
callq 0xeba4
movq (%rax), %rcx
movq %rax, %rdi
callq *0x18(%rcx)
movl %eax, %r12d
leaq -0x48(%rbp), %rdi
callq 0xf63a
testb %r12b, %r12b
jne 0xd526
movq %r14, %rdi
movq %r13, %rsi
callq 0x14c94
movq %r14, %rdi
callq 0xeba4
movq (%rax), %rcx
movq %rax, %rdi
callq *0x8(%rcx)
movl %eax, %r12d
leaq -0x48(%rbp), %rdi
callq 0xf63a
movq %r14, %rdi
movq %r13, %rsi
callq 0x14c94
movq %r14, %rdi
callq 0xeba4
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
movl %eax, %r13d
leaq -0x48(%rbp), %rdi
callq 0xf63a
cmpl %r13d, %r12d
jae 0xd526
movq -0x30(%r15), %r12
subq -0x38(%r15), %r12
sarq $0x5, %r12
movl %r13d, %eax
cmpq %rax, %r12
jae 0xd526
leaq -0x38(%r15), %rax
movq %rax, -0xd8(%rbp)
addq $-0x20, %r15
subl %r13d, %r12d
movq %rbx, %rax
movq %r15, %r13
testl %r12d, %r12d
je 0xd523
movq %rax, %rbx
leal 0x1(%rax), %r14d
movl %r14d, %ecx
movq -0x38(%rbp), %rax
movq (%rax), %r15
movq 0x8(%rax), %rax
subq %r15, %rax
cqto
pushq $0x60
popq %rsi
idivq %rsi
cmpq %rcx, %rax
jbe 0xd526
imulq $0x60, %rcx, %rax
cmpq $0x0, 0x8(%r15,%rax)
jne 0xd526
cmpl $0x7fffffff, 0x20(%r15,%rax) # imm = 0x7FFFFFFF
je 0xd526
addq %rax, %r15
movq 0x28(%r15), %rsi
movq 0x30(%r15), %rax
subq %rsi, %rax
cmpq $0x20, %rax
jne 0xd686
movq -0xd8(%rbp), %rdi
callq 0xeaf4
movq 0x40(%r15), %rsi
movq 0x48(%r15), %rax
subq %rsi, %rax
cmpq $0x20, %rax
jne 0xd6a5
movq %r13, %rdi
callq 0xeaf4
incl %r12d
movl %r14d, %eax
jmp 0xd492
movq %rax, %rbx
incl %ebx
jmp 0xd349
movq -0x38(%rbp), %r8
movq 0x10(%r8), %rax
movq -0xd0(%rbp), %r13
movq %r13, (%r8)
movq -0xc8(%rbp), %rcx
movq %rcx, 0x8(%r8)
movq -0xc0(%rbp), %rdx
movq %rdx, 0x10(%r8)
movq %rsi, -0xd0(%rbp)
movq %rdi, -0xc8(%rbp)
movq %rax, -0xc0(%rbp)
movq %rcx, %rax
subq %r13, %rax
cqto
pushq $0x60
popq %rsi
idivq %rsi
xorl %edx, %edx
xorl %esi, %esi
movq -0x30(%rbp), %r8
movl %esi, %esi
cmpq %rsi, %rax
jbe 0xd59f
imulq $0x60, %rsi, %rdi
cmpq $0x0, 0x8(%r13,%rdi)
jne 0xd59b
addq %r13, %rdi
movl %edx, 0x20(%rdi)
incl %edx
incl %esi
jmp 0xd580
cmpq $0x0, 0x28(%r8)
je 0xd616
xorl %r12d, %r12d
xorl %ebx, %ebx
movl %ebx, %ebx
movq %rcx, %rax
subq %r13, %rax
cqto
pushq $0x60
popq %rsi
idivq %rsi
cmpq %rbx, %rax
jbe 0xd612
imulq $0x60, %rbx, %r14
cmpl $-0x1, 0x20(%r13,%r14)
je 0xd60e
movq -0x30(%rbp), %rax
movq 0x28(%rax), %rdi
callq 0x1a658
cmpl %eax, %r12d
jae 0xd6c4
movq -0x30(%rbp), %rax
movq 0x28(%rax), %rdi
movl %r12d, %esi
callq 0x1a674
addq %r14, %r13
movq %r13, %rdi
movq %rax, %rsi
callq 0xc2b0
incl %r12d
movq -0x38(%rbp), %rax
movq (%rax), %r13
movq 0x8(%rax), %rcx
incl %ebx
jmp 0xd5ab
movq -0x30(%rbp), %r8
movl 0x18(%r8), %ecx
movl %ecx, %edx
shrl $0xb, %edx
shrl $0xa, %ecx
xorl %esi, %esi
movl %esi, %esi
cmpq %rsi, %rax
jbe 0xd65b
imulq $0x60, %rsi, %r8
leaq (%r8,%r13), %rdi
cmpq $0x2, 0x8(%r13,%r8)
movl %ecx, %r8d
ja 0xd64f
jne 0xd64c
movq (%rdi), %r8
cmpb $0x2d, (%r8)
movl %ecx, %r8d
jne 0xd64f
movl %edx, %r8d
andb $0x1, %r8b
movb %r8b, 0x59(%rdi)
incl %esi
jmp 0xd624
leaq -0xd0(%rbp), %rdi
callq 0xeac8
leaq -0x70(%rbp), %rdi
callq 0xeca6
movq -0x38(%rbp), %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1ee60(%rip), %rdi     # 0x2c4ed
leaq 0x1edf4(%rip), %rsi     # 0x2c488
leaq 0x1ee14(%rip), %rcx     # 0x2c4af
movl $0x157, %edx            # imm = 0x157
callq 0xc350
leaq 0x1ee58(%rip), %rdi     # 0x2c504
leaq 0x1edd5(%rip), %rsi     # 0x2c488
leaq 0x1edf5(%rip), %rcx     # 0x2c4af
movl $0x15b, %edx            # imm = 0x15B
callq 0xc350
leaq -0x50(%rbp), %rdi
callq 0xec46
leaq -0x50(%rbp), %rdi
callq 0xebd0
leaq 0x1eda4(%rip), %rdi     # 0x2c481
leaq 0x1eda4(%rip), %rsi     # 0x2c488
leaq 0x1edc4(%rip), %rcx     # 0x2c4af
movl $0xda, %edx
callq 0xc350
jmp 0xd707
jmp 0xd707
jmp 0xd707
jmp 0xd707
jmp 0xd707
movq %rax, %r13
jmp 0xd7d3
movq %rax, %r13
leaq -0xd0(%rbp), %rdi
callq 0xe818
jmp 0xd7d3
movq %rax, %r13
leaq -0x50(%rbp), %rdi
callq 0xc860
jmp 0xd7be
jmp 0xd793
jmp 0xd736
jmp 0xd793
jmp 0xd736
jmp 0xd793
movq %rax, %r13
leaq -0x48(%rbp), %rdi
callq 0xf63a
jmp 0xd7be
jmp 0xd793
jmp 0xd798
movq %rax, %r13
cmpl $0x1, %edx
jne 0xd7be
movq %r13, %rdi
callq 0xc1d0
movq %rax, %r13
movq -0x20(%r15), %r15
movq -0x30(%rbp), %rdi
callq 0xcf48
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
movl %eax, %ecx
callq 0xeb64
callq 0xc700
movq %rax, %r13
callq 0xc7e0
jmp 0xd7be
movq %rax, %rdi
callq 0xeb96
jmp 0xd793
jmp 0xd793
movq %rax, %r13
jmp 0xd7be
movq %rax, %r13
leaq -0xd0(%rbp), %rdi
callq 0xeb3a
jmp 0xd7ca
jmp 0xd7b2
movq %rax, %r13
jmp 0xd7ca
jmp 0xd7b2
movq %rax, %r13
leaq -0x50(%rbp), %rdi
callq 0xe840
leaq -0xd0(%rbp), %rdi
callq 0xeac8
movq -0x38(%rbp), %rdi
callq 0xeac8
leaq -0x70(%rbp), %rdi
callq 0xeca6
movq %r13, %rdi
callq 0xc850