// File: 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
movq %rsp, %rbp
subq $0x1f0, %rsp            # imm = 0x1F0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0x10(%rbp), %rdi
callq 0xaf70
addq $0x20, %rax
movq %rax, -0x158(%rbp)
leaq -0x31(%rbp), %rdi
movq %rdi, -0x150(%rbp)
callq 0x6930
movq -0x150(%rbp), %rdx
leaq 0x2389f(%rip), %rsi     # 0x2c0bf
leaq -0x30(%rbp), %rdi
callq 0xa9d0
jmp 0x882b
movq -0x158(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0xaf90
movq %rax, -0x168(%rbp)
jmp 0x8844
movq -0x168(%rbp), %rsi
movq -0x160(%rbp), %rdi
addq $0x18, %rdi
callq 0xb0a0
jmp 0x885d
leaq -0x30(%rbp), %rdi
callq 0x6310
leaq -0x31(%rbp), %rdi
callq 0x6550
jmp 0x893d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x8897
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x6310
leaq -0x31(%rbp), %rdi
callq 0x6550
movl -0x44(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x8fdd
movq -0x40(%rbp), %rdi
callq 0x6230
movq %rax, -0x50(%rbp)
movl $0x48, %edi
callq 0x6280
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x170(%rbp)
leaq 0x36c65(%rip), %rax     # 0x3f540
movq (%rax), %rdx
leaq 0x237da(%rip), %rsi     # 0x2c0bf
callq 0xb2f0
jmp 0x88ec
movq -0x170(%rbp), %rdi
leaq 0x35b1e(%rip), %rsi     # 0x3e418
leaq 0x2b2f(%rip), %rdx      # 0xb430
callq 0x68e0
jmp 0x8fee
movq -0x170(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
callq 0x63b0
jmp 0x8931
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
callq 0x6880
jmp 0x8938
jmp 0x8fdd
movq -0x10(%rbp), %rdi
callq 0xaf70
addq $0x20, %rax
movq %rax, -0x180(%rbp)
leaq -0x79(%rbp), %rdi
movq %rdi, -0x178(%rbp)
callq 0x6930
movq -0x178(%rbp), %rdx
leaq 0x23756(%rip), %rsi     # 0x2c0c5
leaq -0x78(%rbp), %rdi
callq 0xa9d0
jmp 0x897a
movq -0x180(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0xaf90
movq %rax, -0x188(%rbp)
jmp 0x8993
movq -0x188(%rbp), %rdi
callq 0xac50
movq %rax, -0x58(%rbp)
leaq -0x58(%rbp), %rdi
callq 0xacf0
movq -0x160(%rbp), %rdi
movq %rax, %rsi
addq $0x30, %rdi
callq 0x6070
jmp 0x89c1
leaq -0x78(%rbp), %rdi
callq 0x6310
leaq -0x79(%rbp), %rdi
callq 0x6550
jmp 0x8aa4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x89fb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x6310
leaq -0x79(%rbp), %rdi
callq 0x6550
movl -0x44(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x8fdd
movq -0x40(%rbp), %rdi
callq 0x6230
movq %rax, -0x88(%rbp)
movl $0x48, %edi
callq 0x6280
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x190(%rbp)
leaq 0x36afe(%rip), %rax     # 0x3f540
movq (%rax), %rdx
leaq 0x23679(%rip), %rsi     # 0x2c0c5
callq 0xb2f0
jmp 0x8a53
movq -0x190(%rbp), %rdi
leaq 0x359b7(%rip), %rsi     # 0x3e418
leaq 0x29c8(%rip), %rdx      # 0xb430
callq 0x68e0
jmp 0x8fee
movq -0x190(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
callq 0x63b0
jmp 0x8a98
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
callq 0x6880
jmp 0x8a9f
jmp 0x8fdd
movq -0x10(%rbp), %rdi
callq 0xaf70
addq $0x20, %rax
movq %rax, -0x1a0(%rbp)
leaq -0xd1(%rbp), %rdi
movq %rdi, -0x198(%rbp)
callq 0x6930
movq -0x198(%rbp), %rdx
leaq 0x235ef(%rip), %rsi     # 0x2c0c8
leaq -0xd0(%rbp), %rdi
callq 0xa9d0
jmp 0x8ae7
movq -0x1a0(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0xaf90
movq %rax, -0x1a8(%rbp)
jmp 0x8b03
movq -0x1a8(%rbp), %rdi
callq 0xac50
movq %rax, -0xb0(%rbp)
leaq -0xb0(%rbp), %rdi
callq 0xacf0
movq %rax, %rsi
leaq -0xa8(%rbp), %rdi
callq 0x6250
jmp 0x8b33
leaq -0xd0(%rbp), %rdi
callq 0x6310
leaq -0xd1(%rbp), %rdi
callq 0x6550
leaq -0xa8(%rbp), %rdi
callq 0x6240
movq -0x160(%rbp), %rdx
movq %rax, %rdi
addq $0x70, %rdx
leaq 0x23564(%rip), %rsi     # 0x2c0d0
movb $0x0, %al
callq 0x64b0
cmpl $0x1, %eax
jne 0x8b89
movq -0x160(%rbp), %rax
cmpl $0x1, 0x70(%rax)
jge 0x8c3e
movq -0x160(%rbp), %rax
movl $0x1, 0x70(%rax)
movl $0x48, %edi
callq 0x6280
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x1b0(%rbp)
leaq 0x23513(%rip), %rsi     # 0x2c0c8
leaq 0x23517(%rip), %rdx     # 0x2c0d3
callq 0xb2f0
jmp 0x8bc3
movq -0x1b0(%rbp), %rdi
leaq 0x35847(%rip), %rsi     # 0x3e418
leaq 0x2858(%rip), %rdx      # 0xb430
callq 0x68e0
jmp 0x8fee
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x8c08
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x6310
leaq -0xd1(%rbp), %rdi
callq 0x6550
jmp 0x8c5b
movq -0x1b0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
callq 0x63b0
jmp 0x8c4f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x8c4f
leaq -0xa8(%rbp), %rdi
callq 0x6310
jmp 0x8d09
leaq -0xa8(%rbp), %rdi
callq 0x6310
movl -0x44(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x8fdd
movq -0x40(%rbp), %rdi
callq 0x6230
movq %rax, %rcx
movq -0x160(%rbp), %rax
movq %rcx, -0xe0(%rbp)
movl $0x1, 0x70(%rax)
movl $0x48, %edi
callq 0x6280
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x1b8(%rbp)
leaq 0x2341e(%rip), %rsi     # 0x2c0c8
leaq 0x23422(%rip), %rdx     # 0x2c0d3
callq 0xb2f0
jmp 0x8cb8
movq -0x1b8(%rbp), %rdi
leaq 0x35752(%rip), %rsi     # 0x3e418
leaq 0x2763(%rip), %rdx      # 0xb430
callq 0x68e0
jmp 0x8fee
movq -0x1b8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
callq 0x63b0
jmp 0x8cfd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
callq 0x6880
jmp 0x8d04
jmp 0x8fdd
movq -0x10(%rbp), %rdi
callq 0xaf70
addq $0x20, %rax
movq %rax, -0x1c8(%rbp)
leaq -0x119(%rbp), %rdi
movq %rdi, -0x1c0(%rbp)
callq 0x6930
movq -0x1c0(%rbp), %rdx
leaq 0x233a0(%rip), %rsi     # 0x2c0de
leaq -0x118(%rbp), %rdi
callq 0xa9d0
jmp 0x8d4c
movq -0x1c8(%rbp), %rdi
leaq -0x118(%rbp), %rsi
callq 0xaf90
movq %rax, -0x1d0(%rbp)
jmp 0x8d68
movq -0x1d0(%rbp), %rsi
leaq -0xf8(%rbp), %rdi
callq 0xb450
jmp 0x8d7d
leaq -0x118(%rbp), %rdi
callq 0x6310
leaq -0x119(%rbp), %rdi
callq 0x6550
movl $0x0, -0x120(%rbp)
cmpl $0x5, -0x120(%rbp)
jge 0x8e03
movq -0x160(%rbp), %rax
movslq -0x120(%rbp), %rcx
movb $0x0, 0xc(%rax,%rcx)
movl -0x120(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x120(%rbp)
jmp 0x8d9f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x8df2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x118(%rbp), %rdi
callq 0x6310
leaq -0x119(%rbp), %rdi
callq 0x6550
jmp 0x8ecd
leaq -0xf8(%rbp), %rdi
callq 0xac50
movq %rax, -0x128(%rbp)
leaq -0xf8(%rbp), %rdi
callq 0xacc0
movq %rax, -0x130(%rbp)
leaq -0x128(%rbp), %rdi
leaq -0x130(%rbp), %rsi
callq 0xac80
testb $0x1, %al
jne 0x8e45
jmp 0x8f97
leaq -0x128(%rbp), %rdi
callq 0xacf0
movq %rax, %rdi
callq 0x27ee0
movl %eax, -0x1d4(%rbp)
jmp 0x8e61
movl -0x1d4(%rbp), %eax
movl %eax, -0x134(%rbp)
cmpl $0x4, -0x134(%rbp)
jne 0x8f3a
movl $0x0, -0x138(%rbp)
cmpl $0x5, -0x138(%rbp)
jge 0x8f38
movq -0x160(%rbp), %rax
movslq -0x138(%rbp), %rcx
movb $0x1, 0xc(%rax,%rcx)
movl -0x138(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x138(%rbp)
jmp 0x8e84
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0xf8(%rbp), %rdi
callq 0xb540
movl -0x44(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x8fdd
movq -0x40(%rbp), %rdi
callq 0x6230
movq %rax, -0x148(%rbp)
movl $0x48, %edi
callq 0x6280
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x1e0(%rbp)
leaq 0x231d3(%rip), %rsi     # 0x2c0de
leaq 0x231dd(%rip), %rdx     # 0x2c0ef
callq 0xb2f0
jmp 0x8f19
movq -0x1e0(%rbp), %rdi
leaq 0x354f1(%rip), %rsi     # 0x3e418
leaq 0x2502(%rip), %rdx      # 0xb430
callq 0x68e0
jmp 0x8fee
jmp 0x8f97
movq -0x160(%rbp), %rax
addq $0xc, %rax
movq %rax, -0x1f0(%rbp)
leaq -0x128(%rbp), %rdi
callq 0xacf0
movq %rax, %rdi
callq 0x27ee0
movl %eax, -0x1e4(%rbp)
jmp 0x8f68
movq -0x1f0(%rbp), %rax
movl -0x1e4(%rbp), %ecx
movl %ecx, %ecx
movb $0x1, (%rax,%rcx)
jmp 0x8f7d
leaq -0x128(%rbp), %rdi
xorl %esi, %esi
callq 0xad10
movq %rax, -0x140(%rbp)
jmp 0x8e16
leaq -0xf8(%rbp), %rdi
callq 0xb540
jmp 0x8fd4
movq -0x1e0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
callq 0x63b0
jmp 0x8fcb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
callq 0x6880
jmp 0x8fd2
jmp 0x8fdd
addq $0x1f0, %rsp            # imm = 0x1F0
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0x6920
movq %rax, %rdi
callq 0xb060
nop