// File: /workspace/github_cpp_makefile_star2_O1/acherkaoui[P]HTOP/core/Parser.cpp
// Function: Parser::flagHandler(int, char**)
void Parser::flagHandler(int ac, char **av)
{
	std::vector<std::string> argv;

	for (int i = 1; i < ac; i += 1)
		argv.emplace_back(av[i]);

	for (unsigned int i = 0; i < argv.size(); i += 1) {
		if (argv[i] == "--help")
			exit(printUsage());
		else if (argv[i] == "-terminal") {
			this->_graphicMode = false;
		}
		else if (argv[i] == "-graphic") {
			this->_graphicMode = true;
		}
		else if (argv[i][0] != '-' || this->setModuleActive(
			argv[i].substr(1))) {
			std::cout << "htop: invalid option "
				<< argv[i].substr(1)
				<< "\nTry 'htop --help' for more information"
				<< std::endl;
			exit(1);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, 0x20(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
cmpl $0x2, %esi
jl 0x6d84
movq %rdx, %r14
movl %esi, %r12d
addq $0x8, %r14
decq %r12
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x788a
addq $0x8, %r14
decq %r12
jne 0x6d70
movq (%rsp), %rdi
cmpq %rdi, 0x8(%rsp)
je 0x6e92
movl $0x1, %r13d
xorl %r14d, %r14d
leaq 0x6402(%rip), %r15      # 0xd1a5
leaq 0x6402(%rip), %r12      # 0xd1ac
leaq 0x48(%rsp), %rbx
shlq $0x5, %r14
addq %r14, %rdi
movq %r15, %rsi
callq 0x4120
testl %eax, %eax
je 0x6ea9
movq (%rsp), %rdi
addq %r14, %rdi
movq %r12, %rsi
callq 0x4120
testl %eax, %eax
je 0x6e5f
movq (%rsp), %rdi
addq %r14, %rdi
leaq 0x63b1(%rip), %rsi      # 0xd19c
callq 0x4120
testl %eax, %eax
je 0x6e6a
movq %r15, %r12
movq (%rsp), %rsi
movq (%rsi,%r14), %rax
movb (%rax), %r15b
movb $0x1, %bpl
cmpb $0x2d, %r15b
jne 0x6e34
addq %r14, %rsi
movl $0x1, %edx
movq %rbx, %rbp
movq %rbx, %rdi
movq $-0x1, %rcx
callq 0x4370
movq 0x20(%rsp), %rdi
movq %rbp, %rsi
callq 0x7554
movl %eax, %ebp
cmpb $0x2d, %r15b
jne 0x6e4e
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x6e4e
callq 0x4320
testb %bpl, %bpl
movq %r12, %r15
leaq 0x6351(%rip), %r12      # 0xd1ac
je 0x6e73
jmp 0x6eb8
movq 0x20(%rsp), %rax
movb $0x0, 0x58(%rax)
jmp 0x6e73
movq 0x20(%rsp), %rax
movb $0x1, 0x58(%rax)
movl %r13d, %r14d
movq (%rsp), %rdi
movq 0x8(%rsp), %rax
subq %rdi, %rax
sarq $0x5, %rax
incl %r13d
cmpq %r14, %rax
ja 0x6daf
movq %rsp, %rdi
callq 0x78ca
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x6f6e
movl $0x1, %edi
callq 0x4410
movq 0xb119(%rip), %rdi      # 0x11fd8
leaq 0x62f0(%rip), %rsi      # 0xd1b6
movl $0x15, %edx
callq 0x43d0
addq (%rsp), %r14
leaq 0x28(%rsp), %rdi
movl $0x1, %edx
movq %r14, %rsi
movq $-0x1, %rcx
callq 0x4370
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0xb0da(%rip), %rdi      # 0x11fd8
callq 0x43d0
movq %rax, %rbx
leaq 0x62bf(%rip), %rsi      # 0xd1cc
movl $0x27, %edx
movq %rax, %rdi
callq 0x43d0
movq %rbx, %rdi
callq 0x4220
leaq 0x28(%rsp), %rdi
callq 0x4200
jmp 0x6eae
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x6f4b
jmp 0x6f5b
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x6f5e
callq 0x4320
jmp 0x6f5e
jmp 0x6f5b
jmp 0x6f5b
movq %rax, %rbx
movq %rsp, %rdi
callq 0x78ca
movq %rbx, %rdi
callq 0x45c0