// File: /workspace/github_c_makefile_star2_O2/MikeyLHolm[P]Hive-lem-in/source/ant_flow.c
// Function: ant_flow
void			ant_flow(t_info *info)
{
	int		i;
	int		y;

	i = -1;
	y = -1;
	while (info->valid_indexes[++y][0] != EMPTY)
	{
		while (info->valid_indexes[y][++i] != EMPTY)
			info->rooms[info->valid_indexes[y][i]]->visited = 0;
		i = -1;
	}
	info->ants_at_start = info->ants;
	divide_to_paths(info, 0, 0, 0);
	info->ants_at_start = info->ants;
	print_turns(info);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x1898(%rdi), %rax
pushq $-0x1
popq %rcx
movq 0x8(%rax,%rcx,8), %rdx
cmpl $-0x1, (%rdx)
je 0x11d2
incq %rcx
movslq (%rdx), %rsi
cmpq $-0x1, %rsi
je 0x11a7
movq 0x18a8(%rbx), %rdi
movq (%rdi,%rsi,8), %rsi
andl $0x0, 0x5c(%rsi)
addq $0x4, %rdx
jmp 0x11b4
movl 0x28(%rbx), %eax
movl %eax, 0x30(%rbx)
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x23d8
movl 0x28(%rbx), %eax
movl %eax, 0x30(%rbx)
cmpl %eax, 0x2c(%rbx)
jge 0x13f9
movq 0x1898(%rbx), %rax
movq 0x18a8(%rbx), %rcx
movslq %r14d, %r12
movq (%rax,%r12,8), %rdx
movslq (%rdx), %rdx
movq (%rcx,%rdx,8), %rdx
movl 0x44(%rdx), %r15d
movl %r15d, %edx
decq %r15
testl %edx, %edx
jle 0x12fa
movq (%rax,%r12,8), %rdi
movslq (%rdi,%r15,4), %rsi
movq (%rcx,%rsi,8), %rsi
cmpl $0x1, 0x5c(%rsi)
jne 0x1247
movslq 0x4(%rdi,%r15,4), %rdi
movq (%rcx,%rdi,8), %rdi
cmpl $0x0, 0x5c(%rdi)
je 0x124e
decq %r15
decl %edx
jmp 0x121e
movl 0x18(%rsi), %edi
callq 0x405c
movq %rax, %r13
movq 0x1898(%rbx), %rax
movq 0x18a8(%rbx), %rcx
movq (%rax,%r12,8), %rax
movslq 0x4(%rax,%r15,4), %rax
movq (%rcx,%rax,8), %rax
movq 0x10(%rax), %rcx
movq %r13, %rdi
movq %rbx, %rsi
movl %r14d, %edx
callq 0x39e4
movq %r13, %rdi
callq 0x1030
movq 0x1898(%rbx), %rax
movq 0x18a8(%rbx), %rcx
movq (%rax,%r12,8), %rdx
movslq (%rdx,%r15,4), %rsi
movq (%rcx,%rsi,8), %rsi
movl 0x18(%rsi), %esi
movslq 0x4(%rdx,%r15,4), %rdi
movq (%rcx,%rdi,8), %rdi
movl %esi, 0x18(%rdi)
movslq 0x4(%rdx,%r15,4), %rsi
movl 0x103c(%rbx), %edi
xorl %r8d, %r8d
cmpl %edi, %esi
setne %r8b
movq (%rcx,%rsi,8), %rsi
movl %r8d, 0x5c(%rsi)
cmpl %edi, 0x4(%rdx,%r15,4)
jne 0x12dd
incl 0x2c(%rbx)
movslq (%rdx,%r15,4), %rsi
movq (%rcx,%rsi,8), %rsi
andl $0x0, 0x5c(%rsi)
movslq (%rdx,%r15,4), %rdx
movq (%rcx,%rdx,8), %rdx
andl $0x0, 0x18(%rdx)
jmp 0x1218
cmpl $0x0, 0x30(%rbx)
jle 0x13ad
movq (%rax,%r12,8), %rax
movslq (%rax), %rax
movq (%rcx,%rax,8), %rax
movq 0x20(%rax), %rax
xorl %r15d, %r15d
movl (%rax,%r15), %edi
addq $0x4, %r15
cmpl $-0x1, %edi
je 0x1316
testl %edi, %edi
jle 0x13ad
callq 0x405c
movq %rax, %r13
movq 0x1898(%rbx), %rax
movq 0x18a8(%rbx), %rcx
movq (%rax,%r12,8), %rax
movslq (%rax), %rax
movq (%rcx,%rax,8), %rax
movq 0x10(%rax), %rcx
movq %r13, %rdi
movq %rbx, %rsi
movl %r12d, %edx
callq 0x39e4
movq %r13, %rdi
callq 0x1030
movq 0x1898(%rbx), %rax
movq 0x18a8(%rbx), %rcx
movq (%rax,%r12,8), %rax
movslq (%rax), %rdx
movq (%rcx,%rdx,8), %rdx
movl $0x1, 0x5c(%rdx)
movslq (%rax), %rdx
movq (%rcx,%rdx,8), %rdx
movq 0x20(%rdx), %rsi
movl -0x4(%rsi,%r15), %esi
movl %esi, 0x18(%rdx)
movslq (%rax), %rax
movq (%rcx,%rax,8), %rax
movq 0x20(%rax), %rax
orl $-0x1, -0x4(%rax,%r15)
decl 0x30(%rbx)
incl %r14d
movl 0x28(%rbx), %eax
cmpl %eax, 0x2c(%rbx)
je 0x13de
cmpl 0x1060(%rbx), %r14d
jne 0x11ef
incl 0x1054(%rbx)
pushq $0xa
popq %rdi
callq 0x40c4
movl 0x28(%rbx), %eax
xorl %r14d, %r14d
jmp 0x11ef
testl %r14d, %r14d
je 0x13f9
pushq $0xa
popq %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x40c4
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq