// File: mbourand[P]webserv/srcs/Utils/Webserv.cpp
// Function: s_webserv::s_webserv()
s_webserv::s_webserv()
	: run(true), debug(DEBUG), file_formatname(new HashTable(256)), languages(new HashTable(256)), cwd(ft::get_cwd()), workers_amount(0), max_connections(100), compression_deflate(false), compression_gzip(false), compression_level(6)
{
	init_factories();
	parse_types_file(file_formatname, (cwd+"/config/mime.types").c_str());
	parse_types_file(file_formatname, "/etc/mime.types");
	init_languages();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x50(%rbp)
movb $0x1, (%rax)
movb $0x0, 0x1(%rax)
addq $0x8, %rax
movq %rax, -0x48(%rbp)
movl $0x10, %edi
callq 0x9680
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x40(%rbp)
movl $0x100, %esi            # imm = 0x100
callq 0x25e00
jmp 0x33156
movq -0x50(%rbp), %rax
movq -0x48(%rbp), %rcx
movq -0x40(%rbp), %rdx
movq %rdx, (%rcx)
addq $0x10, %rax
movq %rax, -0x60(%rbp)
movl $0x10, %edi
callq 0x9680
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x58(%rbp)
movl $0x100, %esi            # imm = 0x100
callq 0x25e00
jmp 0x3318d
movq -0x50(%rbp), %rdi
movq -0x60(%rbp), %rax
movq -0x58(%rbp), %rcx
movq %rcx, (%rax)
addq $0x18, %rdi
movq %rdi, -0x70(%rbp)
callq 0x45910
movq -0x50(%rbp), %rdi
addq $0x48, %rdi
movq %rdi, -0x68(%rbp)
callq 0x31f00
jmp 0x331bc
movq -0x50(%rbp), %rdi
addq $0x68, %rdi
movq %rdi, -0x78(%rbp)
callq 0x45930
jmp 0x331cf
movq -0x50(%rbp), %rdi
addq $0x88, %rdi
movq %rdi, -0x80(%rbp)
callq 0x45960
jmp 0x331e5
movq -0x50(%rbp), %rdi
addq $0xa8, %rdi
movq %rdi, -0x88(%rbp)
callq 0x45990
movq -0x50(%rbp), %rdi
movl $0x0, 0xc0(%rdi)
movl $0x64, 0xc4(%rdi)
movb $0x0, 0xc8(%rdi)
movb $0x0, 0xc9(%rdi)
movl $0x6, 0xcc(%rdi)
callq 0x33370
jmp 0x33233
movq -0x50(%rbp), %rsi
movq 0x8(%rsi), %rax
movq %rax, -0x90(%rbp)
addq $0x48, %rsi
leaq 0x38995(%rip), %rdx     # 0x6bbe2
leaq -0x38(%rbp), %rdi
callq 0x14190
jmp 0x33258
leaq -0x38(%rbp), %rdi
callq 0x92b0
movq -0x90(%rbp), %rdi
movq %rax, %rsi
callq 0x2de40
jmp 0x33272
leaq -0x38(%rbp), %rdi
callq 0x9c98
movq -0x50(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x3896b(%rip), %rsi     # 0x6bbf5
callq 0x2de40
jmp 0x33291
movq -0x50(%rbp), %rdi
callq 0x33db0
jmp 0x3329c
addq $0x90, %rsp
popq %rbp
retq
movq -0x40(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
movl $0x10, %esi
callq 0x9690
jmp 0x3335d
movq -0x58(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
movl $0x10, %esi
callq 0x9690
jmp 0x3335d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
jmp 0x33354
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
jmp 0x3334b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
jmp 0x33342
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
jmp 0x3332d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x9c98
movq -0x88(%rbp), %rdi
callq 0x459b0
movq -0x80(%rbp), %rdi
callq 0x459d0
movq -0x78(%rbp), %rdi
callq 0x45a90
movq -0x68(%rbp), %rdi
callq 0x9c98
movq -0x70(%rbp), %rdi
callq 0x45b50
movq -0x10(%rbp), %rdi
callq 0x9af0
nopw %cs:(%rax,%rax)