// File: /workspace/github_cpp_makefile_star2_O1/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 0x109d0(%rip), %rsi     # 0x3a874
leaq 0x109cd(%rip), %rdx     # 0x3a878
movq %rsp, %rdi
callq 0x80f4
leaq 0x20(%r15), %rbx
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x2d6e8
movq %rax, %r12
addq $0x28, %r15
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x29edf
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x74b0
cmpq %r15, %r12
je 0x2a043
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1097c(%rip), %rsi     # 0x3a874
leaq 0x10979(%rip), %rdx     # 0x3a878
leaq 0x20(%rsp), %rdi
callq 0x80f4
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x2c26c
movq (%rax), %rsi
addq $0x10, %rsi
movq %rsp, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x1d582
leaq 0x50(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1093b(%rip), %rsi     # 0x3a874
leaq 0x10938(%rip), %rdx     # 0x3a878
leaq 0x40(%rsp), %rdi
callq 0x80f4
leaq 0x40(%rsp), %rsi
movq %rbx, %rdi
callq 0x2c26c
movq (%rax), %rdi
addq $0x10, %rdi
movq %rsp, %rsi
callq 0x7590
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x29f7d
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x74b0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x29f93
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x29faa
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x74b0
movq %rsp, %rdi
movq %r13, (%rdi)
leaq 0x108bd(%rip), %rsi     # 0x3a874
leaq 0x108ba(%rip), %rdx     # 0x3a878
callq 0x80f4
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x2c26c
movq (%rax), %rax
movq 0x10(%rax), %rsi
leaq 0x60(%rsp), %rdi
leaq 0x20(%rsp), %rdx
callq 0xde9a
leaq 0x60(%rsp), %rdi
callq 0x1cfb4
movl %eax, %ebx
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a00b
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x74b0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x2a021
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x74b0
testb %bl, %bl
jne 0x2a048
movl $0x10, %edi
callq 0x7260
movq %rax, %r14
leaq 0x12eba(%rip), %rsi     # 0x3cef3
movq %rax, %rdi
callq 0x78c0
jmp 0x2a075
testq %r14, %r14
jne 0x2a059
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movl $0x10, %edi
callq 0x7260
movq %rax, %r14
leaq 0x12e72(%rip), %rsi     # 0x3cedf
movq %rax, %rdi
callq 0x78c0
movq 0x23f4c(%rip), %rsi     # 0x4dfc8
movq 0x23f2d(%rip), %rdx     # 0x4dfb0
movq %r14, %rdi
callq 0x77d0
jmp 0x2a08d
movq %rax, %rbx
movq %r14, %rdi
callq 0x7390
jmp 0x2a12e
movq %rax, %rbx
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a0ff
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x74b0
jmp 0x2a0ff
jmp 0x2a0fc
jmp 0x2a0fc
jmp 0x2a10f
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x2a0e2
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x74b0
jmp 0x2a0e2
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x2a117
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x74b0
jmp 0x2a117
jmp 0x2a10f
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x2a12e
movq 0x10(%rsp), %rsi
jmp 0x2a126
movq %rax, %rbx
jmp 0x2a12e
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a12e
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x74b0
movq %rbx, %rdi
callq 0x7810