// File: /workspace/github_cpp_makefile_star2_O2/TheStanian[P]Args/Args/Args.cpp
// Function: ArgsHandler::ArgsHandler(int, char**, bool)
ArgsHandler::ArgsHandler(int argc, char * argv [], bool checkCheckedFlags) : checkCheckedFlags(checkCheckedFlags) {
	std::string lastFlag = "";
	execpath = std::string(argv[0]);
	for (int i = 1; i < argc; ++i) {
		std::string current(argv[i]);
		if (current.at(0) == '-') {
			std::string fname;
			if (current.find('=') != current.npos) {
				fname = current.substr(1, current.find_first_of("=")-1);
			} else {
				fname = current.substr(1);
			}
			flags.insert(std::pair<std::string, Flag>(fname, Flag(current.substr(1))));
			lastFlag = fname;
		} else {
			arguments.push_back(current);
			if (lastFlag != "") {
				flags[lastFlag].addArgument(arguments.size()-1);
			} else {
				startargs.push_back(arguments.size()-1);
			}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
movq %rdx, %r12
movl %esi, %r14d
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
leaq 0x18(%rdi), %rax
movq %rax, 0x18(%rsp)
leaq 0x20(%rdi), %rax
andl $0x0, 0x20(%rdi)
andq $0x0, 0x28(%rdi)
movq %rax, 0x30(%rdi)
movq %rax, 0x38(%rdi)
leaq 0x70(%rdi), %rax
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x50(%rdi)
movq %rax, 0x60(%rdi)
andq $0x0, 0x68(%rdi)
movb $0x0, 0x70(%rdi)
andl $0x0, 0x88(%rdi)
leaq 0x48(%rdi), %rax
movq %rax, 0x20(%rsp)
andq $0x0, 0x90(%rdi)
leaq 0x60(%rdi), %r15
leaq 0x88(%rdi), %rax
movq %rax, 0x98(%rdi)
movq %rax, 0xa0(%rdi)
andq $0x0, 0xa8(%rdi)
movq %rdi, 0x10(%rsp)
movb %cl, 0xb0(%rdi)
leaq 0x35c7(%rip), %rsi      # 0x612b
leaq 0x58(%rsp), %rdi
leaq 0x110(%rsp), %rdx
callq 0x27fc
movq %r12, 0x48(%rsp)
movq (%r12), %rsi
leaq 0x110(%rsp), %rdi
leaq 0xb8(%rsp), %rdx
callq 0x27fc
leaq 0x110(%rsp), %rbp
movq %r15, 0x8(%rsp)
movq %r15, %rdi
movq %rbp, %rsi
callq 0x21d0
movq %rbp, %rdi
callq 0x20b0
movslq %r14d, %rax
movq %rax, 0x50(%rsp)
pushq $0x1
popq %r13
leaq 0x98(%rsp), %r15
leaq 0x78(%rsp), %r12
cmpq 0x50(%rsp), %r13
jge 0x2d7b
movq 0x48(%rsp), %rax
movq (%rax,%r13,8), %rsi
movq %r15, %rdi
movq %rbp, %rdx
callq 0x27fc
movq %r15, %rdi
xorl %esi, %esi
callq 0x2290
cmpb $0x2d, (%rax)
jne 0x2c4f
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
andq $0x0, 0x30(%rsp)
movb $0x0, 0x38(%rsp)
movq %r15, %rdi
pushq $0x3d
popq %rsi
xorl %edx, %edx
callq 0x21f0
cmpq $-0x1, %rax
je 0x2cca
movq %r15, %rdi
leaq 0x34cf(%rip), %rsi      # 0x6100
xorl %edx, %edx
callq 0x20d0
leaq -0x1(%rax), %rcx
movq %rbp, %rdi
movq %r15, %rsi
pushq $0x1
popq %rdx
callq 0x21a0
jmp 0x2cdb
movq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x3c0e
leaq 0x58(%rsp), %rdi
leaq 0x34c3(%rip), %rsi      # 0x612b
callq 0x3c3a
testb %al, %al
je 0x2c9f
movq 0x18(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x3c44
movq 0x10(%rsp), %rcx
movq 0x8(%rcx), %rsi
subq (%rcx), %rsi
shrq $0x5, %rsi
decl %esi
movq %rax, %rdi
callq 0x2e52
jmp 0x2d6b
movq 0x10(%rsp), %rcx
movq 0x8(%rcx), %rax
subq (%rcx), %rax
shrq $0x5, %rax
decl %eax
movl %eax, 0x110(%rsp)
movq 0x20(%rsp), %rdi
movq %rbp, %rsi
callq 0x4cc4
jmp 0x2d6b
movq %rbp, %rdi
movq %r15, %rsi
pushq $0x1
popq %rdx
pushq $-0x1
popq %rcx
callq 0x21a0
leaq 0x28(%rsp), %rdi
movq %rbp, %rsi
callq 0x21d0
movq %rbp, %rdi
callq 0x20b0
movq %r12, %r14
movq %r12, %rdi
movq %r15, %rsi
pushq $0x1
popq %rdx
pushq $-0x1
popq %rcx
callq 0x21a0
leaq 0xb8(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x34ea
movq %rbp, %rdi
leaq 0x28(%rsp), %rsi
movq %rbx, %rdx
callq 0x3bc2
movq 0x18(%rsp), %rdi
movq %rbp, %rsi
callq 0x4628
movq %rbp, %rdi
callq 0x3bf8
leaq 0xb8(%rsp), %rdi
callq 0x29ae
movq %r12, %rdi
callq 0x20b0
leaq 0x58(%rsp), %rdi
leaq 0x28(%rsp), %r14
movq %r14, %rsi
callq 0x20f0
movq %r14, %rdi
callq 0x20b0
movq %r15, %rdi
callq 0x20b0
incq %r13
jmp 0x2bcd
leaq 0x58(%rsp), %rdi
callq 0x20b0
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x2e0a
movq %rax, %r14
jmp 0x2e14
jmp 0x2ddc
jmp 0x2df5
jmp 0x2ddc
jmp 0x2ddc
movq %rax, %r14
leaq 0x110(%rsp), %rdi
callq 0x3bf8
jmp 0x2dc3
movq %rax, %r14
jmp 0x2dd0
movq %rax, %r14
leaq 0xb8(%rsp), %rdi
callq 0x29ae
leaq 0x78(%rsp), %rdi
callq 0x20b0
jmp 0x2ddf
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x20b0
jmp 0x2df8
movq %rax, %r14
movq 0x8(%rsp), %r15
jmp 0x2e0a
movq %rax, %r14
movq 0x8(%rsp), %r15
leaq 0x98(%rsp), %rdi
callq 0x20b0
leaq 0x58(%rsp), %rdi
callq 0x20b0
movq 0x10(%rsp), %rbx
leaq 0x80(%rbx), %rdi
callq 0x288e
movq %r15, %rdi
callq 0x20b0
movq 0x20(%rsp), %rdi
callq 0x28fe
movq 0x18(%rsp), %rdi
callq 0x2932
movq %rbx, %rdi
callq 0x2838
movq %r14, %rdi
callq 0x2260
nop