// File: /workspace/github_cpp_makefile_star2_O3/mbourand[P]webserv/srcs/Config/ConfigContext.cpp
// Function: ConfigContext::parse_uploads_exts(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void ConfigContext::parse_uploads_exts(const std::string& directive_value)
{
	std::list<std::string> words = ft::split(directive_value, " \t\n");
	for (std::list<std::string>::iterator it = words.begin(); it != words.end(); it++)
	{
		if ((*it)[0] != '.')
		{
			if (*it == "all")
			{
				_uploads_exts.clear();
				_uploads_exts.push_back("all");
			}
			else if (*it == "none")
				_uploads_exts.clear();
			else
				throw std::invalid_argument("Extension doesn't start with '.' for uploads_exts in config");
			return;
		}
		_uploads_exts.push_back(*it);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x124f3(%rip), %rsi     # 0x3b88b
leaq 0x124ef(%rip), %rdx     # 0x3b88e
movq %rsp, %rdi
callq 0x80f4
leaq 0x20(%rsp), %r15
movq %rsp, %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x1bf30
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x293d0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x20(%rsp), %rbp
cmpq %r15, %rbp
je 0x2951f
leaq 0xf8(%rbx), %r14
leaq 0x10(%rbp), %r12
movq 0x10(%rbp), %rax
cmpb $0x2e, (%rax)
jne 0x2941d
movq %r14, %rdi
movq %r12, %rsi
callq 0x2c6b0
movq %rax, %rdi
movq %r14, %rsi
callq 0x7090
incq 0x108(%rbx)
movq (%rbp), %rbp
cmpq %r15, %rbp
jne 0x293e5
jmp 0x2951f
leaq 0x139a8(%rip), %rsi     # 0x3cdcc
movq %r12, %rdi
callq 0x7180
testl %eax, %eax
je 0x2946d
leaq 0x13999(%rip), %rsi     # 0x3cdd0
movq %r12, %rdi
callq 0x7180
testl %eax, %eax
jne 0x29538
movq %r14, %rdi
callq 0x96b6
movq %r14, 0x100(%rbx)
movq %r14, 0xf8(%rbx)
movq $0x0, 0x108(%rbx)
jmp 0x2951f
movq %r14, %rdi
callq 0x96b6
movq %r14, 0x100(%rbx)
movq %r14, 0xf8(%rbx)
movq $0x0, 0x108(%rbx)
movq %rsp, %rdi
movq %r13, (%rdi)
leaq 0x13931(%rip), %rsi     # 0x3cdcc
leaq 0x1392d(%rip), %rdx     # 0x3cdcf
callq 0x80f4
movl $0x30, %edi
callq 0x74a0
movq %rax, %rcx
addq $0x20, %rcx
movq %rcx, 0x10(%rax)
movq (%rsp), %rdx
cmpq %r13, %rdx
je 0x294d4
movq %rdx, 0x10(%rax)
movq 0x10(%rsp), %rcx
movq %rcx, 0x20(%rax)
jmp 0x294dc
movups (%r13), %xmm0
movups %xmm0, (%rcx)
movq 0x8(%rsp), %rcx
movq %rcx, 0x18(%rax)
movq %r13, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
movq %rax, %rdi
movq %r14, %rsi
callq 0x7090
incq 0x108(%rbx)
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x2951f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x74b0
leaq 0x20(%rsp), %rdi
callq 0x96b6
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x7260
movq %rax, %r14
leaq 0x13889(%rip), %rsi     # 0x3cdd5
movq %rax, %rdi
callq 0x78c0
movq 0x24a6d(%rip), %rsi     # 0x4dfc8
movq 0x24a4e(%rip), %rdx     # 0x4dfb0
movq %r14, %rdi
callq 0x77d0
jmp 0x295b6
movq %rax, %rbx
movq %r14, %rdi
callq 0x7390
jmp 0x295b9
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x295b9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x74b0
jmp 0x295b9
jmp 0x295b6
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x295c3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x74b0
jmp 0x295c3
movq %rax, %rbx
jmp 0x295c3
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x96b6
movq %rbx, %rdi
callq 0x7810
nop