// File: /workspace/github_c_makefile_star2_O3/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
movl $0xa, %esi
callq 0x3218
testq %rax, %rax
je 0x1779
movq %rax, %rbp
movq %rbx, 0x8(%rsp)
movq %rbx, %rdi
callq 0x3184
movq (%rbp), %rsi
testq %rsi, %rsi
je 0x17c4
cmpq $0x0, 0x8(%rbp)
je 0x1798
leaq 0x8(%rbp), %r12
xorl %r13d, %r13d
leaq 0x2c08(%rip), %r15      # 0x400a
leaq 0x2c04(%rip), %rbx      # 0x400d
movq %rbp, %r14
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %r14, %rdx
callq 0x2390
testl %eax, %eax
jne 0x1546
movq (%r14), %rdi
movq %r15, %rsi
callq 0x3060
testl %eax, %eax
je 0x1445
movq (%r12), %rdi
movq %rbx, %rsi
callq 0x3060
testl %eax, %eax
jne 0x1464
movq (%r14), %rdi
movq %rbx, %rsi
callq 0x3060
testl %eax, %eax
je 0x1478
movq (%r12), %rdi
movq %r15, %rsi
callq 0x3060
testl %eax, %eax
je 0x1478
movq 0x8(%rsp), %r14
movq (%r14), %rdi
leaq 0x2b9d(%rip), %rsi      # 0x4010
jmp 0x1534
movq (%r14), %rdi
leaq 0x2b93(%rip), %rsi      # 0x4015
callq 0x3060
testl %eax, %eax
je 0x149f
movq (%r12), %rdi
leaq 0x2b83(%rip), %rsi      # 0x4019
callq 0x3060
testl %eax, %eax
jne 0x14c6
movq (%r14), %rdi
leaq 0x2b70(%rip), %rsi      # 0x4019
callq 0x3060
testl %eax, %eax
je 0x14d7
movq (%r12), %rdi
leaq 0x2b58(%rip), %rsi      # 0x4015
callq 0x3060
testl %eax, %eax
je 0x14d7
movq 0x8(%rsp), %r14
movq (%r14), %rdi
leaq 0x2b48(%rip), %rsi      # 0x401d
jmp 0x1534
movq (%r14), %rdi
leaq 0x2b33(%rip), %rsi      # 0x4014
callq 0x3060
testl %eax, %eax
je 0x14fe
movq (%r12), %rdi
leaq 0x2b23(%rip), %rsi      # 0x4018
callq 0x3060
testl %eax, %eax
jne 0x1525
movq (%r14), %rdi
leaq 0x2b10(%rip), %rsi      # 0x4018
callq 0x3060
testl %eax, %eax
je 0x157f
movq (%r12), %rdi
leaq 0x2af8(%rip), %rsi      # 0x4014
callq 0x3060
testl %eax, %eax
je 0x157f
movq 0x8(%rsp), %r14
movq (%r14), %rdi
leaq 0x2ae8(%rip), %rsi      # 0x401c
movl $0x1, %edx
callq 0x3139
movq %rax, (%r14)
movl $0x2, %eax
movl %r13d, %ecx
movl %eax, %r13d
addl %ecx, %r13d
movslq %r13d, %rax
movq (%rbp,%rax,8), %rsi
testq %rsi, %rsi
je 0x17c4
leaq (,%rax,8), %r14
addq %rbp, %r14
leaq 0x8(%r14), %r12
cmpq $0x0, 0x8(%r14)
jne 0x140c
jmp 0x1798
movq (%r14), %rdi
leaq 0x2a99(%rip), %rsi      # 0x4022
callq 0x3060
testl %eax, %eax
je 0x15aa
movq (%r12), %rdi
leaq 0x2a84(%rip), %rsi      # 0x4021
callq 0x3060
testl %eax, %eax
jne 0x16ea
movq (%r14), %rdi
leaq 0x2a6d(%rip), %rsi      # 0x4021
callq 0x3060
testl %eax, %eax
je 0x15d5
movq (%r12), %rdi
leaq 0x2a5a(%rip), %rsi      # 0x4022
callq 0x3060
testl %eax, %eax
jne 0x16ea
movq (%r14), %rdi
leaq 0x2a36(%rip), %rsi      # 0x4015
callq 0x3060
testl %eax, %eax
je 0x1600
movq (%r12), %rdi
leaq 0x2a21(%rip), %rsi      # 0x4014
callq 0x3060
testl %eax, %eax
jne 0x16ea
movq (%r14), %rdi
leaq 0x2a0a(%rip), %rsi      # 0x4014
callq 0x3060
testl %eax, %eax
je 0x162b
movq (%r12), %rdi
leaq 0x29f7(%rip), %rsi      # 0x4015
callq 0x3060
testl %eax, %eax
jne 0x16ea
movq (%r14), %rdi
leaq 0x29e4(%rip), %rsi      # 0x4019
callq 0x3060
testl %eax, %eax
je 0x1656
movq (%r12), %rdi
leaq 0x29cf(%rip), %rsi      # 0x4018
callq 0x3060
testl %eax, %eax
jne 0x16ea
movq (%r14), %rdi
leaq 0x29b8(%rip), %rsi      # 0x4018
callq 0x3060
testl %eax, %eax
je 0x167d
movq (%r12), %rdi
leaq 0x29a5(%rip), %rsi      # 0x4019
callq 0x3060
testl %eax, %eax
jne 0x16ea
movq (%r14), %rdi
leaq 0x299e(%rip), %rsi      # 0x4025
callq 0x3060
testl %eax, %eax
je 0x16a4
movq (%r12), %rdi
leaq 0x298a(%rip), %rsi      # 0x4025
callq 0x3060
testl %eax, %eax
jne 0x16ea
movq (%r14), %rdi
movq %r15, %rsi
callq 0x3060
testl %eax, %eax
je 0x16c7
movq (%r12), %rdi
leaq 0x294c(%rip), %rsi      # 0x400a
callq 0x3060
testl %eax, %eax
jne 0x16ea
movq (%r14), %rdi
movq %rbx, %rsi
callq 0x3060
testl %eax, %eax
je 0x16f4
movq (%r12), %rdi
leaq 0x292c(%rip), %rsi      # 0x400d
callq 0x3060
testl %eax, %eax
je 0x16f4
xorl %eax, %eax
addl %eax, %r13d
jmp 0x1541
movq (%r14), %rdi
leaq 0x292a(%rip), %rsi      # 0x4028
callq 0x3060
testl %eax, %eax
je 0x1713
movl $0x20, %eax
movl $0x28, %ecx
jmp 0x1730
movq (%r14), %rdi
leaq 0x290e(%rip), %rsi      # 0x402b
callq 0x3060
testl %eax, %eax
je 0x173d
movl $0x28, %eax
movl $0x20, %ecx
movq 0x10(%rsp), %rdx
decq (%rdx,%rcx)
incq (%rdx,%rax)
movq 0x8(%rsp), %r12
movq (%r12), %rdi
movq (%r14), %rsi
movl $0x1, %edx
callq 0x3139
movq %rax, (%r12)
movq %rax, %rdi
leaq 0x28f5(%rip), %rsi      # 0x4056
movl $0x1, %edx
callq 0x3139
movq %rax, (%r12)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x16ec
leaq 0x2884(%rip), %rdi      # 0x4004
movl $0x2, %esi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3444
movq 0x8(%rsp), %rbx
movq (%rbx), %rdi
movl $0x1, %edx
callq 0x3139
movq %rax, (%rbx)
leaq 0x28a2(%rip), %rsi      # 0x4056
movq %rax, %rdi
movl $0x1, %edx
callq 0x3139
movq %rax, (%rbx)
movq %rbp, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x31a4
nop