// File: /workspace/github_cpp_makefile_star2_O1/mbourand[P]webserv/srcs/Utils/Types_parser.cpp
// Function: parse_types_file(HashTable*, char const*)
bool	parse_types_file(HashTable *file_formatname, const char *src)
{
	std::ifstream inputFileStream(src);
	if (!inputFileStream.is_open())
		return (false);
	while (!inputFileStream.eof()) {
		std::string line;
		std::string formatname;
		std::getline(inputFileStream, line);
		std::stringstream currentline(line);
		currentline >> formatname;
		if (formatname[0] == '#')
			continue;
		if (formatname.size() && (formatname.size() != line.size()))
		{
			for (int i = 0; i < (std::count(line.begin(), line.end(), ' ') + 1); i++)
			{
				std::string occurrence;
				currentline >> occurrence;
				if (occurrence.size())
					file_formatname->Insert(occurrence, formatname);
			}
		}
	}
	inputFileStream.close();
	return (true);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movq %rdi, 0x70(%rsp)
leaq 0x78(%rsp), %r13
movq %r13, %rdi
movl $0x8, %edx
callq 0x7870
leaq 0xf0(%rsp), %rdi
callq 0x7130
movl %eax, %ebx
testb %al, %al
je 0x1b071
movb %bl, 0xf(%rsp)
movq 0x78(%rsp), %rax
movq -0x18(%rax), %rcx
testb $0x2, 0x98(%rsp,%rcx)
jne 0x1b063
addq $-0x18, %rax
leaq 0x40(%rsp), %rbx
leaq 0x20(%rsp), %r14
leaq 0x60(%rsp), %r15
movq %rbx, 0x30(%rsp)
xorl %ecx, %ecx
movq %rcx, 0x38(%rsp)
movb %cl, 0x40(%rsp)
movq %r14, 0x10(%rsp)
movq %rcx, 0x18(%rsp)
movb %cl, 0x20(%rsp)
movq (%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x7490
leaq 0x30(%rsp), %rbp
movsbl %al, %edx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x7890
leaq 0x280(%rsp), %r12
movq %r12, %rdi
movq %rbp, %rsi
movl $0x18, %edx
callq 0x7720
movq %r13, %rbp
movq %r12, %rdi
leaq 0x10(%rsp), %rsi
callq 0x75a0
movq 0x10(%rsp), %rax
cmpb $0x23, (%rax)
jne 0x1afb6
leaq 0x280(%rsp), %rdi
movq 0x3301d(%rip), %rsi     # 0x4df70
callq 0x73b0
leaq 0x300(%rsp), %rdi
callq 0x71c0
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x1af7c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
movq %rbp, %r13
je 0x1af96
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x78(%rsp), %rax
movq -0x18(%rax), %rcx
addq $-0x18, %rax
testb $0x2, 0x98(%rsp,%rcx)
je 0x1aed1
jmp 0x1b063
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x1af44
cmpq 0x38(%rsp), %rax
je 0x1af44
xorl %r13d, %r13d
movq 0x38(%rsp), %rax
testq %rax, %rax
je 0x1aff8
movq 0x30(%rsp), %rdx
xorl %esi, %esi
xorl %ecx, %ecx
xorl %edi, %edi
cmpb $0x20, (%rdx,%rsi)
sete %dil
addq %rdi, %rcx
incq %rsi
cmpq %rsi, %rax
jne 0x1afe1
jmp 0x1affa
xorl %ecx, %ecx
cmpq %r13, %rcx
jl 0x1af44
movq %r15, 0x50(%rsp)
movq $0x0, 0x58(%rsp)
movb $0x0, 0x60(%rsp)
leaq 0x280(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x75a0
cmpq $0x0, 0x58(%rsp)
je 0x1b044
movq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0x10(%rsp), %rdx
callq 0x1800e
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x1b05b
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x74b0
incq %r13
jmp 0x1afce
leaq 0x78(%rsp), %rdi
callq 0x70f0
movb 0xf(%rsp), %bl
leaq 0x78(%rsp), %rdi
callq 0x7150
movl %ebx, %eax
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r12
jmp 0x1b109
jmp 0x1b09b
movq %rax, %r12
jmp 0x1b0ba
movq %rax, %r12
jmp 0x1b0db
movq %rax, %r12
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x1b0ba
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x32eaf(%rip), %rsi     # 0x4df70
leaq 0x280(%rsp), %rdi
callq 0x73b0
leaq 0x300(%rsp), %rdi
callq 0x71c0
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x1b0f2
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0x1b109
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x74b0
leaq 0x78(%rsp), %rdi
callq 0x7150
movq %r12, %rdi
callq 0x7810
nop