// File: /workspace/github_c_makefile_star2_O0/ffoissey[P]push_swap_42/srcs_push_swap/ft_make_simple.c
// Function: ft_loop_tab
static int	ft_loop_tab(t_stack *s, char **buf, char **tab)
{
	int		i;
	int		ret;

	i = 0;
	while (tab[i] && tab[i + 1])
	{
		ret = 0;
		if ((ret = ft_post_process(s, buf, tab + i)))
			;
		else if ((ft_strequ(tab[i], "sa") && ft_strequ(tab[i + 1], "sb"))
				|| (ft_strequ(tab[i], "sb") && ft_strequ(tab[i + 1], "sa")))
			*buf = ft_strjoinfree(*buf, "ss\n", FIRST);
		else if ((ft_strequ(tab[i], "ra") && ft_strequ(tab[i + 1], "rb"))
				|| (ft_strequ(tab[i], "rb") && ft_strequ(tab[i + 1], "ra")))
			*buf = ft_strjoinfree(*buf, "rr\n", FIRST);
		else if ((ft_strequ(tab[i], "rra") && ft_strequ(tab[i + 1], "rrb"))
				|| (ft_strequ(tab[i], "rrb") && ft_strequ(tab[i + 1], "rra")))
			*buf = ft_strjoinfree(*buf, "rrr\n", FIRST);
		else
			i += (ft_forgot(s, buf, tab, i) - 1);
		i = ret ? i + ret : i + 2;
	}
	return (i);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movq -0x18(%rbp), %rcx
movslq -0x1c(%rbp), %rdx
xorl %eax, %eax
cmpq $0x0, (%rcx,%rdx,8)
movb %al, -0x21(%rbp)
je 0x1587
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
cmpq $0x0, (%rax,%rcx,8)
setne %al
movb %al, -0x21(%rbp)
movb -0x21(%rbp), %al
testb $0x1, %al
jne 0x1593
jmp 0x17f7
movl $0x0, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movslq -0x1c(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
callq 0x2f90
movl %eax, -0x20(%rbp)
cmpl $0x0, %eax
je 0x15c3
jmp 0x17d2
movq -0x18(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x4a34(%rip), %rsi      # 0x600a
callq 0x4890
cmpl $0x0, %eax
je 0x1602
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x4a15(%rip), %rsi      # 0x600d
callq 0x4890
cmpl $0x0, %eax
jne 0x1641
movq -0x18(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x49f8(%rip), %rsi      # 0x600d
callq 0x4890
cmpl $0x0, %eax
je 0x1668
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x49d3(%rip), %rsi      # 0x600a
callq 0x4890
cmpl $0x0, %eax
je 0x1668
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq 0x49c1(%rip), %rsi      # 0x6010
movl $0x1, %edx
callq 0x49f0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
jmp 0x17d0
movq -0x18(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x499a(%rip), %rsi      # 0x6015
callq 0x4890
cmpl $0x0, %eax
je 0x16a7
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x497c(%rip), %rsi      # 0x6019
callq 0x4890
cmpl $0x0, %eax
jne 0x16e6
movq -0x18(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x495f(%rip), %rsi      # 0x6019
callq 0x4890
cmpl $0x0, %eax
je 0x170d
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x4939(%rip), %rsi      # 0x6015
callq 0x4890
cmpl $0x0, %eax
je 0x170d
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq 0x4929(%rip), %rsi      # 0x601d
movl $0x1, %edx
callq 0x49f0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
jmp 0x17ce
movq -0x18(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x48f4(%rip), %rsi      # 0x6014
callq 0x4890
cmpl $0x0, %eax
je 0x174c
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x48d6(%rip), %rsi      # 0x6018
callq 0x4890
cmpl $0x0, %eax
jne 0x178b
movq -0x18(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x48b9(%rip), %rsi      # 0x6018
callq 0x4890
cmpl $0x0, %eax
je 0x17af
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x4893(%rip), %rsi      # 0x6014
callq 0x4890
cmpl $0x0, %eax
je 0x17af
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq 0x4883(%rip), %rsi      # 0x601c
movl $0x1, %edx
callq 0x49f0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
jmp 0x17cc
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %ecx
callq 0x1800
subl $0x1, %eax
addl -0x1c(%rbp), %eax
movl %eax, -0x1c(%rbp)
jmp 0x17ce
jmp 0x17d0
jmp 0x17d2
cmpl $0x0, -0x20(%rbp)
je 0x17e3
movl -0x1c(%rbp), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x28(%rbp)
jmp 0x17ec
movl -0x1c(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
movl %eax, -0x1c(%rbp)
jmp 0x155b
movl -0x1c(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq