LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/parsing/quotes/quotes_utils_2.c
// Function: find_closing_quote
char	*find_closing_quote(char *str, char quote
								, int opening, int *closing)
{
	int	i;

	i = opening + 1;
	*closing = 0;
	if (str[i] == quote && i >= 2 && str[i - 2] == ' ')
	{
		*closing += opening + 1;
		return (ft_strdup("\"\" "));
	}
	while (str[i])
	{
		if (str[i] == quote
			&& (quote == '\'' || check_prev_backslashes(str, i)))
		{
			*closing += opening + 1;
			return (get_string_between_quotes(str, opening
						, *closing, quote));
		}
		*closing += 1;
		i++;
	}
	handle_quote_error(quote);
	return (NULL);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r15
movslq %edx, %rax
leaq 0x1(%rax), %rdx
movl $0x0, (%rcx)
testl %eax, %eax
jle 0x39c5
cmpb %bpl, 0x1(%r15,%rax)
jne 0x39c5
movl %ebx, %ecx
cmpb $0x20, -0x1(%r15,%rcx)
jne 0x39c5
movl %edx, (%r14)
leaq 0x27b9(%rip), %rdi      # 0x616b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5210
movq %rdx, (%rsp)
movb (%r15,%rdx), %cl
testb %cl, %cl
je 0x3a09
leal 0x1(%rbx), %r12d
leaq (%rax,%r15), %r13
addq $0x2, %r13
cmpb %bpl, %cl
jne 0x39f8
cmpb $0x27, %bpl
je 0x3a23
movq %r15, %rdi
movl %r12d, %esi
callq 0x373c
testw %ax, %ax
jne 0x3a23
incl (%r14)
movb (%r13), %cl
incl %r12d
incq %r13
testb %cl, %cl
jne 0x39dd
movsbl %bpl, %edi
callq 0x3952
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl (%r14), %edx
addl (%rsp), %edx
movl %edx, (%r14)
movsbl %bpl, %ecx
movq %r15, %rdi
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3846
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/parsing/utils/split_non_escaped.c
// Function: ft_split_non_escaped
char			**ft_split_non_escaped(char *input, char delimiter)
{
	char	**args;
	int		len;

	if (!(args = malloc((count_args(input, delimiter) + 2) * sizeof(char *))))
		return (NULL);
	len = ft_strlen(input);
	input = set_split_delimiter(input, delimiter);
	divide_arguments(args, input, len);
	return (args);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, %ebp
movq %rdi, %r14
callq 0x3c39
cltq
leaq 0x10(,%rax,8), %rdi
callq 0x1160
testq %rax, %rax
je 0x3bed
movq %rax, %rbx
movq %r14, %rdi
callq 0x541c
decq %r14
cmpb $0x20, 0x1(%r14)
leaq 0x1(%r14), %r14
je 0x3a86
movq %rax, 0x8(%rsp)
movq %rbx, (%rsp)
movb (%r14), %al
incq %r14
cmpb %bpl, %al
je 0x3a9a
testb %al, %al
je 0x3b1c
xorl %r12d, %r12d
movsbl %bpl, %ebp
movl $0x1, %r15d
xorl %r13d, %r13d
movsbl %al, %edi
movl %ebp, %esi
callq 0x3c18
testw %ax, %ax
je 0x3b0e
leal -0x1(%r13), %ecx
xorl %eax, %eax
testq %r13, %r13
je 0x3af2
movl %ecx, %edx
cmpb $0x5c, -0x1(%r14,%rdx)
jne 0x3af2
incq %rax
decl %ecx
movq %r12, %rdx
addq %rax, %rdx
jne 0x3ad3
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %r13, %rax
cmpl $0x2, %eax
jb 0x3b04
movslq %ecx, %rcx
cmpb $0x20, -0x1(%r14,%rcx)
cmovel %r15d, %eax
testb $0x1, %al
jne 0x3b0e
movb $0x0, -0x1(%r14,%r13)
movb (%r14,%r13), %al
incq %r13
decq %r12
testb %al, %al
jne 0x3ab9
movq 0x8(%rsp), %rsi
movslq %esi, %rax
movq %rax, 0x10(%rsp)
leaq -0x1(%rax), %r15
xorl %r12d, %r12d
xorl %ebx, %ebx
movq (%rsp), %r13
cmpl %esi, %ebx
jge 0x3bdf
movslq %ebx, %rax
leaq (%r14,%rax), %rdi
decq %rdi
callq 0x5210
movq %rax, %rbp
movq %rax, (%r13,%r12,8)
movl $0x3, %edx
movq %rax, %rdi
leaq 0x260b(%rip), %rsi      # 0x616f
callq 0x5440
testl %eax, %eax
je 0x3b77
movq %rbp, %rdi
callq 0x541c
jmp 0x3b9f
leaq 0x24a0(%rip), %rdi      # 0x601e
callq 0x5210
movq %rax, %r13
movq %rbp, %rdi
callq 0x1030
movq (%rsp), %rax
movq %r13, (%rax,%r12,8)
movq (%rsp), %r13
movl $0x2, %eax
addl %ebx, %eax
incq %r12
movq 0x8(%rsp), %rsi
cmpl %esi, %eax
jge 0x3bdf
movslq %eax, %rcx
movb $0x1, %dl
cmpb $0x0, -0x1(%r14,%rcx)
jne 0x3bd5
cmpq %rcx, %r15
je 0x3bdf
leaq 0x1(%rcx), %rax
cmpb $0x0, (%r14,%rcx)
movq %rax, %rcx
je 0x3bba
cmpq 0x10(%rsp), %rax
setl %dl
movl %eax, %ebx
testb %dl, %dl
jne 0x3b36
movslq %r12d, %rax
movq $0x0, (%r13,%rax,8)
jmp 0x3bf0
xorl %r13d, %r13d
movq %r13, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/parsing/utils/split_non_escaped_utils.c
// Function: count_args
int		count_args(char *input, char delimiter)
{
	int		i;
	int		l;

	l = 0;
	i = 0;
	while (input[i])
	{
		if (is_delimiter(input[i], delimiter) && input[i - 1] != '\\')
		{
			l++;
			while (input[i] && !is_delimiter(input[i], delimiter))
				i++;
		}
		i++;
	}
	return (l);
}

// Assembly:
movb (%rdi), %r8b
testb %r8b, %r8b
je 0x3cbd
leaq 0x1(%rdi), %rcx
xorl %eax, %eax
movq %rdi, %r9
xorl %edx, %edx
cmpb $0x20, %sil
jne 0x3c62
cmpb $0x9, %r8b
je 0x3c67
movzbl %r8b, %r10d
cmpl $0x20, %r10d
je 0x3c67
cmpb %sil, %r8b
jne 0x3ca7
cmpb $0x5c, -0x1(%r9)
je 0x3ca7
incl %eax
movslq %edx, %r8
movb (%rdi,%r8), %r9b
testb %r9b, %r9b
je 0x3ca7
addq %rcx, %r8
cmpb $0x20, %sil
jne 0x3c95
cmpb $0x9, %r9b
je 0x3ca7
movzbl %r9b, %r10d
cmpl $0x20, %r10d
je 0x3ca7
cmpb %sil, %r9b
je 0x3ca7
incl %edx
movb (%r8), %r9b
incq %r8
testb %r9b, %r9b
jne 0x3c7f
movslq %edx, %rdx
leaq (%rdi,%rdx), %r9
incq %r9
incq %rdx
movb (%r9), %r8b
testb %r8b, %r8b
jne 0x3c4c
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/validator/validator.c
// Function: validate_input
int				validate_input(t_shell *shell, char *line)
{
	int it;

	it = -1;
	while (line[++it])
	{
		if (line[it] == '|' ||
			line[it] == '<' ||
			line[it] == '>' ||
			line[it] == ';')
		{
			if (validator(shell, line, line[it], it))
				return (0);
		}
	}
	return (1);
	if (line[it + 1] == '<' || line[it + 1] == '>')
		it++;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1(%rsi), %r15
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movb -0x1(%r15), %r13b
movzbl %r13b, %eax
cmpl $0x3d, %eax
jg 0x3cf9
leal -0x3b(%rax), %ecx
cmpl $0x2, %ecx
jb 0x3d03
testl %eax, %eax
jne 0x3d63
jmp 0x3d80
cmpl $0x7c, %eax
je 0x3d03
cmpl $0x3e, %eax
jne 0x3d63
movsbl %r13b, %ebp
movq %r14, %rdi
movl %r12d, %esi
movl %ebp, %edx
callq 0x3e66
testw %ax, %ax
je 0x3d31
leal 0x1(%r12), %ecx
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x3ef8
testl %eax, %eax
je 0x3d63
jmp 0x3da0
cmpb $0x7c, %r13b
jne 0x3d49
leal 0x1(%r12), %esi
movq %r15, %rdi
callq 0x3ed8
testw %ax, %ax
jne 0x3d87
movsbl -0x1(%r15), %ecx
leal 0x1(%r12), %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3db4
testq %rax, %rax
jne 0x3d6e
incl %r12d
incq %r15
jmp 0x3cdb
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3f71
movl $0x1, %eax
jmp 0x3d9d
movl $0x1, %eax
jmp 0x3da2
leaq 0x23e4(%rip), %rsi      # 0x6172
movq %rbx, %rdi
xorl %edx, %edx
callq 0x47e8
movl $0x2, %eax
movl %eax, 0x28(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/validator/validator_utils.c
// Function: post_to_token
char		*post_to_token(t_shell *shell, char *line, int it, char token)
{
	char	*key;
	char	*value;
	char	*tmp;

	if (token == '>')
		while (line[it++])
			if (line[it] == '}' && line[it - 1] != ' ')
			{
				key = get_var_key(line, it);
				value = expand_var(key, shell);
				if (contain_spaces(value))
				{
					free(value);
					tmp = ft_strjoin("$", key);
					free(key);
					return (tmp);
				}
				free(key);
				free(value);
			}
	return (NULL);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpb $0x3e, %cl
jne 0x3e2e
movq %rsi, %rbx
movslq %edx, %rcx
movb (%rsi,%rcx), %al
testb %al, %al
je 0x3e2e
movq %rdi, %r14
leal 0x1(%rcx), %ebp
leaq (%rcx,%rbx), %r13
incq %r13
cmpb $0x20, %al
je 0x3e21
cmpb $0x7d, (%r13)
jne 0x3e21
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1ab2
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x30f0
movq %rax, %r12
movq %rax, %rdi
callq 0x1b39
testw %ax, %ax
jne 0x3e3f
movq %r15, %rdi
callq 0x1030
movq %r12, %rdi
callq 0x1030
movb (%r13), %al
incl %ebp
incq %r13
testb %al, %al
jne 0x3dde
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
callq 0x1030
leaq 0x2351(%rip), %rdi      # 0x619f
movq %r15, %rsi
callq 0x5254
movq %rax, %rbx
movq %r15, %rdi
callq 0x1030
movq %rbx, %rax
jmp 0x3e30
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/validator/validator_utils.c
// Function: prior_to_token
short		prior_to_token(char *line, int it, char token)
{
	int aux_it;

	aux_it = it;
	while (aux_it > 0 && line[aux_it] == ' ')
		aux_it--;
	if (token == '>' || token == '<')
		return (aux_it > 0 && aux_it != it &&
				(line[aux_it] == '>' ||
				line[aux_it] == '<'));
	else
	{
		return (aux_it < 1 ||
				line[aux_it] == ';' ||
				line[aux_it] == '>' ||
				line[aux_it] == '<' ||
				line[aux_it] == '|');
	}
	return (0);
}

// Assembly:
testl %esi, %esi
setle %al
jle 0x3e8b
movl %esi, %ecx
cmpb $0x20, (%rdi,%rcx)
movl %esi, %ecx
jne 0x3e91
movl %esi, %ecx
cmpl $0x2, %ecx
setl %al
jl 0x3e8f
decl %ecx
cmpb $0x20, (%rdi,%rcx)
je 0x3e79
jmp 0x3e91
movl %esi, %ecx
jmp 0x3e91
xorl %ecx, %ecx
andb $-0x3, %dl
cmpb $0x3c, %dl
jne 0x3ea5
cmpl %esi, %ecx
sete %dl
orb %dl, %al
je 0x3ec7
xorl %eax, %eax
retq
movw $0x1, %ax
testl %ecx, %ecx
jle 0x3ea4
movl %ecx, %ecx
movzbl (%rdi,%rcx), %ecx
leal -0x3b(%rcx), %edx
cmpl $0x2, %edx
jb 0x3ea4
cmpl $0x3e, %ecx
je 0x3ea4
cmpl $0x7c, %ecx
je 0x3ea4
jmp 0x3ea2
movl %ecx, %eax
movb (%rdi,%rax), %cl
andb $-0x3, %cl
xorl %eax, %eax
cmpb $0x3c, %cl
sete %al
retq
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/validator/validator_utils.c
// Function: nothing_after_pipe
short		nothing_after_pipe(char *line, int it)
{
	if ((it - 2) >= 0 && *(line - 2) == '\\')
		return (0);
	while (*line && *line == ' ')
		line++;
	if (!*line)
		return (1);
	return (0);
}

// Assembly:
cmpl $0x2, %esi
jl 0x3ee6
cmpb $0x5c, -0x2(%rdi)
jne 0x3ee6
xorl %eax, %eax
retq
movb (%rdi), %cl
incq %rdi
cmpb $0x20, %cl
je 0x3ee6
xorl %eax, %eax
testb %cl, %cl
sete %al
retq
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/validator/validator_utils.c
// Function: get_validator_err
int			get_validator_err(t_shell *shell,
		char *line, char separator, int it)
{
	if (separator == ';')
		print_errors(shell, "syntax error near unexpected token `;'", NULL);
	else if (separator == '|')
		print_errors(shell, "syntax error near unexpected token `|'", NULL);
	else if (separator == '>' && line[it + 1] == '>')
		print_errors(shell, "syntax error near unexpected token `>>'", NULL);
	else if (separator == '>')
		print_errors(shell, "syntax error near unexpected token `>'", NULL);
	else if (separator == '<' && line[it + 1] == '<')
		print_errors(shell, "syntax error near unexpected token `<<'", NULL);
	else if (separator == '<')
		print_errors(shell, "syntax error near unexpected token `<'", NULL);
	shell->stat_loc = 2;
	return (1);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpl $0x3d, %edx
jg 0x3f23
cmpl $0x3b, %edx
je 0x3f36
cmpl $0x3c, %edx
jne 0x3f63
movslq %ecx, %rax
cmpb $0x3c, 0x1(%rsi,%rax)
leaq 0x2324(%rip), %rax      # 0x623e
leaq 0x2345(%rip), %rsi      # 0x6266
jmp 0x3f55
cmpl $0x3e, %edx
je 0x3f3f
cmpl $0x7c, %edx
jne 0x3f63
leaq 0x2294(%rip), %rsi      # 0x61c8
jmp 0x3f59
leaq 0x2264(%rip), %rsi      # 0x61a1
jmp 0x3f59
movslq %ecx, %rax
cmpb $0x3e, 0x1(%rsi,%rax)
leaq 0x22a1(%rip), %rax      # 0x61ef
leaq 0x22c2(%rip), %rsi      # 0x6217
cmoveq %rax, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x47e8
movl $0x2, 0x28(%rbx)
movl $0x1, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/validator/validator_utils.c
// Function: safe_print_err
void		safe_print_err(t_shell *shell, char *key)
{
	char	*tmp;

	tmp = ft_strjoin(key, ": ambiguous redirect");
	print_errors(shell, tmp, NULL);
	free(tmp);
	free(key);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x230a(%rip), %rsi      # 0x628d
movq %rbx, %rdi
callq 0x5254
movq %rax, %r15
movq %r14, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x47e8
movq %r15, %rdi
callq 0x1030
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/redirections/redirections.c
// Function: find_redirections
int				find_redirections(t_shell *shell)
{
	size_t	it;
	int		fd;

	it = 0;
	while (shell->args[it])
	{
		if (validator(shell, shell->args[it]))
		{
			if (ft_strcmp(shell->args[it], ">"))
				fd = redirections_output(shell, it);
			else if (ft_strcmp(shell->args[it], "<"))
				fd = redirections_input(shell, it);
			else if (ft_strcmp(shell->args[it], ">>"))
				fd = redirections_append(shell, it);
			else
				it++;
		}
		else
		{
			fd = -1;
			break ;
		}
	}
	return (fd);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x18(%rdi), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x413f
movq %rdi, %rbx
xorl %r15d, %r15d
leaq 0x228a(%rip), %r14      # 0x6262
leaq 0x22c6(%rip), %r12      # 0x62a5
leaq 0x22bc(%rip), %r13      # 0x62a2
xorl %edx, %edx
xorl %ecx, %ecx
movzbl (%rax), %esi
cmpl $0x3b, %esi
jle 0x4001
cmpl $0x3c, %esi
je 0x4010
cmpl $0x3e, %esi
jne 0x400a
incq %rdx
jmp 0x4013
cmpl $0x20, %esi
je 0x4013
testl %esi, %esi
je 0x4018
xorl %edx, %edx
xorl %ecx, %ecx
jmp 0x4013
incq %rcx
incq %rax
jmp 0x3fea
cmpq $0x3, %rdx
jae 0x4141
cmpq $0x2, %rcx
ja 0x4153
movq 0x18(%rbx), %rax
movq (%rax,%r15,8), %rdi
movq %r12, %rsi
callq 0x5478
testq %rax, %rax
je 0x4060
movq %rbx, %rdi
movq %r15, %rsi
callq 0x423b
movl %eax, %ebp
movq 0x18(%rbx), %rax
movq (%rax,%r15,8), %rax
testq %rax, %rax
jne 0x3fe6
jmp 0x4186
movq 0x18(%rbx), %rax
movq (%rax,%r15,8), %rdi
movq %r13, %rsi
callq 0x5478
movq 0x18(%rbx), %rcx
testq %rax, %rax
je 0x40b0
cmpq $0x0, 0x8(%rcx,%r15,8)
je 0x40d5
movq %rbx, %rdi
movq %r15, %rsi
callq 0x42de
movswl %ax, %ebp
cmpw $-0x1, %bp
je 0x409e
movl %ebp, %edi
xorl %esi, %esi
callq 0x1070
movq 0x18(%rbx), %rdx
movq (%rdx,%r15,8), %rsi
movq %rbx, %rdi
callq 0x1d4c
jmp 0x40f2
movq (%rcx,%r15,8), %rdi
leaq 0x21e9(%rip), %rsi      # 0x62a4
callq 0x5478
testq %rax, %rax
je 0x4137
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4198
jmp 0x404c
movl $0x2, 0x28(%rbx)
movq %rbx, %rdi
leaq 0x21e6(%rip), %rsi      # 0x62cc
xorl %edx, %edx
callq 0x47e8
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq 0x18(%rbx), %rdx
movq (%rdx,%r15,8), %rsi
movq %rbx, %rdi
callq 0x1d4c
testq %r15, %r15
jne 0x404e
movq 0x18(%rbx), %rax
cmpq $0x0, (%rax)
je 0x404e
movq 0x8(%rbx), %rdi
callq 0x1030
movq 0x18(%rbx), %rax
movq (%rax), %rdi
callq 0x5210
movq %rax, 0x8(%rbx)
jmp 0x404e
incq %r15
jmp 0x404e
jmp 0x4186
leaq 0x20cc(%rip), %rax      # 0x6214
leaq 0x20c4(%rip), %r14      # 0x6213
cmoveq %rax, %r14
leaq 0x214d(%rip), %rdi      # 0x62a7
movq %r14, %rsi
callq 0x5254
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x47e8
movq %r14, %rdi
callq 0x1030
movl $0x2, 0x28(%rbx)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/redirections/redirections_utils.c
// Function: redirections_append
int		redirections_append(t_shell *shell, size_t it)
{
	int fd;

	fd = -1;
	if (!(shell->args[it + 1]))
	{
		shell->stat_loc = 2;
		print_errors(shell,
				"syntax error near unexpected token `newline'", NULL);
	}
	else
	{
		if ((fd = open(shell->args[it + 1],
						O_CREAT | O_APPEND | O_WRONLY, 0644)) == -1)
		{
			shell->stat_loc = 1;
			print_errors(shell,
					" No such file or directory", shell->args[it + 1]);
		}
		else
			dup2(fd, 1);
		delete_environment(shell, shell->args[it], shell->args);
	}
	delete_environment(shell, shell->args[it], shell->args);
	return (fd);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x18(%rdi), %rax
movq 0x8(%rax,%rsi,8), %rdi
testq %rdi, %rdi
je 0x41d6
movl $0x441, %esi            # imm = 0x441
movl $0x1a4, %edx            # imm = 0x1A4
xorl %eax, %eax
callq 0x1180
movl %eax, %ebp
cmpl $-0x1, %eax
je 0x41f5
movl %ebp, %edi
movl $0x1, %esi
callq 0x1070
jmp 0x4214
movl $0x2, 0x28(%rbx)
leaq 0x20e8(%rip), %rsi      # 0x62cc
movq %rbx, %rdi
xorl %edx, %edx
callq 0x47e8
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x4224
movl $0x1, 0x28(%rbx)
movq 0x18(%rbx), %rax
movq 0x8(%rax,%r14,8), %rdx
leaq 0x1e9c(%rip), %rsi      # 0x60a8
movq %rbx, %rdi
callq 0x47e8
movq 0x18(%rbx), %rdx
movq (%rdx,%r14,8), %rsi
movq %rbx, %rdi
callq 0x1d4c
movq 0x18(%rbx), %rdx
movq (%rdx,%r14,8), %rsi
movq %rbx, %rdi
callq 0x1d4c
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/redirections/redirections_utils.c
// Function: redirections_output
int		redirections_output(t_shell *shell, size_t it)
{
	int fd;

	fd = -1;
	if (!(shell->args[it + 1]))
	{
		shell->stat_loc = 2;
		print_errors(shell,
				"syntax error near unexpected token `newline'", NULL);
	}
	else
	{
		if ((fd = open(shell->args[it + 1],
						O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1)
		{
			shell->stat_loc = 1;
			print_errors(shell,
					" No such file or directory", shell->args[it + 1]);
		}
		else
			dup2(fd, 1);
		delete_environment(shell, shell->args[it], shell->args);
	}
	delete_environment(shell, shell->args[it], shell->args);
	return (fd);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x18(%rdi), %rax
movq 0x8(%rax,%rsi,8), %rdi
testq %rdi, %rdi
je 0x4279
movl $0x241, %esi            # imm = 0x241
movl $0x1a4, %edx            # imm = 0x1A4
xorl %eax, %eax
callq 0x1180
movl %eax, %ebp
cmpl $-0x1, %eax
je 0x4298
movl %ebp, %edi
movl $0x1, %esi
callq 0x1070
jmp 0x42b7
movl $0x2, 0x28(%rbx)
leaq 0x2045(%rip), %rsi      # 0x62cc
movq %rbx, %rdi
xorl %edx, %edx
callq 0x47e8
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x42c7
movl $0x1, 0x28(%rbx)
movq 0x18(%rbx), %rax
movq 0x8(%rax,%r14,8), %rdx
leaq 0x1df9(%rip), %rsi      # 0x60a8
movq %rbx, %rdi
callq 0x47e8
movq 0x18(%rbx), %rdx
movq (%rdx,%r14,8), %rsi
movq %rbx, %rdi
callq 0x1d4c
movq 0x18(%rbx), %rdx
movq (%rdx,%r14,8), %rsi
movq %rbx, %rdi
callq 0x1d4c
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/redirections/redirections_utils.c
// Function: redirection_exists
short	redirection_exists(t_shell *shell, size_t it)
{
	struct stat	s;
	int			fd;

	fd = -1;
	if ((fd = open(shell->args[it + 1], O_RDONLY, 0644)) == -1)
	{
		if (stat(shell->args[it + 1], &s) != -1)
		{
			if (!(s.st_mode & S_IRUSR) ||
					(s.st_mode & S_IRUSR && (!(s.st_mode & S_IXUSR))))
			{
				shell->stat_loc = 1;
				print_errors(shell, " Permission denied", shell->args[it + 1]);
			}
		}
		else
		{
			shell->stat_loc = 1;
			print_errors(shell,
					" No such file or directory", shell->args[it + 1]);
		}
	}
	return (fd);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x90, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x18(%rdi), %rax
movq 0x8(%rax,%rsi,8), %rdi
xorl %esi, %esi
movl $0x1a4, %edx            # imm = 0x1A4
xorl %eax, %eax
callq 0x1180
movl %eax, %ebp
cmpl $-0x1, %eax
jne 0x4358
movq 0x18(%rbx), %rax
movq 0x8(%rax,%r14,8), %rdi
movq %rsp, %rsi
callq 0x1130
cmpl $-0x1, %eax
je 0x4339
movl 0x18(%rsp), %eax
notl %eax
testl $0x140, %eax            # imm = 0x140
je 0x4358
leaq 0x1d4c(%rip), %rsi      # 0x6083
jmp 0x4340
leaq 0x1d68(%rip), %rsi      # 0x60a8
movl $0x1, 0x28(%rbx)
movq 0x18(%rbx), %rax
movq 0x8(%rax,%r14,8), %rdx
movq %rbx, %rdi
callq 0x47e8
movl %ebp, %eax
addq $0x90, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/search/search.c
// Function: search_binary_in_pwd
char			*search_binary_in_pwd(t_shell *shell)
{
	struct stat		s;
	struct dirent	*direntp;
	DIR				*pdir;

	if (stat(".", &s) != -1 &&
		s.st_mode & S_IFDIR)
	{
		if (!(pdir = opendir(".")))
			return (NULL);
		while ((direntp = readdir(pdir)))
		{
			if (ft_strcmp(direntp->d_name, shell->args[0]))
			{
				closedir(pdir);
				return (absolute_bin_path(".", shell->binary));
			}
			direntp++;
		}
		closedir(pdir);
	}
	shell->stat_loc = 127;
	print_errors(shell, " No such file or directory", shell->binary);
	return (NULL);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rdi, %rbx
leaq 0x1cef(%rip), %rdi      # 0x606b
leaq 0x8(%rsp), %rsi
callq 0x1130
cmpl $-0x1, %eax
je 0x43f5
testb $0x40, 0x21(%rsp)
je 0x43f5
leaq 0x1cd2(%rip), %rdi      # 0x606b
callq 0x1050
testq %rax, %rax
je 0x440f
movq %rax, %r14
movq %r14, %rdi
callq 0x1150
testq %rax, %rax
je 0x43ed
addq $0x13, %rax
movq 0x18(%rbx), %rcx
movq (%rcx), %rsi
movq %rax, %rdi
callq 0x5478
testq %rax, %rax
je 0x43a6
movq %r14, %rdi
callq 0x10d0
movq 0x8(%rbx), %rsi
leaq 0x1c8d(%rip), %rdi      # 0x606b
addq $0x98, %rsp
popq %rbx
popq %r14
jmp 0x4a0b
movq %r14, %rdi
callq 0x10d0
movl $0x7f, 0x28(%rbx)
movq 0x8(%rbx), %rdx
leaq 0x1ca1(%rip), %rsi      # 0x60a8
movq %rbx, %rdi
callq 0x47e8
xorl %eax, %eax
addq $0x98, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/search/search.c
// Function: search_binary
char			*search_binary(t_shell *shell, char **paths)
{
	size_t			it;
	struct stat		s;
	char			*bin_name;

	it = -1;
	bin_name = ft_strdup(shell->args[0]);
	to_lower_in(bin_name);
	while (paths[++it])
		if (binary_path_exists(shell, paths[it], bin_name, &s))
			return (absolute_bin_path(paths[it], shell->binary));
	if (stat(bin_name, &s) != -1)
		return (check_command(shell, bin_name, s));
	else if (lstat(bin_name, &s) != -1 ||
			!ft_strncmp(bin_name, "./", 2) || ft_strchr(shell->args[0], '/'))
	{
		shell->stat_loc = 127;
		print_errors(shell, " No such file or directory", shell->binary);
		free(bin_name);
		return (NULL);
	}
	else
		return (check_command(shell, bin_name, s));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rsi, %r15
movq %rdi, %rbx
movq 0x18(%rdi), %rax
movq (%rax), %rdi
callq 0x5210
movq %rax, %r14
movq %rax, %rdi
callq 0x4658
movq (%r15), %r13
testq %r13, %r13
je 0x44be
xorl %ebp, %ebp
leaq 0x98(%rsp), %r12
movq %r13, %rdi
movq %r12, %rsi
callq 0x1130
cmpl $-0x1, %eax
je 0x44b1
testb $0x40, 0xb1(%rsp)
je 0x44b1
movq %r13, %rdi
callq 0x1050
testq %rax, %rax
je 0x44b1
movq %rax, %r13
movq %r13, %rdi
callq 0x1150
testq %rax, %rax
je 0x44a9
addq $0x13, %rax
movq %rax, %rdi
movq %r14, %rsi
callq 0x5478
testq %rax, %rax
je 0x4486
jmp 0x44f3
movq %r13, %rdi
callq 0x10d0
movq 0x8(%r15,%rbp,8), %r13
incq %rbp
testq %r13, %r13
jne 0x445c
leaq 0x98(%rsp), %rsi
movq %r14, %rdi
callq 0x1130
cmpl $-0x1, %eax
je 0x4528
leaq 0x98(%rsp), %rsi
movl $0x12, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x45a6
jmp 0x4561
movl $0x1, 0x30(%rbx)
movq %r13, %rdi
callq 0x10d0
movq %r14, %rdi
callq 0x1030
movq (%r15,%rbp,8), %rdi
movq 0x8(%rbx), %rsi
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4a0b
leaq 0x98(%rsp), %rsi
movq %r14, %rdi
callq 0x10f0
cmpl $-0x1, %eax
je 0x4573
movl $0x7f, 0x28(%rbx)
movq 0x8(%rbx), %rdx
leaq 0x1b59(%rip), %rsi      # 0x60a8
movq %rbx, %rdi
callq 0x47e8
movq %r14, %rdi
callq 0x1030
xorl %eax, %eax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1d7f(%rip), %rsi      # 0x62f9
movl $0x2, %edx
movq %r14, %rdi
callq 0x5440
testl %eax, %eax
je 0x453d
movq 0x18(%rbx), %rax
movq (%rax), %rdi
movl $0x2f, %esi
callq 0x51f0
testq %rax, %rax
jne 0x453d
jmp 0x44d3
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/search/search.c
// Function: check_command
static	char	*check_command(t_shell *shell, char *bin_name, struct stat s)
{
	if (command_exists(shell, bin_name, s))
	{
		free(bin_name);
		return (ft_strdup(shell->binary));
	}
	free(bin_name);
	return (NULL);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl $0xf000, %eax           # imm = 0xF000
andl 0x38(%rsp), %eax
movl %eax, %ecx
negw %cx
jo 0x45c8
cmpl $0x4000, %eax           # imm = 0x4000
jne 0x4617
movq 0x18(%r14), %rax
movq (%rax), %rdi
leaq 0x1d24(%rip), %rsi      # 0x62fa
movl $0x1, %edx
callq 0x5440
testl %eax, %eax
je 0x4617
movq 0x18(%r14), %rax
movq (%rax), %rdi
leaq 0x1d07(%rip), %rsi      # 0x62f9
movl $0x2, %edx
callq 0x5440
testl %eax, %eax
je 0x4617
movq 0x18(%r14), %rax
movq (%rax), %r15
movq %rbx, %rdi
callq 0x541c
cmpb $0x2f, -0x1(%r15,%rax)
jne 0x462d
movq %rbx, %rdi
callq 0x1030
movq 0x8(%r14), %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x5210
movl $0x7f, 0x28(%r14)
movq 0x8(%r14), %rdx
leaq 0x1cbc(%rip), %rsi      # 0x62fc
movq %r14, %rdi
callq 0x47e8
movq %rbx, %rdi
callq 0x1030
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/get_next_line.c
// Function: add_char
char	*add_char(char *line, char buffer)
{
	char	*output;
	int		l;

	l = 0;
	while (line && line[l])
		l++;
	if (!(output = malloc((l + 2) * sizeof(char))))
		return (NULL);
	l = 0;
	while (line && line[l])
	{
		output[l] = line[l];
		l++;
	}
	output[l] = buffer;
	output[l + 1] = '\0';
	free(line);
	return (output);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
testq %rdi, %rdi
je 0x469f
xorl %edi, %edi
cmpb $0x0, (%rbx,%rdi)
je 0x469a
incq %rdi
testq %rbx, %rbx
jne 0x468c
addl $0x2, %edi
jmp 0x46a4
movl $0x2, %edi
callq 0x1160
testq %rax, %rax
je 0x46d1
movq %rax, %r14
xorl %eax, %eax
testq %rbx, %rbx
je 0x46db
movb (%rbx,%rax), %dl
testb %dl, %dl
je 0x46d6
leaq 0x1(%rax), %rcx
movb %dl, (%r14,%rax)
movq %rcx, %rax
testq %rbx, %rbx
jne 0x46b8
jmp 0x46d9
xorl %r14d, %r14d
jmp 0x46ed
movq %rax, %rcx
movl %ecx, %eax
movb %bpl, (%r14,%rax)
movb $0x0, 0x1(%r14,%rax)
movq %rbx, %rdi
callq 0x1030
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/get_next_line.c
// Function: get_next_line
int		get_next_line(char **line)
{
	int		output;
	char	buffer;

	if (!(*line = malloc(sizeof(char))))
		return (-1);
	**line = '\0';
	buffer = 0;
	output = 1;
	while (output || buffer)
	{
		if ((output = read(0, &buffer, 1)) == -1)
			return (-1);
		if (buffer == '\n')
			break ;
		if (!output)
			ft_putstr_fd("\033[J", 1);
		else if (!(*line = add_char(*line, buffer)))
			return (-1);
	}
	return (output);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
movl $0x1, %edi
callq 0x1160
movq %rax, (%r14)
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x4789
xorl %ecx, %ecx
movb %cl, (%rax)
leaq 0xf(%rsp), %r15
movb %cl, (%r15)
leaq 0x1bf1(%rip), %r12      # 0x6320
movl $0x1, %edx
xorl %edi, %edi
movq %r15, %rsi
callq 0x10e0
movq %rax, %r13
cmpl $-0x1, %r13d
je 0x4789
movb 0xf(%rsp), %al
cmpb $0xa, %al
je 0x4786
testl %r13d, %r13d
je 0x4769
movq (%r14), %rdi
movsbl %al, %esi
callq 0x467c
movq %rax, (%r14)
testq %rax, %rax
jne 0x4776
jmp 0x4789
movq %r12, %rdi
movl $0x1, %esi
callq 0x50a0
testl %r13d, %r13d
jne 0x472f
cmpb $0x0, 0xf(%rsp)
jne 0x472f
xorl %ebx, %ebx
jmp 0x4789
movl %r13d, %ebx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/errors.c
// Function: print_errors
void	print_errors(t_shell *shell, char *msg, char *bin)
{
	(void)shell;
	ft_putstr_fd("minishell: ", 2);
	if (bin)
	{
		ft_putstr_fd(bin, 2);
		ft_putchar_fd(':', 2);
	}
	ft_putstr_fd(msg, 2);
	ft_putstr_fd("\n", 2);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
leaq 0x1b2b(%rip), %rdi      # 0x6324
movl $0x2, %esi
callq 0x50a0
testq %r14, %r14
je 0x4824
movq %r14, %rdi
movl $0x2, %esi
callq 0x50a0
movl $0x3a, %edi
movl $0x2, %esi
callq 0x503c
movq %rbx, %rdi
movl $0x2, %esi
callq 0x50a0
leaq 0x17e5(%rip), %rdi      # 0x601d
movl $0x2, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x50a0
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/clean.c
// Function: clean_matrix
void	clean_matrix(char **matrix)
{
	if (matrix)
	{
		while (*matrix)
		{
			free(*matrix);
			matrix++;
		}
	}
}

// Assembly:
testq %rdi, %rdi
je 0x4873
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x4872
addq $0x8, %rbx
callq 0x1030
movq (%rbx), %rdi
addq $0x8, %rbx
testq %rdi, %rdi
jne 0x4861
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/clean.c
// Function: clean_commands
void	clean_commands(t_shell *shell)
{
	clean_matrix(shell->commands);
	free(shell->commands);
	shell->commands = NULL;
	clean_matrix(shell->args);
	free(shell->args);
	shell->args = NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %r14
testq %r14, %r14
je 0x4922
movq (%r14), %rdi
testq %rdi, %rdi
je 0x4922
addq $0x8, %r14
callq 0x1030
movq (%r14), %rdi
addq $0x8, %r14
testq %rdi, %rdi
jne 0x4911
movq 0x10(%rbx), %rdi
callq 0x1030
movq $0x0, 0x10(%rbx)
movq 0x18(%rbx), %r14
testq %r14, %r14
je 0x4959
movq (%r14), %rdi
testq %rdi, %rdi
je 0x4959
addq $0x8, %r14
callq 0x1030
movq (%r14), %rdi
addq $0x8, %r14
testq %rdi, %rdi
jne 0x4948
movq 0x18(%rbx), %rdi
callq 0x1030
movq $0x0, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/utils.c
// Function: ft_strdup_matrix
char	**ft_strdup_matrix(char **envp)
{
	char	**tmp_envp;
	int		l;
	int		i;

	i = 0;
	l = 0;
	while (envp[l])
		l++;
	if (!(tmp_envp = malloc((l + 1) * sizeof(char *))))
		return (NULL);
	while (*envp)
	{
		tmp_envp[i] = ft_strdup(*envp);
		envp++;
		i++;
	}
	tmp_envp[i] = NULL;
	return (tmp_envp);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorl %edi, %edi
cmpq $0x0, (%rbx,%rdi)
leaq 0x8(%rdi), %rdi
jne 0x49a8
movabsq $0x7fffffff8, %rax      # imm = 0x7FFFFFFF8
andq %rax, %rdi
callq 0x1160
testq %rax, %rax
je 0x49f3
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x49f8
xorl %r15d, %r15d
callq 0x5210
movq %rax, (%r14,%r15,8)
movq 0x8(%rbx,%r15,8), %rdi
incq %r15
testq %rdi, %rdi
jne 0x49d8
movl %r15d, %eax
jmp 0x49fa
xorl %r14d, %r14d
jmp 0x4a02
xorl %eax, %eax
movq $0x0, (%r14,%rax,8)
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/utils.c
// Function: absolute_bin_path
char	*absolute_bin_path(char *path, char *bin)
{
	char *tmp;

	tmp = ft_strjoin(path, "/");
	path = ft_strjoin(tmp, bin);
	free(tmp);
	return (path);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
leaq 0x18e1(%rip), %rsi      # 0x62fa
callq 0x5254
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x5254
movq %rax, %rbx
movq %r14, %rdi
callq 0x1030
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/utils.c
// Function: add_env
char	**add_env(char **variable, char **env, int n)
{
	char	**tmp_envp;
	int		i;

	i = 0;
	if (env[n])
		tmp_envp = realloc_matrix(env, 0);
	else
		tmp_envp = realloc_matrix(env, 1);
	tmp_envp[n] = ft_strdup(*variable);
	while (*env)
	{
		if (i != n)
			tmp_envp[i] = ft_strdup(*env);
		env++;
		i++;
	}
	if (i != n)
		tmp_envp[i] = NULL;
	else
		tmp_envp[i + 1] = NULL;
	return (tmp_envp);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r12
movslq %edx, %r13
cmpq $0x0, (%rsi,%r13,8)
je 0x4a94
movq $-0x1, %rdi
movabsq $0x100000000, %rax      # imm = 0x100000000
cmpq $0x0, 0x8(%r14,%rdi,8)
leaq 0x1(%rdi), %rdi
jne 0x4a86
jmp 0x4ab1
movq $-0x1, %rdi
movabsq $0x200000000, %rax      # imm = 0x200000000
cmpq $0x0, 0x8(%r14,%rdi,8)
leaq 0x1(%rdi), %rdi
jne 0x4aa5
shlq $0x20, %rdi
addq %rax, %rdi
sarq $0x1d, %rdi
callq 0x1160
movq %rax, %r15
movq (%r12), %rdi
callq 0x5210
movq %rax, (%r15,%r13,8)
movq (%r14), %rdi
testq %rdi, %rdi
je 0x4afc
movl %ebx, %r13d
xorl %r12d, %r12d
cmpq %r12, %r13
je 0x4aed
callq 0x5210
movq %rax, (%r15,%r12,8)
movq 0x8(%r14,%r12,8), %rdi
incq %r12
testq %rdi, %rdi
jne 0x4adf
jmp 0x4aff
xorl %r12d, %r12d
xorl %eax, %eax
cmpl %ebx, %r12d
sete %al
addl %r12d, %eax
movq $0x0, (%r15,%rax,8)
movq %r15, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/pipes.c
// Function: find_pipes
void			find_pipes(t_shell *shell)
{
	pid_t	pid;
	pid_t	aux_pid;
	int		p[2];
	int		it;
	int		std[2];

	it = -1;
	std[0] = dup(0);
	std[1] = dup(1);
	while (shell->commands[++it])
	{
		get_args_and_binary(shell, it);
		pipe(p);
		pid = child_pipe(shell, it, p);
		wait_child(shell, p, pid, it);
	}
	while ((aux_pid = wait(&shell->stat_loc)) > 0)
		if (aux_pid < pid)
			shell->stat_loc = WEXITSTATUS(shell->stat_loc);
	shell->stat_loc = WEXITSTATUS(shell->stat_loc);
	dup2(std[0], 0);
	dup2(std[1], 1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
xorl %edi, %edi
callq 0x1080
movl %eax, %ebp
movl $0x1, %edi
callq 0x1080
movl %eax, 0x14(%rsp)
movq 0x10(%rbx), %rax
movq (%rax), %rsi
testq %rsi, %rsi
je 0x4c2a
leaq 0x28(%rbx), %r15
xorl %r14d, %r14d
leaq 0xc(%rsp), %r12
movq %rbx, %rdi
callq 0x3238
movq %rax, %r13
movq 0x10(%rbx), %rax
movq (%rax,%r14), %rdi
callq 0x1030
movq %r13, %rdi
callq 0x34c8
movq %rax, 0x18(%rbx)
movq %r13, %rdi
callq 0x1030
movq 0x18(%rbx), %rax
movq (%rax), %rdi
callq 0x5210
movq %rax, 0x8(%rbx)
movq %r12, %rdi
callq 0x10c0
callq 0x11b0
testl %eax, %eax
je 0x4c73
movl %eax, %r13d
movl 0x10(%rsp), %edi
callq 0x10b0
movl 0xc(%rsp), %edi
xorl %esi, %esi
callq 0x1070
movq 0x10(%rbx), %rax
cmpq $0x0, (%rax,%r14)
je 0x4be7
movl %r13d, %edi
movq %r15, %rsi
movl $0x1, %edx
callq 0x1170
movzbl 0x29(%rbx), %eax
movl %eax, 0x28(%rbx)
movl 0xc(%rsp), %edi
callq 0x10b0
movq 0x18(%rbx), %rdi
callq 0x484c
movq 0x18(%rbx), %rdi
callq 0x1030
movq 0x8(%rbx), %rdi
callq 0x1030
movq 0x10(%rbx), %rax
movq 0x8(%rax,%r14), %rsi
addq $0x8, %r14
testq %rsi, %rsi
jne 0x4b64
jmp 0x4c2a
addq $0x28, %rbx
jmp 0x4c3b
cmpl %r13d, %eax
jge 0x4c3b
movzbl 0x1(%rbx), %eax
movl %eax, (%rbx)
movq %rbx, %rdi
callq 0x11a0
testl %eax, %eax
jg 0x4c30
movzbl 0x1(%rbx), %eax
movl %eax, (%rbx)
movl %ebp, %edi
xorl %esi, %esi
callq 0x1070
movl 0x14(%rsp), %edi
movl $0x1, %esi
callq 0x1070
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0xc(%rsp), %edi
callq 0x10b0
movq 0x10(%rbx), %rax
cmpq $0x0, 0x8(%rax,%r14)
je 0x4c96
movl 0x10(%rsp), %edi
movl $0x1, %esi
callq 0x1070
movq %rbx, %rdi
callq 0x3fb0
movq %rbx, %rdi
callq 0x4cb7
movl 0x10(%rsp), %edi
callq 0x10b0
movl 0x28(%rbx), %edi
callq 0x1190
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/pipes.c
// Function: exec_arg
static void		exec_arg(t_shell *shell)
{
	char	*path;

	if (!check_builtin(shell))
	{
		path = get_path(shell);
		if (path)
		{
			if (check_permissions(shell, path))
				execve(path, shell->args, shell->env);
		}
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x164f
testl %eax, %eax
je 0x4ccf
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rbx, %rdi
callq 0x14e4
testq %rax, %rax
je 0x4cc7
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4d08
testl %eax, %eax
je 0x4cc7
movq 0x18(%rbx), %rsi
movq 0x20(%rbx), %rdx
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1100
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/permissions.c
// Function: check_permissions
int			check_permissions(t_shell *shell, char *path)
{
	struct stat s;

	if (stat(path, &s) != -1)
	{
		if (s.st_mode & S_IFDIR)
		{
			return (set_err_message(shell, " is a directory", 126,
						shell->binary));
		}
		if (shell->is_binary == 1 && (!(s.st_mode & S_IXUSR)))
			return (set_err_message(shell, " Permission denied", 126, path));
		else if (shell->is_binary == 0 &&
				(!(s.st_mode & S_IXUSR) || !(s.st_mode & S_IRUSR)))
			return (set_err_message(shell, " Permission denied", 126, path));
		return (1);
	}
	else
		return (set_err_message(shell, " command not found", 127
								, shell->binary));
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x1130
cmpl $-0x1, %eax
je 0x4d73
movl 0x20(%rsp), %eax
btl $0xe, %eax
jb 0x4d87
movl 0x30(%rbx), %ecx
movl %ecx, %edx
xorl $0x1, %edx
movl %eax, %esi
andl $0x40, %esi
orl %edx, %esi
je 0x4d5d
testl %ecx, %ecx
setne %cl
notl %eax
testl $0x140, %eax            # imm = 0x140
sete %al
orb %cl, %al
movl $0x1, %eax
jne 0x4da3
movl $0x7e, 0x28(%rbx)
leaq 0x1318(%rip), %rsi      # 0x6083
movq %rbx, %rdi
movq %r14, %rdx
jmp 0x4d9c
movq 0x8(%rbx), %rdx
movl $0x7f, 0x28(%rbx)
leaq 0x1577(%rip), %rsi      # 0x62fc
jmp 0x4d99
movq 0x8(%rbx), %rdx
movl $0x7e, 0x28(%rbx)
leaq 0x1597(%rip), %rsi      # 0x6330
movq %rbx, %rdi
callq 0x47e8
xorl %eax, %eax
addq $0x98, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/srcs/shlvl.c
// Function: handle_shlvl
void			handle_shlvl(t_shell *shell)
{
	char					*shlvl;
	int						lvl;
	char					*tmp;

	shlvl = get_env(shell, "SHLVL=");
	if (!shlvl)
	{
		free(shlvl);
		shlvl = "0";
	}
	lvl = (int)ft_atoi(shlvl) + 1;
	free(shlvl);
	if (lvl < 0 && lvl >= INT_MIN)
		lvl = 0;
	else if (lvl > 2000000)
	{
		shlvl_error(shell, lvl);
		lvl = 1;
	}
	shlvl = ft_itoa(lvl);
	tmp = ft_strjoin("SHLVL=", shlvl);
	ft_export(shell, tmp);
	free(tmp);
	free(shlvl);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x1581(%rip), %rsi      # 0x6340
callq 0x1dd3
testq %rax, %rax
leaq 0x1579(%rip), %r15      # 0x6347
cmovneq %rax, %r15
movq %r15, %rdi
callq 0x4ea4
movq %rax, %r14
movq %r15, %rdi
callq 0x1030
xorl %edi, %edi
cmpl $-0x1, %r14d
jl 0x4e68
leal 0x1(%r14), %edi
cmpl $0x1e8480, %r14d        # imm = 0x1E8480
jl 0x4e68
callq 0x4f74
movq %rax, %r14
leaq 0x1540(%rip), %rdi      # 0x6349
movq %rax, %rsi
callq 0x5254
movq %rax, %r15
movq %r14, %rdi
callq 0x1030
movq %r15, %rdi
callq 0x5210
movq %rax, %r14
movq %r15, %rdi
callq 0x1030
leaq 0x1522(%rip), %rsi      # 0x6358
movq %r14, %rdi
callq 0x5254
movq %rax, %r15
movq %r14, %rdi
callq 0x1030
leaq 0x1523(%rip), %rdx      # 0x6373
movq %rbx, %rdi
movq %r15, %rsi
callq 0x47e8
movq %r15, %rdi
callq 0x1030
movl $0x1, %edi
callq 0x4f74
movq %rax, %r14
leaq 0x14c9(%rip), %rdi      # 0x6340
movq %rax, %rsi
callq 0x5254
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x271a
movq %r15, %rdi
callq 0x1030
movq %r14, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1030
nop
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/libft/ft_atoi.c
// Function: ft_atoi
long int			ft_atoi(const char *str)
{
	long double			res;
	int					sign;
	unsigned int		i;

	res = 0;
	sign = 1;
	i = 0;
	while (str[i] == ' ' || str[i] == '\t' || str[i] == '\n' ||
			str[i] == '\r' || str[i] == '\v' || str[i] == '\f')
		i++;
	if (str[i] == '-' || str[i] == '+')
	{
		if (str[i] == '-')
			sign = -1;
		i++;
	}
	while (str[i] >= '0' && str[i] <= '9')
	{
		res = res * 10 + str[i] - '0';
		i++;
	}
	//printf("NUM: %ld", (long int)res * sign);
	return ((long double)(res * sign));
}

// Assembly:
xorl %eax, %eax
movl %eax, %ecx
movb (%rdi,%rcx), %cl
movzbl %cl, %edx
leal -0x9(%rdx), %esi
cmpl $0x5, %esi
jae 0x4eba
incl %eax
jmp 0x4ea6
cmpl $0x20, %edx
je 0x4eb6
cmpl $0x2b, %edx
je 0x4ec9
cmpl $0x2d, %edx
jne 0x4edc
cmpb $0x2d, %cl
fld1
fld %st(0)
fchs
fxch %st(1)
fcmove %st(1), %st
fstp %st(1)
incl %eax
jmp 0x4ede
fld1
movl %eax, %ecx
movb (%rdi,%rcx), %cl
leal -0x30(%rcx), %edx
fldz
cmpb $0x9, %dl
ja 0x4f19
fstp %st(0)
incl %eax
fldz
movsbl %cl, %ecx
movl %ecx, -0xc(%rsp)
fmuls 0x147c(%rip)            # 0x637c
fiaddl -0xc(%rsp)
fadds 0x1476(%rip)            # 0x6380
movl %eax, %ecx
movb (%rdi,%rcx), %cl
leal -0x30(%rcx), %edx
incl %eax
cmpb $0xa, %dl
jb 0x4ef3
fmulp %st, %st(1)
fnstcw -0x10(%rsp)
movzwl -0x10(%rsp), %eax
orl $0xc00, %eax            # imm = 0xC00
movw %ax, -0xe(%rsp)
fldcw -0xe(%rsp)
fistpll -0x8(%rsp)
fldcw -0x10(%rsp)
movq -0x8(%rsp), %rax
retq
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/libft/ft_itoa.c
// Function: ft_itoa
char		*ft_itoa(int n)
{
	int		size;
	long int	aux;
	char		*num;

	aux = n;
	size = ft_size_num(aux);
	if (!(num = (char *)malloc((size + 1) * sizeof(char))))
		return (NULL);
	num[--size + 1] = '\0';
	if (aux < 0)
		aux = -aux;
	while (size >= 0)
	{
		num[size--] = (aux % 10) + '0';
		aux = aux / 10;
	}
	if (num[0] == '0' && num[1])
		num[0] = '-';
	return (num);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movslq %edi, %r14
movabsq $-0x3333333333333333, %rbx # imm = 0xCCCCCCCCCCCCCCCD
testl %r14d, %r14d
je 0x4fb4
movq %r14, %r15
shrq $0x3f, %r15
movq %r14, %rcx
negq %rcx
cmovsq %r14, %rcx
movq %rcx, %rax
mulq %rbx
shrq $0x3, %rdx
incl %r15d
cmpq $0x9, %rcx
movq %rdx, %rcx
ja 0x4f9c
jmp 0x4fba
movl $0x1, %r15d
leal 0x1(%r15), %eax
movslq %eax, %rdi
callq 0x1160
testq %rax, %rax
je 0x5021
movq %rax, %rcx
movslq %r15d, %rax
movb $0x0, (%rcx,%rax)
testl %r15d, %r15d
jle 0x5011
movq %r14, %rsi
negq %rsi
cmovsq %r14, %rsi
movl %r15d, %edi
incq %rdi
movq %rsi, %rax
mulq %rbx
shrq $0x3, %rdx
leal (%rdx,%rdx), %eax
leal (%rax,%rax,4), %eax
subl %eax, %esi
orb $0x30, %sil
movb %sil, -0x2(%rcx,%rdi)
decq %rdi
movq %rdx, %rsi
cmpq $0x1, %rdi
jg 0x4fea
cmpb $0x30, (%rcx)
jne 0x5023
cmpb $0x0, 0x1(%rcx)
je 0x5023
movb $0x2d, (%rcx)
jmp 0x5023
xorl %ecx, %ecx
movq %rcx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/libft/ft_putendl_fd.c
// Function: ft_putendl_fd
void	ft_putendl_fd(char *s, int fd)
{
	char endl;

	if (s)
	{
		endl = '\n';
		write(fd, s, ft_strlen(s));
		write(fd, &endl, 1);
	}
}

// Assembly:
testq %rdi, %rdi
je 0x509e
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
movq %rdi, %r14
leaq 0xf(%rsp), %r15
movb $0xa, (%r15)
callq 0x541c
movl %ebx, %edi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1040
movl $0x1, %edx
movl %ebx, %edi
movq %r15, %rsi
callq 0x1040
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/libft/ft_split.c
// Function: ft_split
char			**ft_split(char const *s, char c)
{
	char	**matrix;
	size_t	i;
	size_t	matrix_size;;

	i = 0;
	if (!s)
		return (0);
	matrix_size = ft_count_words(s, c);
	if (!(matrix = (char **)malloc((matrix_size + 1) * sizeof(char*))))
		return (NULL);
	while (i < matrix_size)
	{
		while (*s == c)
			s++;		
		if (!(matrix[i] = ft_get_word(s, c)))
			return (ft_free_all(matrix, i));
		s += ft_strlen(matrix[i]);
		i++;
	}
	matrix[i] = 0;
	return (matrix);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x51dc
movl %esi, %ebx
movq %rdi, %r14
movb (%rdi), %al
xorl %r13d, %r13d
testb %al, %al
je 0x5127
cmpb %bl, %al
setne %r13b
movq %r14, %rdi
callq 0x541c
cmpq $0x1, %rax
je 0x5127
xorl %r15d, %r15d
cmpb %bl, (%r14,%r15)
jne 0x5114
xorl %eax, %eax
cmpb %bl, 0x1(%r14,%r15)
setne %al
addq %rax, %r13
incq %r15
movq %r14, %rdi
callq 0x541c
decq %rax
cmpq %rax, %r15
jb 0x5101
leaq 0x8(,%r13,8), %rdi
callq 0x1160
testq %rax, %rax
je 0x51dc
movq %rax, %rbp
testq %r13, %r13
je 0x51b2
xorl %r15d, %r15d
movq %r13, (%rsp)
decq %r14
movq %r14, %rax
incq %r14
cmpb %bl, 0x1(%rax)
je 0x514f
xorl %r12d, %r12d
movb (%r14,%r12), %al
incq %r12
cmpb %bl, %al
je 0x516c
testb %al, %al
jne 0x515d
movq %r12, %rdi
callq 0x1160
testq %rax, %rax
je 0x518c
movq %rax, %r13
movq %rax, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x53c8
jmp 0x518f
xorl %r13d, %r13d
movq %r13, (%rbp,%r15,8)
testq %r13, %r13
je 0x51c0
movq %r13, %rdi
callq 0x541c
addq %rax, %r14
incq %r15
movq (%rsp), %r13
cmpq %r13, %r15
jne 0x514c
jmp 0x51b5
xorl %r13d, %r13d
movq $0x0, (%rbp,%r13,8)
jmp 0x51de
testq %r15, %r15
je 0x51d4
movq (%rbp,%r15,8), %rdi
callq 0x1030
decq %r15
jne 0x51c5
movq %rbp, %rdi
callq 0x1030
xorl %ebp, %ebp
movq %rbp, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/libft/ft_strjoin.c
// Function: ft_strjoin
char	*ft_strjoin(char const *s1, char const *s2)
{
	char	*joint;
	size_t	l;
	size_t	i;
	size_t	j;
	
	if (!s1 || !s2)
		return (0);
	l = ft_strlen(s1) + ft_strlen(s2) + 1;
	if (!(joint = malloc(l * sizeof(char))))
		return (NULL);
	l = 0;
	i = 0;
	j = 0;
	while (l < (ft_strlen(s1) + ft_strlen(s2)))
	{
		if (l < ft_strlen(s1))
			joint[l++] = s1[i++];
		else
			joint[l++] = s2[j++];
	}
	joint[l] = '\0';
	return (joint);
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x52ba
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x541c
movq %rax, %r15
movq %rbx, %rdi
callq 0x541c
leaq (%r15,%rax), %rdi
incq %rdi
callq 0x1160
testq %rax, %rax
je 0x52bd
movq %rax, (%rsp)
movq %r14, %rdi
callq 0x541c
movq %rax, %r12
movq %rbx, %rdi
callq 0x541c
addq %r12, %rax
jne 0x52c1
xorl %r13d, %r13d
jmp 0x5333
xorl %eax, %eax
retq
xorl %eax, %eax
jmp 0x533c
xorl %r12d, %r12d
xorl %ebp, %ebp
movq %r14, 0x10(%rsp)
xorl %r13d, %r13d
movq %rbx, 0x8(%rsp)
xorl %ebx, %ebx
xorl %r15d, %r15d
movq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x541c
cmpq %rax, %r13
adcq $0x0, %rbx
cmpq %rax, %r13
sbbq $-0x1, %r15
addq 0x8(%rsp), %r12
addq %r14, %rbp
cmpq %rax, %r13
cmovaeq %r12, %rbp
movb (%rbp), %al
movq (%rsp), %rcx
movb %al, (%rcx,%r13)
incq %r13
movq %r14, %rdi
callq 0x541c
movq %rax, %r12
movq 0x8(%rsp), %rdi
callq 0x541c
addq %r12, %rax
movq %r15, %r12
movq %rbx, %rbp
cmpq %rax, %r13
jb 0x52dd
movq (%rsp), %rax
movb $0x0, (%rax,%r13)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/libft/ft_strlcat.c
// Function: ft_strlcat
size_t	ft_strlcat(char *dst, const char *src, size_t dstsize)
{
	size_t i;
	size_t j;
	size_t l_dst;

	l_dst = ft_strlen(dst);
	j = 0;
	if (dstsize < l_dst)
		return (dstsize + ft_strlen(src));
	else
	{
		i = l_dst;
		while (src[j] != '\0' && i < dstsize - 1)
		{
			dst[i] = src[j];
			i++;
			j++;
		}
		dst[i] = '\0';
		return (l_dst + ft_strlen(src));
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r12
callq 0x541c
cmpq %r15, %rax
jbe 0x5374
movq %rbx, %rdi
callq 0x541c
addq %r15, %rax
jmp 0x53bc
movq %rax, %r14
decq %r15
movb (%rbx), %al
testb %al, %al
sete %cl
cmpq %r15, %r14
setae %dl
orb %cl, %dl
jne 0x53a9
leaq 0x1(%rbx), %rdx
movq %r14, %rcx
movb %al, (%r12,%rcx)
incq %rcx
movb (%rdx), %al
testb %al, %al
je 0x53ac
incq %rdx
cmpq %r15, %rcx
jb 0x5392
jmp 0x53ac
movq %r14, %rcx
movb $0x0, (%r12,%rcx)
movq %rbx, %rdi
callq 0x541c
addq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/libft/ft_strlcpy.c
// Function: ft_strlcpy
size_t	ft_strlcpy(char *dest, const char *src, size_t size)
{
	size_t	i;
	size_t	j;

	i = 0;
	j = 0;
	if (!src || !dest)
		return (0);
	i = ft_strlen(src);
	if (size == 0)
		return (i);
	while (j < size - 1 && src[j])
	{ 
		dest[j] = src[j];
		j++;
	}
	dest[j] = '\0';
	return (i);
}

// Assembly:
testq %rsi, %rsi
sete %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x5417
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x541c
testq %r14, %r14
je 0x5411
xorl %ecx, %ecx
decq %r14
je 0x540d
movb (%r15,%rcx), %dl
testb %dl, %dl
je 0x540d
movb %dl, (%rbx,%rcx)
incq %rcx
cmpq %rcx, %r14
jne 0x53fa
movb $0x0, (%rbx,%rcx)
popq %rbx
popq %r14
popq %r15
retq
xorl %eax, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O1/vdedios[P]minishell/libft/ft_strncmp.c
// Function: ft_strncmp
int	ft_strncmp(const char *s1, const char *s2, size_t n)
{
	size_t	i;
	size_t	aux;

	aux = 1;
	i = 0;
	while (i < n && aux == 1)
	{
		if (s1[i] != s2[i])
			return ((unsigned char)s1[i] - (unsigned char)s2[i]);
		else if (s1[i] == '\0' || s2[i] == '\0')
			aux = 0;
		i++;
	}
	return (0);
}

// Assembly:
xorl %eax, %eax
testq %rdx, %rdx
je 0x546f
movl $0x1, %ecx
movzbl -0x1(%rdi,%rcx), %r9d
movzbl -0x1(%rsi,%rcx), %r8d
cmpb %r8b, %r9b
jne 0x5470
cmpq %rdx, %rcx
jae 0x546f
testb %r9b, %r9b
je 0x546f
incq %rcx
testb %r8b, %r8b
jne 0x544c
retq
subl %r8d, %r9d
movl %r9d, %eax
retq
nop