// File: /workspace/github_c_makefile_star2_O3/MikeyLHolm[P]Hive-lem-in/source/parse.c
// Function: parse_map
void		parse_map(t_output *output, t_info *info)
{
	t_output	*tmp;
	t_output	*tmp2;
	char		*line;
	int			rooms;

	tmp2 = output;
	rooms = 0;
	while (get_next_line(info->fd, &line))
	{
		if (!(tmp = (t_output*)malloc(sizeof(t_output))))
			exit_error(ERR_MALLOC, info);
		if (ft_strchr(line, ' ') && line[0] != '#' && line[0] != 'L')
			rooms++;
		if (ft_strchr(line, '-') && !(ft_strchr(line, ' ')))
			info->link_amnt++;
		if (ft_strstr(line, "#Here is the number of lines required:"))
			get_required_lines(info, line);
		tmp->line = ft_strdup(line);
		output->next = tmp;
		output = output->next;
		output->next = NULL;
		free(line);
	}
	run_data_parsing(info, tmp2, rooms);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r13
movq %rdi, %rbx
movl 0x1880(%rsi), %edi
leaq -0x40(%rbp), %rsi
callq 0x4d10
leaq 0x40d3(%rip), %rdi      # 0x77f8
testl %eax, %eax
movq %r13, -0x38(%rbp)
je 0x3836
movl $0x0, -0x2c(%rbp)
leaq -0x40(%rbp), %r15
movq %rbx, %r13
movq -0x38(%rbp), %r14
movl $0x10, %edi
callq 0x1080
movq %rax, %r12
testq %rax, %rax
jne 0x3765
leaq 0x3e4d(%rip), %rdi      # 0x75a9
movq -0x38(%rbp), %rsi
callq 0x348b
movq -0x40(%rbp), %rdi
movl $0x20, %esi
callq 0x4694
movq -0x40(%rbp), %rdi
testq %rax, %rax
je 0x378c
movzbl (%rdi), %eax
cmpl $0x23, %eax
je 0x378c
cmpl $0x4c, %eax
je 0x378c
incl -0x2c(%rbp)
movl $0x2d, %esi
callq 0x4694
testq %rax, %rax
je 0x37b8
movq -0x40(%rbp), %rdi
movl $0x20, %esi
callq 0x4694
testq %rax, %rax
jne 0x37b8
movq -0x38(%rbp), %rax
incl 0x1058(%rax)
movq -0x40(%rbp), %rdi
leaq 0x400e(%rip), %rsi      # 0x77d1
callq 0x4958
testq %rax, %rax
je 0x37d9
movq -0x40(%rbp), %rsi
movq %r14, %rdi
callq 0x1d08
movq -0x40(%rbp), %rdi
callq 0x471c
movq %rax, (%r12)
movq %r12, 0x8(%r13)
movq $0x0, 0x8(%r12)
movq -0x40(%rbp), %rdi
callq 0x1030
movl 0x1880(%r14), %edi
movq %r15, %rsi
callq 0x4d10
movq %r12, %r13
testl %eax, %eax
jne 0x3743
movl -0x2c(%rbp), %r14d
testl %r14d, %r14d
je 0x383b
movq -0x38(%rbp), %r13
cmpl $0x0, 0x1058(%r13)
jne 0x3851
leaq 0x3fdb(%rip), %rdi      # 0x780f
jmp 0x3849
xorl %r14d, %r14d
jmp 0x3849
xorl %r14d, %r14d
movq -0x38(%rbp), %r13
leaq 0x3faf(%rip), %rdi      # 0x77f8
movq %r13, %rsi
callq 0x348b
movslq %r14d, %r14
leaq 0x1(,%r14,8), %rdi
callq 0x1080
movq %rax, 0x18a8(%r13)
testq %rax, %rax
jne 0x3883
leaq 0x3d35(%rip), %rdi      # 0x75a9
movq %r13, %rsi
callq 0x348b
movq 0x18a8(%r13), %rax
movq $0x0, (%rax,%r14,8)
movl %r14d, 0x1074(%r13)
testq %rbx, %rbx
je 0x3bc5
leaq 0x10(%r13), %rax
movq %rax, -0x50(%rbp)
leaq 0x3ebb(%rip), %r12      # 0x7765
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movl $0x0, -0x48(%rbp)
movl $0x0, -0x30(%rbp)
movq %rbx, %r14
movq (%r14), %rax
movsbl (%rax), %edi
callq 0x44dc
testl %eax, %eax
je 0x3bc5
movq (%r14), %rdi
movq %r12, %rsi
callq 0x4958
testq %rax, %rax
jne 0x38f8
movq (%r14), %rdi
leaq 0x3e9d(%rip), %rsi      # 0x778b
callq 0x4958
testq %rax, %rax
je 0x390c
movq (%r14), %rsi
movq %r13, %rdi
callq 0x2ca7
movl %eax, -0x44(%rbp)
movl $0x2, %r15d
decl %r15d
movl %r15d, -0x2c(%rbp)
movq (%r14), %rdi
movl $0x20, %esi
callq 0x4694
movq (%r14), %r15
testq %rax, %rax
je 0x3aba
movb (%r15), %al
cmpb $0x23, %al
je 0x3aba
cmpl $0x0, -0x48(%rbp)
je 0x3952
leaq 0x3db1(%rip), %rdi      # 0x76f5
movq %r13, %rsi
callq 0x348b
movq (%r14), %r15
movb (%r15), %al
cmpl $0x0, -0x2c(%rbp)
movl $0x0, %ecx
movl -0x44(%rbp), %edx
cmovnel %ecx, %edx
movl %edx, -0x44(%rbp)
cmpb $0x4c, %al
movl -0x30(%rbp), %r12d
jne 0x397b
leaq 0x3edc(%rip), %rdi      # 0x784f
movq %r13, %rsi
callq 0x348b
movq %r15, %rdi
movl $0x20, %esi
callq 0x4850
movq %rax, %r15
movq %r13, %rdi
movq %rax, %rsi
callq 0x2c11
movl $0x68, %edi
callq 0x1080
movq 0x18a8(%r13), %rcx
movl %r12d, -0x30(%rbp)
movslq %r12d, %r12
movq %rax, (%rcx,%r12,8)
testq %rax, %rax
jne 0x39c6
leaq 0x3beb(%rip), %rdi      # 0x75a9
movq %r13, %rsi
callq 0x348b
movq (%r15), %rdi
callq 0x471c
movq 0x18a8(%r13), %rcx
movq (%rcx,%r12,8), %rcx
movq %rax, 0x10(%rcx)
movq 0x8(%r15), %rdi
callq 0x4430
movq 0x18a8(%r13), %rcx
movq (%rcx,%r12,8), %rcx
movl %eax, 0x60(%rcx)
movq %r15, -0x58(%rbp)
movq 0x10(%r15), %rdi
callq 0x4430
movq 0x18a8(%r13), %rcx
movq (%rcx,%r12,8), %rcx
movl %eax, 0x64(%rcx)
movl -0x44(%rbp), %r15d
movl %r15d, 0x58(%rcx)
movq %r13, %rdi
movl -0x30(%rbp), %esi
callq 0x2c7b
xorl %edi, %edi
callq 0x4840
movq 0x18a8(%r13), %rcx
movq (%rcx,%r12,8), %rdx
movq %rax, (%rdx)
testq %rax, %rax
jne 0x3a56
leaq 0x3b66(%rip), %rdi      # 0x75a9
movq -0x38(%rbp), %r13
movq %r13, %rsi
callq 0x348b
movq 0x18a8(%r13), %rcx
cmpl $0x1, %r15d
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl $0x0, %edx
cmovel %edx, %eax
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmovll %edx, %eax
movq (%rcx,%r12,8), %rcx
movl %eax, 0x4c(%rcx)
cmpl $0x2, %r15d
je 0x3ba6
cmpl $0x1, %r15d
leaq 0x3cda(%rip), %r12      # 0x7765
movq -0x58(%rbp), %r15
jne 0x3aa8
movq -0x50(%rbp), %r13
cmpq $0x0, (%r13)
jne 0x3aa8
movq (%r15), %rdi
callq 0x471c
movq %rax, (%r13)
incl -0x30(%rbp)
movq %r15, %rdi
callq 0x275f
movq (%r14), %r15
movq -0x38(%rbp), %r13
movq %r15, %rdi
movl $0x2d, %esi
callq 0x4694
testq %rax, %rax
je 0x3b93
movq (%r14), %rdi
movl $0x20, %esi
callq 0x4694
testq %rax, %rax
movl -0x2c(%rbp), %r15d
jne 0x3b97
movq (%r14), %rdi
movl $0x2d, %esi
callq 0x4850
movq %rax, %r15
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r13, %rdi
callq 0x2b60
cmpq $0x0, 0x10(%r13)
jne 0x3b1f
leaq 0x3d0e(%rip), %rdi      # 0x7825
movq %r13, %rsi
callq 0x348b
cmpq $0x0, (%r13)
jne 0x3b35
leaq 0x3d0e(%rip), %rdi      # 0x783b
movq %r13, %rsi
callq 0x348b
movq (%r15), %rdi
movq -0x50(%rbp), %rax
movq (%rax), %rsi
callq 0x476c
testl %eax, %eax
je 0x3b59
movq 0x8(%r15), %rdi
movq (%r13), %rsi
callq 0x476c
testl %eax, %eax
jne 0x3b7d
movq (%r15), %rdi
movq (%r13), %rsi
callq 0x476c
testl %eax, %eax
je 0x3b88
movq 0x8(%r15), %rdi
movq -0x50(%rbp), %rax
movq (%rax), %rsi
callq 0x476c
testl %eax, %eax
je 0x3b88
movl $0x1, 0x1884(%r13)
incl -0x48(%rbp)
movq %r15, %rdi
callq 0x275f
movl -0x2c(%rbp), %r15d
movq 0x8(%r14), %r14
testq %r14, %r14
jne 0x38c1
jmp 0x3bc5
movq -0x38(%rbp), %r13
cmpq $0x0, (%r13)
leaq 0x3baf(%rip), %r12      # 0x7765
movq -0x58(%rbp), %r15
jne 0x3aa8
jmp 0x3a9c
cmpq $0x0, 0x10(%r13)
je 0x3bdc
cmpq $0x0, (%r13)
jne 0x3bf9
leaq 0x3c61(%rip), %rdi      # 0x783b
jmp 0x3be3
leaq 0x3c42(%rip), %rdi      # 0x7825
movq %r13, %rsi
callq 0x348b
jmp 0x3bf9
movq (%rbx), %rdi
callq 0x4598
movq 0x8(%rbx), %rbx
testq %rbx, %rbx
jne 0x3bed
movq %r13, %rdi
callq 0x21d6
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)