// File: /workspace/github_cpp_makefile_star2_O3/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), %r12
movq %r12, %rdi
movl $0x8, %edx
callq 0x7870
leaq 0xf0(%rsp), %rdi
callq 0x7130
movl %eax, %ebx
testb %al, %al
je 0x1ad9a
movb %bl, 0xf(%rsp)
movq 0x78(%rsp), %rax
movq -0x18(%rax), %rcx
testb $0x2, 0x98(%rsp,%rcx)
jne 0x1ad8c
addq $-0x18, %rax
leaq 0x40(%rsp), %rbp
leaq 0x20(%rsp), %r14
leaq 0x60(%rsp), %r15
movq %rbp, 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 %r12, %rdi
movl $0xa, %esi
callq 0x7490
leaq 0x30(%rsp), %r13
movsbl %al, %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x7890
leaq 0x280(%rsp), %rbx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x18, %edx
callq 0x7720
movq %r12, %r13
movq %rbx, %rdi
leaq 0x10(%rsp), %rsi
callq 0x75a0
movq 0x10(%rsp), %rax
cmpb $0x23, (%rax)
je 0x1ac82
movq 0x18(%rsp), %rcx
testq %rcx, %rcx
sete %dl
movq 0x38(%rsp), %rax
cmpq %rax, %rcx
sete %cl
orb %dl, %cl
je 0x1acf4
leaq 0x280(%rsp), %rdi
movq 0x332df(%rip), %rsi     # 0x4df70
callq 0x73b0
leaq 0x300(%rsp), %rdi
callq 0x71c0
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x1acba
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
movq %r13, %r12
je 0x1acd4
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 0x1abf5
jmp 0x1ad8c
xorl %r12d, %r12d
testq %rax, %rax
je 0x1ad1c
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 0x1ad05
jmp 0x1ad1e
xorl %ecx, %ecx
cmpq %r12, %rcx
jl 0x1ac82
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 0x1ad68
movq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0x10(%rsp), %rdx
callq 0x17f1a
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x1ad7f
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x74b0
incq %r12
movq 0x38(%rsp), %rax
jmp 0x1acf7
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, %rbx
jmp 0x1ae32
jmp 0x1adc4
movq %rax, %rbx
jmp 0x1ade3
movq %rax, %rbx
jmp 0x1ae04
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x1ade3
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x33186(%rip), %rsi     # 0x4df70
leaq 0x280(%rsp), %rdi
callq 0x73b0
leaq 0x300(%rsp), %rdi
callq 0x71c0
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x1ae1b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x74b0
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1ae32
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x74b0
leaq 0x78(%rsp), %rdi
callq 0x7150
movq %rbx, %rdi
callq 0x7810