// File: /workspace/github_cpp_makefile_star2_O1/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 0x121ab(%rip), %rsi     # 0x3b88b
leaq 0x121a7(%rip), %rdx     # 0x3b88e
movq %rsp, %rdi
callq 0x80f4
leaq 0x20(%rsp), %r15
movq %rsp, %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x1c232
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x29718
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x20(%rsp), %rbp
cmpq %r15, %rbp
je 0x29867
leaq 0xf8(%rbx), %r14
leaq 0x10(%rbp), %r12
movq 0x10(%rbp), %rax
cmpb $0x2e, (%rax)
jne 0x29765
movq %r14, %rdi
movq %r12, %rsi
callq 0x2c9ea
movq %rax, %rdi
movq %r14, %rsi
callq 0x7090
incq 0x108(%rbx)
movq (%rbp), %rbp
cmpq %r15, %rbp
jne 0x2972d
jmp 0x29867
leaq 0x13660(%rip), %rsi     # 0x3cdcc
movq %r12, %rdi
callq 0x7180
testl %eax, %eax
je 0x297b5
leaq 0x13651(%rip), %rsi     # 0x3cdd0
movq %r12, %rdi
callq 0x7180
testl %eax, %eax
jne 0x29880
movq %r14, %rdi
callq 0x96d8
movq %r14, 0x100(%rbx)
movq %r14, 0xf8(%rbx)
movq $0x0, 0x108(%rbx)
jmp 0x29867
movq %r14, %rdi
callq 0x96d8
movq %r14, 0x100(%rbx)
movq %r14, 0xf8(%rbx)
movq $0x0, 0x108(%rbx)
movq %rsp, %rdi
movq %r13, (%rdi)
leaq 0x135e9(%rip), %rsi     # 0x3cdcc
leaq 0x135e5(%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 0x2981c
movq %rdx, 0x10(%rax)
movq 0x10(%rsp), %rcx
movq %rcx, 0x20(%rax)
jmp 0x29824
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 0x29867
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x74b0
leaq 0x20(%rsp), %rdi
callq 0x96d8
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 0x13541(%rip), %rsi     # 0x3cdd5
movq %rax, %rdi
callq 0x78c0
movq 0x24725(%rip), %rsi     # 0x4dfc8
movq 0x24706(%rip), %rdx     # 0x4dfb0
movq %r14, %rdi
callq 0x77d0
jmp 0x298fe
movq %rax, %rbx
movq %r14, %rdi
callq 0x7390
jmp 0x29901
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x29901
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x74b0
jmp 0x29901
jmp 0x298fe
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x2990b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x74b0
jmp 0x2990b
movq %rax, %rbx
jmp 0x2990b
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x96d8
movq %rbx, %rdi
callq 0x7810
nop