// File: /workspace/github_c_makefile_star2_O3/ffoissey[P]minishell_42/srcs/ft_minishell.c
// Function: main
int			main(int ac, char **av, char **envp)
{
	char		*line;
	t_list_ex	*env;

	(void)ac;
	(void)av;
	if (signal(SIGINT, ft_ctrlc) == SIG_ERR)
		return (1);
	env = ft_dup_env(envp);
	ft_shlvl(&env);
	ft_set_global(env);
	ft_print_prompt();
	line = NULL;
	while (get_next_line(0, &line) > 0)
	{
		ft_split_line(line, &env);
		ft_strdel(&line);
		ft_set_global(env);
		ft_print_prompt();
	}
	ft_free_global();
	ft_freelistex(env);
	return (0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
leaq 0x2d5(%rip), %rsi       # 0x1690
movl $0x2, %edi
callq 0x10f0
cmpq $-0x1, %rax
je 0x161f
movq %rbx, %rdi
callq 0x1d95
movq %rsp, %rbx
movq %rax, (%rbx)
movq %rbx, %rdi
callq 0x179a
movq (%rbx), %rdi
callq 0x16fe
callq 0x16e1
leaq 0x8(%rsp), %rsi
movq $0x0, (%rsi)
xorl %edi, %edi
callq 0x33b0
testl %eax, %eax
jle 0x160d
leaq 0x8(%rsp), %r14
leaq 0x5c39(%rip), %r15      # 0x7052
leaq 0x5c3c(%rip), %r12      # 0x705c
movq 0x8(%rsp), %rdi
movl $0x3b, %esi
callq 0x2eb0
testq %rax, %rax
je 0x15e5
movq %rax, %rbp
movq (%rax), %rdi
testq %rdi, %rdi
je 0x15dd
movq %rbp, %r13
addq $0x8, %r13
callq 0x303c
testq %rax, %rax
je 0x15dd
movq %rax, %rbx
cmpq $0x0, (%rax)
je 0x15d5
movq (%rsp), %rsi
movq %rbx, %rdi
callq 0x25d2
testl %eax, %eax
je 0x15ba
movq (%rbx), %rdi
movq %r15, %rsi
callq 0x2a50
testl %eax, %eax
je 0x1517
movq (%rbx), %rdi
movq %r12, %rsi
callq 0x2a50
testl %eax, %eax
je 0x1554
movq (%rbx), %rdi
leaq 0x5bac(%rip), %rsi      # 0x7059
callq 0x2a50
testl %eax, %eax
je 0x157f
movq (%rbx), %rdi
leaq 0x5b93(%rip), %rsi      # 0x7057
callq 0x2a50
testl %eax, %eax
je 0x1590
movq (%rbx), %rdi
leaq 0x5b85(%rip), %rsi      # 0x7060
callq 0x2a50
testl %eax, %eax
je 0x15a1
movq (%rbx), %rdi
leaq 0x5b71(%rip), %rsi      # 0x7063
callq 0x2a50
testl %eax, %eax
je 0x15ae
movq (%rsp), %rdi
leaq 0x5b3e(%rip), %rsi      # 0x7048
movq %rbx, %rdx
callq 0x278c
jmp 0x15ba
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x1633
cmpq $0x0, 0x10(%rbx)
leaq 0x5b38(%rip), %rsi      # 0x7068
jne 0x1546
callq 0x2da8
leaq 0x5b44(%rip), %rsi      # 0x7082
testl %eax, %eax
jne 0x1658
movl $0x2, %edi
xorl %eax, %eax
callq 0x3ad4
jmp 0x15ba
movq (%rsp), %rdi
callq 0x2461
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
addq $0x8, %rdi
leaq 0x10(%rsp), %rsi
callq 0x1a66
movq 0x10(%rsp), %rdi
callq 0x2434
jmp 0x15ba
movq %rbx, %rsi
addq $0x8, %rsi
movq %rsp, %rdi
callq 0x1966
jmp 0x15ba
movq %rbx, %rsi
addq $0x8, %rsi
movq %rsp, %rdi
callq 0x1934
jmp 0x15ba
movq %rbx, %rdi
movq %rsp, %rsi
callq 0x127c
jmp 0x15ba
movq %rbx, %rdi
addq $0x8, %rdi
callq 0x1840
movq %rbx, %rdi
callq 0x2d70
movq (%r13), %rdi
addq $0x8, %r13
testq %rdi, %rdi
jne 0x144e
jmp 0x15dd
movq %rbx, %rdi
callq 0x2d70
movq %rbp, %rdi
callq 0x2d70
movq %r14, %rdi
callq 0x2d50
movq (%rsp), %rdi
callq 0x16fe
callq 0x16e1
xorl %edi, %edi
movq %r14, %rsi
callq 0x33b0
testl %eax, %eax
jg 0x1420
callq 0x1777
movq (%rsp), %rdi
callq 0x2434
xorl %eax, %eax
jmp 0x1624
movl $0x1, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1777
movq (%rsp), %rdi
callq 0x2434
movq %rbx, %rdi
callq 0x2d70
movq %rbp, %rdi
callq 0x2d70
xorl %edi, %edi
callq 0x1160
callq 0x1777
movq (%rsp), %rdi
callq 0x2434
movq 0x8(%rbx), %rdi
callq 0x3258
movl %eax, 0xaa67(%rip)      # 0xc0dc
movq %rbx, %rdi
callq 0x2d70
movq %rbp, %rdi
callq 0x2d70
movl 0xaa51(%rip), %edi      # 0xc0dc
callq 0x1160