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

	if (!(tab = ft_strsplit(*buf, '\n')))
	{
		ft_putendl_fd("Error", 2);
		return ;
	}
	ft_strdel(buf);
	i = ft_loop_tab(s, buf, tab);
	if (tab[i])
	{
		*buf = ft_strjoinfree(*buf, tab[i], FIRST);
		*buf = ft_strjoinfree(*buf, "\n", FIRST);
	}
	ft_free_tab_str(tab);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, 0x10(%rsp)
movq (%rsi), %rdi
pushq $0xa
popq %rsi
callq 0x2ee0
testq %rax, %rax
je 0x16eb
movq %rax, %r14
movq %rbx, 0x8(%rsp)
movq %rbx, %rdi
callq 0x2e60
xorl %r13d, %r13d
leaq 0x2c8a(%rip), %r15      # 0x400a
leaq 0x2c86(%rip), %r12      # 0x400d
leaq 0x2c97(%rip), %rbx      # 0x4025
movslq %r13d, %rax
movq (%r14,%rax,8), %rsi
testq %rsi, %rsi
je 0x1731
leaq (%r14,%rax,8), %rbp
cmpq $0x0, 0x8(%rbp)
je 0x1708
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %rbp, %rdx
callq 0x219c
testl %eax, %eax
jne 0x14ed
movq (%rbp), %rdi
movq %r15, %rsi
callq 0x2d3c
testl %eax, %eax
je 0x13e7
movq 0x8(%rbp), %rdi
movq %r12, %rsi
callq 0x2d3c
testl %eax, %eax
jne 0x1407
movq (%rbp), %rdi
movq %r12, %rsi
callq 0x2d3c
testl %eax, %eax
je 0x141c
movq 0x8(%rbp), %rdi
movq %r15, %rsi
callq 0x2d3c
testl %eax, %eax
je 0x141c
movq 0x8(%rsp), %rbp
movq (%rbp), %rdi
leaq 0x2bf9(%rip), %rsi      # 0x4010
jmp 0x14de
movq (%rbp), %rdi
leaq 0x2bee(%rip), %rsi      # 0x4015
callq 0x2d3c
testl %eax, %eax
je 0x1444
movq 0x8(%rbp), %rdi
leaq 0x2bde(%rip), %rsi      # 0x4019
callq 0x2d3c
testl %eax, %eax
jne 0x146c
movq (%rbp), %rdi
leaq 0x2bca(%rip), %rsi      # 0x4019
callq 0x2d3c
testl %eax, %eax
je 0x147e
movq 0x8(%rbp), %rdi
leaq 0x2bb2(%rip), %rsi      # 0x4015
callq 0x2d3c
testl %eax, %eax
je 0x147e
movq 0x8(%rsp), %rbp
movq (%rbp), %rdi
leaq 0x2ba1(%rip), %rsi      # 0x401d
jmp 0x14de
movq (%rbp), %rdi
leaq 0x2b8b(%rip), %rsi      # 0x4014
callq 0x2d3c
testl %eax, %eax
je 0x14a6
movq 0x8(%rbp), %rdi
leaq 0x2b7b(%rip), %rsi      # 0x4018
callq 0x2d3c
testl %eax, %eax
jne 0x14ce
movq (%rbp), %rdi
leaq 0x2b67(%rip), %rsi      # 0x4018
callq 0x2d3c
testl %eax, %eax
je 0x14f5
movq 0x8(%rbp), %rdi
leaq 0x2b4f(%rip), %rsi      # 0x4014
callq 0x2d3c
testl %eax, %eax
je 0x14f5
movq 0x8(%rsp), %rbp
movq (%rbp), %rdi
leaq 0x2b3e(%rip), %rsi      # 0x401c
pushq $0x1
popq %rdx
callq 0x2e15
movq %rax, (%rbp)
pushq $0x2
popq %rax
addl %eax, %r13d
jmp 0x138e
movq (%rbp), %rdi
leaq 0x2b22(%rip), %rsi      # 0x4022
callq 0x2d3c
testl %eax, %eax
je 0x1521
movq 0x8(%rbp), %rdi
leaq 0x2b0d(%rip), %rsi      # 0x4021
callq 0x2d3c
testl %eax, %eax
jne 0x1665
movq (%rbp), %rdi
leaq 0x2af5(%rip), %rsi      # 0x4021
callq 0x2d3c
testl %eax, %eax
je 0x154d
movq 0x8(%rbp), %rdi
leaq 0x2ae2(%rip), %rsi      # 0x4022
callq 0x2d3c
testl %eax, %eax
jne 0x1665
movq (%rbp), %rdi
leaq 0x2abd(%rip), %rsi      # 0x4015
callq 0x2d3c
testl %eax, %eax
je 0x1579
movq 0x8(%rbp), %rdi
leaq 0x2aa8(%rip), %rsi      # 0x4014
callq 0x2d3c
testl %eax, %eax
jne 0x1665
movq (%rbp), %rdi
leaq 0x2a90(%rip), %rsi      # 0x4014
callq 0x2d3c
testl %eax, %eax
je 0x15a5
movq 0x8(%rbp), %rdi
leaq 0x2a7d(%rip), %rsi      # 0x4015
callq 0x2d3c
testl %eax, %eax
jne 0x1665
movq (%rbp), %rdi
leaq 0x2a69(%rip), %rsi      # 0x4019
callq 0x2d3c
testl %eax, %eax
je 0x15d1
movq 0x8(%rbp), %rdi
leaq 0x2a54(%rip), %rsi      # 0x4018
callq 0x2d3c
testl %eax, %eax
jne 0x1665
movq (%rbp), %rdi
leaq 0x2a3c(%rip), %rsi      # 0x4018
callq 0x2d3c
testl %eax, %eax
je 0x15f9
movq 0x8(%rbp), %rdi
leaq 0x2a29(%rip), %rsi      # 0x4019
callq 0x2d3c
testl %eax, %eax
jne 0x1665
movq (%rbp), %rdi
movq %rbx, %rsi
callq 0x2d3c
testl %eax, %eax
je 0x161d
movq 0x8(%rbp), %rdi
leaq 0x2a11(%rip), %rsi      # 0x4025
callq 0x2d3c
testl %eax, %eax
jne 0x1665
movq (%rbp), %rdi
movq %r15, %rsi
callq 0x2d3c
testl %eax, %eax
je 0x1641
movq 0x8(%rbp), %rdi
leaq 0x29d2(%rip), %rsi      # 0x400a
callq 0x2d3c
testl %eax, %eax
jne 0x1665
movq (%rbp), %rdi
movq %r12, %rsi
callq 0x2d3c
testl %eax, %eax
je 0x166f
movq 0x8(%rbp), %rdi
leaq 0x29b1(%rip), %rsi      # 0x400d
callq 0x2d3c
testl %eax, %eax
je 0x166f
xorl %eax, %eax
addl %eax, %r13d
jmp 0x14ea
movq (%rbp), %rdi
leaq 0x29ae(%rip), %rsi      # 0x4028
callq 0x2d3c
pushq $0x28
popq %rcx
pushq $0x20
popq %rdx
testl %eax, %eax
jne 0x16a3
movq (%rbp), %rdi
leaq 0x2997(%rip), %rsi      # 0x402b
callq 0x2d3c
pushq $0x20
popq %rcx
pushq $0x28
popq %rdx
testl %eax, %eax
je 0x16b0
movq 0x10(%rsp), %rax
decq (%rax,%rcx)
incq (%rax,%rdx)
movq 0x8(%rsp), %rax
movq (%rax), %rdi
movq (%rbp), %rsi
pushq $0x1
popq %rdx
callq 0x2e15
movq 0x8(%rsp), %rbp
movq %rax, (%rbp)
movq %rax, %rdi
leaq 0x297f(%rip), %rsi      # 0x4056
pushq $0x1
popq %rdx
callq 0x2e15
movq %rax, (%rbp)
pushq $-0x1
popq %rax
jmp 0x1667
leaq 0x2912(%rip), %rdi      # 0x4004
pushq $0x2
popq %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x310c
movq 0x8(%rsp), %rbx
movq (%rbx), %rdi
pushq $0x1
popq %rbp
movl %ebp, %edx
callq 0x2e15
movq %rax, (%rbx)
leaq 0x2932(%rip), %rsi      # 0x4056
movq %rax, %rdi
movl %ebp, %edx
callq 0x2e15
movq %rax, (%rbx)
movq %r14, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2e7c
nop