// File: /workspace/github_cpp_makefile_star2_O3/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 $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rsi
addq $0x20, %rdi
callq 0x3100
movq (%r14), %rsi
movq %r14, %rdi
callq 0x9836
movl $0x0, 0x28(%rsp)
movq 0x8(%r14), %rax
cmpq (%r14), %rax
je 0x9108
leaq 0x8(%rbx), %rbp
xorl %r13d, %r13d
leaq 0x28(%rsp), %r15
movq %rbp, %r12
movq (%r12), %r12
cmpq %rbp, %r12
je 0x9043
movq 0x10(%r12), %rdi
movq (%rdi), %rax
movq %r15, %rsi
movq %r14, %rdx
callq *0x18(%rax)
testb %al, %al
je 0x8f8d
movq %r13, (%rsp)
movq 0x10(%r12), %rdi
movq %rdi, 0x8(%rsp)
movq 0x88(%rbx), %rcx
cmpq %rcx, 0x90(%rbx)
je 0x902a
movl $0x8, %r13d
xorl %r12d, %r12d
movq -0x8(%rcx,%r13), %rdi
movq (%rcx,%r13), %rsi
leaq 0x8(%rsp), %rdx
callq 0x98b1
movq 0x88(%rbx), %rcx
movq (%rcx,%r13), %rdx
cmpq %rdx, %rax
jne 0x90ab
incq %r12
movq 0x90(%rbx), %rax
subq %rcx, %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rax
addq $0x18, %r13
cmpq %r12, %rax
ja 0x8fd6
movq 0x8(%rsp), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
movzbl %al, %ecx
movq (%rsp), %r13
addl %ecx, %r13d
movl 0x28(%rsp), %eax
movq (%r14), %rcx
jmp 0x908f
movslq 0x28(%rsp), %rax
movq (%r14), %rcx
movq %rax, %rsi
shlq $0x5, %rsi
movq 0x8(%rcx,%rsi), %rdx
testq %rdx, %rdx
je 0x908f
addq %rcx, %rsi
movq (%rsi), %rsi
cmpb $0x2d, (%rsi)
jne 0x9082
cmpq $0x1, %rdx
je 0x908f
movl $0x1, %edi
cmpb $0x7, (%rsi,%rdi)
jne 0x9082
incq %rdi
cmpq %rdi, %rdx
jne 0x9072
jmp 0x908f
cmpb $0x0, 0x6161(%rip)      # 0xf1ea
je 0x9138
incl %eax
movl %eax, 0x28(%rsp)
movq 0x8(%r14), %rdx
subq %rcx, %rdx
sarq $0x5, %rdx
cmpq %rax, %rdx
ja 0x8f8a
jmp 0x910b
movq -0x8(%rcx,%r13), %rcx
cmpq %rdx, %rcx
je 0x90dc
movq 0x8(%rsp), %rsi
movq (%rcx), %rdi
cmpq %rdi, %rsi
je 0x90d3
movb $0x1, %r8b
movb %r8b, 0x91(%rdi)
movb %r8b, 0xa1(%rdi)
addq $0x8, %rcx
cmpq %rdx, %rcx
jne 0x90ba
movq (%rax), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
xorl %ecx, %ecx
testb %al, %al
jne 0x9033
movq 0x88(%rbx), %rax
movq (%rax,%r13), %rcx
subq -0x8(%rax,%r13), %rcx
shrq $0x3, %rcx
jmp 0x9033
xorl %r13d, %r13d
movl 0x80(%rbx), %eax
cmpl %eax, %r13d
jge 0x9124
movq %rbx, %rdi
callq 0x963a
movl 0x80(%rbx), %eax
cmpl %eax, %r13d
jg 0x919f
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x68, %edi
callq 0x30e0
movq %rax, %r12
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x214b(%rip), %rsi      # 0xb2a0
leaq 0x2164(%rip), %rdx      # 0xb2c0
leaq 0x8(%rsp), %rdi
callq 0x6ef2
movslq 0x28(%rsp), %rdx
shlq $0x5, %rdx
addq (%r14), %rdx
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %r12, %rdi
callq 0x3d26
xorl %ebp, %ebp
leaq 0x57ed(%rip), %rsi      # 0xe978
leaq 0xe76(%rip), %rdx       # 0xa008
movq %r12, %rdi
callq 0x32e0
jmp 0x9323
movl $0x68, %edi
callq 0x30e0
movq %rax, %r12
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x2105(%rip), %rsi      # 0xb2c1
leaq 0x2111(%rip), %rdx      # 0xb2d4
leaq 0x8(%rsp), %rdi
callq 0x6ef2
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x20f8(%rip), %rsi      # 0xb2d5
leaq 0x20fa(%rip), %rdx      # 0xb2de
leaq 0x28(%rsp), %rdi
callq 0x6ef2
movb $0x1, %al
movl %eax, (%rsp)
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movq %r12, %rdi
callq 0x3d26
movl $0x0, (%rsp)
leaq 0x5765(%rip), %rsi      # 0xe978
leaq 0xdee(%rip), %rdx       # 0xa008
movq %r12, %rdi
callq 0x32e0
jmp 0x9323
movq %rdx, %r15
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x9244
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x31c0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x925b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x31c0
cmpb $0x0, (%rsp)
jne 0x92b4
jmp 0x92c8
movq %rdx, %r15
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x92b4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x31c0
jmp 0x92b4
jmp 0x92ae
jmp 0x92c2
jmp 0x92c2
jmp 0x92c2
movq %rdx, %r15
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x92a7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x31c0
testb %bpl, %bpl
jne 0x92b4
jmp 0x92c8
movq %rdx, %r15
movq %rax, %r14
movq %r12, %rdi
callq 0x3150
jmp 0x92c8
jmp 0x92c2
jmp 0x92c2
movq %rdx, %r15
movq %rax, %r14
cmpl $0x2, %r15d
jne 0x92fc
movq %r14, %rdi
callq 0x30b0
cmpb $0x0, 0xd8(%rbx)
je 0x9317
movq 0xd0(%rbx), %rdi
movq (%rdi), %rcx
movq %rbx, %rsi
movq %rax, %rdx
callq *0x20(%rcx)
callq 0x32c0
jmp 0x9129
cmpl $0x1, %r15d
jne 0x935a
movq %r14, %rdi
callq 0x30b0
cmpb $0x0, 0xd8(%rbx)
je 0x931e
movl (%rax), %ebx
jmp 0x9349
callq 0x3260
jmp 0x9323
callq 0x3260
movq %rax, %r14
callq 0x32c0
jmp 0x935a
movq %rax, %r14
jmp 0x9355
movq %rax, %r14
cmpl $0x1, %edx
jne 0x9355
movq %r14, %rdi
callq 0x30b0
movl (%rax), %ebx
callq 0x32c0
callq 0x32c0
movl %ebx, %edi
callq 0x3220
callq 0x32c0
movq %r14, %rdi
callq 0x3300
jmp 0x932d
movq %rax, %rdi
callq 0x5022