// File: /workspace/github_cpp_makefile_star2_O3/mbourand[P]webserv/srcs/Config/ConfigContext.cpp
// Function: ConfigContext::set_root_default(ConfigContext const*)
void ConfigContext::set_root_default(const ConfigContext* parent)
{
	if (_params.find("root") == _params.end())
	{
		if (parent)
			throw std::invalid_argument("No root in location");
	}
	else
	{
		_params["root"].front() = ft::simplify_path(_params["root"].front());
		if (!ft::is_directory(_params["root"].front().c_str()))
			throw std::invalid_argument("Root parameter is not a folder in config");
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rsi, %r14
movq %rdi, %r15
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x10d18(%rip), %rsi     # 0x3a874
leaq 0x10d15(%rip), %rdx     # 0x3a878
movq %rsp, %rdi
callq 0x80f4
leaq 0x20(%r15), %rbx
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x2d3ac
movq %rax, %r12
addq $0x28, %r15
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x29b97
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x74b0
cmpq %r15, %r12
je 0x29cfb
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x10cc4(%rip), %rsi     # 0x3a874
leaq 0x10cc1(%rip), %rdx     # 0x3a878
leaq 0x20(%rsp), %rdi
callq 0x80f4
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x2bf2c
movq (%rax), %rsi
addq $0x10, %rsi
movq %rsp, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x1d26b
leaq 0x50(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x10c83(%rip), %rsi     # 0x3a874
leaq 0x10c80(%rip), %rdx     # 0x3a878
leaq 0x40(%rsp), %rdi
callq 0x80f4
leaq 0x40(%rsp), %rsi
movq %rbx, %rdi
callq 0x2bf2c
movq (%rax), %rdi
addq $0x10, %rdi
movq %rsp, %rsi
callq 0x7590
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x29c35
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x74b0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x29c4b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x29c62
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x74b0
movq %rsp, %rdi
movq %r13, (%rdi)
leaq 0x10c05(%rip), %rsi     # 0x3a874
leaq 0x10c02(%rip), %rdx     # 0x3a878
callq 0x80f4
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x2bf2c
movq (%rax), %rax
movq 0x10(%rax), %rsi
leaq 0x60(%rsp), %rdi
leaq 0x20(%rsp), %rdx
callq 0xde66
leaq 0x60(%rsp), %rdi
callq 0x1ccaf
movl %eax, %ebx
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x29cc3
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x74b0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x29cd9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x74b0
testb %bl, %bl
jne 0x29d00
movl $0x10, %edi
callq 0x7260
movq %rax, %r14
leaq 0x13202(%rip), %rsi     # 0x3cef3
movq %rax, %rdi
callq 0x78c0
jmp 0x29d2d
testq %r14, %r14
jne 0x29d11
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movl $0x10, %edi
callq 0x7260
movq %rax, %r14
leaq 0x131ba(%rip), %rsi     # 0x3cedf
movq %rax, %rdi
callq 0x78c0
movq 0x24294(%rip), %rsi     # 0x4dfc8
movq 0x24275(%rip), %rdx     # 0x4dfb0
movq %r14, %rdi
callq 0x77d0
jmp 0x29d45
movq %rax, %rbx
movq %r14, %rdi
callq 0x7390
jmp 0x29de6
movq %rax, %rbx
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x29db7
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x74b0
jmp 0x29db7
jmp 0x29db4
jmp 0x29db4
jmp 0x29dc7
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x29d9a
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x74b0
jmp 0x29d9a
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x29dcf
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x74b0
jmp 0x29dcf
jmp 0x29dc7
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x29de6
movq 0x10(%rsp), %rsi
jmp 0x29dde
movq %rax, %rbx
jmp 0x29de6
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x29de6
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x74b0
movq %rbx, %rdi
callq 0x7810