// File: /workspace/github_cpp_makefile_star2_O1/mbourand[P]webserv/srcs/Config/ConfigContext.cpp
// Function: ConfigContext::set_uploads_default()
void ConfigContext::set_uploads_default()
{
	if (_params.find("uploads") == _params.end())
		_params["uploads"].push_back("./");
	else
	{
		_params["uploads"].front() = ft::simplify_path(_params["uploads"].front());
		if (!ft::is_directory(_params["uploads"].front().c_str()))
			throw std::invalid_argument("Uploads 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 0x132ba(%rip), %rsi     # 0x3cdc4
leaq 0x132ba(%rip), %rdx     # 0x3cdcb
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 0x29b4a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x74b0
cmpq %r14, %r15
je 0x29cd0
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x13261(%rip), %rsi     # 0x3cdc4
leaq 0x13261(%rip), %rdx     # 0x3cdcb
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 0x1321e(%rip), %rsi     # 0x3cdc4
leaq 0x1321e(%rip), %rdx     # 0x3cdcb
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 0x29bec
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x29c03
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x29c1a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x74b0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x1319b(%rip), %rsi     # 0x3cdc4
leaq 0x1319b(%rip), %rdx     # 0x3cdcb
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 0x29c7f
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x29c96
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x74b0
testb %bl, %bl
jne 0x29daa
movl $0x10, %edi
callq 0x7260
movq %rax, %r14
leaq 0x13312(%rip), %rsi     # 0x3cfc4
movq %rax, %rdi
callq 0x78c0
movq 0x24307(%rip), %rsi     # 0x4dfc8
movq 0x242e8(%rip), %rdx     # 0x4dfb0
movq %r14, %rdi
callq 0x77d0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x130e5(%rip), %rsi     # 0x3cdc4
leaq 0x130e5(%rip), %rdx     # 0x3cdcb
callq 0x80f4
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x2c26c
movq %rax, %rbx
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x10672(%rip), %rsi     # 0x3a37d
leaq 0x1066d(%rip), %rdx     # 0x3a37f
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 0x29d4a
movq %rdx, 0x10(%rax)
movq 0x38(%rsp), %rcx
movq %rcx, 0x20(%rax)
jmp 0x29d51
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 0x29d93
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x29daa
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 0x29e76
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x29e46
movq 0x38(%rsp), %rsi
jmp 0x29df9
jmp 0x29e43
jmp 0x29e43
jmp 0x29e57
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x29e46
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x74b0
jmp 0x29e46
jmp 0x29e43
jmp 0x29e43
jmp 0x29e57
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x29e28
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x74b0
jmp 0x29e28
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x29e5f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x74b0
jmp 0x29e5f
jmp 0x29e57
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x29e76
movq 0x18(%rsp), %rsi
jmp 0x29e6e
movq %rax, %rbx
jmp 0x29e76
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x29e76
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x74b0
movq %rbx, %rdi
callq 0x7810