// File: /workspace/github_c_makefile_star2_O1/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 $0x28, %rsp
movq %rsi, %rbx
movq %rdi, 0x20(%rsp)
movq (%rsi), %rdi
movl $0xa, %esi
callq 0x3228
testq %rax, %rax
je 0x17be
movq %rax, %rbp
movq %rbx, %rdi
callq 0x3194
xorl %r13d, %r13d
cmpq $0x0, (%rbp)
je 0x1777
movq %rbx, 0x8(%rsp)
movq 0x20(%rsp), %rcx
leaq 0x28(%rcx), %rax
movq %rax, 0x18(%rsp)
leaq 0x20(%rcx), %rax
movq %rax, 0x10(%rsp)
leaq 0x2c02(%rip), %r15      # 0x400a
leaq 0x2bfe(%rip), %r12      # 0x400d
leaq 0x2c0f(%rip), %rbx      # 0x4025
movq %rbp, %r14
cmpq $0x0, 0x8(%r14)
je 0x176f
movq 0x20(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %r14, %rdx
callq 0x23a4
testl %eax, %eax
jne 0x155e
movq (%r14), %rdi
movq %r15, %rsi
callq 0x3070
testl %eax, %eax
je 0x145d
movq 0x8(%r14), %rdi
movq %r12, %rsi
callq 0x3070
testl %eax, %eax
jne 0x147c
movq (%r14), %rdi
movq %r12, %rsi
callq 0x3070
testl %eax, %eax
je 0x1490
movq 0x8(%r14), %rdi
movq %r15, %rsi
callq 0x3070
testl %eax, %eax
je 0x1490
movq 0x8(%rsp), %r14
movq (%r14), %rdi
leaq 0x2b85(%rip), %rsi      # 0x4010
jmp 0x154c
movq (%r14), %rdi
leaq 0x2b7b(%rip), %rsi      # 0x4015
callq 0x3070
testl %eax, %eax
je 0x14b7
movq 0x8(%r14), %rdi
leaq 0x2b6b(%rip), %rsi      # 0x4019
callq 0x3070
testl %eax, %eax
jne 0x14de
movq (%r14), %rdi
leaq 0x2b58(%rip), %rsi      # 0x4019
callq 0x3070
testl %eax, %eax
je 0x14ef
movq 0x8(%r14), %rdi
leaq 0x2b40(%rip), %rsi      # 0x4015
callq 0x3070
testl %eax, %eax
je 0x14ef
movq 0x8(%rsp), %r14
movq (%r14), %rdi
leaq 0x2b30(%rip), %rsi      # 0x401d
jmp 0x154c
movq (%r14), %rdi
leaq 0x2b1b(%rip), %rsi      # 0x4014
callq 0x3070
testl %eax, %eax
je 0x1516
movq 0x8(%r14), %rdi
leaq 0x2b0b(%rip), %rsi      # 0x4018
callq 0x3070
testl %eax, %eax
jne 0x153d
movq (%r14), %rdi
leaq 0x2af8(%rip), %rsi      # 0x4018
callq 0x3070
testl %eax, %eax
je 0x1580
movq 0x8(%r14), %rdi
leaq 0x2ae0(%rip), %rsi      # 0x4014
callq 0x3070
testl %eax, %eax
je 0x1580
movq 0x8(%rsp), %r14
movq (%r14), %rdi
leaq 0x2ad0(%rip), %rsi      # 0x401c
movl $0x1, %edx
callq 0x3149
movq %rax, (%r14)
movl $0x2, %eax
addl %eax, %r13d
movslq %r13d, %rax
leaq (,%rax,8), %r14
addq %rbp, %r14
cmpq $0x0, (%rbp,%rax,8)
jne 0x1419
jmp 0x176f
movq (%r14), %rdi
leaq 0x2a98(%rip), %rsi      # 0x4022
callq 0x3070
testl %eax, %eax
je 0x15ab
movq 0x8(%r14), %rdi
leaq 0x2a83(%rip), %rsi      # 0x4021
callq 0x3070
testl %eax, %eax
jne 0x16e7
movq (%r14), %rdi
leaq 0x2a6c(%rip), %rsi      # 0x4021
callq 0x3070
testl %eax, %eax
je 0x15d6
movq 0x8(%r14), %rdi
leaq 0x2a59(%rip), %rsi      # 0x4022
callq 0x3070
testl %eax, %eax
jne 0x16e7
movq (%r14), %rdi
leaq 0x2a35(%rip), %rsi      # 0x4015
callq 0x3070
testl %eax, %eax
je 0x1601
movq 0x8(%r14), %rdi
leaq 0x2a20(%rip), %rsi      # 0x4014
callq 0x3070
testl %eax, %eax
jne 0x16e7
movq (%r14), %rdi
leaq 0x2a09(%rip), %rsi      # 0x4014
callq 0x3070
testl %eax, %eax
je 0x162c
movq 0x8(%r14), %rdi
leaq 0x29f6(%rip), %rsi      # 0x4015
callq 0x3070
testl %eax, %eax
jne 0x16e7
movq (%r14), %rdi
leaq 0x29e3(%rip), %rsi      # 0x4019
callq 0x3070
testl %eax, %eax
je 0x1657
movq 0x8(%r14), %rdi
leaq 0x29ce(%rip), %rsi      # 0x4018
callq 0x3070
testl %eax, %eax
jne 0x16e7
movq (%r14), %rdi
leaq 0x29b7(%rip), %rsi      # 0x4018
callq 0x3070
testl %eax, %eax
je 0x167e
movq 0x8(%r14), %rdi
leaq 0x29a4(%rip), %rsi      # 0x4019
callq 0x3070
testl %eax, %eax
jne 0x16e7
movq (%r14), %rdi
movq %rbx, %rsi
callq 0x3070
testl %eax, %eax
je 0x16a1
movq 0x8(%r14), %rdi
leaq 0x298d(%rip), %rsi      # 0x4025
callq 0x3070
testl %eax, %eax
jne 0x16e7
movq (%r14), %rdi
movq %r15, %rsi
callq 0x3070
testl %eax, %eax
je 0x16c4
movq 0x8(%r14), %rdi
leaq 0x294f(%rip), %rsi      # 0x400a
callq 0x3070
testl %eax, %eax
jne 0x16e7
movq (%r14), %rdi
movq %r12, %rsi
callq 0x3070
testl %eax, %eax
je 0x16f1
movq 0x8(%r14), %rdi
leaq 0x292f(%rip), %rsi      # 0x400d
callq 0x3070
testl %eax, %eax
je 0x16f1
xorl %eax, %eax
addl %eax, %r13d
jmp 0x1559
movq (%r14), %rdi
leaq 0x292d(%rip), %rsi      # 0x4028
callq 0x3070
movq 0x18(%rsp), %rcx
movq 0x10(%rsp), %rdx
testl %eax, %eax
jne 0x172b
movq (%r14), %rdi
leaq 0x2913(%rip), %rsi      # 0x402b
callq 0x3070
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rdx
testl %eax, %eax
je 0x1731
decq (%rcx)
incq (%rdx)
movq 0x8(%rsp), %rax
movq (%rax), %rdi
movq (%r14), %rsi
movl $0x1, %edx
callq 0x3149
movq 0x8(%rsp), %r14
movq %rax, (%r14)
movq %rax, %rdi
leaq 0x28dc(%rip), %rsi      # 0x4034
movl $0x1, %edx
callq 0x3149
movq %rax, (%r14)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x16e9
movslq %r13d, %r13
movq 0x8(%rsp), %rbx
movq (%rbp,%r13,8), %rsi
testq %rsi, %rsi
je 0x17a8
movq (%rbx), %rdi
movl $0x1, %edx
callq 0x3149
movq %rax, (%rbx)
leaq 0x289c(%rip), %rsi      # 0x4034
movq %rax, %rdi
movl $0x1, %edx
callq 0x3149
movq %rax, (%rbx)
movq %rbp, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x31b4
leaq 0x283f(%rip), %rdi      # 0x4004
movl $0x2, %esi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x341c
nopl (%rax)