// File: llefranc[P]42_webserv/srcs/parser/LocationObj.cpp
// Function: Location::printLocation(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
void Location::printLocation(const std::string& locName) const
{
	std::cout << "\nLOCATION\n-------------------------\n"
			<< "name = |" << locName << "|\n"
			<< "root = |" << _root << "|\n";
	
	if (_cgi_exe.size())
		for (std::map<std::string, std::string>::const_iterator it = _cgi_exe.begin(); it != _cgi_exe.end(); it++)
			std::cout << "cgi_exe size = 2  and .ext and exe =  |" << it->first << "| |" << it->second << "|\n";
	else
		std::cout << "cgi_exe size = " << _cgi_exe.size() << "\n";
	
	for (std::vector<std::string>::const_iterator it = _allow_methd.begin(); it != _allow_methd.end(); ++it)
		std::cout << "method = |" << *it << "|\n";

	for (std::vector<std::string>::const_iterator it = _index.begin(); it != _index.end(); ++it)
		std::cout << "index = |" << *it << "|\n";
	
	std::cout << "-------------------------\n\n";
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x50(%rbp)
movq 0x2088e(%rip), %rdi     # 0x30fd0
leaq 0x12bdc(%rip), %rsi     # 0x23325
callq 0x5540
movq %rax, %rdi
leaq 0x12bf2(%rip), %rsi     # 0x2334a
callq 0x5540
movq %rax, %rdi
movq -0x10(%rbp), %rsi
callq 0x54a0
movq %rax, %rdi
leaq 0x12be0(%rip), %rsi     # 0x23353
callq 0x5540
movq %rax, %rdi
leaq 0x12bd4(%rip), %rsi     # 0x23356
callq 0x5540
movq -0x50(%rbp), %rsi
movq %rax, %rdi
addq $0x8, %rsi
callq 0x54a0
movq %rax, %rdi
leaq 0x12bb2(%rip), %rsi     # 0x23353
callq 0x5540
movq -0x50(%rbp), %rdi
addq $0x98, %rdi
callq 0x10c00
cmpq $0x0, %rax
je 0x10878
movq -0x50(%rbp), %rdi
addq $0x98, %rdi
callq 0x10c20
movq %rax, -0x18(%rbp)
movq -0x50(%rbp), %rdi
addq $0x98, %rdi
callq 0x10c80
movq %rax, -0x20(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x10c50
testb $0x1, %al
jne 0x107fb
jmp 0x10876
movq 0x207ce(%rip), %rdi     # 0x30fd0
leaq 0x12b56(%rip), %rsi     # 0x2335f
callq 0x5540
movq %rax, -0x60(%rbp)
leaq -0x18(%rbp), %rdi
callq 0x10cb0
movq -0x60(%rbp), %rdi
movq %rax, %rsi
callq 0x54a0
movq %rax, %rdi
leaq 0x12b56(%rip), %rsi     # 0x23387
callq 0x5540
movq %rax, -0x58(%rbp)
leaq -0x18(%rbp), %rdi
callq 0x10cb0
movq -0x58(%rbp), %rdi
movq %rax, %rsi
addq $0x20, %rsi
callq 0x54a0
movq %rax, %rdi
leaq 0x12af6(%rip), %rsi     # 0x23353
callq 0x5540
leaq -0x18(%rbp), %rdi
xorl %esi, %esi
callq 0x10cd0
movq %rax, -0x28(%rbp)
jmp 0x107d4
jmp 0x108ba
movq 0x20751(%rip), %rdi     # 0x30fd0
leaq 0x12b05(%rip), %rsi     # 0x2338b
callq 0x5540
movq -0x50(%rbp), %rdi
movq %rax, -0x68(%rbp)
addq $0x98, %rdi
callq 0x10c00
movq -0x68(%rbp), %rdi
movq %rax, %rsi
callq 0x5140
movq %rax, %rdi
leaq 0x12b15(%rip), %rsi     # 0x233ca
callq 0x5540
movq -0x50(%rbp), %rdi
addq $0x68, %rdi
callq 0xab80
movq %rax, -0x30(%rbp)
movq -0x50(%rbp), %rdi
addq $0x68, %rdi
callq 0xabb0
movq %rax, -0x38(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0xaee0
testb $0x1, %al
jne 0x108ef
jmp 0x10935
movq 0x206da(%rip), %rdi     # 0x30fd0
leaq 0x12a9e(%rip), %rsi     # 0x2339b
callq 0x5540
movq %rax, -0x70(%rbp)
leaq -0x30(%rbp), %rdi
callq 0xaf50
movq -0x70(%rbp), %rdi
movq %rax, %rsi
callq 0x54a0
movq %rax, %rdi
leaq 0x12a2e(%rip), %rsi     # 0x23353
callq 0x5540
leaq -0x30(%rbp), %rdi
callq 0xaf70
jmp 0x108cb
movq -0x50(%rbp), %rdi
addq $0x80, %rdi
callq 0xab80
movq %rax, -0x40(%rbp)
movq -0x50(%rbp), %rdi
addq $0x80, %rdi
callq 0xabb0
movq %rax, -0x48(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0xaee0
testb $0x1, %al
jne 0x10970
jmp 0x109b6
movq 0x20659(%rip), %rdi     # 0x30fd0
leaq 0x12a28(%rip), %rsi     # 0x233a6
callq 0x5540
movq %rax, -0x78(%rbp)
leaq -0x40(%rbp), %rdi
callq 0xaf50
movq -0x78(%rbp), %rdi
movq %rax, %rsi
callq 0x54a0
movq %rax, %rdi
leaq 0x129ad(%rip), %rsi     # 0x23353
callq 0x5540
leaq -0x40(%rbp), %rdi
callq 0xaf70
jmp 0x10949
movq 0x20613(%rip), %rdi     # 0x30fd0
leaq 0x129ec(%rip), %rsi     # 0x233b0
callq 0x5540
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)