// File: /workspace/github_cpp_makefile_star2_O3/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 0x1066b(%rip), %rsi     # 0x3a70d
leaq 0x1066b(%rip), %rdx     # 0x3a714
leaq 0x8(%rsp), %rdi
callq 0x80f4
leaq 0x20(%r14), %rbx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x2d3ac
movq %rax, %r15
addq $0x28, %r14
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2a0e2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x74b0
cmpq %r14, %r15
je 0x2a268
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x10612(%rip), %rsi     # 0x3a70d
leaq 0x10612(%rip), %rdx     # 0x3a714
leaq 0x28(%rsp), %rdi
callq 0x80f4
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x2bf2c
movq (%rax), %rsi
addq $0x10, %rsi
leaq 0x8(%rsp), %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x1d26b
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x105cf(%rip), %rsi     # 0x3a70d
leaq 0x105cf(%rip), %rdx     # 0x3a714
leaq 0x48(%rsp), %rdi
callq 0x80f4
leaq 0x48(%rsp), %rsi
movq %rbx, %rdi
callq 0x2bf2c
movq (%rax), %rdi
addq $0x10, %rdi
leaq 0x8(%rsp), %rsi
callq 0x7590
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x2a184
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2a19b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a1b2
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x74b0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x1054c(%rip), %rsi     # 0x3a70d
leaq 0x1054c(%rip), %rdx     # 0x3a714
callq 0x80f4
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x2bf2c
movq (%rax), %rax
movq 0x10(%rax), %rsi
leaq 0x68(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0xde66
leaq 0x68(%rsp), %rdi
callq 0x1ccaf
movl %eax, %ebx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a217
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2a22e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x74b0
testb %bl, %bl
jne 0x2a342
movl $0x10, %edi
callq 0x7260
movq %rax, %r14
leaq 0x12cdc(%rip), %rsi     # 0x3cf26
movq %rax, %rdi
callq 0x78c0
movq 0x23d6f(%rip), %rsi     # 0x4dfc8
movq 0x23d50(%rip), %rdx     # 0x4dfb0
movq %r14, %rdi
callq 0x77d0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x10496(%rip), %rsi     # 0x3a70d
leaq 0x10496(%rip), %rdx     # 0x3a714
callq 0x80f4
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x2bf2c
movq %rax, %rbx
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x12c79(%rip), %rsi     # 0x3cf1c
leaq 0x12c7b(%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 0x2a2e2
movq %rdx, 0x10(%rax)
movq 0x38(%rsp), %rcx
movq %rcx, 0x20(%rax)
jmp 0x2a2e9
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 0x2a32b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2a342
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 0x2a40e
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a3de
movq 0x38(%rsp), %rsi
jmp 0x2a391
jmp 0x2a3db
jmp 0x2a3db
jmp 0x2a3ef
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a3de
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x74b0
jmp 0x2a3de
jmp 0x2a3db
jmp 0x2a3db
jmp 0x2a3ef
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x2a3c0
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x74b0
jmp 0x2a3c0
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2a3f7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x74b0
jmp 0x2a3f7
jmp 0x2a3ef
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2a40e
movq 0x18(%rsp), %rsi
jmp 0x2a406
movq %rax, %rbx
jmp 0x2a40e
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a40e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x74b0
movq %rbx, %rdi
callq 0x7810