// File: /workspace/github_cpp_makefile_star2_O3/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 0x13602(%rip), %rsi     # 0x3cdc4
leaq 0x13602(%rip), %rdx     # 0x3cdcb
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 0x29802
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x74b0
cmpq %r14, %r15
je 0x29988
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x135a9(%rip), %rsi     # 0x3cdc4
leaq 0x135a9(%rip), %rdx     # 0x3cdcb
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 0x13566(%rip), %rsi     # 0x3cdc4
leaq 0x13566(%rip), %rdx     # 0x3cdcb
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 0x298a4
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x298bb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x298d2
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x74b0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x134e3(%rip), %rsi     # 0x3cdc4
leaq 0x134e3(%rip), %rdx     # 0x3cdcb
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 0x29937
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2994e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x74b0
testb %bl, %bl
jne 0x29a62
movl $0x10, %edi
callq 0x7260
movq %rax, %r14
leaq 0x1365a(%rip), %rsi     # 0x3cfc4
movq %rax, %rdi
callq 0x78c0
movq 0x2464f(%rip), %rsi     # 0x4dfc8
movq 0x24630(%rip), %rdx     # 0x4dfb0
movq %r14, %rdi
callq 0x77d0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x1342d(%rip), %rsi     # 0x3cdc4
leaq 0x1342d(%rip), %rdx     # 0x3cdcb
callq 0x80f4
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x2bf2c
movq %rax, %rbx
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x109ba(%rip), %rsi     # 0x3a37d
leaq 0x109b5(%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 0x29a02
movq %rdx, 0x10(%rax)
movq 0x38(%rsp), %rcx
movq %rcx, 0x20(%rax)
jmp 0x29a09
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 0x29a4b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x29a62
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 0x29b2e
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x29afe
movq 0x38(%rsp), %rsi
jmp 0x29ab1
jmp 0x29afb
jmp 0x29afb
jmp 0x29b0f
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x29afe
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x74b0
jmp 0x29afe
jmp 0x29afb
jmp 0x29afb
jmp 0x29b0f
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x29ae0
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x74b0
jmp 0x29ae0
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x29b17
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x74b0
jmp 0x29b17
jmp 0x29b0f
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x29b2e
movq 0x18(%rsp), %rsi
jmp 0x29b26
movq %rax, %rbx
jmp 0x29b2e
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x29b2e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x74b0
movq %rbx, %rdi
callq 0x7810