// File: /workspace/github_cpp_makefile_star2_O1/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 0x13a41(%rip), %r15     # 0x1cfc8
leaq 0xbd8c(%rip), %rsi      # 0x1531a
movl $0x24, %edx
movq %r15, %rdi
callq 0x4460
leaq 0xbd9d(%rip), %rsi      # 0x1533f
movl $0x8, %edx
movq %r15, %rdi
callq 0x4460
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r15, %rdi
callq 0x4460
movq %rax, %r15
leaq 0xbd80(%rip), %r14      # 0x15348
movl $0x2, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x4460
leaq 0xbd6c(%rip), %rsi      # 0x1534b
movl $0x8, %edx
movq %r15, %rdi
callq 0x4460
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
movq %r15, %rdi
callq 0x4460
movl $0x2, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x4460
cmpq $0x0, 0xc0(%rbx)
je 0x96a9
movq 0xb0(%rbx), %r14
leaq 0xa0(%rbx), %r12
cmpq %r12, %r14
je 0x96e7
movq 0x13990(%rip), %r15     # 0x1cfc8
movl $0x27, %edx
movq %r15, %rdi
leaq 0xbd0d(%rip), %rsi      # 0x15354
callq 0x4460
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
movq %r15, %rdi
callq 0x4460
movq %rax, %r13
movl $0x3, %edx
movq %rax, %rdi
leaq 0xbd0e(%rip), %rsi      # 0x1537c
callq 0x4460
movq 0x40(%r14), %rsi
movq 0x48(%r14), %rdx
movq %r13, %rdi
callq 0x4460
movl $0x2, %edx
movq %rax, %rdi
leaq 0xbcb6(%rip), %rsi      # 0x15348
callq 0x4460
movq %r14, %rdi
callq 0x4470
movq %rax, %r14
cmpq %r12, %rax
jne 0x9638
jmp 0x96e7
movq 0x13918(%rip), %r14     # 0x1cfc8
leaq 0xbcc9(%rip), %rsi      # 0x15380
movl $0xf, %edx
movq %r14, %rdi
callq 0x4460
movq 0xc0(%rbx), %rsi
movq %r14, %rdi
callq 0x4290
leaq 0xbce5(%rip), %rsi      # 0x153bf
movl $0x1, %edx
movq %rax, %rdi
callq 0x4460
movq 0x68(%rbx), %r13
cmpq 0x70(%rbx), %r13
je 0x9740
movq 0x138d0(%rip), %r14     # 0x1cfc8
leaq 0xbc91(%rip), %r15      # 0x15390
leaq 0xbc42(%rip), %r12      # 0x15348
movl $0xa, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4460
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %r14, %rdi
callq 0x4460
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x4460
addq $0x20, %r13
cmpq 0x70(%rbx), %r13
jne 0x9706
movq 0x80(%rbx), %r13
cmpq 0x88(%rbx), %r13
je 0x97a2
movq 0x13871(%rip), %r14     # 0x1cfc8
leaq 0xbc3d(%rip), %r15      # 0x1539b
leaq 0xbbe3(%rip), %r12      # 0x15348
movl $0x9, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4460
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %r14, %rdi
callq 0x4460
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x4460
addq $0x20, %r13
cmpq 0x88(%rbx), %r13
jne 0x9765
movq 0x1381f(%rip), %rdi     # 0x1cfc8
leaq 0xbbf5(%rip), %rsi      # 0x153a5
movl $0x1b, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4460