// File: mbourand[P]webserv/srcs/Config/ConfigContext.cpp
// Function: ConfigContext::set_auth_basic_user_file_default()
void ConfigContext::set_auth_basic_user_file_default()
{
	if (_params.find("auth_basic_user_file") == _params.end())
		return;

	_params["auth_basic_user_file"].front() = ft::simplify_path(_params["auth_basic_user_file"].front());
	if (!ft::is_regular_file(_params["auth_basic_user_file"].front().c_str()))
		throw std::invalid_argument("Auth Basic User File parameter is not a regular file");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1a0, %rsp            # imm = 0x1A0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x120(%rbp)
addq $0x20, %rax
movq %rax, -0x118(%rbp)
leaq -0x31(%rbp), %rdi
movq %rdi, -0x110(%rbp)
callq 0x9b10
movq -0x110(%rbp), %rdx
leaq 0x1f496(%rip), %rsi     # 0x6ad09
leaq -0x30(%rbp), %rdi
callq 0xa780
jmp 0x4b87e
movq -0x118(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x4d850
movq %rax, -0x128(%rbp)
jmp 0x4b897
movq -0x120(%rbp), %rdi
movq -0x128(%rbp), %rax
movq %rax, -0x10(%rbp)
addq $0x20, %rdi
callq 0x4d880
movq %rax, -0x50(%rbp)
leaq -0x10(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x4da50
movb %al, -0x129(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x9c98
leaq -0x31(%rbp), %rdi
callq 0x9700
movb -0x129(%rbp), %al
testb $0x1, %al
jne 0x4b8e7
jmp 0x4b91d
jmp 0x4bc8d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x4b90f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x9c98
leaq -0x31(%rbp), %rdi
callq 0x9700
jmp 0x4bc96
movq -0x120(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x140(%rbp)
leaq -0x91(%rbp), %rdi
movq %rdi, -0x138(%rbp)
callq 0x9b10
movq -0x138(%rbp), %rdx
leaq 0x1f3b9(%rip), %rsi     # 0x6ad09
leaq -0x90(%rbp), %rdi
callq 0xa780
jmp 0x4b95e
movq -0x140(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x4da80
movq %rax, -0x148(%rbp)
jmp 0x4b97a
movq -0x148(%rbp), %rdi
callq 0xcd40
movq %rax, %rsi
leaq -0x70(%rbp), %rdi
xorl %ecx, %ecx
movl %ecx, %edx
callq 0x32290
jmp 0x4b998
movq -0x120(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x158(%rbp)
leaq -0xb9(%rbp), %rdi
movq %rdi, -0x150(%rbp)
callq 0x9b10
movq -0x150(%rbp), %rdx
leaq 0x1f33e(%rip), %rsi     # 0x6ad09
leaq -0xb8(%rbp), %rdi
callq 0xa780
jmp 0x4b9d9
movq -0x158(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x4da80
movq %rax, -0x160(%rbp)
jmp 0x4b9f5
movq -0x160(%rbp), %rdi
callq 0xcd40
movq %rax, %rdi
leaq -0x70(%rbp), %rsi
movq %rsi, -0x178(%rbp)
callq 0x97e0
leaq -0xb8(%rbp), %rdi
callq 0x9c98
leaq -0xb9(%rbp), %rdi
callq 0x9700
movq -0x178(%rbp), %rdi
callq 0x9c98
leaq -0x90(%rbp), %rdi
callq 0x9c98
leaq -0x91(%rbp), %rdi
callq 0x9700
movq -0x120(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x170(%rbp)
leaq -0x101(%rbp), %rdi
movq %rdi, -0x168(%rbp)
callq 0x9b10
movq -0x168(%rbp), %rdx
leaq 0x1f286(%rip), %rsi     # 0x6ad09
leaq -0x100(%rbp), %rdi
callq 0xa780
jmp 0x4ba91
movq -0x170(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0x4da80
movq %rax, -0x180(%rbp)
jmp 0x4baad
movq -0x180(%rbp), %rdi
callq 0xcd40
movq %rax, %rdi
callq 0x92b0
movq %rax, -0x190(%rbp)
leaq -0x102(%rbp), %rdi
movq %rdi, -0x188(%rbp)
callq 0x9b10
movq -0x190(%rbp), %rsi
movq -0x188(%rbp), %rdx
leaq -0xe0(%rbp), %rdi
callq 0xa780
jmp 0x4baf7
leaq -0xe0(%rbp), %rdi
callq 0x31ff0
movb %al, -0x191(%rbp)
jmp 0x4bb0b
movb -0x191(%rbp), %al
xorb $-0x1, %al
movb %al, -0x192(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x9c98
leaq -0x102(%rbp), %rdi
callq 0x9700
leaq -0x100(%rbp), %rdi
callq 0x9c98
leaq -0x101(%rbp), %rdi
callq 0x9700
movb -0x192(%rbp), %al
testb $0x1, %al
jne 0x4bb58
jmp 0x4bc8d
movl $0x10, %edi
callq 0x9340
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x1a0(%rbp)
leaq 0x216f1(%rip), %rsi     # 0x6d267
callq 0x9be0
jmp 0x4bb7d
movq -0x1a0(%rbp), %rdi
movq 0x4343d(%rip), %rsi     # 0x8efc8
movq 0x43426(%rip), %rdx     # 0x8efb8
callq 0x9aa0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x4bbfa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x4bbee
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x4bbd9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x9c98
leaq -0xb9(%rbp), %rdi
callq 0x9700
leaq -0x70(%rbp), %rdi
callq 0x9c98
leaq -0x90(%rbp), %rdi
callq 0x9c98
leaq -0x91(%rbp), %rdi
callq 0x9700
jmp 0x4bc96
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x4bc65
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x4bc59
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x4bc4d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x9c98
leaq -0x102(%rbp), %rdi
callq 0x9700
leaq -0x100(%rbp), %rdi
callq 0x9c98
leaq -0x101(%rbp), %rdi
callq 0x9700
jmp 0x4bc96
movq -0x1a0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
callq 0x94c0
jmp 0x4bc96
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0x9af0
nop