// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x10561(%rip), %rdi     # 0x18fd0
leaq 0x8888(%rip), %rsi      # 0x112fe
callq 0x4420
leaq 0x88a1(%rip), %rsi      # 0x11323
movq %rax, %rdi
callq 0x4420
movq %rax, %rdi
movq %r14, %rsi
callq 0x43b0
leaq 0x8890(%rip), %r14      # 0x1132c
movq %rax, %rdi
movq %r14, %rsi
callq 0x4420
leaq 0x8881(%rip), %rsi      # 0x1132f
movq %rax, %rdi
callq 0x4420
leaq 0x8(%rbx), %rsi
movq %rax, %rdi
callq 0x43b0
movq %rax, %rdi
movq %r14, %rsi
callq 0x4420
cmpq $0x0, 0xc0(%rbx)
je 0x8b4c
movq 0xb0(%rbx), %r12
leaq 0xa0(%rbx), %r15
leaq 0x8874(%rip), %r13      # 0x11360
leaq 0x8839(%rip), %r14      # 0x1132c
cmpq %r15, %r12
je 0x8b7d
movq 0x104cd(%rip), %rdi     # 0x18fd0
leaq 0x882e(%rip), %rsi      # 0x11338
callq 0x4420
leaq 0x20(%r12), %rsi
movq %rax, %rdi
callq 0x43b0
movq %rax, %rdi
movq %r13, %rsi
callq 0x4420
leaq 0x40(%r12), %rsi
movq %rax, %rdi
callq 0x43b0
movq %rax, %rdi
movq %r14, %rsi
callq 0x4420
movq %r12, %rdi
callq 0x44a0
movq %rax, %r12
jmp 0x8af3
movq 0x1047d(%rip), %rdi     # 0x18fd0
leaq 0x880a(%rip), %rsi      # 0x11364
callq 0x4420
movq 0xc0(%rbx), %rsi
movq %rax, %rdi
callq 0x42e0
leaq 0x882e(%rip), %rsi      # 0x113a3
movq %rax, %rdi
callq 0x4420
movq 0x68(%rbx), %r14
movq 0x10448(%rip), %r15     # 0x18fd0
leaq 0x87e5(%rip), %r12      # 0x11374
leaq 0x8796(%rip), %r13      # 0x1132c
cmpq 0x70(%rbx), %r14
je 0x8bc3
movq %r15, %rdi
movq %r12, %rsi
callq 0x4420
movq %rax, %rdi
movq %r14, %rsi
callq 0x43b0
movq %rax, %rdi
movq %r13, %rsi
callq 0x4420
addq $0x20, %r14
jmp 0x8b96
movq 0x80(%rbx), %r14
movq 0x103ff(%rip), %r15     # 0x18fd0
leaq 0x87a7(%rip), %r12      # 0x1137f
leaq 0x874d(%rip), %r13      # 0x1132c
cmpq 0x88(%rbx), %r14
je 0x8c0f
movq %r15, %rdi
movq %r12, %rsi
callq 0x4420
movq %rax, %rdi
movq %r14, %rsi
callq 0x43b0
movq %rax, %rdi
movq %r13, %rsi
callq 0x4420
addq $0x20, %r14
jmp 0x8bdf
movq 0x103ba(%rip), %rdi     # 0x18fd0
leaq 0x876c(%rip), %rsi      # 0x11389
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4420