// File: /workspace/github_cpp_makefile_star2_O3/Albuso0[P]support/commandline.cpp
// Function: std::CommandLine::Parse(int, char**)
void CommandLine::Parse (int iargc, char *argv[])
	{
		int argc = iargc;
		for (argc--, argv++; argc > 0; argc--, argv++)
		{
			// remove "--" or "-" heading.
			std::string param = *argv;
			std::string::size_type cur = param.find ("--");
			if (cur == 0)
				param = param.substr (2, param.size () - 2);
			else
			{
				cur = param.find ("-");
				if (cur == 0)
					param = param.substr (1, param.size () - 1);
				else
					continue; // invalid argument. ignore.
			}
			// parse "name=value"
			cur = param.find ("=");
			std::string name, value;
			if (cur == std::string::npos)
			{
				name = param;
				value = "";
			}
			else
			{
				name = param.substr (0, cur);
				value = param.substr (cur + 1, param.size () - (cur+1));
			}
                        if (name == "PrintHelp" || name == "help" || name == "h")
                        {
                            // method below never returns.
                            PrintHelp (std::cout);
                            exit (0);
                        } 
			// read value
			for (Items::const_iterator i = m_items.begin (); i != m_items.end (); ++i)
			{
				if ((*i)->m_name == name)
				{
					if (!(*i)->Parse (value))
					{
						std::cerr << "Invalid argument value: "<< name << "=" << value << std::endl;
						PrintHelp (std::cerr);
						exit (1);
					}
				}
			}
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
cmpl $0x2, %esi
jl 0x5598
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x40(%rsp), %rbp
leaq 0x60(%rsp), %r13
movq %rsi, 0x80(%rsp)
movq %r13, %r15
movq 0x8(%r14), %rsi
movq %rbp, %rdi
movq %rsp, %r13
movq %r13, %rdx
callq 0x5904
movl $0x2, %ecx
movq %rbp, %rdi
leaq 0x1062(%rip), %rsi      # 0x6314
xorl %edx, %edx
callq 0x3360
testq %rax, %rax
je 0x52fd
movl $0x1, %ecx
movq %rbp, %rdi
leaq 0x1048(%rip), %rsi      # 0x6315
xorl %edx, %edx
callq 0x3360
testq %rax, %rax
movq %r15, %r13
jne 0x5562
movq 0x48(%rsp), %rcx
decq %rcx
movl $0x1, %edx
movq %rsp, %r13
movq %r13, %rdi
movq %rbp, %rsi
callq 0x3250
jmp 0x5316
movq 0x48(%rsp), %rcx
addq $-0x2, %rcx
movl $0x2, %edx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x3250
movq %rbp, %rdi
movq %r13, %rsi
callq 0x32a0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x533c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3230
movl $0x1, %ecx
movq %rbp, %rdi
leaq 0xf86(%rip), %rsi       # 0x62d1
xorl %edx, %edx
callq 0x3360
movq %rax, %r13
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
xorl %ecx, %ecx
movq %rcx, 0x8(%rsp)
movb %cl, 0x10(%rsp)
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq %rcx, 0x28(%rsp)
movb %cl, 0x30(%rsp)
cmpq $-0x1, %r13
je 0x5423
leaq 0x88(%rsp), %r12
movq %r12, %rdi
movq %rbp, %rsi
xorl %edx, %edx
movq %r13, %rcx
callq 0x3250
movq %rsp, %rdi
movq %r12, %rsi
callq 0x32a0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x53ce
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3230
incq %r13
movq 0x48(%rsp), %rcx
subq %r13, %rcx
leaq 0x88(%rsp), %r12
movq %r12, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x3250
leaq 0x20(%rsp), %rdi
movq %r12, %rsi
callq 0x32a0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x5449
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0x5449
movq %rsp, %rdi
movq %rbp, %rsi
callq 0x3110
movq 0x28(%rsp), %rdx
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
leaq 0xdac(%rip), %rcx       # 0x61ed
xorl %r8d, %r8d
callq 0x3340
movq %rsp, %r12
movq %r12, %rdi
leaq 0xe7d(%rip), %rsi       # 0x62d3
callq 0x30a0
testl %eax, %eax
je 0x5621
movq %r12, %rdi
leaq 0xe70(%rip), %rsi       # 0x62dd
callq 0x30a0
testl %eax, %eax
je 0x5621
movq %r12, %rdi
leaq 0xe5e(%rip), %rsi       # 0x62e2
callq 0x30a0
testl %eax, %eax
je 0x5621
movq (%rbx), %r12
cmpq %rbx, %r12
je 0x5523
movq 0x10(%r12), %r13
movq 0x10(%r13), %rdx
cmpq 0x8(%rsp), %rdx
jne 0x551a
testq %rdx, %rdx
je 0x54c3
movq (%rsp), %rsi
movq 0x8(%r13), %rdi
callq 0x3240
testl %eax, %eax
jne 0x551a
leaq 0x70(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
movq %r15, %rbp
movq %r15, %rdi
callq 0x4d56
movq (%r13), %rax
movq %r13, %rdi
movq %rbp, %rsi
callq *0x10(%rax)
movl %eax, %r13d
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x5511
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3230
testb %r13b, %r13b
je 0x55aa
movq (%r12), %r12
jmp 0x5494
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x553f
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3230
movq (%rsp), %rdi
leaq 0x10(%rsp), %r12
cmpq %r12, %rdi
movq %r15, %r13
je 0x555d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3230
leaq 0x40(%rsp), %rbp
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x557e
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3230
addq $0x8, %r14
movq 0x80(%rsp), %rcx
leal -0x1(%rcx), %eax
cmpl $0x2, %ecx
movl %eax, %esi
jg 0x5286
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3a3f(%rip), %rdi      # 0x8ff0
leaq 0xd2c(%rip), %rsi       # 0x62e4
movl $0x18, %edx
callq 0x3280
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq 0x3a1e(%rip), %rdi      # 0x8ff0
callq 0x3280
movq %rax, %r14
leaq 0xcf0(%rip), %rsi       # 0x62d1
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %r14, %rdi
callq 0x3280
movq %rax, %rdi
callq 0x30f0
movq 0x39e1(%rip), %rsi      # 0x8ff0
movq %rbx, %rdi
callq 0x56c8
movl $0x1, %edi
callq 0x3290
movq 0x39a8(%rip), %rsi      # 0x8fd0
movq %rbx, %rdi
callq 0x56c8
xorl %edi, %edi
callq 0x3290
jmp 0x5639
movq %rax, %rbx
jmp 0x5682
jmp 0x5648
jmp 0x5648
jmp 0x5648
jmp 0x5648
jmp 0x5648
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x5667
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3230
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x5682
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3230
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x569e
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3230
movq %rbx, %rdi
callq 0x3390
movq %rax, %rbx
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x564b
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0x564b
nop