// File: /workspace/github_cpp_makefile_star2_O3/metopa[P]HTTP_Server/src/config/CConfig.cpp
// Function: CConfig::parseOptions(std::_Rb_tree_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>>>>>&)
void CConfig::parseOptions( map<string, map<string, vector<string>>>::iterator& data ) {
	try {
		ports_m = data->second.at( "ports" );
	}
	catch ( out_of_range& e ) {
		throw ParamUndefinedException( "ports", MSG_CRIT_ERR );
	}

	try {
		workDir_m = *( data->second.at( "wd" ).begin() );
	}
	catch ( out_of_range& e ) {
		throw ParamUndefinedException( "wd", MSG_CRIT_ERR );
	}

	try {
		string p = *( data->second.at( "workers" ).begin() );
		if ( sscanf( p.c_str(), "%d", &workerCount_m ) != 1 || workerCount_m < 1 ) {
			workerCount_m = 1;
			throw ParamUndefinedException( "workers", "default: 1" );
		}
	}
	catch ( out_of_range& e ) {
		workerCount_m = 1;
		throw ParamUndefinedException( "workers", "default: 1" );
	}

	try {
		vector<string> req = data->second.at( "accepted_methods" );
		for ( int i = 0; i < RT_MAXENUM; i++ )
			allowedMethods_m[i] = false;

		for ( auto it = req.begin(); it != req.end(); it++ ) {
			EMethodType current = methodTypeNS::methodFromString( *it );
			if ( current == RT_ALL ) {
				for ( int i = 0; i < RT_MAXENUM; i++ )
					allowedMethods_m[i] = true;
				break;
			}
			else
				allowedMethods_m[methodTypeNS::methodFromString( *it )] = true;
		}
	}
	catch ( out_of_range& e ) {
		throw ParamUndefinedException( "accepted_methods", "default: \"ALL\"" );
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %r15
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x116e9(%rip), %rsi     # 0x180db
leaq 0x116e7(%rip), %rdx     # 0x180e0
movq %rsp, %rdi
callq 0x8e2c
addq $0x40, %r15
movq %rsp, %rsi
movq %r15, %rdi
callq 0x7c58
leaq 0x18(%rbx), %rdi
movq %rax, %rsi
callq 0x7cb8
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x6a32
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x53f0
movq (%r14), %r15
movq %rsp, %rdi
movq %r13, (%rdi)
leaq 0x1169f(%rip), %rsi     # 0x180e1
leaq 0x1169a(%rip), %rdx     # 0x180e3
callq 0x8e2c
addq $0x40, %r15
movq %rsp, %rsi
movq %r15, %rdi
callq 0x7c58
movq (%rax), %rsi
leaq 0x30(%rbx), %rdi
callq 0x5250
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x6a7f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x53f0
movq (%r14), %r15
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x11651(%rip), %rsi     # 0x180e4
leaq 0x11651(%rip), %rdx     # 0x180eb
leaq 0x20(%rsp), %rdi
callq 0x8e2c
addq $0x40, %r15
leaq 0x20(%rsp), %rsi
movq %r15, %rdi
callq 0x7c58
movq (%rax), %rax
movq %rsp, %rdi
movq %r13, (%rdi)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
callq 0x8d96
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x6ae4
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x53f0
movq (%rsp), %rdi
leaq 0x70(%rbx), %r15
leaq 0x115f9(%rip), %rsi     # 0x180ec
movq %r15, %rdx
xorl %eax, %eax
callq 0x53d0
cmpl $0x1, %eax
jne 0x6bd9
cmpl $0x0, 0x70(%rbx)
jle 0x6bd9
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x6b26
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x53f0
movq (%r14), %r14
movq %rsp, %rdi
movq %r13, (%rdi)
leaq 0x115c4(%rip), %rsi     # 0x180fa
leaq 0x115cd(%rip), %rdx     # 0x1810a
callq 0x8e2c
addq $0x40, %r14
movq %rsp, %rsi
movq %r14, %rdi
callq 0x7c58
leaq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0x7f5e
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x6b74
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x53f0
movb $0x0, 0x10(%rbx)
movl $0x0, 0xc(%rbx)
movq 0x20(%rsp), %r14
cmpq 0x28(%rsp), %r14
je 0x6bc1
addq $0xc, %rbx
movq %r14, %rdi
callq 0x151af
cmpl $0x4, %eax
je 0x6bb7
movq %r14, %rdi
callq 0x151af
movl %eax, %eax
movb $0x1, (%rbx,%rax)
addq $0x20, %r14
cmpq 0x28(%rsp), %r14
jne 0x6b8f
jmp 0x6bc1
movb $0x1, 0x4(%rbx)
movl $0x1010101, (%rbx)      # imm = 0x1010101
leaq 0x20(%rsp), %rdi
callq 0x7fe8
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movl $0x1, (%r15)
movl $0x48, %edi
callq 0x5200
movq %rax, %r12
leaq 0x114f0(%rip), %rsi     # 0x180e4
leaq 0x114f4(%rip), %rdx     # 0x180ef
movq %rax, %rdi
callq 0x7e4e
leaq 0x1a816(%rip), %rsi     # 0x21420
leaq 0x130b(%rip), %rdx      # 0x7f1c
movq %r12, %rdi
callq 0x56f0
jmp 0x6e80
movq %rdx, %r15
movq %rax, %r14
jmp 0x6c34
movq %rdx, %r15
movq %rax, %r14
movq %r12, %rdi
callq 0x52e0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x6caf
movq 0x10(%rsp), %rsi
jmp 0x6ca7
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6e3a
movq %rdx, %r15
movq %rax, %r14
jmp 0x6caf
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6d3c
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6dc4
movq %rdx, %rbx
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x6e3a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x53f0
jmp 0x6e3a
movq %rdx, %r15
movq %rax, %r14
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x6caf
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x53f0
cmpl $0x1, %r15d
jne 0x6e95
movq %r14, %rdi
callq 0x51e0
movl $0x1, 0x70(%rbx)
movl $0x48, %edi
callq 0x5200
movq %rax, %rbx
leaq 0x11408(%rip), %rsi     # 0x180e4
leaq 0x1140c(%rip), %rdx     # 0x180ef
movq %rax, %rdi
callq 0x7e4e
leaq 0x1a72e(%rip), %rsi     # 0x21420
leaq 0x1223(%rip), %rdx      # 0x7f1c
movq %rbx, %rdi
callq 0x56f0
jmp 0x6e80
movq %rax, %r14
jmp 0x6d16
movq %rax, %r14
movq %rbx, %rdi
callq 0x52e0
callq 0x56a0
jmp 0x6e95
movq %rdx, %rbx
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x6d3c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x53f0
cmpl $0x1, %ebx
jne 0x6e95
movq %r14, %rdi
callq 0x51e0
movl $0x48, %edi
callq 0x5200
movq %rax, %rbx
leaq 0x1b6bf(%rip), %rax     # 0x22420
movq (%rax), %rdx
leaq 0x11376(%rip), %rsi     # 0x180e1
movq %rbx, %rdi
callq 0x7e4e
leaq 0x1a6a6(%rip), %rsi     # 0x21420
leaq 0x119b(%rip), %rdx      # 0x7f1c
movq %rbx, %rdi
callq 0x56f0
jmp 0x6e80
movq %rax, %r14
jmp 0x6d9e
movq %rax, %r14
movq %rbx, %rdi
callq 0x52e0
callq 0x56a0
jmp 0x6e95
movq %rdx, %rbx
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x6dc4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x53f0
cmpl $0x1, %ebx
jne 0x6e95
movq %r14, %rdi
callq 0x51e0
movl $0x48, %edi
callq 0x5200
movq %rax, %rbx
leaq 0x1b637(%rip), %rax     # 0x22420
movq (%rax), %rdx
leaq 0x112e8(%rip), %rsi     # 0x180db
movq %rbx, %rdi
callq 0x7e4e
leaq 0x1a61e(%rip), %rsi     # 0x21420
leaq 0x1113(%rip), %rdx      # 0x7f1c
movq %rbx, %rdi
callq 0x56f0
jmp 0x6e80
movq %rax, %r14
jmp 0x6e23
movq %rax, %r14
movq %rbx, %rdi
callq 0x52e0
callq 0x56a0
jmp 0x6e95
movq %rdx, %rbx
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x7fe8
cmpl $0x1, %ebx
jne 0x6e95
movq %r14, %rdi
callq 0x51e0
movl $0x48, %edi
callq 0x5200
movq %rax, %rbx
leaq 0x1129f(%rip), %rsi     # 0x180fa
leaq 0x112a9(%rip), %rdx     # 0x1810b
movq %rax, %rdi
callq 0x7e4e
leaq 0x1a5af(%rip), %rsi     # 0x21420
leaq 0x10a4(%rip), %rdx      # 0x7f1c
movq %rbx, %rdi
callq 0x56f0
movq %rax, %r14
jmp 0x6e90
movq %rax, %r14
movq %rbx, %rdi
callq 0x52e0
callq 0x56a0
movq %r14, %rdi
callq 0x5720
movq %rax, %rdi
callq 0x7cac
nop