// File: /workspace/github_cpp_makefile_star2_O3/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 0x4232(%rip), %rdx      # 0x712b
leaq 0x38(%rsp), %rdi
movq %rdx, %rsi
movq %r14, 0x80(%rsp)
movq %r15, 0x78(%rsp)
callq 0x2dbe
movq (%r12), %rsi
leaq 0xb8(%rsp), %rdi
leaq 0x130(%rsp), %rdx
callq 0x4898
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 0x2f67
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x2180
cmpl $0x2, %ebp
jl 0x32ce
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 0x4898
cmpq $0x0, 0x60(%rsp)
je 0x32fc
movq 0x58(%rsp), %rax
cmpb $0x2d, (%rax)
jne 0x3017
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 0x307c
movl $0x1, %ecx
movq %rbp, %rdi
leaq 0x4106(%rip), %rsi      # 0x7100
xorl %edx, %edx
callq 0x2230
leaq -0x1(%rax), %rcx
movl $0x1, %edx
movq %r12, %rdi
movq %rbp, %rsi
callq 0x2190
jmp 0x3093
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x49da
leaq 0x38(%rsp), %r14
movq %r14, %rdi
leaq 0x40fa(%rip), %rsi      # 0x712b
callq 0x2080
testl %eax, %eax
je 0x3259
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x4a18
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 0x3283
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x48(%rax)
jmp 0x32a1
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 0x30c5
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 0x3df4
movq %r12, %rdi
leaq 0x10(%rsp), %rsi
movq %r14, %rdx
callq 0x48d6
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x5446
movq 0x118(%rsp), %rdi
testq %rdi, %rdi
je 0x3131
movq 0x128(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x3156
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x317b
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x31a0
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x170(%rsp), %rdi
testq %rdi, %rdi
je 0x31bd
movq 0x180(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0x31e2
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x3207
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x322c
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 0x32a1
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2180
jmp 0x32a1
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 0x3294
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x50(%rbx)
jmp 0x32a1
addq $0x40, %rax
movq %rax, %rdi
movq %r12, %rdx
callq 0x5fd4
jmp 0x32a1
movq 0x30(%rsp), %rdi
movq %r12, %rdx
callq 0x5b74
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x32bd
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x2180
incq %r15
cmpq %r15, 0x88(%rsp)
jne 0x2f8d
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x32ea
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 0x3ecc(%rip), %rdi      # 0x71cf
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x2220
jmp 0x3394
movq %rax, %r14
jmp 0x33d4
jmp 0x3399
jmp 0x3371
jmp 0x3371
movq %rax, %r14
jmp 0x334a
movq %rax, %r14
leaq 0xb8(%rsp), %rdi
callq 0x492a
jmp 0x333d
jmp 0x3371
movq %rax, %r14
leaq 0x130(%rsp), %rdi
callq 0x498e
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x3374
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x2180
jmp 0x3374
movq %rax, %r14
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x339c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2180
jmp 0x339c
jmp 0x3399
movq %rax, %r14
jmp 0x33b8
movq %rax, %r14
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x33b8
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x33d4
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x2180
leaq 0x80(%rbx), %rdi
callq 0x2c7c
movq 0x78(%rsp), %rax
movq (%rax), %rdi
movq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x3400
movq (%rax), %rsi
incq %rsi
callq 0x2180
movq 0x30(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x3419
movq 0x58(%rbx), %rsi
subq %rdi, %rsi
callq 0x2180
movq 0x8(%rsp), %rdi
callq 0x2cfe
movq %rbx, %rdi
callq 0x2bce
movq %r14, %rdi
callq 0x2290
nop