LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x18(%rdi), %rax
cmpq $0x0, 0x8(%rax)
je 0x1d70
leaq 0x32d7(%rip), %rdi      # 0x503d
pushq $0x1
popq %rsi
callq 0x4ba4
jmp 0x1ddc
movq %rsi, %r14
movq %rdi, %rbx
xorl %r13d, %r13d
leaq 0x32db(%rip), %r15      # 0x505b
pushq $0x5
popq %r12
movq (%r14,%r13,8), %rdi
testq %rdi, %rdi
je 0x1db5
movq %r15, %rsi
movq %r12, %rdx
callq 0x4f38
testl %eax, %eax
jne 0x1db0
movdqu (%r14,%r13,8), %xmm0
pshufd $0x4e, %xmm0, %xmm0     # xmm0 = xmm0[2,3,0,1]
movdqu %xmm0, (%r14,%r13,8)
incq %r13
incq %r13
jmp 0x1d84
pushq $0x1
popq %rbp
movq (%r14), %rdi
testq %rdi, %rdi
je 0x1dcd
movl %ebp, %esi
callq 0x4ba4
addq $0x8, %r14
jmp 0x1db8
leaq 0x3281(%rip), %rsi      # 0x5055
movq %rbx, %rdi
callq 0x252f
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/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 0x1ec4
leaq 0x3252(%rip), %rsi      # 0x5061
pushq $0x3
popq %rdx
movq %r14, %rdi
callq 0x4f38
testl %eax, %eax
je 0x1ec4
leaq 0x323b(%rip), %rsi      # 0x5064
pushq $0x2
popq %rdx
movq %r14, %rdi
callq 0x4f38
testl %eax, %eax
je 0x1ec4
leaq 0x3228(%rip), %rsi      # 0x506b
pushq $0x2
popq %rdx
movq %r14, %rdi
callq 0x4f38
testl %eax, %eax
je 0x1ef7
leaq 0x31c1(%rip), %rsi      # 0x501e
pushq $0x1
popq %rdx
movq %r14, %rdi
callq 0x4f38
testl %eax, %eax
je 0x1ef7
leaq 0x31eb(%rip), %rsi      # 0x5062
pushq $0x2
popq %rdx
movq %r14, %rdi
callq 0x4f38
testl %eax, %eax
je 0x1f31
movq 0x18(%rbx), %rax
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x1f27
cmpb $0x0, (%rax)
je 0x1f27
movq %r14, %rdi
callq 0x4d48
movq %rax, %r14
movq 0x18(%rbx), %rax
cmpq $0x0, 0x18(%rax)
je 0x1f09
movq %rbx, %rdi
callq 0x1f7b
jmp 0x1f1c
leaq 0x319b(%rip), %rsi      # 0x5066
movq %rbx, %rdi
callq 0x1cdc
movq %rax, %r14
leaq 0x3141(%rip), %rsi      # 0x501e
movq %rax, %rdi
callq 0x4f6c
testq %rax, %rax
je 0x1f09
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1f3a
jmp 0x1f1c
leaq 0x3172(%rip), %rsi      # 0x5070
movq %rbx, %rdi
callq 0x1cdc
movq %rax, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1f92
movq %r14, %rdi
callq 0x1030
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %r14, %rdi
callq 0x4d48
jmp 0x1f06
leaq 0x3135(%rip), %rsi      # 0x506d
jmp 0x1efe
// File: /workspace/github_c_makefile_star2_O2/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 0x4d48
movq %rax, %r14
leaq 0x3118(%rip), %rsi      # 0x5074
movq %rbx, %rdi
movq %rax, %rdx
callq 0x4484
movq %r14, %rdi
callq 0x1030
movw $0x1, %ax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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
movq %rsi, %r15
movq %rdi, %r12
pushq $0x8
popq %r14
movl $0x400, %edi            # imm = 0x400
movq %r14, %rsi
callq 0x4abc
movq %rax, %rbx
movl $0x400, %edi            # imm = 0x400
movq %r14, %rsi
callq 0x4abc
movq %rax, %r14
movq %r12, %rdi
callq 0x1060
testl %eax, %eax
je 0x1fde
movq %r15, %rdi
movq %r12, %rsi
callq 0x217c
jmp 0x203e
movl $0x400, %esi            # imm = 0x400
movq %r14, %rdi
callq 0x1090
leaq 0x307e(%rip), %rsi      # 0x5070
movq %r15, %rdi
callq 0x1cdc
movq %rax, %r13
testq %rax, %rax
leaq 0x3017(%rip), %rsi      # 0x501e
cmovneq %rax, %rsi
movq %r15, %rdi
callq 0x21e7
movq %r13, %rdi
callq 0x1030
movq %r12, %rdi
callq 0x2057
leaq 0x309c(%rip), %rsi      # 0x50c6
testl %eax, %eax
je 0x2033
movq %r12, %rdi
jmp 0x2036
movq %r14, %rdi
movq %r15, %rdx
callq 0x2088
movq %rbx, %rdi
callq 0x1030
movq %r14, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/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 0x4f18
movq %rax, %r12
incq %r12
xorl %r13d, %r13d
movq 0x20(%rbx), %rax
movq (%rax,%r13,8), %rdi
testq %rdi, %rdi
je 0x2105
movq %r14, %rsi
movq %r12, %rdx
callq 0x4f90
testq %rax, %rax
je 0x2100
movq %r14, %rdi
movq %r15, %rsi
callq 0x4d88
movq %rax, (%rsp)
movq 0x20(%rbx), %rsi
movq %rsp, %rdi
movl %r13d, %edx
callq 0x463a
movq %rax, %rbp
movq (%rsp), %rdi
callq 0x1030
movq %rbx, %rdi
callq 0x44f6
movq %rbp, 0x20(%rbx)
incq %r13
jmp 0x20ad
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x3044(%rip), %rdi      # 0x516d
callq 0x4d88
movq %rax, %r15
movq %rax, %rdi
callq 0x4d48
movq %rax, %r12
movq %r15, %rdi
callq 0x1030
movq %r12, %rdi
movq %rbx, %rsi
callq 0x4d88
movq %rax, %rbx
movq %r12, %rdi
callq 0x1030
movq 0x8(%r14), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4484
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/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 0x1120
cmpl $-0x1, %eax
je 0x21c2
testb $0x40, 0x21(%rsp)
jne 0x21cb
movq 0x8(%rbx), %rdx
leaq 0x2ee6(%rip), %rsi      # 0x5096
movq %rbx, %rdi
addq $0x98, %rsp
popq %rbx
popq %r14
jmp 0x4484
leaq 0x2ede(%rip), %rdx      # 0x50a7
jmp 0x21d2
leaq 0x2eb0(%rip), %rdx      # 0x5082
movq %rbx, %rdi
movq %r14, %rsi
addq $0x98, %rsp
popq %rbx
popq %r14
jmp 0x2114
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0x8, %rbx
xorl %ebp, %ebp
leaq 0x2e9c(%rip), %r14      # 0x50cb
pushq $0x2
popq %r15
movq -0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x2278
movq %r14, %rsi
movq %r15, %rdx
callq 0x4f38
testl %eax, %eax
jne 0x2278
addq $0x8, %rbx
movb $0x1, %bpl
jmp 0x2233
pushq $0x1
popq %rsi
callq 0x4bec
cmpq $0x0, (%rbx)
je 0x2274
leaq 0x2f04(%rip), %rsi      # 0x516d
pushq $0x1
popq %rdi
pushq $0x1
popq %rdx
callq 0x1040
addq $0x8, %rbx
movq -0x8(%rbx), %rdi
testq %rdi, %rdi
jne 0x2254
testb $0x1, %bpl
jne 0x2299
leaq 0x2d8f(%rip), %rsi      # 0x501d
pushq $0x1
popq %rdi
pushq $0x1
popq %rdx
callq 0x1040
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/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 0x2db9(%rip), %rsi      # 0x5070
callq 0x1cdc
movq %rax, %rbx
movq %rax, %rdi
callq 0x2057
testl %eax, %eax
je 0x22d3
pushq $0x1
popq %rsi
movq %rbx, %rdi
jmp 0x22eb
movq %rsp, %rdi
movl $0x400, %esi            # imm = 0x400
callq 0x1090
testq %rax, %rax
je 0x22f0
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x4ba4
movq %rbx, %rdi
callq 0x1030
pushq $0x1
popq %rax
addq $0x400, %rsp            # imm = 0x400
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rdi, %rbx
pushq $0x1
popq %r13
leaq 0x2d17(%rip), %r14      # 0x5032
movq 0x18(%rbx), %rax
movq (%rax,%r13,8), %r15
testq %r15, %r15
je 0x2396
movb (%r15), %al
testb %al, %al
je 0x2368
movsbl %al, %edi
callq 0x279c
testw %ax, %ax
jne 0x2368
cmpb $0x3d, (%r15)
je 0x2368
xorl %r12d, %r12d
cmpb $0x0, (%r15,%r12)
je 0x2380
movq %r15, %rdi
movl %r12d, %esi
callq 0x27aa
testw %ax, %ax
jne 0x2368
cmpb $0x3d, (%r15,%r12)
leaq 0x1(%r12), %r12
jne 0x2345
movq 0x18(%rbx), %rax
movq (%rax,%r13,8), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x2849
incq %r13
jmp 0x231b
movq 0x18(%rbx), %rax
movq 0x20(%rbx), %rdx
movq (%rax,%r13,8), %rsi
movq %rbx, %rdi
callq 0x1c7c
jmp 0x237b
pushq $0x1
popq %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O2/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 0x4591
movq %rax, %rbx
leaq 0x2d12(%rip), %r14      # 0x50ce
movq %rax, %r13
movq (%r13), %rsi
testq %rsi, %rsi
je 0x23f9
movq %r14, %rdi
callq 0x4d88
movq %rax, %r15
movq %rax, %rdi
callq 0x26df
movq %rax, %r12
movq (%r13), %rdi
callq 0x1030
movq %r15, %rdi
callq 0x1030
movq %r12, (%r13)
addq $0x8, %r13
jmp 0x23bf
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x4591
movq %rax, %rdi
callq 0x261a
movq %rax, %r14
movq %rax, %rdi
callq 0x23a4
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1d49
movq %r14, %rdi
callq 0x44d8
movq %r14, %rdi
callq 0x1030
movq %r15, %rdi
callq 0x44d8
movq %r15, %rdi
callq 0x1030
pushq $0x1
popq %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x2476
movq %rsi, %rdi
jmp 0x2481
movq 0x18(%rbx), %rax
movslq %edx, %rcx
movq (%rax,%rcx,8), %rdi
callq 0x4d48
movq %rax, %r14
pushq $0x3d
popq %rsi
movq %rax, %rdi
callq 0x4d28
movq %rax, %r15
movq %r14, %rdi
callq 0x4f18
movq %rax, %r12
movq %r15, %rdi
callq 0x4f18
subl %eax, %r12d
xorl %r15d, %r15d
movq 0x20(%rbx), %rax
movq (%rax,%r15,8), %rdi
testq %rdi, %rdi
je 0x24d1
movq %r14, %rsi
movl %r12d, %edx
callq 0x276c
testl %eax, %eax
je 0x24d1
incq %r15
jmp 0x24b0
movq %r14, %rdi
callq 0x4d48
movq %rax, %r12
movq %r14, %rdi
callq 0x1030
pushq $0x2
popq %rsi
movq %r12, %rdi
callq 0x2a8c
movq %rsp, %r14
movq %rax, (%r14)
movq %r12, %rdi
callq 0x1030
movq 0x20(%rbx), %rsi
movq %r14, %rdi
movl %r15d, %edx
callq 0x463a
movq %rax, %r15
movq %rbx, %rdi
callq 0x44f6
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_O2/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rsi, %rsi
je 0x2564
movq %rsi, %r14
movq %rsi, %rdi
callq 0x27f5
testw %ax, %ax
je 0x25d8
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x2461
jmp 0x25f4
movq 0x18(%rbx), %rax
cmpq $0x0, 0x8(%rax)
je 0x25ec
pushq $0x1
popq %r14
leaq 0x2ab1(%rip), %r15      # 0x502b
pushq $0x3d
popq %rbp
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0x25f4
callq 0x27f5
movq 0x18(%rbx), %rcx
movq (%rcx,%r14,8), %rsi
testw %ax, %ax
je 0x25c4
movq %rsi, %rdi
movl %ebp, %esi
callq 0x4d28
testq %rax, %rax
je 0x25cf
movb (%rax), %al
movq 0x18(%rbx), %rcx
movq (%rcx,%r14,8), %rcx
cmpb (%rcx), %al
je 0x25cf
movq %rbx, %rdi
xorl %esi, %esi
movl %r14d, %edx
callq 0x2461
jmp 0x25cf
movq %rbx, %rdi
movq %r15, %rdx
callq 0x2849
incq %r14
movq 0x18(%rbx), %rax
jmp 0x257d
leaq 0x2a4c(%rip), %rdx      # 0x502b
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2849
jmp 0x25f4
movq %rbx, %rdi
callq 0x2406
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $-0x1
popq %r12
cmpq $0x0, 0x10(%rbx,%r12,8)
leaq 0x1(%r12), %r12
jne 0x262c
xorl %eax, %eax
movq %r12, %rbp
cmpq %rax, %r12
je 0x2682
movq %rax, (%rsp)
xorl %r13d, %r13d
cmpq %r13, %rbp
je 0x2676
movq (%rbx,%r13,8), %r14
movq 0x8(%rbx,%r13,8), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x2604
testq %rax, %rax
je 0x2671
movq %r15, (%rbx,%r13,8)
movq %r14, 0x8(%rbx,%r13,8)
incq %r13
jmp 0x264a
movq (%rsp), %rax
incq %rax
decq %rbp
jmp 0x263e
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_O2/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 0x26d5
btq %rsi, %rcx
jae 0x26d5
incl %eax
jmp 0x26d9
testl %edx, %edx
je 0x26de
incq %rdi
jmp 0x26c0
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x4f18
movq %rax, %r14
movq %rbx, %rdi
callq 0x26b4
cltq
leaq (%r14,%rax), %rdi
addq $0x3, %rdi
callq 0x1140
testq %rax, %rax
je 0x2764
xorl %edx, %edx
movabsq $0x400000000000005, %rcx # imm = 0x400000000000005
movb (%rbx), %sil
movzbl %sil, %r8d
leal -0x22(%r8), %r9d
movslq %edx, %rdi
cmpl $0x3a, %r9d
ja 0x2739
btq %r9, %rcx
jae 0x2739
leal 0x1(%rdi), %edx
movb $0x5c, (%rax,%rdi)
jmp 0x273e
testl %r8d, %r8d
je 0x275e
movslq %edx, %rdi
movb %sil, (%rax,%rdi)
incq %rdi
cmpb $0x3d, %sil
jne 0x2757
addl $0x2, %edx
movb $0x22, (%rax,%rdi)
movl %edx, %edi
incq %rbx
movl %edi, %edx
jmp 0x2716
movw $0x22, (%rax,%rdi)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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:
movl %edx, %ecx
xorl %edx, %edx
pushq $0x1
popq %rax
movb (%rdi,%rdx), %r8b
movb (%rsi,%rdx), %r9b
testb %r8b, %r8b
je 0x2793
testb %r9b, %r9b
je 0x2793
cmpl %edx, %ecx
je 0x2793
cmpb %r9b, %r8b
jne 0x279b
incq %rdx
jmp 0x2773
xorl %eax, %eax
cmpb %r9b, %r8b
setne %al
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x280d
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x3d, %al
sete %al
orb %cl, %al
je 0x2810
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 0x2841
cmpl $0x3d, %ecx
je 0x2841
movq %rbx, %rdi
movl %r14d, %esi
callq 0x27aa
incq %r14
testw %ax, %ax
je 0x281a
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x4f18
movq %rax, %r12
shlq $0x20, %r12
movabsq $0x1c00000000, %rdi     # imm = 0x1C00000000
addq %r12, %rdi
sarq $0x20, %rdi
callq 0x1140
testq %rax, %rax
je 0x28f6
movq %rax, %r15
leaq 0x2a3a(%rip), %rsi      # 0x52c9
pushq $0x3
popq %rdx
movq %rax, %rdi
callq 0x4ec0
leaq 0x2(%r15), %rdi
movabsq $0x100000000, %rdx      # imm = 0x100000000
addq %r12, %rdx
sarq $0x20, %rdx
movq %r13, %rsi
callq 0x4ec0
sarq $0x20, %r12
leaq (%r15,%r12), %rdi
addq $0x2, %rdi
leaq 0x2810(%rip), %rsi      # 0x50da
pushq $0x1a
popq %rdx
callq 0x4ec0
movl $0x1, 0x28(%r14)
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x4484
movq %r15, %rdi
callq 0x1030
movw $0x1, %ax
jmp 0x28f8
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O2/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
jne 0x2930
movl %ebp, 0x28(%rbx)
movq %rbx, %rdi
callq 0x455c
movl %ebp, %edi
callq 0x1170
movsbl (%r14), %edi
callq 0x4570
incq %r14
testl %eax, %eax
jne 0x2930
movzbl -0x1(%r14), %eax
cmpl $0x2b, %eax
je 0x2959
cmpl $0x2d, %eax
jne 0x2956
movb $0x1, %r15b
xorl %ebp, %ebp
jmp 0x295f
decq %r14
movb $0x1, %bpl
xorl %r15d, %r15d
decq %r14
movb 0x1(%r14), %al
incq %r14
cmpb $0x30, %al
je 0x2962
xorl %r12d, %r12d
testb %al, %al
je 0x29bc
movsbl %al, %edi
callq 0x4ae4
testl %eax, %eax
jne 0x298e
movzbl (%r14), %eax
cmpl $0x20, %eax
je 0x298e
cmpl $0x9, %eax
jne 0x29df
movq %r14, %rdi
callq 0x4f18
cmpq $0x14, %rax
jae 0x29df
movzbl (%r14), %eax
leal -0x30(%rax), %ecx
imulq $0xa, %r12, %rdx
cmpb $0xa, %cl
leaq -0x30(%rdx,%rax), %rax
cmovbq %rax, %r12
movb 0x1(%r14), %al
incq %r14
jmp 0x2970
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 0x29e7
movq %rbx, %rdi
callq 0x2a1d
movl %r12d, %ebp
negl %ebp
testb %r15b, %r15b
cmovel %r12d, %ebp
movq 0x18(%rbx), %rax
cmpq $0x0, 0x10(%rax)
je 0x291e
movq 0x8(%rbx), %rdx
leaq 0x2634(%rip), %rsi      # 0x5041
movq %rbx, %rdi
callq 0x4484
pushq $0x1
popq %rdi
callq 0x1170
// File: /workspace/github_c_makefile_star2_O2/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 0x28fd(%rip), %rsi      # 0x532d
callq 0x4d88
movq %rax, %r14
movq %rax, %rdi
callq 0x4d48
movq %rax, %r15
movq %r14, %rdi
callq 0x1030
movq 0x18(%rbx), %rax
movq 0x8(%rax), %rsi
movq %r15, %rdi
callq 0x4d88
movq %rax, %r14
movq %r15, %rdi
callq 0x1030
leaq 0x2687(%rip), %rsi      # 0x50f4
movq %rbx, %rdi
movq %r14, %rdx
callq 0x4484
movq %r14, %rdi
callq 0x1030
movl $0xff, %edi
callq 0x1170
nop
// File: /workspace/github_c_makefile_star2_O2/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 0x4d48
movq %rax, %r15
cmpb $0x5c, (%rbx)
movq %rbx, %r12
jne 0x2ac2
cmpb $0x0, 0x1(%rbx)
movq %rbx, %r12
jne 0x2ac2
leaq 0x1(%rbx), %r12
movb $0x0, (%r15)
movq %rbx, 0x10(%rsp)
movswl 0xc(%rsp), %ebx
cmpb $0x0, (%r12)
je 0x2c2d
movq %r12, %rdi
pushq $0x5c
popq %rsi
callq 0x4d28
testq %rax, %rax
je 0x2c2d
movq %rax, %r13
leaq 0x1(%rax), %r12
movzbl 0x1(%rax), %ebp
cmpl $0x1, %ebx
je 0x2b0e
testl %ebx, %ebx
jne 0x2b48
cmpl $0x22, %ebp
je 0x2b5e
cmpl $0x27, %ebp
je 0x2b5e
jmp 0x2bce
cmpl $0x3b, %ebp
ja 0x2b25
movl %ebp, %eax
movabsq $0x800001100000200, %rcx # imm = 0x800001100000200
btq %rax, %rcx
jb 0x2b5e
cmpl $0x5c, %ebp
je 0x2b5e
cmpl $0x7c, %ebp
je 0x2b5e
movsbl %bpl, %edi
callq 0x3487
cmpl $0x26, %ebp
je 0x2b5e
testw %ax, %ax
je 0x2be3
jmp 0x2b5e
cmpw $0x2, 0xc(%rsp)
jne 0x2be3
cmpb $0x5c, %bpl
jne 0x2be3
movq %r15, %rdi
callq 0x4f18
movq %rax, %r14
movq %r13, %rdi
callq 0x4f18
subl %eax, %r14d
incl %r14d
movslq %r14d, %r14
movq %r14, %rdi
callq 0x1140
testq %rax, %rax
je 0x2bb0
movq %rax, %rbp
movq %rax, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x4ec0
movq %rbp, %rdi
movq %r12, %rsi
callq 0x4d88
movq %rax, %r14
movq %rbp, %rdi
callq 0x1030
jmp 0x2bb3
xorl %r14d, %r14d
movq %r15, %rdi
callq 0x1030
movq %r14, %rdi
callq 0x4d48
movq %rax, %r15
movq %r14, %rdi
callq 0x1030
movq %r13, %rax
addq $0x2, %rax
cmpb $0x5c, 0x1(%r13)
cmoveq %rax, %r12
jmp 0x2acc
cmpw $0x0, 0xc(%rsp)
je 0x2bce
cmpq 0x10(%rsp), %r13
je 0x2bce
movzbl -0x1(%r13), %eax
cmpl $0x2e, %eax
je 0x2c20
cmpl $0x7b, %eax
je 0x2c13
cmpl $0x5b, %eax
jne 0x2bce
cmpb $0x5d, (%r12)
je 0x2b5e
jmp 0x2bce
cmpb $0x7d, (%r12)
je 0x2b5e
jmp 0x2bce
cmpb $0x2e, (%r12)
je 0x2b5e
jmp 0x2bce
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x4f18
movq %rax, %r14
pushq $0x24
popq %rsi
movq %rbx, %rdi
callq 0x2cc0
cltq
leaq (%r14,%rax), %rdi
incq %rdi
callq 0x1140
testq %rax, %rax
je 0x2cb8
xorl %ecx, %ecx
xorl %edx, %edx
movzbl (%rbx,%rcx), %esi
movslq %edx, %rdi
testl %esi, %esi
je 0x2cb4
testq %rcx, %rcx
je 0x2ca6
cmpb $0x24, -0x1(%rbx,%rcx)
jne 0x2ca6
cmpq $0x1, %rcx
je 0x2c95
cmpb $0x5c, -0x2(%rbx,%rcx)
je 0x2ca6
cmpl $0x25, %esi
je 0x2ca6
cmpl $0x5c, %esi
je 0x2ca6
leal 0x1(%rdi), %edx
movb $0x7b, (%rax,%rdi)
incq %rcx
movslq %edx, %rdi
incl %edx
movb %sil, (%rax,%rdi)
jmp 0x2c71
movb $0x0, (%rax,%rdi)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x4f18
movq %rax, %r14
pushq $0x7b
popq %rsi
movq %rbx, %rdi
callq 0x2cc0
cltq
leaq (%r14,%rax), %rdi
addq $0x3, %rdi
callq 0x1140
testq %rax, %rax
je 0x2d84
xorl %ecx, %ecx
pushq $0x1
popq %rdx
movabsq $0x3800000108001095, %rsi # imm = 0x3800000108001095
xorl %edi, %edi
xorl %r9d, %r9d
movzbl (%rbx,%rcx), %r10d
movslq %r9d, %r8
cmpl $0x7b, %r10d
je 0x2d2f
testl %r10d, %r10d
jne 0x2d3c
jmp 0x2d7f
testq %rcx, %rcx
je 0x2d3c
cmpb $0x24, -0x1(%rbx,%rcx)
cmovel %edx, %edi
movb %r10b, (%rax,%r8)
incq %r8
testw %di, %di
je 0x2d6e
movzbl 0x1(%rbx,%rcx), %r10d
leal -0x20(%r10), %r11d
cmpl $0x3d, %r11d
ja 0x2d78
btq %r11, %rsi
jae 0x2d78
addl $0x2, %r9d
movb $0x7d, (%rax,%r8)
xorl %edi, %edi
movl %r9d, %r8d
jmp 0x2d70
xorl %edi, %edi
incq %rcx
movl %r8d, %r9d
jmp 0x2d1a
testl %r10d, %r10d
je 0x2d5e
jmp 0x2d70
movb $0x0, (%rax,%r8)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x4f18
xorl %ecx, %ecx
movq %rbx, %rdx
movzbl (%rdx), %esi
cmpl $0x24, %esi
je 0x2da8
testl %esi, %esi
jne 0x2daa
jmp 0x2daf
incl %ecx
incq %rdx
jmp 0x2d9a
movslq %ecx, %rcx
leaq (%rax,%rcx), %rdi
incq %rdi
callq 0x1140
testq %rax, %rax
je 0x2e1f
xorl %esi, %esi
pushq $0x1
popq %rcx
xorl %edx, %edx
movzbl (%rbx), %r8d
movslq %esi, %rdi
cmpl $0x24, %r8d
je 0x2dde
testl %r8d, %r8d
jne 0x2df3
jmp 0x2e1b
cmpb $0x5c, -0x1(%rbx)
movl %ecx, %r9d
cmovel %edx, %r9d
testw %dx, %dx
cmovnel %edx, %r9d
movl %r9d, %edx
movb %r8b, (%rax,%rdi)
incq %rdi
testw %dx, %dx
je 0x2e12
cmpb $0x7d, 0x1(%rbx)
jne 0x2e14
addl $0x2, %esi
movb $0x20, (%rax,%rdi)
xorl %edx, %edx
movl %esi, %edi
jmp 0x2e14
xorl %edx, %edx
incq %rbx
movl %edi, %esi
jmp 0x2dca
movb $0x0, (%rax,%rdi)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x2c40
movq %rax, %rbx
movq %rax, %rdi
callq 0x2cd8
movq %rax, %r14
movq %rbx, %rdi
callq 0x1030
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O2/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 0x2e9e
incq %r15
pushq $0x7d
popq %rsi
movq %r15, %rdi
callq 0x4d28
movq %rax, %rbx
movq %r15, %rdi
callq 0x4f18
movq %rax, %r12
testq %rbx, %rbx
je 0x2ea9
movq %rbx, %rdi
callq 0x4f18
subq %rax, %r12
xorl %eax, %eax
cmpb $0x20, -0x1(%rbx)
sete %al
subq %rax, %r12
xorl %ebp, %ebp
jmp 0x2eae
movq %r15, %rdi
callq 0x4f18
movq %rax, %r12
movb $0x1, %bpl
xorl %ebx, %ebx
movslq %r12d, %r12
xorl %r13d, %r13d
movq 0x20(%r14), %rax
movq (%rax,%r13,8), %rdi
testq %rdi, %rdi
je 0x2ee4
movq %r15, %rsi
movq %r12, %rdx
callq 0x4f38
testl %eax, %eax
jne 0x2edf
movq 0x20(%r14), %rax
movq (%rax,%r13,8), %rcx
cmpb $0x3d, (%rcx,%r12)
je 0x2ee4
incq %r13
jmp 0x2eb4
movl %r13d, %ecx
movq (%rax,%rcx,8), %rdi
testq %rdi, %rdi
je 0x2f00
pushq $0x3d
popq %rsi
callq 0x4d28
movq %rax, %rdi
incq %rdi
jmp 0x2f07
leaq 0x2117(%rip), %rdi      # 0x501e
callq 0x4d48
movq %rsp, %rdi
movq %rax, (%rdi)
pushq $0x5c
popq %rsi
callq 0x31b2
testb %bpl, %bpl
jne 0x2f46
cmpb $0x20, -0x1(%rbx)
jne 0x2f30
movq %rsp, %rdi
pushq $0x20
popq %rsi
callq 0x31b2
cmpb $0x0, (%rbx)
je 0x2f46
incq %rbx
movq (%rsp), %rdi
movq %rbx, %rsi
callq 0x4d88
jmp 0x2f4f
movq (%rsp), %rdi
callq 0x4d48
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_O2/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, %r14
pushq $0x24
popq %rbx
movq %rsi, %rdi
movl %ebx, %esi
callq 0x30ee
movq %rax, %r15
movq %rax, %rdi
movl %ebx, %esi
callq 0x3730
movq %rax, %rbx
movq (%rax), %rax
testq %rax, %rax
je 0x307e
cmpq $0x0, 0x8(%rbx)
jne 0x2fb6
movb (%rax), %al
cmpb (%r15), %al
je 0x307e
movq %r15, %rdi
callq 0x1030
movb (%r15), %bpl
leaq 0x2056(%rip), %rdi      # 0x501e
callq 0x4d48
movq %rax, %r15
pushq $-0x1
popq %r13
cmpq $0x0, 0x8(%rbx,%r13,8)
leaq 0x1(%r13), %r13
jne 0x2fd4
jmp 0x3075
movq -0x8(%rbx,%r13,8), %rdi
cmpb $0x3f, 0x1(%rdi)
jne 0x2ff6
cmpb $0x0, 0x3(%rdi)
je 0x3034
cmpb $0x24, %bpl
setne %al
cmpq $0x1, %r13
sete %cl
testb %cl, %al
jne 0x3047
callq 0x4d48
movq %rax, %r12
movq -0x8(%rbx,%r13,8), %rdi
callq 0x1030
movq %r12, %rdi
movq %r14, %rsi
callq 0x2e4c
movq %rax, -0x8(%rbx,%r13,8)
movq %r12, %rdi
callq 0x1030
jmp 0x3047
callq 0x1030
movl 0x2c(%r14), %edi
callq 0x4af0
movq %rax, -0x8(%rbx,%r13,8)
movq %r15, %rdi
callq 0x4d48
movq %rax, %r12
movq %r15, %rdi
callq 0x1030
movq -0x8(%rbx,%r13,8), %rsi
movq %r12, %rdi
callq 0x3198
movq %rax, %r15
movq %r12, %rdi
callq 0x1030
decq %r13
testq %r13, %r13
jg 0x2fe5
movq %rbx, %rdi
callq 0x44d8
movq %rbx, %rdi
callq 0x1030
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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:
incq %rdi
xorl %eax, %eax
movl %esi, %ecx
xorb $0x20, %cl
xorb $0x24, %sil
movabsq $0x2100000001, %rdx     # imm = 0x2100000001
movb -0x1(%rdi), %r8b
testb %r8b, %r8b
je 0x30ed
movl %r8d, %r9d
xorb $0x20, %r9b
orb %cl, %r9b
je 0x30e6
xorb $0x24, %r8b
orb %sil, %r8b
jne 0x30e8
movzbl (%rdi), %r8d
cmpq $0x25, %r8
ja 0x30e8
btq %r8, %rdx
jae 0x30e8
incl %eax
incq %rdi
jmp 0x30b8
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x4f18
movq %rax, %r15
movq %r14, %rdi
movl %ebx, %esi
callq 0x30a0
movslq %eax, %rdi
addq %r15, %rdi
shlq $0x3, %rdi
callq 0x1140
testq %rax, %rax
je 0x3192
pushq $-0x1
popq %rdx
movabsq $0x1000000000000021, %rcx # imm = 0x1000000000000021
movzbl (%r14), %esi
movslq %edx, %rdi
cmpl $0x24, %esi
je 0x313d
testl %esi, %esi
jne 0x3144
jmp 0x318d
cmpb $0x5c, -0x1(%r14)
jne 0x3159
cmpb $0x24, %bl
sete %r8b
cmpb %bl, %sil
setne %r9b
orb %r8b, %r9b
je 0x3173
jmp 0x317d
movzbl 0x1(%r14), %r8d
leal -0x20(%r8), %r9d
cmpl $0x3c, %r9d
ja 0x316e
btq %r9, %rcx
jb 0x3173
testl %r8d, %r8d
jne 0x317d
movb $0x5c, 0x1(%rax,%rdi)
incq %rdi
movl %edi, %edx
movslq %edx, %rdx
movb %sil, 0x1(%rax,%rdx)
incq %rdx
incq %r14
jmp 0x312b
movb $0x0, 0x1(%rax,%rdi)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x4d48
movq %rax, %r15
movq (%r14), %rdi
callq 0x1030
movq %r15, %rdi
movl %ebx, %esi
callq 0x30ee
movq %rax, (%r14)
movq %r15, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1030
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x323c
pushq $0x20
popq %rsi
callq 0x3730
movq %rax, %rbx
pushq $0x1
popq %rbp
movq %rax, %r15
movq (%r15), %rdi
testq %rdi, %rdi
je 0x323e
movl %ebp, %esi
callq 0x2a8c
movq %rax, %r14
movq (%r15), %rdi
callq 0x1030
movq %r14, %rdi
callq 0x4d48
movq %rax, (%r15)
movq %r14, %rdi
callq 0x1030
addq $0x8, %r15
jmp 0x3209
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x3284
testq %rax, %rax
je 0x3277
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
callq 0x2a8c
movq %rax, %r14
movq %rbx, %rdi
callq 0x1030
movq %r14, %rax
jmp 0x3279
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/vdedios[P]minishell/srcs/parsing/quotes/quotes.c
// Function: parse_quotes
char		*parse_quotes(char *str)
{
	char	*str_in_quotes;
	char	*buff;
	char	*tmp;
	int		opening;
	int		closing;

	buff = ft_strdup("");
	while (*str)
	{
		if (!(str_in_quotes = remove_quotes(str, &opening, &closing)))
		{
			free(buff);
			return (NULL);
		}
		tmp = join_parsed_str(str, str_in_quotes, buff, opening);
		free(buff);
		buff = tmp;
		if (str_in_quotes != str)
			free(str_in_quotes);
		if (opening != -1)
			str += (closing + 1);
		else
			break ;
	}
	return (buff);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x1d82(%rip), %rdi      # 0x501e
callq 0x4d48
movq %rax, %r14
movb (%rbx), %al
testb %al, %al
je 0x344c
xorl %r13d, %r13d
cmpb $0x22, %al
je 0x32c3
movzbl %al, %eax
cmpl $0x27, %eax
je 0x32c3
testl %eax, %eax
jne 0x32d3
jmp 0x3300
movq %rbx, %rdi
movl %r13d, %esi
callq 0x3460
testw %ax, %ax
jne 0x32dd
movb 0x1(%rbx,%r13), %al
incq %r13
jmp 0x32b1
movsbl (%rbx,%r13), %esi
movq %rbx, %rdi
movl %r13d, %edx
leaq 0x14(%rsp), %rcx
callq 0x3667
testq %rax, %rax
je 0x3441
movq %rax, %rbp
jmp 0x3309
movq %rbx, %rbp
pushq $-0x1
popq %rax
movl %eax, %r13d
movq %rbp, %rdi
callq 0x2e21
movq %rax, %r15
cmpl $-0x1, %r13d
je 0x33d0
movq %r14, 0x8(%rsp)
movq %r15, %rdi
callq 0x2d8c
movq %rax, %r14
movq %r15, %rdi
callq 0x1030
movq %r14, %rdi
callq 0x4d48
movq %rax, %r15
movq %r14, %rdi
callq 0x1030
leal -0x1(%r13), %eax
cmpl $-0x3, %eax
ja 0x33cb
leal 0x1(%r13), %eax
movslq %eax, %r12
movq %r12, %rdi
callq 0x1140
testq %rax, %rax
je 0x3432
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x4ec0
movq %r14, %rdi
callq 0x2e21
movq %rax, 0x18(%rsp)
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x4d88
movq %rax, 0x20(%rsp)
movq %rax, %rdi
movq %r15, %rsi
callq 0x4d88
movq %rax, %r12
movq 0x18(%rsp), %rdi
callq 0x1030
movq %r14, %rdi
movq 0x8(%rsp), %r14
callq 0x1030
movq 0x20(%rsp), %rdi
callq 0x1030
jmp 0x33fc
movq 0x8(%rsp), %r14
movq %r14, %rdi
leaq 0x1c44(%rip), %rsi      # 0x501e
callq 0x4f6c
testq %rax, %rax
je 0x33ee
movq %r15, %rdi
callq 0x4d48
jmp 0x33f9
movq %r14, %rdi
movq %r15, %rsi
callq 0x4d88
movq %rax, %r12
movq %r15, %rdi
callq 0x1030
movq %r14, %rdi
callq 0x1030
cmpq %rbx, %rbp
je 0x3419
movq %rbp, %rdi
callq 0x1030
cmpl $-0x1, %r13d
je 0x343c
movslq 0x14(%rsp), %rax
addq %rax, %rbx
incq %rbx
movq %r12, %r14
jmp 0x32a4
xorl %r12d, %r12d
movq 0x8(%rsp), %r14
jmp 0x33fc
movq %r12, %r14
jmp 0x344c
movq %r14, %rdi
callq 0x1030
xorl %r14d, %r14d
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/vdedios[P]minishell/srcs/parsing/quotes/quotes_utils.c
// Function: check_prev_backslashes
short	check_prev_backslashes(char *str, int i)
{
	int n;

	n = 0;
	while (i && str[--i] == '\\')
		n++;
	return ((n + 1) % 2);
}

// Assembly:
movslq %esi, %rax
xorl %ecx, %ecx
movq %rax, %rsi
movq %rax, %rdx
subq $0x1, %rdx
jb 0x3481
cmpb $0x5c, -0x1(%rdi,%rsi)
jne 0x347f
incl %ecx
movq %rdx, %rsi
jmp 0x346b
movl %ecx, %eax
notl %eax
andl $0x1, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/vdedios[P]minishell/srcs/parsing/quotes/quotes_utils.c
// Function: n_special_chars
int		n_special_chars(char *str, int opening, int closing, char quote)
{
	int	i;
	int	n;

	i = opening + 1;
	n = 0;
	while (i < closing)
	{
		if (quote != '\'' && is_special_char(str[i]))
			n++;
		else if (is_space(str[i]))
			n++;
		i++;
	}
	return (n);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq %rdi, %r14
movslq %esi, %r15
movslq %edx, %r12
incq %r15
xorl %ebp, %ebp
cmpq %r12, %r15
jge 0x3526
movb (%r14,%r15), %r13b
cmpb $0x27, %bl
je 0x350c
movsbl %r13b, %edi
callq 0x3499
pushq $0x1
popq %rcx
testw %ax, %ax
jne 0x351f
cmpb $0x20, %r13b
sete %al
cmpb $0x9, %r13b
sete %cl
orb %al, %cl
movzbl %cl, %ecx
addl %ecx, %ebp
incq %r15
jmp 0x34ed
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_O2/vdedios[P]minishell/srcs/parsing/quotes/quotes_utils_2.c
// Function: get_string_between_quotes
char	*get_string_between_quotes(char *str, int opening,
										int closing, char quote)
{
	char	*buff;
	int		i;
	int		j;

	j = 0;
	i = opening + 1;
	buff = alloc_in_quotes(str, quote, opening, closing);
	while (i < closing)
	{
		if (quote == '\'' && (is_special_char(str[i]) ||
			(str[i - 1] == '\\' && is_alpha(str[i]))))
			buff[j++] = '\\';
		else
		{
			if (is_space(str[i])
				|| str[i] == '|' || str[i] == ';' || str[i] == '\'')
				buff[j++] = '\\';
			if (str[i - 1] == '\\' && (str[i] == '|' || is_alpha(str[i])))
				buff[j++] = '\\';
		}
		buff[j++] = str[i++];
	}
	buff[j] = '\0';
	return (buff);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebp
movl %esi, %r12d
movq %rdi, %r14
movl %ecx, 0x4(%rsp)
movl %ecx, %esi
movl %r12d, %edx
movl %ebp, %ecx
callq 0x3538
movq %rax, %r15
movslq %r12d, %r12
movslq %ebp, %r13
incq %r12
xorl %ebp, %ebp
movslq %ebp, %rbx
cmpq %r13, %r12
jge 0x3631
cmpb $0x27, 0x4(%rsp)
jne 0x35c8
movsbl (%r14,%r12), %edi
callq 0x3499
testw %ax, %ax
jne 0x35fc
cmpb $0x5c, -0x1(%r14,%r12)
jne 0x35c8
movsbl (%r14,%r12), %edi
callq 0x3487
testw %ax, %ax
jne 0x35fc
movsbl (%r14,%r12), %edi
callq 0x34be
testw %ax, %ax
je 0x361b
leal 0x1(%rbx), %ebp
movb $0x5c, (%r15,%rbx)
cmpb $0x5c, -0x1(%r14,%r12)
jne 0x3606
movb (%r14,%r12), %al
cmpb $0x7c, %al
je 0x35fc
movsbl %al, %edi
callq 0x3487
testw %ax, %ax
je 0x3606
movslq %ebp, %rax
incl %ebp
movb $0x5c, (%r15,%rax)
movb (%r14,%r12), %al
movslq %ebp, %rcx
incl %ebp
movb %al, (%r15,%rcx)
incq %r12
jmp 0x358f
movzbl (%r14,%r12), %eax
cmpl $0x27, %eax
je 0x35d7
cmpl $0x7c, %eax
je 0x35d7
cmpl $0x3b, %eax
je 0x35d7
jmp 0x35df
movb $0x0, (%r15,%rbx)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq