// File: /workspace/github_cpp_makefile_star2_O2/statgen[P]statgen/lib/tclap-1.2.0/examples/../include/tclap/CmdLine.h
// Function: TCLAP::CmdLine::parse(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
inline void CmdLine::parse(std::vector<std::string>& args)
{
	bool shouldExit = false;
	int estat = 0;

	try {
		_progName = args.front();
		args.erase(args.begin());

		int requiredCount = 0;

		for (int i = 0; static_cast<unsigned int>(i) < args.size(); i++) {
			bool matched = false;
			for (ArgListIterator it = _argList.begin();
				 it != _argList.end(); it++) {
				if ( (*it)->processArg( &i, args ) )
					{
						requiredCount += _xorHandler.check( *it );
						matched = true;
						break;
					}
			}

			// checks to see if the argument is an empty combined
			// switch and if so, then we've actually matched it
			if ( !matched && _emptyCombined( args[i] ) )
				matched = true;

			if ( !matched && !Arg::ignoreRest() )
				throw(CmdLineParseException("Couldn't find match "
											"for argument",
											args[i]));
		}

		if ( requiredCount < _numRequired )
			missingArgsException();

		if ( requiredCount > _numRequired )
			throw(CmdLineParseException("Too many arguments!"));

	} catch ( ArgException& e ) {
		// If we're not handling the exceptions, rethrow.
		if ( !_handleExceptions) {
			throw;
		}

		try {
			_output->failure(*this,e);
		} catch ( ExitException &ee ) {
			estat = ee.getExitStatus();
			shouldExit = true;
		}
	} catch (ExitException &ee) {
		// If we're not handling the exceptions, rethrow.
		if ( !_handleExceptions) {
			throw;
		}

		estat = ee.getExitStatus();
		shouldExit = true;
	}

	if (shouldExit)
		exit(estat);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rsi
addq $0x20, %rdi
callq 0x3100
movq (%r14), %rsi
movq %r14, %rdi
callq 0x7080
movq %rbx, %rax
addq $0x8, %rbx
movq %rax, 0x10(%rsp)
leaq 0x88(%rax), %r15
xorl %eax, %eax
leaq 0x18(%rsp), %r12
xorl %ebp, %ebp
movl %eax, 0x18(%rsp)
movq 0x8(%r14), %rcx
subq (%r14), %rcx
movl %eax, %eax
sarq $0x5, %rcx
movq %rbx, %r13
cmpq %rax, %rcx
jbe 0x6c58
movq (%r13), %r13
cmpq %rbx, %r13
je 0x6c2d
movq 0x10(%r13), %rdi
movq (%rdi), %rax
movq %r12, %rsi
movq %r14, %rdx
callq *0x18(%rax)
testb %al, %al
je 0x6c00
movq 0x10(%r13), %rsi
movq %r15, %rdi
callq 0x7086
addl %eax, %ebp
jmp 0x6c50
movslq 0x18(%rsp), %rsi
shlq $0x5, %rsi
addq (%r14), %rsi
movq 0x10(%rsp), %rdi
callq 0x7150
testb %al, %al
jne 0x6c50
cmpb $0x0, 0x7594(%rip)      # 0xe1e2
je 0x6c88
movl 0x18(%rsp), %eax
incl %eax
jmp 0x6be7
movq 0x10(%rsp), %rbx
movl 0x80(%rbx), %eax
cmpl %eax, %ebp
jge 0x6c75
movq %rbx, %rdi
callq 0x717a
movl 0x80(%rbx), %eax
cmpl %eax, %ebp
jg 0x6ce2
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x68
popq %rdi
callq 0x30e0
movq %rax, %r12
leaq 0x2606(%rip), %rsi      # 0x92a0
leaq 0x38(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0x39b2
movslq 0x18(%rsp), %rdx
shlq $0x5, %rdx
addq (%r14), %rdx
movb $0x1, %bpl
leaq 0x38(%rsp), %rsi
movq %r12, %rdi
callq 0x39ee
xorl %ebp, %ebp
leaq 0x6cb2(%rip), %rsi      # 0xd980
leaq 0xcad(%rip), %rdx       # 0x7982
movq %r12, %rdi
callq 0x32b0
jmp 0x6e41
pushq $0x68
popq %rdi
callq 0x30e0
movq %rax, %r12
leaq 0x25cd(%rip), %rsi      # 0x92c1
leaq 0x38(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0x39b2
leaq 0x25cb(%rip), %rsi      # 0x92d5
leaq 0x18(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x39b2
movb $0x1, %bpl
leaq 0x38(%rsp), %rsi
leaq 0x18(%rsp), %rdx
movq %r12, %rdi
callq 0x39ee
xorl %ebp, %ebp
leaq 0x6c49(%rip), %rsi      # 0xd980
leaq 0xc44(%rip), %rdx       # 0x7982
movq %r12, %rdi
callq 0x32b0
jmp 0x6e41
movq %rdx, %r15
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x3348
jmp 0x6d66
movq %rdx, %r15
movq %rax, %r14
movb $0x1, %bpl
leaq 0x38(%rsp), %rdi
callq 0x3348
testb %bpl, %bpl
movq 0x10(%rsp), %rbx
jne 0x6d87
jmp 0x6dd3
movq %rdx, %r15
movq %rax, %r14
movq 0x10(%rsp), %rbx
movq %r12, %rdi
callq 0x3140
jmp 0x6dd3
jmp 0x6d95
jmp 0x6d95
movq %rdx, %r15
movq %rax, %r14
jmp 0x6dd3
movq %rdx, %r15
movq %rax, %r14
leaq 0x38(%rsp), %rdi
callq 0x3348
testb %bpl, %bpl
jne 0x6dba
jmp 0x6dce
movq %rdx, %r15
movq %rax, %r14
movq %r12, %rdi
callq 0x3140
jmp 0x6dce
jmp 0x6dc8
jmp 0x6dc8
movq %rdx, %r15
movq %rax, %r14
movq 0x10(%rsp), %rbx
cmpl $0x2, %r15d
jne 0x6e10
movq %r14, %rdi
callq 0x3090
cmpb $0x0, 0xd8(%rbx)
je 0x6e35
movq 0xd0(%rbx), %rdi
movq (%rdi), %rcx
xorl %ebp, %ebp
movq %rbx, %rsi
movq %rax, %rdx
callq *0x20(%rcx)
xorl %ebx, %ebx
callq 0x3290
testb %bl, %bl
je 0x6c79
jmp 0x6e2e
cmpl $0x1, %r15d
jne 0x6e53
movq %r14, %rdi
callq 0x3090
cmpb $0x0, 0xd8(%rbx)
je 0x6e3c
movl (%rax), %ebp
callq 0x3290
movl %ebp, %edi
callq 0x31e0
callq 0x3230
jmp 0x6e41
callq 0x3230
movq %rax, %r14
callq 0x3290
jmp 0x6e53
movq %rax, %r14
callq 0x3290
movq %r14, %rdi
callq 0x32c0
movq %rax, %rdi
callq 0x42dc
movq %rax, %r14
cmpl $0x1, %edx
jne 0x6e4e
movq %r14, %rdi
callq 0x3090
movl (%rax), %ebp
movb $0x1, %bl
callq 0x3290
jmp 0x6e01
jmp 0x6e4b