// File: mbourand[P]webserv/srcs/Config/ConfigContext.cpp
// Function: ConfigContext::parse_auth_basic(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void ConfigContext::parse_auth_basic(const std::string& directive_value)
{
	std::list<std::string> words = ft::split(directive_value, " \t\n");
	if (words.size() == 1 && words.front() == "off")
	{
		_params["auth_basic"].assign(1, "");
		return;
	}
	_params["auth_basic"].assign(1, directive_value);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xe8(%rbp)
leaq -0x49(%rbp), %rdi
movq %rdi, -0xe0(%rbp)
callq 0x9b10
movq -0xe0(%rbp), %rdx
leaq 0x21e40(%rip), %rsi     # 0x6bc67
leaq -0x48(%rbp), %rdi
callq 0xa780
jmp 0x49e32
movq -0xe8(%rbp), %rsi
leaq -0x28(%rbp), %rdi
leaq -0x48(%rbp), %rdx
callq 0x2f910
jmp 0x49e48
leaq -0x48(%rbp), %rdi
callq 0x9c98
leaq -0x49(%rbp), %rdi
callq 0x9700
leaq -0x28(%rbp), %rdi
callq 0xcd10
cmpq $0x1, %rax
jne 0x4a022
leaq -0x28(%rbp), %rdi
callq 0xcd40
movq %rax, %rdi
leaq 0x21e07(%rip), %rsi     # 0x6bc87
callq 0xdf50
movb %al, -0xf1(%rbp)
jmp 0x49e8d
movb -0xf1(%rbp), %al
testb $0x1, %al
jne 0x49e9c
jmp 0x4a022
movq -0xf0(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x108(%rbp)
leaq -0x81(%rbp), %rdi
movq %rdi, -0x100(%rbp)
callq 0x9b10
movq -0x100(%rbp), %rdx
leaq 0x23277(%rip), %rsi     # 0x6d146
leaq -0x80(%rbp), %rdi
callq 0xa780
jmp 0x49eda
movq -0x108(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x4da80
movq %rax, -0x110(%rbp)
jmp 0x49ef3
leaq -0xa9(%rbp), %rdi
movq %rdi, -0x118(%rbp)
callq 0x9b10
movq -0x118(%rbp), %rdx
leaq 0x20e5c(%rip), %rsi     # 0x6ad70
leaq -0xa8(%rbp), %rdi
callq 0xa780
jmp 0x49f22
movq -0x110(%rbp), %rdi
movl $0x1, %esi
leaq -0xa8(%rbp), %rdx
callq 0x4db60
jmp 0x49f3c
leaq -0xa8(%rbp), %rdi
callq 0x9c98
leaq -0xa9(%rbp), %rdi
callq 0x9700
leaq -0x80(%rbp), %rdi
callq 0x9c98
leaq -0x81(%rbp), %rdi
callq 0x9700
movl $0x1, -0xb0(%rbp)
jmp 0x4a0b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x49f9b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x9c98
leaq -0x49(%rbp), %rdi
callq 0x9700
jmp 0x4a105
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x4a0fc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x4a011
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x4a008
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x49ffc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0xa8(%rbp), %rdi
callq 0x9c98
leaq -0xa9(%rbp), %rdi
callq 0x9700
leaq -0x80(%rbp), %rdi
callq 0x9c98
leaq -0x81(%rbp), %rdi
callq 0x9700
jmp 0x4a0fc
movq -0xf0(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x128(%rbp)
leaq -0xd1(%rbp), %rdi
movq %rdi, -0x120(%rbp)
callq 0x9b10
movq -0x120(%rbp), %rdx
leaq 0x230f1(%rip), %rsi     # 0x6d146
leaq -0xd0(%rbp), %rdi
callq 0xa780
jmp 0x4a063
movq -0x128(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x4da80
movq %rax, -0x130(%rbp)
jmp 0x4a07f
movq -0x130(%rbp), %rdi
movq -0x10(%rbp), %rdx
movl $0x1, %esi
callq 0x4db60
jmp 0x4a096
leaq -0xd0(%rbp), %rdi
callq 0x9c98
leaq -0xd1(%rbp), %rdi
callq 0x9700
movl $0x0, -0xb0(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xceb0
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x4a0f0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x9c98
leaq -0xd1(%rbp), %rdi
callq 0x9700
leaq -0x28(%rbp), %rdi
callq 0xceb0
movq -0x58(%rbp), %rdi
callq 0x9af0
nop