LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/shell/shell_utils_3.c
// Function: inject_spaces
char	*inject_spaces(char *line)
{
	size_t	it;
	size_t	cont;
	char	*output;

	it = -1;
	cont = additional_spaces(line);
	output = calloc(1, ft_strlen(line) + cont + 1);
	while (*line == ' ')
		line++;
	while (line[++it])
	{
		line = add_space(line, output, &it, '>');
		line = add_space(line, output, &it, '<');
	}
	ft_strlcat(output, line, line - output);
	return (output);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
callq 0x1c2e
movq %rax, %rbx
movq %r14, %rdi
callq 0x5408
leaq (%rbx,%rax), %rsi
incq %rsi
movl $0x1, %edi
callq 0x1110
movq %rax, %rbx
decq %r14
movb 0x1(%r14), %al
incq %r14
cmpb $0x20, %al
je 0x1cb3
movq $0x0, 0x8(%rsp)
testb %al, %al
je 0x1d0f
leaq 0x8(%rsp), %r15
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movl $0x3e, %ecx
callq 0x1b54
movq %rax, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movl $0x3c, %ecx
callq 0x1b54
movq %rax, %r14
movq 0x8(%rsp), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rsp)
cmpb $0x0, 0x1(%r14,%rax)
jne 0x1cd0
movq %r14, %rdx
subq %rbx, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5334
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_env.c
// Function: delete_environment
void			delete_environment(t_shell *shell, char *key, char **env)
{
	size_t	it;
	size_t	len;

	(void)shell;
	len = ft_strlen(key);
	it = 0;
	while (env[it])
	{
		if (ft_strncmp(key, env[it], len) == 0)
			break ;
		it++;
	}
	if (env[it])
	{
		free(env[it]);
		env[it] = NULL;
		it++;
		while (env[it])
		{
			env[it - 1] = env[it];
			it++;
		}
		env[it - 1] = NULL;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rsi, %rdi
callq 0x5408
movq (%rbx), %rsi
testq %rsi, %rsi
je 0x1da8
movq %rax, %r15
xorl %r12d, %r12d
movq %r14, %rdi
movq %r15, %rdx
callq 0x542c
testl %eax, %eax
je 0x1d72
movq 0x8(%rbx,%r12,8), %rsi
incq %r12
testq %rsi, %rsi
jne 0x1d54
jmp 0x1da8
movq (%rbx,%r12,8), %rdi
testq %rdi, %rdi
je 0x1da8
callq 0x1030
movq $0x0, (%rbx,%r12,8)
movq 0x8(%rbx,%r12,8), %rax
testq %rax, %rax
je 0x1da0
movq %rax, (%rbx,%r12,8)
movq 0x10(%rbx,%r12,8), %rax
incq %r12
jmp 0x1d8d
movq $0x0, (%rbx,%r12,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_env.c
// Function: get_env
char			*get_env(t_shell *shell, char *arg)
{
	size_t it;
	size_t len;

	len = ft_strlen(arg);
	it = 0;
	while (shell->env[it])
	{
		if (!ft_strncmp(shell->env[it], arg, len))
			return (ft_strdup(ft_strchr(shell->env[it], '=') + 1));
		it++;
	}
	return (ft_strdup(""));
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r15
movq %rdi, %r14
movq %rsi, %rdi
callq 0x5408
movq %rax, %r12
movq 0x20(%r14), %rax
movq (%rax), %rdi
leaq 0x4242(%rip), %rbx      # 0x601e
testq %rdi, %rdi
je 0x1e1f
xorl %r13d, %r13d
movq %r15, %rsi
movq %r12, %rdx
callq 0x542c
testl %eax, %eax
je 0x1e07
movq 0x20(%r14), %rax
movq 0x8(%rax,%r13), %rdi
addq $0x8, %r13
testq %rdi, %rdi
jne 0x1de4
jmp 0x1e1f
movq 0x20(%r14), %rax
movq (%rax,%r13), %rdi
movl $0x3d, %esi
callq 0x51dc
movq %rax, %rbx
incq %rbx
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x51fc
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_env.c
// Function: ft_env
int				ft_env(t_shell *shell, char **args)
{
	size_t	it;
	char	**to_print_env;

	if (shell->args[1])
	{
		ft_putendl_fd("env: too many arguments", 1);
		return (1);
	}
	it = 0;
	to_print_env = args;
	sort_like_bash(to_print_env);
	while (to_print_env[it])
		ft_putendl_fd(to_print_env[it++], 1);
	ft_export(shell, "_=env");
	return (1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq 0x18(%rdi), %rax
cmpq $0x0, 0x8(%rax)
je 0x1e5a
leaq 0x41f2(%rip), %rdi      # 0x603d
movl $0x1, %esi
callq 0x5048
jmp 0x1ee0
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rdi
testq %rdi, %rdi
je 0x1ed1
xorl %r12d, %r12d
leaq 0x41e9(%rip), %r15      # 0x605b
movq %r14, %r13
movl $0x5, %edx
movq %r15, %rsi
callq 0x542c
testl %eax, %eax
jne 0x1e9b
movq (%r13), %rax
movq 0x8(%r14,%r12,8), %rcx
movq %rcx, (%r13)
movq %rax, 0x8(%r14,%r12,8)
incq %r12
leaq (%r14,%r12,8), %r13
addq $0x8, %r13
incq %r12
movq (%r13), %rdi
testq %rdi, %rdi
jne 0x1e75
movq (%r14), %rdi
testq %rdi, %rdi
je 0x1ed1
addq $0x8, %r14
movl $0x1, %esi
callq 0x5048
movq (%r14), %rdi
addq $0x8, %r14
testq %rdi, %rdi
jne 0x1ebb
leaq 0x417d(%rip), %rsi      # 0x6055
movq %rbx, %rdi
callq 0x26eb
movl $0x1, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_cd/ft_cd.c
// Function: ft_cd
int		ft_cd(t_shell *shell)
{
	char	*path;
	char	*target;

	target = shell->args[1];
	if (!target || !ft_strncmp(target, "--", 3) || !ft_strncmp(target, "~", 2))
	{
		path = get_env(shell, "HOME");
		if (ft_strcmp(path, ""))
			return (home_not_exists(shell, path));
	}
	else if (!ft_strncmp(target, ".", 2) || !ft_strncmp(target, "", 1))
		path = get_env(shell, "PWD");
	else if (!ft_strncmp(target, "-", 2))
		path = get_env(shell, "OLDPWD");
	else if (shell->args[2] && *shell->args[2])
	{
		path = ft_strdup(target);
		if (shell->args[3])
			return (many_arguments(shell));
	}
	else
		path = ft_strdup(target);
	change_dir(path, shell);
	free(path);
	return (1);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rdi), %rax
movq 0x8(%rax), %r14
testq %r14, %r14
je 0x1fd9
leaq 0x4152(%rip), %rsi      # 0x6061
movl $0x3, %edx
movq %r14, %rdi
callq 0x542c
testl %eax, %eax
je 0x1fd9
leaq 0x4139(%rip), %rsi      # 0x6064
movl $0x2, %edx
movq %r14, %rdi
callq 0x542c
testl %eax, %eax
je 0x1fd9
leaq 0x4124(%rip), %rsi      # 0x606b
movl $0x2, %edx
movq %r14, %rdi
callq 0x542c
testl %eax, %eax
je 0x200c
leaq 0x40bb(%rip), %rsi      # 0x601e
movl $0x1, %edx
movq %r14, %rdi
callq 0x542c
testl %eax, %eax
je 0x200c
leaq 0x40e3(%rip), %rsi      # 0x6062
movl $0x2, %edx
movq %r14, %rdi
callq 0x542c
testl %eax, %eax
je 0x2048
movq 0x18(%rbx), %rax
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x203e
cmpb $0x0, (%rax)
je 0x203e
movq %r14, %rdi
callq 0x51fc
movq %rax, %r14
movq 0x18(%rbx), %rax
cmpq $0x0, 0x18(%rax)
je 0x201e
movq 0x8(%rbx), %rdx
leaq 0x4073(%rip), %rsi      # 0x6042
movq %rbx, %rdi
callq 0x47c0
jmp 0x2031
leaq 0x4086(%rip), %rsi      # 0x6066
movq %rbx, %rdi
callq 0x1db4
movq %rax, %r14
leaq 0x402c(%rip), %rsi      # 0x601e
movq %rax, %rdi
callq 0x5460
testq %rax, %rax
je 0x201e
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2051
jmp 0x2031
leaq 0x405d(%rip), %rsi      # 0x6070
movq %rbx, %rdi
callq 0x1db4
movq %rax, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x20a9
movq %r14, %rdi
callq 0x1030
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %r14, %rdi
callq 0x51fc
jmp 0x201b
leaq 0x401e(%rip), %rsi      # 0x606d
jmp 0x2013
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_cd/ft_cd.c
// Function: home_not_exists
short	home_not_exists(t_shell *shell, char *path)
{
	char	*tmp;

	free(path);
	path = NULL;
	tmp = ft_strdup(shell->binary);
	print_errors(shell, " HOME not set", tmp);
	free(tmp);
	return (1);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x1030
movq 0x8(%rbx), %rdi
callq 0x51fc
movq %rax, %r14
leaq 0x4001(%rip), %rsi      # 0x6074
movq %rbx, %rdi
movq %rax, %rdx
callq 0x47c0
movq %r14, %rdi
callq 0x1030
movw $0x1, %ax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_cd/ft_cd.c
// Function: change_dir
void	change_dir(char *path, t_shell *shell)
{
	char		*oldcwd;
	char		*cwd;
	char		*tmp;

	oldcwd = ft_calloc(1024, sizeof(oldcwd));
	cwd = ft_calloc(1024, sizeof(cwd));
	if (chdir(path) == 0)
	{
		getcwd(cwd, 1024);
		tmp = get_env(shell, "PWD");
		if (tmp)
			update_olddir(shell, tmp);
		else
			update_olddir(shell, "");
		free(tmp);
		if (is_symbolic_link(path))
			set_path(path, "PWD=", shell);
		else
			set_path(cwd, "PWD=", shell);
	}
	else
		change_dir_error(shell, path);
	free(oldcwd);
	free(cwd);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x90, %rsp
movq %rsi, %r15
movq %rdi, %r12
movl $0x400, %edi            # imm = 0x400
movl $0x8, %esi
callq 0x4f34
movq %rax, %rbx
movl $0x400, %edi            # imm = 0x400
movl $0x8, %esi
callq 0x4f34
movq %rax, %r14
movq %r12, %rdi
callq 0x1060
testl %eax, %eax
je 0x20fc
movq %r15, %rdi
movq %r12, %rsi
callq 0x22c1
jmp 0x216e
movl $0x400, %esi            # imm = 0x400
movq %r14, %rdi
callq 0x10a0
leaq 0x3f60(%rip), %rsi      # 0x6070
movq %r15, %rdi
callq 0x1db4
movq %rax, %r13
testq %rax, %rax
leaq 0x3ef9(%rip), %rsi      # 0x601e
cmovneq %rax, %rsi
movq %r15, %rdi
callq 0x232c
movq %r13, %rdi
callq 0x1030
movq %rsp, %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x10f0
movl $0xf000, %eax           # imm = 0xF000
andl 0x18(%r13), %eax
leaq 0x3f6f(%rip), %rsi      # 0x60c6
cmpl $0xa000, %eax           # imm = 0xA000
jne 0x2163
movq %r12, %rdi
jmp 0x2166
movq %r14, %rdi
movq %r15, %rdx
callq 0x21c0
movq %rbx, %rdi
callq 0x1030
movq %r14, %rdi
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_cd/ft_cd_utils.c
// Function: set_path
void		set_path(char *path, const char *key, t_shell *shell)
{
	size_t	len;
	size_t	it;
	char	*variable;
	char	**tmp;

	len = ft_strlen(key) + 1;
	it = 0;
	while (shell->env[it])
	{
		if (ft_strnstr(shell->env[it], key, len))
		{
			variable = ft_strjoin(key, path);
			tmp = add_env(&variable, shell->env, it);
			free(variable);
			clean_env(shell);
			shell->env = tmp;
		}
		it++;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %rdi
callq 0x5408
movq %rax, %r12
movq 0x20(%rbx), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x224a
incq %r12
xorl %r13d, %r13d
movq %r14, %rsi
movq %r12, %rdx
callq 0x5484
testq %rax, %rax
je 0x2239
movq %r14, %rdi
movq %r15, %rsi
callq 0x523c
movq %rax, (%rsp)
movq 0x20(%rbx), %rsi
movq %rsp, %rdi
movl %r13d, %edx
callq 0x4a4d
movq %rax, %rbp
movq (%rsp), %rdi
callq 0x1030
movq %rbx, %rdi
callq 0x484c
movq %rbp, 0x20(%rbx)
jmp 0x223d
movq 0x20(%rbx), %rbp
movq 0x8(%rbp,%r13,8), %rdi
incq %r13
testq %rdi, %rdi
jne 0x21f1
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_cd/ft_cd_utils.c
// Function: dir_err
void		dir_err(t_shell *shell, char *path, char *err)
{
	char		*msg;
	char		*tmp;

	path = ft_strjoin(" ", path);
	tmp = ft_strdup(path);
	free(path);
	msg = ft_strjoin(tmp, err);
	free(tmp);
	print_errors(shell, msg, shell->binary);
	free(msg);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
leaq 0x3eff(%rip), %rdi      # 0x616d
callq 0x523c
movq %rax, %r15
movq %rax, %rdi
callq 0x51fc
movq %rax, %r12
movq %r15, %rdi
callq 0x1030
movq %r12, %rdi
movq %rbx, %rsi
callq 0x523c
movq %rax, %rbx
movq %r12, %rdi
callq 0x1030
movq 0x8(%r14), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x47c0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_cd/ft_cd_utils.c
// Function: change_dir_error
void		change_dir_error(t_shell *shell, char *path)
{
	struct stat	s;

	if (stat(path, &s) != -1)
	{
		if (s.st_mode & S_IFDIR)
			dir_err(shell, path, ": Permission denied");
		else
			print_errors(shell, "not a directory:", shell->binary);
	}
	else
		dir_err(shell, path, ": No such file or directory");
}

// 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 0x2307
testb $0x40, 0x21(%rsp)
jne 0x2310
movq 0x8(%rbx), %rdx
leaq 0x3da1(%rip), %rsi      # 0x6096
movq %rbx, %rdi
addq $0x98, %rsp
popq %rbx
popq %r14
jmp 0x47c0
leaq 0x3d99(%rip), %rdx      # 0x60a7
jmp 0x2317
leaq 0x3d6b(%rip), %rdx      # 0x6082
movq %rbx, %rdi
movq %r14, %rsi
addq $0x98, %rsp
popq %rbx
popq %r14
jmp 0x2259
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_echo.c
// Function: ft_echo
int		ft_echo(char **args)
{
	int		end;
	size_t	it;

	it = 0;
	end = 1;
	while (args[it])
	{
		if (ft_strncmp(args[it], "-n", 2) == 0)
		{
			end = 0;
			it++;
		}
		else
			break ;
	}
	while (args[it])
	{
		ft_putstr_fd(args[it], 1);
		if (args[it + 1])
			write(1, " ", 1);
		it++;
	}
	if (end)
		write(1, "\n", 1);
	return (1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x23fc
leaq 0x3d51(%rip), %rsi      # 0x60cb
movl $0x2, %edx
callq 0x542c
movl %eax, %ebx
xorl %r12d, %r12d
testl %eax, %eax
jne 0x23b2
leaq 0x3d37(%rip), %r15      # 0x60cb
movq 0x8(%r14,%r12,8), %rdi
testq %rdi, %rdi
je 0x2412
movl $0x2, %edx
movq %r15, %rsi
callq 0x542c
incq %r12
testl %eax, %eax
je 0x2394
movq (%r14,%r12,8), %rdi
testq %rdi, %rdi
je 0x23f8
leaq (%r14,%r12,8), %r15
addq $0x8, %r15
leaq 0x3da3(%rip), %r14      # 0x616d
movl $0x1, %esi
callq 0x5090
cmpq $0x0, (%r15)
je 0x23f8
movl $0x1, %edx
movl $0x1, %edi
movq %r14, %rsi
callq 0x1040
movq (%r15), %rdi
addq $0x8, %r15
testq %rdi, %rdi
jne 0x23ca
testl %ebx, %ebx
je 0x2412
leaq 0x3c1a(%rip), %rsi      # 0x601d
movl $0x1, %edx
movl $0x1, %edi
callq 0x1040
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_pwd.c
// Function: ft_pwd
int		ft_pwd(t_shell *shell)
{
	char		cwd[1024];
	char		*tmp;

	tmp = get_env(shell, "PWD");
	if (is_symbolic_link(tmp))
		ft_putendl_fd(tmp, 1);
	else if (getcwd(cwd, sizeof(cwd)))
		ft_putendl_fd(cwd, 1);
	free(tmp);
	return (1);
}

// Assembly:
pushq %rbx
subq $0x400, %rsp            # imm = 0x400
leaq 0x3c3d(%rip), %rsi      # 0x6070
callq 0x1db4
movq %rax, %rbx
movq %rax, %rdi
callq 0x218e
testl %eax, %eax
je 0x244c
movq %rbx, %rdi
jmp 0x2461
movq %rsp, %rdi
movl $0x400, %esi            # imm = 0x400
callq 0x10a0
testq %rax, %rax
je 0x246b
movq %rsp, %rdi
movl $0x1, %esi
callq 0x5048
movq %rbx, %rdi
callq 0x1030
movl $0x1, %eax
addq $0x400, %rsp            # imm = 0x400
popq %rbx
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_unset.c
// Function: ft_unset
int				ft_unset(t_shell *shell)
{
	size_t	it;

	it = 1;
	while (shell->args[it])
	{
		if (has_valid_name_unset(shell->args[it]))
			delete_environment(shell, shell->args[it], shell->env);
		else
			not_valid_keyname(shell, shell->args[it], "unset");
		it++;
	}
	return (1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq 0x18(%rdi), %rax
movq 0x8(%rax), %r15
testq %r15, %r15
je 0x2532
movq %rdi, %rbx
movl $0x1, %r13d
leaq 0x3b84(%rip), %r14      # 0x6032
movb (%r15), %al
testb %al, %al
je 0x24c2
movsbl %al, %edi
callq 0x299b
testw %ax, %ax
je 0x24e8
movq 0x18(%rbx), %rax
movq (%rax,%r13,8), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x2a48
movq 0x18(%rbx), %rax
movq 0x8(%rax,%r13,8), %r15
incq %r13
testq %r15, %r15
jne 0x24ae
jmp 0x2532
movzbl (%r15), %eax
testl %eax, %eax
je 0x251c
cmpl $0x3d, %eax
je 0x24c2
xorl %r12d, %r12d
movq %r15, %rdi
movl %r12d, %esi
callq 0x29a9
testw %ax, %ax
jne 0x24c2
cmpb $0x3d, (%r15,%r12)
je 0x24c2
cmpb $0x0, 0x1(%r15,%r12)
leaq 0x1(%r12), %r12
jne 0x24f8
movq 0x18(%rbx), %rax
movq 0x20(%rbx), %rdx
movq (%rax,%r13,8), %rsi
movq %rbx, %rdi
callq 0x1d30
jmp 0x24d5
movl $0x1, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_export/ft_export.c
// Function: process_envs
char	**process_envs(char **env)
{
	char	**tmp_envp;
	char	*tmp;
	char	*tmp2;
	int		i;

	i = 0;
	tmp_envp = ft_strdup_matrix(env);
	while (tmp_envp[i])
	{
		tmp = ft_strjoin("declare -x ", tmp_envp[i]);
		tmp2 = add_quotes_and_backslash(tmp);
		free(tmp_envp[i]);
		free(tmp);
		tmp_envp[i] = tmp2;
		i++;
	}
	return (tmp_envp);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
callq 0x4996
movq %rax, %rbx
movq (%rax), %rsi
testq %rsi, %rsi
je 0x259f
leaq 0x3b6a(%rip), %r14      # 0x60ce
movq %rbx, %r13
movq %r14, %rdi
callq 0x523c
movq %rax, %r15
movq %rax, %rdi
callq 0x28b8
movq %rax, %r12
movq (%r13), %rdi
callq 0x1030
movq %r15, %rdi
callq 0x1030
movq %r12, (%r13)
movq 0x8(%r13), %rsi
addq $0x8, %r13
testq %rsi, %rsi
jne 0x2567
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_export/ft_export.c
// Function: print_sorted_env
size_t	print_sorted_env(t_shell *shell)
{
	char **tmp_envp;
	char **tmp_envp2;

	tmp_envp = sort_alpha(ft_strdup_matrix(shell->env));
	tmp_envp2 = process_envs(tmp_envp);
	ft_env(shell, tmp_envp2);
	clean_matrix(tmp_envp);
	free(tmp_envp);
	clean_matrix(tmp_envp2);
	free(tmp_envp2);
	return (1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rdi), %rdi
callq 0x4996
movq %rax, %rdi
callq 0x27e6
movq %rax, %r14
movq %rax, %rdi
callq 0x2544
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1e30
movq %r14, %rdi
callq 0x4824
movq %r14, %rdi
callq 0x1030
movq %r15, %rdi
callq 0x4824
movq %r15, %rdi
callq 0x1030
movl $0x1, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_export/ft_export.c
// Function: export_values
void	export_values(t_shell *shell, char *last_arg, int j)
{
	int		i;
	int		key_len;
	char	*value;
	char	*tmp;
	char	**tmp_env;

	i = 0;
	if (last_arg)
		value = ft_strdup(last_arg);
	else
		value = ft_strdup(shell->args[j]);
	tmp = ft_strchr(value, '=');
	key_len = ft_strlen(value) - ft_strlen(tmp);
	while (shell->env[i]
			&& ft_strncmp_equal(shell->env[i], value, key_len))
		i++;
	tmp = ft_strdup(value);
	free(value);
	value = parse_backslash(tmp, 2);
	free(tmp);
	tmp_env = add_env(&value, shell->env, i);
	clean_env(shell);
	free(value);
	shell->env = tmp_env;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rsi, %rsi
je 0x261e
movq %rsi, %rdi
jmp 0x2629
movq 0x18(%rbx), %rax
movslq %edx, %rcx
movq (%rax,%rcx,8), %rdi
callq 0x51fc
movq %rax, %r14
movq %rax, %rdi
movl $0x3d, %esi
callq 0x51dc
movq %rax, %r15
movq %r14, %rdi
callq 0x5408
movq %rax, %r12
movq %r15, %rdi
callq 0x5408
movq 0x20(%rbx), %rcx
movq (%rcx), %rdi
testq %rdi, %rdi
je 0x2688
subl %eax, %r12d
xorl %r15d, %r15d
movq %r14, %rsi
movl %r12d, %edx
callq 0x295c
testl %eax, %eax
je 0x268b
movq 0x20(%rbx), %rax
movq 0x8(%rax,%r15,8), %rdi
incq %r15
testq %rdi, %rdi
jne 0x2666
jmp 0x268b
xorl %r15d, %r15d
movq %r14, %rdi
callq 0x51fc
movq %rax, %r12
movq %r14, %rdi
callq 0x1030
movq %r12, %rdi
movl $0x2, %esi
callq 0x2c98
movq %rsp, %r14
movq %rax, (%r14)
movq %r12, %rdi
callq 0x1030
movq 0x20(%rbx), %rsi
movq %r14, %rdi
movl %r15d, %edx
callq 0x4a4d
movq %rax, %r15
movq %rbx, %rdi
callq 0x484c
movq (%r14), %rdi
callq 0x1030
movq %r15, 0x20(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_export/ft_export.c
// Function: ft_export
int		ft_export(t_shell *shell, char *last_arg)
{
	char	*tmp;
	int		j;

	j = 1;
	if (last_arg && has_valid_name(last_arg))
		export_values(shell, last_arg, 0);
	else if (last_arg)
		not_valid_keyname(shell, last_arg, "export");
	else if (!shell->args[j])
		return (print_sorted_env(shell));
	else
	{
		while (shell->args[j])
		{
			if (!has_valid_name(shell->args[j]))
				not_valid_keyname(shell, shell->args[j], "export");
			else if ((tmp = ft_strchr(shell->args[j], '='))
					&& *tmp != *shell->args[j])
				export_values(shell, last_arg, j);
			j++;
		}
	}
	return (1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
testq %rsi, %rsi
je 0x271e
movq %rsi, %r14
movq %rsi, %rdi
callq 0x29f4
testw %ax, %ax
je 0x279b
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x2609
jmp 0x27b7
movq 0x18(%rbx), %rax
movq 0x8(%rax), %rdi
testq %rdi, %rdi
je 0x27af
movl $0x1, %r14d
leaq 0x38ef(%rip), %r15      # 0x602b
callq 0x29f4
movq 0x18(%rbx), %rcx
movq (%rcx,%r14,8), %rsi
testw %ax, %ax
je 0x277d
movq %rsi, %rdi
movl $0x3d, %esi
callq 0x51dc
testq %rax, %rax
je 0x2788
movb (%rax), %al
movq 0x18(%rbx), %rcx
movq (%rcx,%r14,8), %rcx
cmpb (%rcx), %al
je 0x2788
movq %rbx, %rdi
xorl %esi, %esi
movl %r14d, %edx
callq 0x2609
jmp 0x2788
movq %rbx, %rdi
movq %r15, %rdx
callq 0x2a48
movq 0x18(%rbx), %rax
movq 0x8(%rax,%r14,8), %rdi
incq %r14
testq %rdi, %rdi
jne 0x273c
jmp 0x27b7
leaq 0x3889(%rip), %rdx      # 0x602b
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2a48
jmp 0x27b7
movq %rbx, %rdi
callq 0x25ac
movl $0x1, %eax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_export/ft_export_utils.c
// Function: is_bigger
size_t	is_bigger(char *s1, char *s2)
{
	int ret;

	ret = 0;
	if (*s1 == *s2)
		ret = is_bigger(s1 + 1, s2 + 1);
	else if (*s1 > *s2)
		ret = 1;
	return (ret);
}

// Assembly:
movb (%rdi), %cl
movb (%rsi), %dl
cmpb %dl, %cl
jne 0x27de
movl $0x1, %eax
movb (%rdi,%rax), %cl
movb (%rsi,%rax), %dl
incq %rax
cmpb %dl, %cl
je 0x27d1
xorl %eax, %eax
cmpb %dl, %cl
setg %al
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_export/ft_export_utils.c
// Function: sort_alpha
char	**sort_alpha(char **envp)
{
	char	*tmp;
	size_t	len;
	size_t	i;
	size_t	j;

	len = 0;
	i = 0;
	while (envp[len + 1])
		len++;
	while (i < len)
	{
		j = 0;
		while (j < len - i)
		{
			if (is_bigger(envp[j], envp[j + 1]))
			{
				tmp = envp[j];
				envp[j] = envp[j + 1];
				envp[j + 1] = tmp;
			}
			j++;
		}
		i++;
	}
	return (envp);
}

// Assembly:
movq %rdi, %rax
movq $-0x1, %rcx
cmpq $0x0, 0x10(%rax,%rcx,8)
leaq 0x1(%rcx), %rcx
jne 0x27f0
testq %rcx, %rcx
je 0x286c
pushq %r14
pushq %rbx
xorl %edx, %edx
movq %rcx, %rsi
cmpq $0x1, %rsi
movq %rsi, %rdi
adcq $0x0, %rdi
movq (%rax), %r8
xorl %r9d, %r9d
movq 0x8(%rax,%r9,8), %r10
movb (%r8), %r11b
movb (%r10), %bl
cmpb %bl, %r11b
jne 0x2840
movl $0x1, %r14d
movb (%r8,%r14), %r11b
movb (%r10,%r14), %bl
incq %r14
cmpb %bl, %r11b
je 0x2830
leaq 0x1(%r9), %r14
cmpb %bl, %r11b
jle 0x2853
movq %r10, (%rax,%r9,8)
movq %r8, (%rax,%r14,8)
jmp 0x2856
movq %r10, %r8
movq %r14, %r9
cmpq %rdi, %r14
jne 0x281a
incq %rdx
decq %rsi
cmpq %rdx, %rcx
jne 0x2809
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_export/ft_export_utils.c
// Function: count_special_chars
int		count_special_chars(char *str)
{
	int count;

	count = 0;
	while (*str)
	{
		if (is_escapable_char_export(*str))
			count++;
		str++;
	}
	return (count);
}

// Assembly:
xorl %eax, %eax
movabsq $0x400000000000005, %rcx # imm = 0x400000000000005
movzbl (%rdi), %edx
leal -0x22(%rdx), %esi
cmpl $0x3a, %esi
ja 0x28ae
btq %rsi, %rcx
jae 0x28ae
incl %eax
jmp 0x28b2
testl %edx, %edx
je 0x28b7
incq %rdi
jmp 0x2899
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_export/ft_export_utils.c
// Function: add_quotes_and_backslash
char	*add_quotes_and_backslash(char *str)
{
	char	*buff;
	int		i;

	i = 0;
	if (!(buff = malloc((ft_strlen(str) + count_special_chars(str) + 3)
						* sizeof(char))))
		return (NULL);
	while (*str)
	{
		if (is_escapable_char_export(*str))
			buff[i++] = '\\';
		buff[i++] = *str;
		if (*str == '=')
			buff[i++] = '\"';
		str++;
	}
	buff[i++] = '\"';
	buff[i] = '\0';
	return (buff);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x5408
xorl %ecx, %ecx
movabsq $0x400000000000005, %r14 # imm = 0x400000000000005
movq %rbx, %rdx
movzbl (%rdx), %esi
leal -0x22(%rsi), %edi
cmpl $0x3a, %edi
ja 0x28e8
btq %rdi, %r14
jae 0x28e8
incl %ecx
jmp 0x28ec
testl %esi, %esi
je 0x28f1
incq %rdx
jmp 0x28d3
movslq %ecx, %rcx
leaq (%rax,%rcx), %rdi
addq $0x3, %rdi
callq 0x1160
testq %rax, %rax
je 0x2951
xorl %ecx, %ecx
movb (%rbx), %dl
movzbl %dl, %esi
leal -0x22(%rsi), %edi
cmpl $0x3a, %edi
ja 0x2926
btq %rdi, %r14
jae 0x2926
movslq %ecx, %rsi
incl %ecx
movb $0x5c, (%rax,%rsi)
jmp 0x292a
testl %esi, %esi
je 0x2948
movslq %ecx, %rsi
movb %dl, (%rax,%rsi)
incq %rsi
cmpb $0x3d, %dl
jne 0x2941
addl $0x2, %ecx
movb $0x22, (%rax,%rsi)
movl %ecx, %esi
incq %rbx
movl %esi, %ecx
jmp 0x2908
movslq %ecx, %rcx
movw $0x22, (%rax,%rcx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_export/ft_export_utils_2.c
// Function: ft_strncmp_equal
int		ft_strncmp_equal(char *str1, char *str2, int len)
{
	while (*str1 && *str2 && len)
	{
		if (*str1 != *str2)
			return (1);
		str1++;
		str2++;
		len--;
	}
	if (*str1 == *str2)
		return (0);
	return (1);
}

// Assembly:
movb (%rdi), %cl
testb %cl, %cl
je 0x2986
movl %edx, %edx
xorl %eax, %eax
movb (%rsi,%rax), %r8b
testb %r8b, %r8b
je 0x298a
cmpl %eax, %edx
je 0x298a
cmpb %r8b, %cl
jne 0x2995
movb 0x1(%rdi,%rax), %cl
incq %rax
testb %cl, %cl
jne 0x2966
addq %rax, %rsi
xorl %ecx, %ecx
jmp 0x298d
addq %rax, %rsi
xorl %eax, %eax
cmpb (%rsi), %cl
setne %al
retq
movl $0x1, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_export/ft_export_utils_2.c
// Function: has_valid_name
short	has_valid_name(char *str)
{
	int	i;

	i = 0;
	if (!*str || is_num(*str) || *str == '=')
		return (0);
	while (str[i] && str[i] != '=')
	{
		if (is_forbidden_char(str, i))
			return (0);
		i++;
	}
	return (1);
}

// Assembly:
movb (%rdi), %al
testb %al, %al
je 0x2a0c
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x3d, %al
sete %al
orb %cl, %al
je 0x2a0f
xorl %eax, %eax
retq
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
movzbl (%rbx,%r14), %ecx
movw $0x1, %ax
testl %ecx, %ecx
je 0x2a40
cmpl $0x3d, %ecx
je 0x2a40
movq %rbx, %rdi
movl %r14d, %esi
callq 0x29a9
incq %r14
testw %ax, %ax
je 0x2a19
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_export/ft_export_utils_2.c
// Function: not_valid_keyname
short	not_valid_keyname(t_shell *shell, char *var, char *command)
{
	char	*err_mssg;
	int		len;

	len = ft_strlen(var);
	if (!(err_mssg = malloc((len + 28) * sizeof(char))))
		return (0);
	ft_strlcpy(err_mssg, " `", 3);
	ft_strlcpy(err_mssg + 2, var, len + 1);
	ft_strlcpy(err_mssg + 2 + len, "': not a valid identifier", 26);
	shell->stat_loc = 1;
	print_errors(shell, err_mssg, command);
	free(err_mssg);
	return (1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r13
movq %rdi, %r14
movq %rsi, %rdi
callq 0x5408
movq %rax, %r12
shlq $0x20, %r12
movabsq $0x1c00000000, %rdi     # imm = 0x1C00000000
addq %r12, %rdi
sarq $0x20, %rdi
callq 0x1160
testq %rax, %rax
je 0x2af9
movq %rax, %r15
leaq 0x383b(%rip), %rsi      # 0x62c9
movl $0x3, %edx
movq %rax, %rdi
callq 0x53b0
leaq 0x2(%r15), %rdi
movabsq $0x100000000, %rdx      # imm = 0x100000000
addq %r12, %rdx
sarq $0x20, %rdx
movq %r13, %rsi
callq 0x53b0
sarq $0x20, %r12
leaq (%r15,%r12), %rdi
addq $0x2, %rdi
leaq 0x360f(%rip), %rsi      # 0x60da
movl $0x1a, %edx
callq 0x53b0
movl $0x1, 0x28(%r14)
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x47c0
movq %r15, %rdi
callq 0x1030
movw $0x1, %ax
jmp 0x2afb
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_exit.c
// Function: ft_exit
void			ft_exit(t_shell *shell)
{
	int		value;
	char	*nbr;

	if (shell->args[1])
	{
		nbr = shell->args[1];
		value = exit_atoi(shell, nbr);
		if (shell->args[2])
		{
			print_errors(shell, " too many arguments", shell->binary);
			exit(1);
		}
	}
	else
		value = 0;
	shell->stat_loc = value;
	clean_shell(shell);
	exit(value);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x18(%rdi), %rax
movq 0x8(%rax), %r14
xorl %ebp, %ebp
testq %r14, %r14
je 0x2b83
movsbl (%r14), %edi
callq 0x497c
incq %r14
testl %eax, %eax
jne 0x2b22
movzbl -0x1(%r14), %eax
cmpl $0x2b, %eax
je 0x2b4b
cmpl $0x2d, %eax
jne 0x2b48
movb $0x1, %r15b
xorl %ebp, %ebp
jmp 0x2b51
decq %r14
movb $0x1, %bpl
xorl %r15d, %r15d
decq %r14
movzbl 0x1(%r14), %eax
incq %r14
cmpl $0x30, %eax
je 0x2b54
xorl %r12d, %r12d
testl %eax, %eax
jne 0x2b95
movl %r12d, %ebp
negl %ebp
testb %r15b, %r15b
cmovel %r12d, %ebp
movq 0x18(%rbx), %rax
cmpq $0x0, 0x10(%rax)
jne 0x2c0e
movl %ebp, 0x28(%rbx)
movq %rbx, %rdi
callq 0x4969
movl %ebp, %edi
callq 0x1190
movsbl %al, %edi
callq 0x4f5c
testl %eax, %eax
jne 0x2baf
movzbl (%r14), %eax
cmpl $0x20, %eax
je 0x2baf
cmpl $0x9, %eax
jne 0x2c06
movq %r14, %rdi
callq 0x5408
cmpq $0x14, %rax
jae 0x2c06
movzbl (%r14), %eax
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
leaq (%r12,%r12,4), %rcx
leaq -0x30(%rax,%rcx,2), %rax
cmovbq %rax, %r12
movb 0x1(%r14), %al
incq %r14
testb %al, %al
jne 0x2b95
testq %r12, %r12
sets %al
andb %al, %bpl
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
cmpq %rax, %r12
seta %al
andb %r15b, %al
orb %bpl, %al
cmpb $0x1, %al
jne 0x2b68
movq %rbx, %rdi
callq 0x2c2b
movq 0x8(%rbx), %rdx
leaq 0x3428(%rip), %rsi      # 0x6041
movq %rbx, %rdi
callq 0x47c0
movl $0x1, %edi
callq 0x1190
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/builtin/ft_exit.c
// Function: numeric_arg_req
static	void	numeric_arg_req(t_shell *shell)
{
	char		*msg;
	char		*tmp;

	msg = ft_strjoin(shell->binary, ": ");
	tmp = ft_strdup(msg);
	free(msg);
	msg = ft_strjoin(tmp, shell->args[1]);
	free(tmp);
	print_errors(shell, " numeric argument required", msg);
	free(msg);
	exit(255);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
leaq 0x36ef(%rip), %rsi      # 0x632d
callq 0x523c
movq %rax, %r14
movq %rax, %rdi
callq 0x51fc
movq %rax, %r15
movq %r14, %rdi
callq 0x1030
movq 0x18(%rbx), %rax
movq 0x8(%rax), %rsi
movq %r15, %rdi
callq 0x523c
movq %rax, %r14
movq %r15, %rdi
callq 0x1030
leaq 0x3479(%rip), %rsi      # 0x60f4
movq %rbx, %rdi
movq %r14, %rdx
callq 0x47c0
movq %r14, %rdi
callq 0x1030
movl $0xff, %edi
callq 0x1190
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/parsing/backslash.c
// Function: parse_backslash
char			*parse_backslash(char *str, short parse_mode)
{
	char	*buff;
	char	*ref;
	char	*backslash;

	buff = ft_strdup(str);
	ref = str;
	if (*str == '\\' && !*(str + 1))
	{
		*buff = '\0';
		str++;
	}
	while (*str)
	{
		if (!(backslash = ft_strchr(str, '\\')))
			break ;
		if (is_escapable_char(*(backslash + 1), parse_mode) ||
			is_between_delimiters(backslash, ref, parse_mode))
			remove_backslash_safe(&buff, backslash);
		str = backslash + 1;
		if (*str == '\\')
			str++;
	}
	return (buff);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, 0xc(%rsp)
movq %rdi, %rbx
callq 0x51fc
movq %rax, %r15
movb (%rbx), %al
movq %rbx, %r12
cmpb $0x5c, %al
jne 0x2cd3
cmpb $0x0, 0x1(%rbx)
movq %rbx, %r12
jne 0x2cdb
leaq 0x1(%rbx), %r12
movb $0x0, (%r15)
movb (%r12), %al
testb %al, %al
je 0x2e4a
movq %rbx, 0x10(%rsp)
movswl 0xc(%rsp), %ebx
movq %r12, %rdi
movl $0x5c, %esi
callq 0x51dc
testq %rax, %rax
je 0x2e4a
movq %rax, %r13
leaq 0x1(%rax), %r12
movzbl 0x1(%rax), %ebp
cmpl $0x1, %ebx
je 0x2d1e
testl %ebx, %ebx
jne 0x2d58
cmpl $0x22, %ebp
je 0x2d6e
cmpl $0x27, %ebp
je 0x2d6e
jmp 0x2ddd
cmpl $0x3b, %ebp
ja 0x2d35
movl %ebp, %eax
movabsq $0x800001100000200, %rcx # imm = 0x800001100000200
btq %rax, %rcx
jb 0x2d6e
cmpl $0x5c, %ebp
je 0x2d6e
cmpl $0x7c, %ebp
je 0x2d6e
movsbl %bpl, %edi
callq 0x370f
cmpl $0x26, %ebp
je 0x2d6e
testw %ax, %ax
je 0x2e00
jmp 0x2d6e
cmpw $0x2, 0xc(%rsp)
jne 0x2e00
cmpb $0x5c, %bpl
jne 0x2e00
movq %r15, %rdi
callq 0x5408
movq %rax, %r14
movq %r13, %rdi
callq 0x5408
subl %eax, %r14d
incl %r14d
movslq %r14d, %rbp
movq %rbp, %rdi
callq 0x1160
testq %rax, %rax
je 0x2dc0
movq %rax, %r14
movq %rax, %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x53b0
movq %r14, %rdi
movq %r12, %rsi
callq 0x523c
movq %rax, %rbp
movq %r14, %rdi
callq 0x1030
jmp 0x2dc2
xorl %ebp, %ebp
movq %r15, %rdi
callq 0x1030
movq %rbp, %rdi
callq 0x51fc
movq %rax, %r15
movq %rbp, %rdi
callq 0x1030
movq %r13, %rax
addq $0x2, %rax
xorl %ecx, %ecx
cmpb $0x5c, 0x1(%r13)
sete %cl
cmoveq %rax, %r12
cmpb $0x0, 0x1(%rcx,%r13)
jne 0x2ce5
jmp 0x2e4a
cmpw $0x0, 0xc(%rsp)
je 0x2ddd
cmpq 0x10(%rsp), %r13
je 0x2ddd
movzbl -0x1(%r13), %eax
cmpl $0x2e, %eax
je 0x2e3d
cmpl $0x7b, %eax
je 0x2e30
cmpl $0x5b, %eax
jne 0x2ddd
cmpb $0x5d, (%r12)
je 0x2d6e
jmp 0x2ddd
cmpb $0x7d, (%r12)
je 0x2d6e
jmp 0x2ddd
cmpb $0x2e, (%r12)
je 0x2d6e
jmp 0x2ddd
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/parsing/braces.c
// Function: set_opening_braces
char			*set_opening_braces(char *str)
{
	char	*buff;
	int		i;
	int		j;

	i = 0;
	j = 0;
	if (!(buff = malloc((ft_strlen(str) + count_chars(str, '$') + 1) *
					sizeof(char))))
		return (NULL);
	while (str[j])
	{
		if (j - 1 >= 0 && str[j - 1] == '$' &&
				(j - 2 < 0 || str[j - 2] != '\\') &&
				str[j] != '\\' && str[j] != '%')
			buff[i++] = '{';
		buff[i++] = str[j++];
	}
	buff[i] = '\0';
	return (buff);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x5408
movb (%rbx), %bpl
xorl %ecx, %ecx
testb %bpl, %bpl
je 0x2e90
leaq 0x1(%rbx), %rdx
movl %ebp, %esi
xorl %edi, %edi
cmpb $0x24, %sil
sete %dil
addl %edi, %ecx
movb (%rdx), %sil
incq %rdx
testb %sil, %sil
jne 0x2e77
movl %ecx, %ecx
leaq (%rax,%rcx), %rdi
incq %rdi
callq 0x1160
testq %rax, %rax
je 0x2ef8
xorl %ecx, %ecx
testb %bpl, %bpl
je 0x2ef4
xorl %edx, %edx
testq %rdx, %rdx
je 0x2edb
cmpb $0x24, -0x1(%rbx,%rdx)
jne 0x2edb
cmpq $0x1, %rdx
je 0x2ec3
cmpb $0x5c, -0x2(%rbx,%rdx)
je 0x2edb
cmpb $0x25, %bpl
je 0x2edb
movzbl %bpl, %esi
cmpl $0x5c, %esi
je 0x2edb
movslq %ecx, %rsi
incl %ecx
movb $0x7b, (%rax,%rsi)
movslq %ecx, %rsi
incl %ecx
movb %bpl, (%rax,%rsi)
movb 0x1(%rbx,%rdx), %bpl
incq %rdx
testb %bpl, %bpl
jne 0x2eaa
movslq %ecx, %rcx
movb $0x0, (%rax,%rcx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/parsing/braces.c
// Function: set_closing_braces
char			*set_closing_braces(char *str)
{
	short	is_open_brace;
	char	*buff;
	int		i;
	int		k;

	i = 0;
	k = 0;
	is_open_brace = 0;
	if (!(buff = malloc((ft_strlen(str) + count_chars(str, '{') + 3) *
					sizeof(char))))
		return (NULL);
	while (str[k])
	{
		if (str[k] == '{' && (k - 1) >= 0 && str[k - 1] == '$')
			is_open_brace = 1;
		buff[i++] = str[k];
		if (is_open_brace && is_limit_character(str[k + 1]))
		{
			buff[i++] = '}';
			is_open_brace = 0;
		}
		k++;
	}
	buff[i] = '\0';
	return (buff);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x5408
movb (%rbx), %bpl
xorl %ecx, %ecx
testb %bpl, %bpl
je 0x2f33
leaq 0x1(%rbx), %rdx
movl %ebp, %esi
xorl %edi, %edi
cmpb $0x7b, %sil
sete %dil
addl %edi, %ecx
movb (%rdx), %sil
incq %rdx
testb %sil, %sil
jne 0x2f1a
movl %ecx, %ecx
leaq (%rax,%rcx), %rdi
addq $0x3, %rdi
callq 0x1160
testq %rax, %rax
je 0x2fdb
xorl %ecx, %ecx
movabsq $0x3800000108001095, %rdx # imm = 0x3800000108001095
xorl %esi, %esi
xorl %edi, %edi
cmpb $0x7b, %bpl
je 0x2f6a
movzbl %bpl, %r8d
testl %r8d, %r8d
jne 0x2f87
jmp 0x2fd4
testq %rcx, %rcx
je 0x2f87
cmpb $0x24, -0x1(%rbx,%rcx)
jne 0x2f87
leal 0x1(%rdi), %r8d
movslq %edi, %rsi
movb $0x7b, (%rax,%rsi)
movw $0x1, %si
jmp 0x2f97
leal 0x1(%rdi), %r8d
movslq %edi, %r9
movb %bpl, (%rax,%r9)
testw %si, %si
je 0x2fbe
movzbl 0x1(%rbx,%rcx), %r9d
leal -0x20(%r9), %r10d
cmpl $0x3d, %r10d
ja 0x2fcd
btq %r10, %rdx
jae 0x2fcd
addl $0x2, %edi
movslq %r8d, %rsi
movb $0x7d, (%rax,%rsi)
xorl %esi, %esi
movl %edi, %r8d
jmp 0x2fc0
xorl %esi, %esi
movb 0x1(%rbx,%rcx), %bpl
incq %rcx
movl %r8d, %edi
jmp 0x2f59
testl %r9d, %r9d
je 0x2fad
jmp 0x2fc0
movslq %edi, %rcx
movb $0x0, (%rax,%rcx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/parsing/expansion/embrace_expansion.c
// Function: mantain_expansion_spaces
char			*mantain_expansion_spaces(char *str)
{
	int		i;
	short	var_opened;
	char	*buff;

	i = 0;
	var_opened = 0;
	if (!(buff = malloc((ft_strlen(str) + count_chars(str, '$') + 1) *
					sizeof(char))))
		return (NULL);
	while (*str)
	{
		if (*str == '$' && *(str - 1) != '\\' && !var_opened)
			var_opened = 1;
		buff[i++] = *str;
		if (var_opened && *(str + 1) == '}')
		{
			var_opened = 0;
			buff[i++] = ' ';
		}
		str++;
	}
	buff[i] = '\0';
	return (buff);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x5408
xorl %ecx, %ecx
movq %rbx, %rdx
movzbl (%rdx), %esi
cmpl $0x24, %esi
je 0x3000
testl %esi, %esi
jne 0x3002
jmp 0x3007
incl %ecx
incq %rdx
jmp 0x2ff2
movslq %ecx, %rcx
leaq (%rax,%rcx), %rdi
incq %rdi
callq 0x1160
testq %rax, %rax
je 0x3079
xorl %edx, %edx
xorl %ecx, %ecx
movzbl (%rbx), %edi
cmpl $0x24, %edi
je 0x303e
testl %edi, %edi
je 0x3072
leal 0x1(%rdx), %esi
movslq %edx, %r8
movb %dil, (%rax,%r8)
testw %cx, %cx
jne 0x3057
xorl %ecx, %ecx
jmp 0x306b
testw %cx, %cx
jne 0x302b
cmpb $0x5c, -0x1(%rbx)
je 0x302b
leal 0x1(%rdx), %esi
movslq %edx, %rcx
movb $0x24, (%rax,%rcx)
movw $0x1, %cx
cmpb $0x7d, 0x1(%rbx)
jne 0x306b
addl $0x2, %edx
movslq %esi, %rcx
movb $0x20, (%rax,%rcx)
xorl %ecx, %ecx
movl %edx, %esi
incq %rbx
movl %esi, %edx
jmp 0x301f
movslq %edx, %rcx
movb $0x0, (%rax,%rcx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/parsing/expansion/embrace_expansion.c
// Function: embrace_expansion
char			*embrace_expansion(char *str)
{
	char	*buff;
	char	*tmp;

	tmp = set_opening_braces(str);
	buff = set_closing_braces(tmp);
	free(tmp);
	return (buff);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
callq 0x2e5c
movq %rax, %rbx
movq %rax, %rdi
callq 0x2eff
movq %rax, %r14
movq %rbx, %rdi
callq 0x1030
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/parsing/expansion/expansion.c
// Function: expand_var
char			*expand_var(char *env, t_shell *shell)
{
	int		i;
	int		len;
	char	*delimiter;

	i = 0;
	delimiter = NULL;
	if (*env == '{')
	{
		env++;
		delimiter = ft_strchr(env, '}');
		len = ft_strlen(env) - (delimiter ? ft_strlen(delimiter) : 0);
	}
	else
		len = ft_strlen(env);
	if (delimiter && *(delimiter - 1) == ' ')
		len--;
	while (shell->env[i])
	{
		if (!ft_strncmp(shell->env[i], env, len)
			&& shell->env[i][len] == '=')
			break ;
		else
			i++;
	}
	return (get_env_value(shell, delimiter, i));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
cmpb $0x7b, (%rdi)
jne 0x30fc
incq %r15
movq %r15, %rdi
movl $0x7d, %esi
callq 0x51dc
movq %rax, %rbx
movq %r15, %rdi
callq 0x5408
movq %rax, %r12
testq %rbx, %rbx
je 0x3107
movq %rbx, %rdi
callq 0x5408
subq %rax, %r12
xorl %eax, %eax
cmpb $0x20, -0x1(%rbx)
sete %al
subq %rax, %r12
xorl %ebp, %ebp
jmp 0x310c
movq %r15, %rdi
callq 0x5408
movq %rax, %r12
movb $0x1, %bpl
xorl %ebx, %ebx
movq 0x20(%r14), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x3167
movslq %r12d, %r12
xorl %r13d, %r13d
movq %r15, %rsi
movq %r12, %rdx
callq 0x542c
movq 0x20(%r14), %rcx
testl %eax, %eax
jne 0x313c
movq (%rcx,%r13,8), %rax
cmpb $0x3d, (%rax,%r12)
je 0x3149
movq 0x8(%rcx,%r13,8), %rdi
incq %r13
testq %rdi, %rdi
jne 0x311e
movl %r13d, %eax
movq (%rcx,%rax,8), %rdi
testq %rdi, %rdi
je 0x3167
movl $0x3d, %esi
callq 0x51dc
movq %rax, %rdi
incq %rdi
jmp 0x316e
leaq 0x2eb0(%rip), %rdi      # 0x601e
callq 0x51fc
movq %rsp, %rdi
movq %rax, (%rdi)
movl $0x5c, %esi
callq 0x342c
testb %bpl, %bpl
jne 0x31b1
cmpb $0x20, -0x1(%rbx)
jne 0x319b
movq %rsp, %rdi
movl $0x20, %esi
callq 0x342c
cmpb $0x0, (%rbx)
je 0x31b1
incq %rbx
movq (%rsp), %rdi
movq %rbx, %rsi
callq 0x523c
jmp 0x31ba
movq (%rsp), %rdi
callq 0x51fc
movq %rax, %rbx
movq (%rsp), %rdi
callq 0x1030
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/parsing/expansion/expansion.c
// Function: expansion
char			*expansion(t_shell *shell, char *str)
{
	char	**env_split;

	str = escape_char(str, '$');
	env_split = ft_split_non_escaped(str, '$');
	if (env_split[0])
	{
		if (env_split[1] || (*env_split[0] != *str))
		{
			free(str);
			str = parse_expansion(shell, env_split, (short)(*str == '$'));
		}
	}
	clean_matrix(env_split);
	free(env_split);
	return (str);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, (%rsp)
movq %rsi, %rdi
movl $0x24, %esi
callq 0x3366
movq %rax, %r15
movq %rax, %rdi
movl $0x24, %esi
callq 0x3a10
movq %rax, %rbx
movq (%rax), %rax
testq %rax, %rax
je 0x32ed
cmpq $0x0, 0x8(%rbx)
jne 0x3225
movb (%rax), %al
cmpb (%r15), %al
je 0x32ed
movq %r15, %rdi
callq 0x1030
movb (%r15), %bpl
leaq 0x2de7(%rip), %rdi      # 0x601e
callq 0x51fc
movq %rax, %r15
xorl %r13d, %r13d
cmpq $0x0, (%rbx,%r13,8)
leaq 0x1(%r13), %r13
jne 0x3242
cmpq $0x1, %r13
je 0x32ed
leal -0x2(%r13), %r14d
movq (%rbx,%r14,8), %rdi
cmpb $0x3f, 0x1(%rdi)
jne 0x326b
cmpb $0x0, 0x3(%rdi)
je 0x32a1
cmpb $0x24, %bpl
je 0x3276
testq %r14, %r14
je 0x32b6
callq 0x51fc
movq %rax, %r12
movq (%rbx,%r14,8), %rdi
callq 0x1030
movq %r12, %rdi
movq (%rsp), %rsi
callq 0x30a8
movq %rax, (%rbx,%r14,8)
movq %r12, %rdi
callq 0x1030
jmp 0x32b6
callq 0x1030
movq (%rsp), %rax
movl 0x2c(%rax), %edi
callq 0x4f68
movq %rax, (%rbx,%r14,8)
movq %r15, %rdi
callq 0x51fc
movq %rax, %r12
movq %r15, %rdi
callq 0x1030
movq (%rbx,%r14,8), %rsi
movq %r12, %rdi
callq 0x3412
movq %rax, %r15
movq %r12, %rdi
callq 0x1030
decq %r13
cmpq $0x1, %r13
jg 0x3257
movq %rbx, %rdi
callq 0x4824
movq %rbx, %rdi
callq 0x1030
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/parsing/expansion/expansion_utils.c
// Function: count_keys_to_scape
int		count_keys_to_scape(char *str, char key)
{
	int		backslashes;
	int		i;

	i = 0;
	backslashes = 0;
	while (str[i])
	{
		if ((key == ' ' && str[i] == ' ') ||
			(key == '$' && str[i] == '$' &&
			((!str[i + 1] || str[i + 1] == ' ') ||
			str[i + 1] == '%')))
			backslashes++;
		i++;
	}
	return (backslashes);
}

// Assembly:
movb (%rdi), %r8b
testb %r8b, %r8b
je 0x3363
incq %rdi
xorl %eax, %eax
movl %esi, %ecx
xorb $0x20, %cl
xorb $0x24, %sil
movabsq $0x2100000001, %rdx     # imm = 0x2100000001
movl %r8d, %r9d
xorb $0x20, %r9b
orb %cl, %r9b
je 0x3355
xorb $0x24, %r8b
orb %sil, %r8b
jne 0x3357
movzbl (%rdi), %r8d
cmpq $0x25, %r8
ja 0x3357
btq %r8, %rdx
jae 0x3357
incl %eax
movb (%rdi), %r8b
incq %rdi
testb %r8b, %r8b
jne 0x3330
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/parsing/expansion/expansion_utils.c
// Function: escape_char
char	*escape_char(char *str, char key)
{
	char	*buff;
	int		j;
	int		i;

	i = -1;
	j = -1;
	if (!(buff = malloc((ft_strlen(str) + count_keys_to_scape(str, key))
					* sizeof(char *))))
		return (NULL);
	while (str[++i])
	{
		if (str[i] == '$' && str[i - 1] != '\\')
		{
			if (!str[i + 1] ||
				str[i + 1] == ' ' ||
				str[i + 1] == '\\' ||
				str[i + 1] == '%')
				buff[++j] = '\\';
		}
		else if (key != '$' && str[i] == key)
			buff[++j] = '\\';
		buff[++j] = str[i];
	}
	buff[++j] = '\0';
	return (buff);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
callq 0x5408
movq %rax, %r15
movq %r14, %rdi
movl %ebx, %esi
callq 0x3310
movslq %eax, %rdi
addq %r15, %rdi
shlq $0x3, %rdi
callq 0x1160
testq %rax, %rax
je 0x340c
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movabsq $0x1000000000000021, %rdx # imm = 0x1000000000000021
movzbl (%r14), %esi
cmpl $0x24, %esi
je 0x33b4
testl %esi, %esi
jne 0x33bb
jmp 0x3404
cmpb $0x5c, -0x1(%r14)
jne 0x33d0
cmpb $0x24, %bl
sete %dil
cmpb %bl, %sil
setne %r8b
orb %dil, %r8b
je 0x33e9
jmp 0x33f4
movzbl 0x1(%r14), %edi
leal -0x20(%rdi), %r8d
cmpl $0x3c, %r8d
ja 0x33e5
btq %r8, %rdx
jb 0x33e9
testl %edi, %edi
jne 0x33f4
movslq %ecx, %rcx
movb $0x5c, 0x1(%rax,%rcx)
incq %rcx
movslq %ecx, %rcx
movb %sil, 0x1(%rax,%rcx)
incq %rcx
incq %r14
jmp 0x33a5
movslq %ecx, %rcx
movb $0x0, 0x1(%rax,%rcx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/parsing/expansion/expansion_utils.c
// Function: escape_char_safe
void	escape_char_safe(char **value, char c)
{
	char	*tmp;

	tmp = ft_strdup(*value);
	free(*value);
	*value = escape_char(tmp, c);
	free(tmp);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
movq (%rdi), %rdi
callq 0x51fc
movq %rax, %r15
movq (%r14), %rdi
callq 0x1030
movq %r15, %rdi
movl %ebx, %esi
callq 0x3366
movq %rax, (%r14)
movq %r15, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1030
nop
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/parsing/parser.c
// Function: get_args
char			**get_args(char *input)
{
	char **args;

	if (!input)
		return (NULL);
	args = ft_split_non_escaped(input, ' ');
	delete_residual_backslash(args);
	if (!args)
		return (NULL);
	return (args);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x34bd
movl $0x20, %esi
callq 0x3a10
movq %rax, %rbx
movq (%rax), %rdi
testq %rdi, %rdi
je 0x34bf
movq %rbx, %r15
movl $0x1, %esi
callq 0x2c98
movq %rax, %r14
movq (%r15), %rdi
callq 0x1030
movq %r14, %rdi
callq 0x51fc
movq %rax, (%r15)
movq %r14, %rdi
callq 0x1030
movq 0x8(%r15), %rdi
addq $0x8, %r15
testq %rdi, %rdi
jne 0x3486
jmp 0x34bf
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/parsing/parser.c
// Function: parse_input
char			*parse_input(char *input)
{
	char *tmp;
	char *buff;

	tmp = parse_quotes(input);
	if (tmp)
	{
		buff = parse_backslash(tmp, 0);
		free(tmp);
	}
	else
		buff = NULL;
	return (buff);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
callq 0x3500
testq %rax, %rax
je 0x34f3
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
callq 0x2c98
movq %rax, %r14
movq %rbx, %rdi
callq 0x1030
movq %r14, %rax
jmp 0x34f5
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)