// File: /workspace/github_cpp_makefile_star2_O2/llefranc[P]42_webserv/srcs/parser/FileParser.cpp
// Function: FileParser::newServer()
void FileParser::newServer(void)
{
	ServerInfo n_srv;
	while (_bracket > 0)
	{
		std::getline(_file, _buf);
		cleanLineFromSpaces(_buf);
		bracketRegulator(_bracket, _buf);

		if (!_buf.compare(0, 9, "location "))	
			newLocation(n_srv);
		else if (!_buf.compare(0, 7, "listen "))
			n_srv.setServer(LIS, 7, _buf);
		else if (!_buf.compare(0, 6, "error "))
			n_srv.setServer(ERR, 6, _buf);
		else if (!_buf.compare(0, 12, "server_name "))
			n_srv.setServer(SRV_N, 12, _buf);
		else if (!_buf.compare(0, 9, "max_body "))
			n_srv.setServer(BODY, 9, _buf);
		else if (!_buf.compare(0, 5, "host "))
			n_srv.setServer(HOST, 5, _buf);
		else if (!_buf.compare(0, 1, "}")) continue;
		else std::runtime_error(errParseMessage("error line : ", _buf.c_str(), ". Not accepting this input\n"));
	}
	addNewServerToMap(n_srv);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdi, %rbx
leaq -0xd8(%rbp), %rdi
callq 0x57f0
leaq 0x228(%rbx), %r15
leaq 0x208(%rbx), %r12
leaq 0xa6a9(%rip), %r13      # 0x111f1
pushq $0x9
popq %r14
cmpl $0x0, (%r15)
jle 0x6d22
movq %rbx, %rdi
movq %r12, %rsi
callq 0x40b0
movq %r12, %rdi
callq 0x924c
movq %r15, %rdi
movq %r12, %rsi
callq 0x92bc
movq %r12, %rdi
xorl %esi, %esi
movq %r14, %rdx
movq %r13, %rcx
callq 0x4550
testl %eax, %eax
je 0x6c65
movq %r12, %rdi
xorl %esi, %esi
pushq $0x7
popq %rdx
leaq 0xa606(%rip), %rcx      # 0x111a1
callq 0x4550
testl %eax, %eax
je 0x6c79
movq %r12, %rdi
xorl %esi, %esi
pushq $0x6
popq %rdx
leaq 0xa5f2(%rip), %rcx      # 0x111a9
callq 0x4550
testl %eax, %eax
je 0x6c9a
movq %r12, %rdi
xorl %esi, %esi
pushq $0xc
popq %rdx
leaq 0xa5dd(%rip), %rcx      # 0x111b0
callq 0x4550
testl %eax, %eax
je 0x6cbc
movq %r12, %rdi
xorl %esi, %esi
movq %r14, %rdx
leaq 0xa5ce(%rip), %rcx      # 0x111bd
callq 0x4550
testl %eax, %eax
je 0x6cde
movq %r12, %rdi
xorl %esi, %esi
pushq $0x5
popq %rdx
leaq 0xa5bc(%rip), %rcx      # 0x111c7
callq 0x4550
testl %eax, %eax
je 0x6d00
movq %r12, %rdi
xorl %esi, %esi
pushq $0x1
popq %rdx
leaq 0xa4eb(%rip), %rcx      # 0x11112
callq 0x4550
testl %eax, %eax
je 0x6b4c
movq (%r12), %rsi
leaq 0xa4d5(%rip), %rdi      # 0x11114
leaq 0xa587(%rip), %rdx      # 0x111cd
callq 0x9320
leaq -0x40(%rbp), %rdi
movq %rax, %rsi
callq 0x4650
leaq -0x40(%rbp), %rdi
callq 0x47e0
jmp 0x6b4c
movq %rbx, %rdi
leaq -0xd8(%rbp), %rsi
callq 0x6d72
jmp 0x6b4c
movl $0x7, -0x2c(%rbp)
leaq -0xd8(%rbp), %rdi
xorl %esi, %esi
leaq -0x2c(%rbp), %rdx
movq %r12, %rcx
callq 0x59c6
jmp 0x6b4c
movl $0x6, -0x2c(%rbp)
leaq -0xd8(%rbp), %rdi
pushq $0x1
popq %rsi
leaq -0x2c(%rbp), %rdx
movq %r12, %rcx
callq 0x59c6
jmp 0x6b4c
movl $0xc, -0x2c(%rbp)
leaq -0xd8(%rbp), %rdi
pushq $0x2
popq %rsi
leaq -0x2c(%rbp), %rdx
movq %r12, %rcx
callq 0x59c6
jmp 0x6b4c
movl $0x9, -0x2c(%rbp)
leaq -0xd8(%rbp), %rdi
pushq $0x3
popq %rsi
leaq -0x2c(%rbp), %rdx
movq %r12, %rcx
callq 0x59c6
jmp 0x6b4c
movl $0x5, -0x2c(%rbp)
leaq -0xd8(%rbp), %rdi
pushq $0x4
popq %rsi
leaq -0x2c(%rbp), %rdx
movq %r12, %rcx
callq 0x59c6
jmp 0x6b4c
leaq -0xd8(%rbp), %rsi
movq %rbx, %rdi
callq 0x722c
leaq -0xd8(%rbp), %rdi
callq 0x5954
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6d5b
jmp 0x6d5b
jmp 0x6d5b
jmp 0x6d5b
jmp 0x6d5b
jmp 0x6d5b
movq %rax, %rbx
leaq -0xd8(%rbp), %rdi
callq 0x5954
movq %rbx, %rdi
callq 0x46d0