// File: /workspace/github_cpp_makefile_star2_O2/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 %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %r15
leaq 0xdb26(%rip), %rsi      # 0x140bf
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x712a
addq $0x40, %r15
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x7240
leaq 0x18(%rbx), %rdi
movq %rax, %rsi
callq 0x7290
leaq 0x8(%rsp), %rdi
callq 0x5210
movq (%r14), %r15
leaq 0xdaec(%rip), %rsi      # 0x140c5
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x712a
addq $0x40, %r15
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x7240
movq (%rax), %rsi
leaq 0x30(%rbx), %rdi
callq 0x5270
leaq 0x8(%rsp), %rdi
callq 0x5210
movq (%r14), %r15
leaq 0xdaaf(%rip), %rsi      # 0x140c8
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x712a
addq $0x40, %r15
leaq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0x7240
movq (%rax), %rsi
leaq 0x8(%rsp), %rdi
callq 0x55d0
leaq 0x28(%rsp), %rdi
callq 0x5210
movq 0x8(%rsp), %rdi
leaq 0x70(%rbx), %r15
leaq 0xda70(%rip), %rsi      # 0x140d0
movq %r15, %rdx
xorl %eax, %eax
callq 0x53f0
cmpl $0x1, %eax
jne 0x6730
cmpl $0x0, 0x70(%rbx)
jle 0x6730
leaq 0x8(%rsp), %rdi
callq 0x5210
movq (%r14), %r14
leaq 0xda4d(%rip), %rsi      # 0x140de
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x712a
addq $0x40, %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x7240
leaq 0x28(%rsp), %rdi
movq %rax, %rsi
callq 0x7408
leaq 0x8(%rsp), %rdi
callq 0x5210
pushq $-0x5
popq %rax
testq %rax, %rax
je 0x66da
movb $0x0, 0x11(%rbx,%rax)
incq %rax
jmp 0x66cb
movq 0x28(%rsp), %r14
cmpq 0x30(%rsp), %r14
je 0x671a
movq %r14, %rdi
callq 0x11366
cmpl $0x4, %eax
je 0x6708
movq %r14, %rdi
callq 0x11366
movl %eax, %eax
movb $0x1, 0xc(%rbx,%rax)
addq $0x20, %r14
jmp 0x66df
pushq $-0x5
popq %rax
testq %rax, %rax
je 0x671a
movb $0x1, 0x11(%rbx,%rax)
incq %rax
jmp 0x670b
leaq 0x28(%rsp), %rdi
callq 0x745c
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl $0x1, (%r15)
pushq $0x48
popq %rdi
callq 0x5230
movq %rax, %r12
leaq 0xd97f(%rip), %rsi      # 0x140c8
leaq 0xd983(%rip), %rdx      # 0x140d3
movq %rax, %rdi
callq 0x735a
leaq 0x19d49(%rip), %rsi     # 0x204a8
leaq 0xc7e(%rip), %rdx       # 0x73e4
movq %r12, %rdi
callq 0x5740
jmp 0x698f
movq %rdx, %r15
movq %rax, %r14
jmp 0x6789
movq %rdx, %r15
movq %rax, %r14
movq %r12, %rdi
callq 0x5300
leaq 0x8(%rsp), %rdi
jmp 0x67d9
movq %rdx, %rbx
movq %rax, %r14
jmp 0x694b
movq %rdx, %r15
movq %rax, %r14
jmp 0x67de
movq %rdx, %rbx
movq %rax, %r14
jmp 0x685d
movq %rdx, %rbx
movq %rax, %r14
jmp 0x68d7
movq %rdx, %rbx
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x5210
jmp 0x694b
movq %rdx, %r15
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x5210
cmpl $0x1, %r15d
jne 0x69a4
movq %r14, %rdi
callq 0x51f0
movl $0x1, 0x70(%rbx)
pushq $0x48
popq %rdi
callq 0x5230
movq %rax, %rbx
leaq 0xd8bf(%rip), %rsi      # 0x140c8
leaq 0xd8c3(%rip), %rdx      # 0x140d3
movq %rax, %rdi
callq 0x735a
leaq 0x19c89(%rip), %rsi     # 0x204a8
leaq 0xbbe(%rip), %rdx       # 0x73e4
movq %rbx, %rdi
callq 0x5740
jmp 0x698f
movq %rax, %r14
jmp 0x6843
movq %rax, %r14
movq %rbx, %rdi
callq 0x5300
callq 0x5700
jmp 0x69a4
movq %rdx, %rbx
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x5210
cmpl $0x1, %ebx
jne 0x69a4
movq %r14, %rdi
callq 0x51f0
pushq $0x48
popq %rdi
callq 0x5230
movq %rax, %rbx
leaq 0x1abd0(%rip), %rax     # 0x21450
movq (%rax), %rdx
leaq 0xd83b(%rip), %rsi      # 0x140c5
movq %rbx, %rdi
callq 0x735a
leaq 0x19c0f(%rip), %rsi     # 0x204a8
leaq 0xb44(%rip), %rdx       # 0x73e4
movq %rbx, %rdi
callq 0x5740
jmp 0x698f
movq %rax, %r14
jmp 0x68bd
movq %rax, %r14
movq %rbx, %rdi
callq 0x5300
callq 0x5700
jmp 0x69a4
movq %rdx, %rbx
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x5210
cmpl $0x1, %ebx
jne 0x69a4
movq %r14, %rdi
callq 0x51f0
pushq $0x48
popq %rdi
callq 0x5230
movq %rax, %rbx
leaq 0x1ab56(%rip), %rax     # 0x21450
movq (%rax), %rdx
leaq 0xd7bb(%rip), %rsi      # 0x140bf
movq %rbx, %rdi
callq 0x735a
leaq 0x19b95(%rip), %rsi     # 0x204a8
leaq 0xaca(%rip), %rdx       # 0x73e4
movq %rbx, %rdi
callq 0x5740
jmp 0x698f
movq %rax, %r14
jmp 0x6934
movq %rax, %r14
movq %rbx, %rdi
callq 0x5300
callq 0x5700
jmp 0x69a4
movq %rdx, %rbx
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x745c
cmpl $0x1, %ebx
jne 0x69a4
movq %r14, %rdi
callq 0x51f0
pushq $0x48
popq %rdi
callq 0x5230
movq %rax, %rbx
leaq 0xd774(%rip), %rsi      # 0x140de
leaq 0xd77e(%rip), %rdx      # 0x140ef
movq %rax, %rdi
callq 0x735a
leaq 0x19b28(%rip), %rsi     # 0x204a8
leaq 0xa5d(%rip), %rdx       # 0x73e4
movq %rbx, %rdi
callq 0x5740
movq %rax, %r14
jmp 0x699f
movq %rax, %r14
movq %rbx, %rdi
callq 0x5300
callq 0x5700
movq %r14, %rdi
callq 0x5770
movq %rax, %rdi
callq 0x7285