// File: /workspace/github_cpp_makefile_star2_O1/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, %ebp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
leaq 0x18(%rdi), %rdx
movq %rdx, 0x8(%rsp)
leaq 0x20(%rdi), %rdx
movl %eax, 0x20(%rdi)
movq %rax, 0x28(%rdi)
movq %rdx, 0x30(%rdi)
movq %rdx, 0x38(%rdi)
leaq 0x48(%rdi), %rdx
movq %rdx, 0x30(%rsp)
leaq 0x60(%rdi), %r15
leaq 0x70(%rdi), %r14
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x50(%rdi)
movq %r14, 0x60(%rdi)
movq %rax, 0x68(%rdi)
movb $0x0, 0x70(%rdi)
leaq 0x88(%rdi), %rdx
movl %eax, 0x88(%rdi)
movq %rax, 0x90(%rdi)
movq %rdx, 0x98(%rdi)
movq %rdx, 0xa0(%rdi)
movq %rax, 0xa8(%rdi)
movb %cl, 0xb0(%rdi)
leaq 0x48(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x423a(%rip), %rdx      # 0x712b
leaq 0x38(%rsp), %rdi
movq %rdx, %rsi
movq %r14, 0x80(%rsp)
movq %r15, 0x78(%rsp)
callq 0x2dbc
movq (%r12), %rsi
leaq 0xb8(%rsp), %rdi
leaq 0x130(%rsp), %rdx
callq 0x4890
movq %r12, 0x90(%rsp)
leaq 0xb8(%rsp), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x21d0
movq (%r14), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x2f5f
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x2180
cmpl $0x2, %ebp
jl 0x32c8
movl %ebp, %eax
movq %rax, 0x88(%rsp)
movl $0x1, %r15d
leaq 0x58(%rsp), %rbp
leaq 0xb8(%rsp), %r12
movq 0x90(%rsp), %rax
movq (%rax,%r15,8), %rsi
movq %rbp, %rdi
movq %r12, %rdx
callq 0x4890
movq 0x60(%rsp), %rdx
testq %rdx, %rdx
je 0x32f6
movq 0x58(%rsp), %rax
cmpb $0x2d, (%rax)
jne 0x3011
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movb $0x0, 0x20(%rsp)
movq %rbp, %rdi
movl $0x3d, %esi
xorl %edx, %edx
callq 0x21e0
cmpq $-0x1, %rax
je 0x3076
movl $0x1, %ecx
movq %rbp, %rdi
leaq 0x410c(%rip), %rsi      # 0x7100
xorl %edx, %edx
callq 0x2230
leaq -0x1(%rax), %rcx
movl $0x1, %edx
movq %r12, %rdi
movq %rbp, %rsi
callq 0x2190
jmp 0x308d
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x49d2
leaq 0x38(%rsp), %r14
movq %r14, %rdi
leaq 0x4100(%rip), %rsi      # 0x712b
callq 0x2080
testl %eax, %eax
je 0x3253
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x4a10
movq 0x8(%rbx), %rcx
subq (%rbx), %rcx
shrq $0x5, %rcx
decl %ecx
movl %ecx, 0xb8(%rsp)
movq 0x48(%rax), %rsi
cmpq 0x50(%rax), %rsi
je 0x327d
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x48(%rax)
jmp 0x329b
movl $0x1, %edx
movq %r12, %rdi
movq %rbp, %rsi
movq $-0x1, %rcx
callq 0x2190
leaq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x21d0
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x30bf
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x2180
movl $0x1, %edx
leaq 0x98(%rsp), %r13
movq %r13, %rdi
movq %rbp, %rsi
movq $-0x1, %rcx
callq 0x2190
leaq 0x130(%rsp), %r14
movq %r14, %rdi
movq %r13, %rsi
callq 0x3dec
movq %r12, %rdi
leaq 0x10(%rsp), %rsi
movq %r14, %rdx
callq 0x48ce
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x5412
movq 0x118(%rsp), %rdi
testq %rdi, %rdi
je 0x312b
movq 0x128(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x3150
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x3175
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x319a
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x170(%rsp), %rdi
testq %rdi, %rdi
je 0x31b7
movq 0x180(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0x31dc
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x3201
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x3226
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x2180
leaq 0x38(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x20d0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x329b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2180
jmp 0x329b
movq 0x8(%rbx), %rax
subq (%rbx), %rax
shrq $0x5, %rax
decl %eax
movl %eax, 0xb8(%rsp)
movq 0x50(%rbx), %rsi
cmpq 0x58(%rbx), %rsi
je 0x328e
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x50(%rbx)
jmp 0x329b
addq $0x40, %rax
movq %rax, %rdi
movq %r12, %rdx
callq 0x5fd8
jmp 0x329b
movq 0x30(%rsp), %rdi
movq %r12, %rdx
callq 0x5b78
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x32b7
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x2180
incq %r15
cmpq %r15, 0x88(%rsp)
jne 0x2f85
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x32e4
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x2180
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3ed2(%rip), %rdi      # 0x71cf
xorl %esi, %esi
xorl %eax, %eax
callq 0x2220
jmp 0x338c
movq %rax, %r14
jmp 0x33cc
jmp 0x3391
jmp 0x3369
jmp 0x3369
movq %rax, %r14
jmp 0x3342
movq %rax, %r14
leaq 0xb8(%rsp), %rdi
callq 0x4922
jmp 0x3335
jmp 0x3369
movq %rax, %r14
leaq 0x130(%rsp), %rdi
callq 0x4986
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x336c
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x2180
jmp 0x336c
movq %rax, %r14
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x3394
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2180
jmp 0x3394
jmp 0x3391
movq %rax, %r14
jmp 0x33b0
movq %rax, %r14
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x33b0
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x33cc
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x2180
leaq 0x80(%rbx), %rdi
callq 0x2c7a
movq 0x78(%rsp), %rax
movq (%rax), %rdi
movq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x33f8
movq (%rax), %rsi
incq %rsi
callq 0x2180
movq 0x30(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x3411
movq 0x58(%rbx), %rsi
subq %rdi, %rsi
callq 0x2180
movq 0x8(%rsp), %rdi
callq 0x2cfc
movq %rbx, %rdi
callq 0x2bce
movq %r14, %rdi
callq 0x2290
nop