// File: /workspace/github_cpp_makefile_star2_O1/mbourand[P]webserv/srcs/Config/ConfigContext.cpp
// Function: ConfigContext::set_cgi_dir_default()
void ConfigContext::set_cgi_dir_default()
{
	if (_params.find("cgi_dir") == _params.end())
		_params["cgi_dir"].push_back("/cgi-bin/");
	else
	{
		_params["cgi_dir"].front() = ft::simplify_path(_params["cgi_dir"].front());
		if (!ft::is_directory(_params["cgi_dir"].front().c_str()))
			throw std::invalid_argument("cgi_dir parameter is not a folder in config");
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %r14
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x10323(%rip), %rsi     # 0x3a70d
leaq 0x10323(%rip), %rdx     # 0x3a714
leaq 0x8(%rsp), %rdi
callq 0x80f4
leaq 0x20(%r14), %rbx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x2d6e8
movq %rax, %r15
addq $0x28, %r14
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2a42a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x74b0
cmpq %r14, %r15
je 0x2a5b0
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x102ca(%rip), %rsi     # 0x3a70d
leaq 0x102ca(%rip), %rdx     # 0x3a714
leaq 0x28(%rsp), %rdi
callq 0x80f4
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x2c26c
movq (%rax), %rsi
addq $0x10, %rsi
leaq 0x8(%rsp), %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x1d582
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x10287(%rip), %rsi     # 0x3a70d
leaq 0x10287(%rip), %rdx     # 0x3a714
leaq 0x48(%rsp), %rdi
callq 0x80f4
leaq 0x48(%rsp), %rsi
movq %rbx, %rdi
callq 0x2c26c
movq (%rax), %rdi
addq $0x10, %rdi
leaq 0x8(%rsp), %rsi
callq 0x7590
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x2a4cc
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2a4e3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a4fa
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x74b0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x10204(%rip), %rsi     # 0x3a70d
leaq 0x10204(%rip), %rdx     # 0x3a714
callq 0x80f4
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x2c26c
movq (%rax), %rax
movq 0x10(%rax), %rsi
leaq 0x68(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0xde9a
leaq 0x68(%rsp), %rdi
callq 0x1cfb4
movl %eax, %ebx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a55f
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2a576
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x74b0
testb %bl, %bl
jne 0x2a68a
movl $0x10, %edi
callq 0x7260
movq %rax, %r14
leaq 0x12994(%rip), %rsi     # 0x3cf26
movq %rax, %rdi
callq 0x78c0
movq 0x23a27(%rip), %rsi     # 0x4dfc8
movq 0x23a08(%rip), %rdx     # 0x4dfb0
movq %r14, %rdi
callq 0x77d0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x1014e(%rip), %rsi     # 0x3a70d
leaq 0x1014e(%rip), %rdx     # 0x3a714
callq 0x80f4
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x2c26c
movq %rax, %rbx
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x12931(%rip), %rsi     # 0x3cf1c
leaq 0x12933(%rip), %rdx     # 0x3cf25
leaq 0x28(%rsp), %rdi
callq 0x80f4
movl $0x30, %edi
callq 0x74a0
movq %rax, %rcx
addq $0x20, %rcx
movq %rcx, 0x10(%rax)
movq 0x28(%rsp), %rdx
cmpq %r14, %rdx
je 0x2a62a
movq %rdx, 0x10(%rax)
movq 0x38(%rsp), %rcx
movq %rcx, 0x20(%rax)
jmp 0x2a631
movups (%r14), %xmm0
movups %xmm0, (%rcx)
movq 0x30(%rsp), %rcx
movq %rcx, 0x18(%rax)
movq %r14, 0x28(%rsp)
movq $0x0, 0x30(%rsp)
movb $0x0, 0x38(%rsp)
movq %rax, %rdi
movq %rbx, %rsi
callq 0x7090
incq 0x10(%rbx)
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a673
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2a68a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x74b0
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %r14, %rdi
callq 0x7390
jmp 0x2a756
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a726
movq 0x38(%rsp), %rsi
jmp 0x2a6d9
jmp 0x2a723
jmp 0x2a723
jmp 0x2a737
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a726
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x74b0
jmp 0x2a726
jmp 0x2a723
jmp 0x2a723
jmp 0x2a737
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x2a708
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x74b0
jmp 0x2a708
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2a73f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x74b0
jmp 0x2a73f
jmp 0x2a737
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2a756
movq 0x18(%rsp), %rsi
jmp 0x2a74e
movq %rax, %rbx
jmp 0x2a756
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a756
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x74b0
movq %rbx, %rdi
callq 0x7810