// File: /workspace/github_c_makefile_star2_O3/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
movq (%rax), %rcx
movl (%rcx), %edi
cmpl $-0x1, %edi
je 0x11f3
movq 0x18a8(%rbx), %rdx
xorl %esi, %esi
addq $0x4, %rcx
movslq %edi, %rdi
movq (%rdx,%rdi,8), %rdi
movl $0x0, 0x5c(%rdi)
movl (%rcx), %edi
addq $0x4, %rcx
cmpl $-0x1, %edi
jne 0x11cb
movq 0x8(%rax,%rsi,8), %rcx
incq %rsi
movl (%rcx), %edi
cmpl $-0x1, %edi
jne 0x11c7
movl 0x28(%rbx), %eax
movl %eax, 0x30(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x25f4
movl 0x28(%rbx), %eax
movl 0x2c(%rbx), %ecx
movl %eax, 0x30(%rbx)
cmpl %eax, %ecx
jge 0x1434
xorl %r13d, %r13d
movq 0x1898(%rbx), %rax
movq 0x18a8(%rbx), %rcx
movslq %r13d, %r14
movq (%rax,%r14,8), %rdx
movslq (%rdx), %rdx
movq (%rcx,%rdx,8), %rdx
movslq 0x44(%rdx), %r12
testq %r12, %r12
jle 0x1328
incq %r12
movq (%rax,%r14,8), %rsi
movslq -0x8(%rsi,%r12,4), %rdx
movq (%rcx,%rdx,8), %rdx
cmpl $0x1, 0x5c(%rdx)
jne 0x131b
movslq -0x4(%rsi,%r12,4), %rsi
movq (%rcx,%rsi,8), %rsi
cmpl $0x0, 0x5c(%rsi)
jne 0x131b
movl 0x18(%rdx), %edi
callq 0x44f0
movq %rax, %r15
movq 0x1898(%rbx), %rax
movq 0x18a8(%rbx), %rcx
movq (%rax,%r14,8), %rax
movslq -0x4(%rax,%r12,4), %rax
movq (%rcx,%rax,8), %rax
movq 0x10(%rax), %rcx
movq %r15, %rdi
movq %rbx, %rsi
movl %r14d, %edx
callq 0x3db2
movq %r15, %rdi
callq 0x1030
movq 0x1898(%rbx), %rax
movq 0x18a8(%rbx), %rcx
movq (%rax,%r14,8), %rdx
movslq -0x8(%rdx,%r12,4), %rsi
movq (%rcx,%rsi,8), %rsi
movl 0x18(%rsi), %esi
movslq -0x4(%rdx,%r12,4), %rdi
movq (%rcx,%rdi,8), %rdi
movl %esi, 0x18(%rdi)
movslq -0x4(%rdx,%r12,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,%r12,4)
jne 0x1301
incl 0x2c(%rbx)
movslq -0x8(%rdx,%r12,4), %rsi
movq (%rcx,%rsi,8), %rsi
xorl %edi, %edi
movl %edi, 0x5c(%rsi)
movslq -0x8(%rdx,%r12,4), %rdx
movq (%rcx,%rdx,8), %rdx
movl %edi, 0x18(%rdx)
decq %r12
cmpq $0x1, %r12
ja 0x1247
cmpl $0x0, 0x30(%rbx)
jle 0x13de
movq (%rax,%r14,8), %rax
movslq (%rax), %rax
movq (%rcx,%rax,8), %rax
movq 0x20(%rax), %rax
xorl %r12d, %r12d
movl (%rax,%r12), %edi
addq $0x4, %r12
cmpl $-0x1, %edi
je 0x1344
testl %edi, %edi
jle 0x13de
callq 0x44f0
movq %rax, %r15
movq 0x1898(%rbx), %rax
movq 0x18a8(%rbx), %rcx
movq (%rax,%r14,8), %rax
movslq (%rax), %rax
movq (%rcx,%rax,8), %rax
movq 0x10(%rax), %rcx
movq %r15, %rdi
movq %rbx, %rsi
movl %r14d, %edx
callq 0x3db2
movq %r15, %rdi
callq 0x1030
movq 0x1898(%rbx), %rax
movq 0x18a8(%rbx), %rcx
movq (%rax,%r14,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,%r12), %esi
movl %esi, 0x18(%rdx)
movslq (%rax), %rax
movq (%rcx,%rax,8), %rax
movq 0x20(%rax), %rax
movl $0xffffffff, -0x4(%rax,%r12) # imm = 0xFFFFFFFF
decl 0x30(%rbx)
incl %r13d
movl 0x28(%rbx), %eax
movl 0x2c(%rbx), %ecx
cmpl %eax, %ecx
je 0x1417
cmpl 0x1060(%rbx), %r13d
jne 0x140d
incl 0x1054(%rbx)
movl $0xa, %edi
callq 0x4574
movl 0x28(%rbx), %eax
movl 0x2c(%rbx), %ecx
xorl %r13d, %r13d
cmpl %eax, %ecx
jl 0x121b
jmp 0x1434
testl %r13d, %r13d
je 0x1434
movl $0xa, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4574
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop