// File: /workspace/github_cpp_makefile_star2_O1/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %r15
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x11654(%rip), %rsi     # 0x180db
leaq 0x11652(%rip), %rdx     # 0x180e0
leaq 0x8(%rsp), %rdi
callq 0x8f0e
addq $0x40, %r15
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x7d5e
leaq 0x18(%rbx), %rdi
movq %rax, %rsi
callq 0x7dbe
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x6acc
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53f0
movq (%r14), %r15
leaq 0x8(%rsp), %rdi
movq %r13, (%rdi)
leaq 0x11603(%rip), %rsi     # 0x180e1
leaq 0x115fe(%rip), %rdx     # 0x180e3
callq 0x8f0e
addq $0x40, %r15
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x7d5e
movq (%rax), %rsi
leaq 0x30(%rbx), %rdi
callq 0x5250
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x6b1e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53f0
movq (%r14), %r15
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x115b2(%rip), %rsi     # 0x180e4
leaq 0x115b2(%rip), %rdx     # 0x180eb
leaq 0x28(%rsp), %rdi
callq 0x8f0e
addq $0x40, %r15
leaq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0x7d5e
movq (%rax), %rax
leaq 0x8(%rsp), %rdi
movq %r13, (%rdi)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
callq 0x8e7e
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x6b85
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x53f0
movq 0x8(%rsp), %rdi
leaq 0x70(%rbx), %r15
leaq 0x11557(%rip), %rsi     # 0x180ec
movq %r15, %rdx
xorl %eax, %eax
callq 0x53d0
cmpl $0x1, %eax
jne 0x6c8c
cmpl $0x0, 0x70(%rbx)
jle 0x6c8c
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x6bc9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53f0
movq (%r14), %r14
leaq 0x8(%rsp), %rdi
movq %r13, (%rdi)
leaq 0x1151f(%rip), %rsi     # 0x180fa
leaq 0x11528(%rip), %rdx     # 0x1810a
callq 0x8f0e
addq $0x40, %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x7d5e
leaq 0x28(%rsp), %rdi
movq %rax, %rsi
callq 0x8048
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x6c1c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53f0
movb $0x0, 0x10(%rbx)
movl $0x0, 0xc(%rbx)
movq 0x28(%rsp), %r14
cmpq 0x30(%rsp), %r14
je 0x6c73
leaq 0xc(%rbx), %r15
movq %r14, %rdi
callq 0x151bb
movl %eax, %ebp
cmpl $0x4, %eax
jne 0x6c54
movb $0x1, 0x4(%r15)
movl $0x1010101, (%r15)      # imm = 0x1010101
jmp 0x6c63
movq %r14, %rdi
callq 0x151bb
movl %eax, %eax
movb $0x1, 0xc(%rbx,%rax)
cmpl $0x4, %ebp
je 0x6c73
addq $0x20, %r14
cmpq 0x30(%rsp), %r14
jne 0x6c37
leaq 0x28(%rsp), %rdi
callq 0x80d2
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, (%r15)
movl $0x48, %edi
callq 0x5200
movq %rax, %r12
leaq 0x1143d(%rip), %rsi     # 0x180e4
leaq 0x11441(%rip), %rdx     # 0x180ef
movq %rax, %rdi
callq 0x7f38
leaq 0x1a72b(%rip), %rsi     # 0x213e8
leaq 0x1342(%rip), %rdx      # 0x8006
movq %r12, %rdi
callq 0x5700
jmp 0x6f37
movq %rdx, %r15
movq %rax, %r14
jmp 0x6ce7
movq %rdx, %r15
movq %rax, %r14
movq %r12, %rdi
callq 0x52e0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x6d64
movq 0x18(%rsp), %rsi
jmp 0x6d5c
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6ef1
movq %rdx, %r15
movq %rax, %r14
jmp 0x6d64
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6df2
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6e7b
movq %rdx, %rbx
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x6ef1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53f0
jmp 0x6ef1
movq %rdx, %r15
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x6d64
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x53f0
cmpl $0x1, %r15d
jne 0x6f4c
movq %r14, %rdi
callq 0x51e0
movl $0x1, 0x70(%rbx)
movl $0x48, %edi
callq 0x5200
movq %rax, %rbx
leaq 0x11353(%rip), %rsi     # 0x180e4
leaq 0x11357(%rip), %rdx     # 0x180ef
movq %rax, %rdi
callq 0x7f38
leaq 0x1a641(%rip), %rsi     # 0x213e8
leaq 0x1258(%rip), %rdx      # 0x8006
movq %rbx, %rdi
callq 0x5700
jmp 0x6f37
movq %rax, %r14
jmp 0x6dcb
movq %rax, %r14
movq %rbx, %rdi
callq 0x52e0
callq 0x56b0
jmp 0x6f4c
movq %rdx, %rbx
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x6df2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53f0
cmpl $0x1, %ebx
jne 0x6f4c
movq %r14, %rdi
callq 0x51e0
movl $0x48, %edi
callq 0x5200
movq %rax, %rbx
leaq 0x1b611(%rip), %rax     # 0x22428
movq (%rax), %rdx
leaq 0x112c0(%rip), %rsi     # 0x180e1
movq %rbx, %rdi
callq 0x7f38
leaq 0x1a5b8(%rip), %rsi     # 0x213e8
leaq 0x11cf(%rip), %rdx      # 0x8006
movq %rbx, %rdi
callq 0x5700
jmp 0x6f37
movq %rax, %r14
jmp 0x6e54
movq %rax, %r14
movq %rbx, %rdi
callq 0x52e0
callq 0x56b0
jmp 0x6f4c
movq %rdx, %rbx
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x6e7b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53f0
cmpl $0x1, %ebx
jne 0x6f4c
movq %r14, %rdi
callq 0x51e0
movl $0x48, %edi
callq 0x5200
movq %rax, %rbx
leaq 0x1b588(%rip), %rax     # 0x22428
movq (%rax), %rdx
leaq 0x11231(%rip), %rsi     # 0x180db
movq %rbx, %rdi
callq 0x7f38
leaq 0x1a52f(%rip), %rsi     # 0x213e8
leaq 0x1146(%rip), %rdx      # 0x8006
movq %rbx, %rdi
callq 0x5700
jmp 0x6f37
movq %rax, %r14
jmp 0x6eda
movq %rax, %r14
movq %rbx, %rdi
callq 0x52e0
callq 0x56b0
jmp 0x6f4c
movq %rdx, %rbx
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x80d2
cmpl $0x1, %ebx
jne 0x6f4c
movq %r14, %rdi
callq 0x51e0
movl $0x48, %edi
callq 0x5200
movq %rax, %rbx
leaq 0x111e8(%rip), %rsi     # 0x180fa
leaq 0x111f2(%rip), %rdx     # 0x1810b
movq %rax, %rdi
callq 0x7f38
leaq 0x1a4c0(%rip), %rsi     # 0x213e8
leaq 0x10d7(%rip), %rdx      # 0x8006
movq %rbx, %rdi
callq 0x5700
movq %rax, %r14
jmp 0x6f47
movq %rax, %r14
movq %rbx, %rdi
callq 0x52e0
callq 0x56b0
movq %r14, %rdi
callq 0x5730
movq %rax, %rdi
callq 0x7db2