LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_parse_utils3.c
// Function: create_3d_array
char						***create_3d_array(int length)
{
	char	***array;
	int		i;

	i = 0;
	if (!(array = (char***)malloc(sizeof(char**) + length * sizeof(char**))))
		return (NULL);
	while (i <= length)
	{
		if (!(array[i] = (char**)malloc(sizeof(char*) * (length + 1))))
			return (NULL);
		array[i][0] = 0;
		i++;
	}
	return (array);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edi, %r14d
movslq %edi, %rax
leaq 0x8(,%rax,8), %rdi
callq 0x1120
testq %rax, %rax
je 0x3a5a
movq %rax, %rbx
testl %r14d, %r14d
js 0x3a5c
incl %r14d
movslq %r14d, %rax
leaq (,%rax,8), %r14
movl %eax, %r15d
xorl %r12d, %r12d
movq %r14, %rdi
callq 0x1120
movq %rax, (%rbx,%r12,8)
testq %rax, %rax
je 0x3a5a
movq $0x0, (%rax)
incq %r12
cmpq %r12, %r15
jne 0x3a38
jmp 0x3a5c
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_parse_utils3.c
// Function: init_cmds
t_piped_minishell_meta		*init_cmds(int length)
{
	t_piped_minishell_meta	*pipe;

	if (!(pipe = malloc(sizeof(t_piped_minishell_meta))))
		return (NULL);
	if (!(pipe->cmds = (char**)malloc(sizeof(char*) + (length
	* sizeof(char*)))))
		return (NULL);
	pipe->length = length + 1;
	if (!(pipe->args1 = create_3d_array(length)))
		return (NULL);
	if (!(pipe->files1 = create_3d_array(length)))
		return (NULL);
	if (!(pipe->redir = create_3d_array(length)))
		return (NULL);
	if (!(pipe->pipe = (char*)malloc(sizeof(char) * (length + 1))))
		return (NULL);
	pipe->pipe = ft_memset(pipe->pipe, 'x', length);
	pipe->pipe[length] = '\0';
	return (pipe);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edi, %r15d
movl $0x30, %edi
callq 0x1120
testq %rax, %rax
je 0x3b0b
movq %rax, %rbx
movslq %r15d, %r14
leaq 0x8(,%r14,8), %rdi
callq 0x1120
movq %rax, (%rbx)
testq %rax, %rax
je 0x3b0b
leal 0x1(%r15), %r12d
movl %r12d, 0x28(%rbx)
movl %r15d, %edi
callq 0x39f9
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x3b0b
movl %r15d, %edi
callq 0x39f9
movq %rax, 0x10(%rbx)
testq %rax, %rax
je 0x3b0b
movl %r15d, %edi
callq 0x39f9
movq %rax, 0x18(%rbx)
testq %rax, %rax
je 0x3b0b
movslq %r12d, %rdi
callq 0x1120
movq %rax, 0x20(%rbx)
testq %rax, %rax
je 0x3b0b
movq %rax, %rdi
movl $0x78, %esi
movq %r14, %rdx
callq 0x4d5c
movq %rax, 0x20(%rbx)
movb $0x0, (%rax,%r14)
jmp 0x3b0d
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_pipe.c
// Function: unset_fd
void			unset_fd(t_minishell_meta *ms)
{
	if (ms->file_fd == 1)
		close(ms->file_fd);
	if (ms->out_fd != -1)
		dup2(ms->out_fd, 1);
	if (ms->in_fd != -1)
	{
		dup2(ms->in_fd, 0);
		close(ms->in_fd);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x1, 0x40(%rdi)
jne 0x3b35
movl $0x1, %edi
callq 0x10b0
movl 0x3c(%rbx), %edi
cmpl $-0x1, %edi
je 0x3b47
movl $0x1, %esi
callq 0x1070
movl 0x38(%rbx), %edi
cmpl $-0x1, %edi
je 0x3b64
xorl %esi, %esi
callq 0x1070
movl 0x38(%rbx), %edi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x10b0
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_pipe.c
// Function: spawn_proc
void			spawn_proc(t_minishell_meta *ms, char *line, int in, int i)
{
	pid_t	pid;
	int		out;
	int		stat;

	out = ms->mypipe[1];
	if ((pid = fork()) == 0)
	{
		if (in != 0)
		{
			dup2(in, 0);
			close(in);
		}
		if (out != 1)
		{
			dup2(out, 1);
			close(out);
		}
		process_cmd(ms, line, i);
		exit(errno);
	}
	waitpid(pid, &stat, 0);
	errno = stat / 255;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movl %edx, %r13d
movq %rsi, %r14
movq %rdi, %r15
movl 0x4(%rdi), %r12d
callq 0x1170
testl %eax, %eax
je 0x3bd1
leaq -0x2c(%rbp), %rbx
movl %eax, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x1130
movslq (%rbx), %rax
imulq $-0x7f7f7f7f, %rax, %rbx # imm = 0x80808081
shrq $0x20, %rbx
addl %eax, %ebx
movl %ebx, %eax
shrl $0x1f, %eax
sarl $0x7, %ebx
addl %eax, %ebx
callq 0x1040
movl %ebx, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl %r13d, %r13d
je 0x3be8
movl %r13d, %edi
xorl %esi, %esi
callq 0x1070
movl %r13d, %edi
callq 0x10b0
cmpl $0x1, %r12d
je 0x3c03
movl %r12d, %edi
movl $0x1, %esi
callq 0x1070
movl %r12d, %edi
callq 0x10b0
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0x460c
callq 0x1040
movl (%rax), %edi
callq 0x1150
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_process.c
// Function: process_builtin
int						process_builtin(t_minishell_meta *ms, int i, char *line)
{
	int stat;

	stat = 0;
	if (ft_strcmp(ms->piped_cmds->cmds[i], CMD_EXIT) == 0 && (stat = 1))
		ms_exit(ms, line, i);
	else if (ft_strcmp(ms->piped_cmds->cmds[i], CMD_PWD) == 0 && (stat = 1))
		ms_pwd();
	else if (ft_strcmp(ms->piped_cmds->cmds[i], CMD_CD) == 0 && (stat = 1))
		ms_cd(ms->piped_cmds->args1[i][0], ms);
	else if (ft_strcmp(ms->piped_cmds->cmds[i], CMD_ENV) == 0 && (stat = 1))
		ms_env(ms->env);
	else if (ft_strcmp(ms->piped_cmds->cmds[i], CMD_ECHO) == 0 && (stat = 1))
		ms_echo(ms->piped_cmds->args1[i]);
	else if (ft_strcmp(ms->piped_cmds->cmds[i], CMD_UNSET) == 0 && (stat = 1))
		ms_unset(ms, i);
	else if (ft_strcmp(ms->piped_cmds->cmds[i], CMD_EXPORT) == 0 && (stat = 1))
		ms_export(ms, i);
	return (stat);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r15
movl %esi, %r14d
movq %rdi, %rbx
movq 0x58(%rdi), %rax
movq (%rax), %rax
movslq %esi, %r12
movq (%rax,%r12,8), %rdi
leaq 0x239f(%rip), %rsi      # 0x600a
callq 0x506c
testl %eax, %eax
je 0x3d37
movq 0x58(%rbx), %rax
movq (%rax), %rax
movq (%rax,%r12,8), %rdi
leaq 0x247f(%rip), %rsi      # 0x6109
callq 0x506c
testl %eax, %eax
je 0x3d47
movq 0x58(%rbx), %rax
movq (%rax), %rax
movq (%rax,%r12,8), %rdi
leaq 0x23a5(%rip), %rsi      # 0x604e
callq 0x506c
movq 0x58(%rbx), %rcx
testl %eax, %eax
je 0x3d50
movq (%rcx), %rax
movq (%rax,%r12,8), %rdi
leaq 0x2445(%rip), %rsi      # 0x610d
callq 0x506c
testl %eax, %eax
je 0x3d65
movq 0x58(%rbx), %rax
movq (%rax), %rax
movq (%rax,%r12,8), %rdi
leaq 0x242a(%rip), %rsi      # 0x6111
callq 0x506c
movq 0x58(%rbx), %rcx
testl %eax, %eax
je 0x3d70
movq (%rcx), %rax
movq (%rax,%r12,8), %rdi
leaq 0x23ae(%rip), %rsi      # 0x60b0
callq 0x506c
testl %eax, %eax
je 0x3d7f
movq 0x58(%rbx), %rax
movq (%rax), %rax
movq (%rax,%r12,8), %rdi
leaq 0x2399(%rip), %rsi      # 0x60b6
callq 0x506c
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
jne 0x3d8f
movq %rbx, %rdi
movl %r14d, %esi
callq 0x2594
jmp 0x3d8a
movq %rbx, %rdi
movq %r15, %rsi
movl %r14d, %edx
callq 0x21fe
jmp 0x3d8a
xorl %eax, %eax
callq 0x3ea8
jmp 0x3d8a
movq 0x8(%rcx), %rax
movq (%rax,%r12,8), %rax
movq (%rax), %rdi
movq %rbx, %rsi
callq 0x1c33
jmp 0x3d8a
movq 0x20(%rbx), %rdi
callq 0x1ef0
jmp 0x3d8a
movq 0x8(%rcx), %rax
movq (%rax,%r12,8), %rdi
callq 0x1e50
jmp 0x3d8a
movq %rbx, %rdi
movl %r14d, %esi
callq 0x4212
movl $0x1, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_process.c
// Function: search_and_execute_path
void					search_and_execute_path(t_minishell_meta *ms, int i)
{
	if (ft_strchr(ms->piped_cmds->cmds[i], '/') != NULL)
		ms_execute(ms->piped_cmds->cmds[i], ms->piped_cmds->args1[i], ms->env);
	else if ((ft_strcmp(ms->piped_cmds->cmds[i], "") == 0)\
	|| check_and_execute_path(ms, i) == 0)
		command_not_found(ms, i);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %rbx
movq 0x58(%rdi), %rax
movq (%rax), %rax
movslq %esi, %r15
movq (%rax,%r15,8), %rdi
movl $0x2f, %esi
callq 0x501c
movq 0x58(%rbx), %rcx
movq (%rcx), %rdx
movq (%rdx,%r15,8), %rdi
testq %rax, %rax
je 0x3deb
movq 0x8(%rcx), %rax
movq (%rax,%r15,8), %rsi
movq 0x20(%rbx), %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x20f9
leaq 0x2216(%rip), %rsi      # 0x6008
callq 0x506c
testl %eax, %eax
je 0x3e15
movq %rbx, %rdi
movl %r14d, %esi
callq 0x1cf9
testl %eax, %eax
je 0x3e15
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movl %r14d, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x454a
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_process.c
// Function: process
void					process(t_minishell_meta *ms, char *line)
{
	int		i;
	int		in;

	i = 0;
	in = 0;
	while (ms->piped_cmds->cmds[i] != NULL)
	{
		if (ms->piped_cmds->pipe[i] == '|')
		{
			process_piped_cmd(ms, line, i, &in);
			i++;
			continue;
		}
		process_cmd(ms, line, i);
		i++;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl $0x0, -0x24(%rbp)
movq 0x58(%rdi), %rax
movq (%rax), %rcx
cmpq $0x0, (%rcx)
je 0x3e99
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
leaq -0x24(%rbp), %r12
movq 0x20(%rax), %rax
cmpb $0x7c, (%rax,%r15)
jne 0x3e78
movq %r14, %rdi
movq %rbx, %rsi
movl %r15d, %edx
movq %r12, %rcx
callq 0x4694
jmp 0x3e86
movq %r14, %rdi
movq %rbx, %rsi
movl %r15d, %edx
callq 0x460c
movq 0x58(%r14), %rax
movq (%rax), %rcx
cmpq $0x0, 0x8(%rcx,%r15,8)
leaq 0x1(%r15), %r15
jne 0x3e5a
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_pwd.c
// Function: ms_pwd
void					ms_pwd(void)
{
	char *buff;

	errno = 0;
	buff = NULL;
	buff = getcwd(buff, 0);
	ft_putendl_fd(buff, STDOUT_FILENO);
	ft_free(&buff);
	return ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
callq 0x1040
movl $0x0, (%rax)
xorl %edi, %edi
xorl %esi, %esi
callq 0x10a0
leaq -0x10(%rbp), %rbx
movq %rax, (%rbx)
movq %rax, %rdi
movl $0x1, %esi
callq 0x4d94
movq %rbx, %rdi
callq 0x17b0
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_sig_handler.c
// Function: sig_int_handler
void	sig_int_handler(int sig)
{
	if (sig == SIGINT)
	{
		errno = 1;
		ft_putstr(" \b\b \b\b ");
		ft_putstr("\n");
		write(STDERR_FILENO, SHELL_BANNER, 15);
		signal(SIGINT, sig_int_handler);
	}
}

// Assembly:
cmpl $0x2, %edi
jne 0x3f3c
pushq %rbp
movq %rsp, %rbp
callq 0x1040
movl $0x1, (%rax)
leaq 0x2213(%rip), %rdi      # 0x6116
callq 0x4de8
leaq 0x2280(%rip), %rdi      # 0x618f
callq 0x4de8
leaq 0x20fe(%rip), %rsi      # 0x6019
movl $0xf, %edx
movl $0x2, %edi
callq 0x1050
leaq -0x49(%rip), %rsi       # 0x3ee8
movl $0x2, %edi
popq %rbp
jmp 0x1100
retq
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_sig_handler.c
// Function: proc_signal_handler
void	proc_signal_handler(int sig)
{
	errno = 130;
	if (sig == SIGINT)
	{
		ft_putstr_fd("\n", 2);
		signal(SIGINT, proc_signal_handler);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edi, %ebx
callq 0x1040
movl $0x82, (%rax)
cmpl $0x2, %ebx
jne 0x3f7d
leaq 0x2233(%rip), %rdi      # 0x618f
movl $0x2, %esi
callq 0x4e0c
leaq -0x30(%rip), %rsi       # 0x3f3d
movl $0x2, %edi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1100
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_sig_handler.c
// Function: get_exit_status
int		get_exit_status(t_minishell_meta *ms)
{
	char	*errno_str;
	int		x;

	errno_str = ft_itoa(errno);
	x = 0;
	while (errno_str[x] != '\0')
	{
		ms->arg = ft_stradd(ms->arg, errno_str[x]);
		x++;
	}
	ft_free(&errno_str);
	return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
callq 0x1040
movl (%rax), %edi
callq 0x4c88
movq %rax, -0x18(%rbp)
movb (%rax), %cl
testb %cl, %cl
je 0x401a
movq %rax, %r14
movq 0x10(%rbx), %rax
incq %r14
movsbl %cl, %esi
movq %rax, %rdi
callq 0x1905
movq %rax, 0x10(%rbx)
movb (%r14), %cl
incq %r14
testb %cl, %cl
jne 0x4001
leaq -0x18(%rbp), %rdi
callq 0x17b0
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_unset.c
// Function: unset_var
void	unset_var(char *var, t_minishell_meta *ms)
{
	int		i;
	char	*tmp_var;

	i = 0;
	tmp_var = NULL;
	while (var[i] != '=')
	{
		tmp_var = ft_stradd(tmp_var, var[i]);
		i++;
	}
	ms_unset_single(ms->env, tmp_var, ms->path);
	ms_unset_single(ms->export, tmp_var, ms->path);
	ft_free(&tmp_var);
	return ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movb (%rdi), %al
cmpb $0x3d, %al
jne 0x4048
xorl %r14d, %r14d
jmp 0x4069
movq %rdi, %r15
incq %r15
xorl %r14d, %r14d
movsbl %al, %esi
movq %r14, %rdi
callq 0x1905
movq %rax, %r14
movb (%r15), %al
incq %r15
cmpb $0x3d, %al
jne 0x4051
leaq -0x20(%rbp), %r15
movq %r14, (%r15)
movq 0x20(%rbx), %rdi
movq 0x30(%rbx), %rdx
movq %r14, %rsi
callq 0x40a3
movq 0x28(%rbx), %rdi
movq 0x30(%rbx), %rdx
movq %r14, %rsi
callq 0x40a3
movq %r15, %rdi
callq 0x17b0
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_unset.c
// Function: ms_unset_single
int		ms_unset_single(char **env, char *arg, char **path)
{
	int		env_len;
	int		i;

	i = -1;
	if (!check_var(arg, "unset"))
		return (0);
	while (env[++i] != 0)
	{
		env_len = (0);
		while (env[i][env_len] != '=' && env[i][env_len] != '\0')
			env_len++;
		if (ft_strlen(arg) != env_len)
			continue;
		if (ft_strncmp(arg, env[i], env_len) != 0)
			continue;
		ft_free(&env[i]);
		while (env[++i] != 0)
			env[i - 1] = env[i];
		env[--i] = 0;
		break ;
	}
	if (ft_strcmp(arg, "PATH") == 0)
		free_path(path);
	return (1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %rax
movq %rdi, %r12
leaq 0x1fec(%rip), %rsi      # 0x60b0
movq %rax, -0x30(%rbp)
movq %rax, %rdi
callq 0x236c
testl %eax, %eax
je 0x4140
movq (%r12), %rax
testq %rax, %rax
je 0x418c
movl $0x1, %r15d
xorl %r14d, %r14d
movq %r12, -0x38(%rbp)
leaq (%r12,%r14,8), %r12
xorl %r13d, %r13d
movzbl (%rax,%r13), %ecx
testl %ecx, %ecx
je 0x4108
cmpl $0x3d, %ecx
je 0x4108
incq %r13
jmp 0x40f5
movq -0x30(%rbp), %rdi
callq 0x17de
cmpl %r13d, %eax
jne 0x412a
movq (%r12), %rsi
movq -0x30(%rbp), %rdi
movq %r13, %rdx
callq 0x50a0
testl %eax, %eax
je 0x4148
movq -0x38(%rbp), %r12
movq 0x8(%r12,%r14,8), %rax
incq %r14
incl %r15d
testq %rax, %rax
jne 0x40ee
jmp 0x418c
xorl %r14d, %r14d
jmp 0x41cb
movq %r12, %rdi
callq 0x17b0
leal 0x1(%r14), %eax
movq -0x38(%rbp), %rsi
movq (%rsi,%rax,8), %rax
testq %rax, %rax
je 0x4181
movslq %r15d, %rcx
movslq %r14d, %rdx
movq %rax, (%rsi,%rdx,8)
movq 0x8(%rsi,%rcx,8), %rax
movq %rcx, %r14
incq %rcx
testq %rax, %rax
jne 0x4164
decq %rcx
movq %rcx, %r14
movslq %r14d, %rax
movq $0x0, (%rsi,%rax,8)
leaq 0x201e(%rip), %rsi      # 0x61b1
movq -0x30(%rbp), %rdi
callq 0x506c
movl $0x1, %r14d
testq %rbx, %rbx
je 0x41cb
testl %eax, %eax
jne 0x41cb
cmpq $0x0, (%rbx)
je 0x41cb
movq %rbx, %rdi
callq 0x17b0
movq $0x0, (%rbx)
cmpq $0x0, 0x8(%rbx)
leaq 0x8(%rbx), %rbx
jne 0x41b1
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_unset.c
// Function: free_path
void	free_path(char **args)
{
	int i;

	i = 0;
	while (args && args[i])
	{
		ft_free(&args[i]);
		args[i] = 0;
		i++;
	}
	if (args)
		args = 0;
}

// Assembly:
testq %rdi, %rdi
je 0x4211
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0x420b
movq %rbx, %rdi
callq 0x17b0
movq $0x0, (%rbx)
cmpq $0x0, 0x8(%rbx)
leaq 0x8(%rbx), %rbx
jne 0x41f1
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_unset.c
// Function: ms_unset
void	ms_unset(t_minishell_meta *ms, int i)
{
	int	j;
	int valid_var;

	j = 0;
	errno = 0;
	if (ms->no_args)
		return ;
	while (ms->piped_cmds->args1[i][j] != 0)
	{
		valid_var = ms_unset_single(ms->env, ms->piped_cmds->args1[i][j],\
		ms->path);
		if (valid_var == 0)
		{
			j++;
			continue ;
		}
		ms_unset_single(ms->export, ms->piped_cmds->args1[i][j], ms->path);
		j++;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %rbx
callq 0x1040
movl $0x0, (%rax)
cmpl $0x0, 0x4c(%rbx)
jne 0x4295
movslq %r14d, %r14
movq 0x58(%rbx), %rax
movq 0x8(%rax), %rax
movq (%rax,%r14,8), %rax
movq (%rax), %rsi
testq %rsi, %rsi
je 0x4295
xorl %r15d, %r15d
movq 0x20(%rbx), %rdi
movq 0x30(%rbx), %rdx
callq 0x40a3
testl %eax, %eax
je 0x427b
movq 0x58(%rbx), %rax
movq 0x8(%rax), %rax
movq (%rax,%r14,8), %rax
movq (%rax,%r15), %rsi
movq 0x28(%rbx), %rdi
movq 0x30(%rbx), %rdx
callq 0x40a3
movq 0x58(%rbx), %rax
movq 0x8(%rax), %rax
movq (%rax,%r14,8), %rax
movq 0x8(%rax,%r15), %rsi
addq $0x8, %r15
testq %rsi, %rsi
jne 0x424d
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_utils.c
// Function: parse_quotes
int		parse_quotes(char *line, int i, t_minishell_meta *ms)
{
	int		quote_bit;
	char	quote;

	quote = line[i];
	quote_bit = line[i++] == '\'' ? 1 : 0;
	while ((line[i] != '\0') && (line[i] != quote))
	{
		if (line[i] == '\\' && ((line[i + 1] == '\"' && !quote_bit)\
		|| (line[i + 1] == '\\' && !quote_bit) || line[i + 1] == '$'))
		{
			ms->arg = ft_stradd(ms->arg, line[i + 1]);
			i = i + 2;
			continue;
		}
		if (line[i] == '$' && !quote_bit && ft_isalpha(line[i + 1]))
		{
			i = substitute_value(line, i, ms);
			i++;
			continue;
		}
		ms->arg = ft_stradd(ms->arg, line[i]);
		i++;
	}
	return (line[i] != quote ? 0 : i);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movslq %esi, %rdx
movb (%rdi,%rdx), %r12b
movb 0x1(%rdi,%rdx), %al
leaq 0x1(%rdx), %rbx
testb %al, %al
sete %sil
cmpb %r12b, %al
sete %cl
orb %cl, %sil
testb $0x1, %sil
jne 0x4384
movq %rdi, %r15
leaq (%rdi,%rdx), %r13
incq %r13
cmpb $0x5c, %al
jne 0x4322
cmpb $0x27, %r12b
sete %al
movb 0x1(%r13), %cl
cmpb $0x22, %cl
setne %dl
cmpb $0x5c, %cl
setne %sil
cmpb $0x24, %cl
je 0x430d
andb %sil, %dl
orb %al, %dl
movb $0x5c, %al
jne 0x4355
movq 0x10(%r14), %rdi
movsbl %cl, %esi
callq 0x1905
movq %rax, 0x10(%r14)
addl $0x2, %ebx
jmp 0x4367
cmpb $0x27, %r12b
sete %cl
cmpb $0x24, %al
setne %dl
orb %cl, %dl
jne 0x4355
movsbl 0x1(%r13), %edi
callq 0x4c40
testl %eax, %eax
je 0x4351
movq %r15, %rdi
movl %ebx, %esi
movq %r14, %rdx
callq 0x439a
movl %eax, %ebx
jmp 0x4365
movb (%r13), %al
movq 0x10(%r14), %rdi
movsbl %al, %esi
callq 0x1905
movq %rax, 0x10(%r14)
incl %ebx
movslq %ebx, %r13
movb (%r15,%r13), %al
cmpb %r12b, %al
sete %cl
testb %al, %al
je 0x4384
addq %r15, %r13
cmpb %r12b, %al
jne 0x42e3
xorl %eax, %eax
testb %cl, %cl
cmovnel %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_utils.c
// Function: substitute_value
int		substitute_value(char *line, int i, t_minishell_meta *ms)
{
	char	*var;

	var = NULL;
	i++;
	if (line[i] == '?')
		return (i + get_exit_status(ms));
	if (ft_isdigit(line[i]))
		return (i);
	if (!ft_isalpha(line[i]) && line[i] != '_')
	{
		if (line[i] != '\'' && line[i] != '\"')
			ms->arg = ft_stradd(ms->arg, '$');
		return (i - 1);
	}
	while (line[i] && \
	(ft_isalpha(line[i]) || ft_isdigit(line[i]) || line[i] == '_'))
	{
		var = ft_stradd(var, line[i]);
		i++;
	}
	add_env(ms, var);
	free(var);
	return ((i - 1));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
movslq %esi, %r13
leaq 0x1(%r13), %r15
movsbl 0x1(%rdi,%r13), %edi
cmpl $0x3f, %edi
jne 0x43d3
movq %rbx, %rdi
callq 0x3fd3
addl %r15d, %eax
movl %eax, %r15d
jmp 0x4483
movl %esi, %r12d
callq 0x4c54
testl %eax, %eax
jne 0x4483
movsbl (%r14,%r15), %edi
callq 0x4c40
movb (%r14,%r15), %cl
testl %eax, %eax
je 0x4444
testb %cl, %cl
je 0x446a
xorl %r15d, %r15d
movsbl %cl, %edi
callq 0x4c40
movb 0x1(%r14,%r13), %cl
testl %eax, %eax
jne 0x4425
movsbl %cl, %edi
callq 0x4c54
movb 0x1(%r14,%r13), %cl
testl %eax, %eax
jne 0x4425
cmpb $0x5f, %cl
movb $0x5f, %cl
jne 0x443f
movsbl %cl, %esi
movq %r15, %rdi
callq 0x1905
movq %rax, %r15
movb 0x2(%r14,%r13), %cl
incq %r13
testb %cl, %cl
jne 0x43fc
movl %r13d, %r12d
jmp 0x446d
movzbl %cl, %eax
cmpl $0x22, %eax
je 0x4480
cmpl $0x27, %eax
je 0x4480
cmpl $0x5f, %eax
je 0x43f9
movq 0x10(%rbx), %rdi
movl $0x24, %esi
callq 0x1905
movq %rax, 0x10(%rbx)
jmp 0x4480
xorl %r15d, %r15d
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4495
movq %r15, %rdi
callq 0x1030
movl %r12d, %r15d
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_utils.c
// Function: add_env
void	add_env(t_minishell_meta *ms, char *var)
{
	int		env_len;
	int		var_len;
	int		i;

	i = -1;
	var_len = ft_strlen(var);
	while (ms->env[++i] != 0)
	{
		env_len = 0;
		while (ms->env[i][env_len] != '=')
			env_len++;
		if (var_len != env_len)
			continue;
		if (ft_strncmp(var, ms->env[i], var_len) != 0)
			continue;
		env_len++;
		while (ms->env[i][env_len] != '\0')
		{
			ms->arg = ft_stradd(ms->arg, ms->env[i][env_len]);
			env_len++;
		}
		break ;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsi, -0x30(%rbp)
movq %rsi, %rdi
callq 0x17de
movq 0x20(%rbx), %rcx
movq (%rcx), %rsi
testq %rsi, %rsi
je 0x453b
movslq %eax, %r14
movl %r14d, %r15d
notl %r15d
xorl %r12d, %r12d
movl $0x1, %r13d
cmpb $0x3d, -0x1(%rsi,%r13)
leaq 0x1(%r13), %r13
jne 0x44d0
leal (%r15,%r13), %eax
cmpl $0x1, %eax
jne 0x44f9
movq -0x30(%rbp), %rdi
movq %r14, %rdx
callq 0x50a0
movq 0x20(%rbx), %rcx
testl %eax, %eax
je 0x4508
movq 0x8(%rcx,%r12,8), %rsi
incq %r12
testq %rsi, %rsi
jne 0x44ca
jmp 0x453b
movq (%rcx,%r12,8), %rax
movb 0x1(%rax,%r14), %cl
testb %cl, %cl
je 0x453b
movq 0x10(%rbx), %rax
movsbl %cl, %esi
movq %rax, %rdi
callq 0x1905
movq %rax, 0x10(%rbx)
movq 0x20(%rbx), %rcx
movq (%rcx,%r12,8), %rcx
movb (%rcx,%r13), %cl
incq %r13
testb %cl, %cl
jne 0x4519
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_utils.c
// Function: command_not_found
void	command_not_found(t_minishell_meta *ms, int i)
{
	if (ms->piped_cmds->files1[i][0] != 0)
		unset_fd(ms);
	write(STDERR_FILENO, "minishell: ", 11);
	write(STDERR_FILENO, ms->piped_cmds->cmds[i],
	ft_strlen(ms->piped_cmds->cmds[i]));
	write(STDERR_FILENO, COMMAND_NOT_FOUND, 20);
	errno = 127;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x58(%rdi), %rax
movq 0x10(%rax), %rax
movslq %esi, %r14
movq (%rax,%r14,8), %rax
cmpq $0x0, (%rax)
je 0x4571
movq %rbx, %rdi
callq 0x3b1c
leaq 0x1bb8(%rip), %rsi      # 0x6130
movl $0xb, %edx
movl $0x2, %edi
callq 0x1050
movq 0x58(%rbx), %rax
movq (%rax), %rax
movq (%rax,%r14,8), %rbx
movq %rbx, %rdi
callq 0x17de
movslq %eax, %rdx
movl $0x2, %edi
movq %rbx, %rsi
callq 0x1050
leaq 0x1b8b(%rip), %rsi      # 0x613c
movl $0x14, %edx
movl $0x2, %edi
callq 0x1050
callq 0x1040
movl $0x7f, (%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_utils2.c
// Function: process_cmd
void				process_cmd(t_minishell_meta *ms, char *line, int i)
{
	if (ms->piped_cmds->files1[i][0] != 0)
	{
		handle_fd(ms, i);
	}
	if (ms->process_bit >= 0 && process_builtin(ms, i, line) == 0)
	{
		search_and_execute_path(ms, i);
	}
	if ((ms->piped_cmds->files1[i][0] != 0) && (ms->multiline != -99))
	{
		unset_fd(ms);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %rbx
movq 0x58(%rdi), %rax
movq 0x10(%rax), %rax
movslq %edx, %r12
movq (%rax,%r12,8), %rax
cmpq $0x0, (%rax)
je 0x4640
movq %rbx, %rdi
movl %r14d, %esi
callq 0x299f
cmpl $0x0, 0x18(%rbx)
js 0x4663
movq %rbx, %rdi
movl %r14d, %esi
movq %r15, %rdx
callq 0x3c42
testl %eax, %eax
jne 0x4663
movq %rbx, %rdi
movl %r14d, %esi
callq 0x3d98
movq 0x58(%rbx), %rax
movq 0x10(%rax), %rax
movq (%rax,%r12,8), %rax
cmpq $0x0, (%rax)
je 0x467b
cmpl $-0x63, 0x44(%rbx)
jne 0x4684
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x3b1c
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_utils2.c
// Function: process_piped_cmd
void				process_piped_cmd(t_minishell_meta *ms, char *line,
int i, int *in)
{
	static	pid_t	pid;
	int				stat;

	if (!ms->piped_cmds->pipe[i + 1] || (ms->piped_cmds->pipe[i + 1] != '|'))
	{
		if ((pid = fork()) == 0)
		{
			if (*in != 0)
				dup2(*in, 0);
			process_cmd(ms, line, i);
			exit(errno);
		}
		waitpid(pid, &stat, 0);
		errno = stat / 255;
	}
	else
	{
		pipe(ms->mypipe);
		spawn_proc(ms, line, *in, i);
		close(ms->mypipe[1]);
		*in = ms->mypipe[0];
	}
	return ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rcx, %r12
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %rbx
movq 0x58(%rdi), %rax
movq 0x20(%rax), %rax
movslq %edx, %rcx
cmpb $0x7c, 0x1(%rax,%rcx)
jne 0x46eb
movq %rbx, %rdi
callq 0x10c0
movl (%r12), %edx
movq %rbx, %rdi
movq %r15, %rsi
movl %r14d, %ecx
callq 0x3b6b
movl 0x4(%rbx), %edi
callq 0x10b0
movl (%rbx), %eax
movl %eax, (%r12)
jmp 0x4725
callq 0x1170
testl %eax, %eax
je 0x4732
leaq -0x24(%rbp), %rbx
movl %eax, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x1130
movslq (%rbx), %rax
imulq $-0x7f7f7f7f, %rax, %rbx # imm = 0x80808081
shrq $0x20, %rbx
addl %eax, %ebx
movl %ebx, %eax
shrl $0x1f, %eax
sarl $0x7, %ebx
addl %eax, %ebx
callq 0x1040
movl %ebx, (%rax)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl (%r12), %edi
testl %edi, %edi
je 0x4741
xorl %esi, %esi
callq 0x1070
movq %rbx, %rdi
movq %r15, %rsi
movl %r14d, %edx
callq 0x460c
callq 0x1040
movl (%rax), %edi
callq 0x1150
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_utils2.c
// Function: replace_tabs
char				*replace_tabs(char *line)
{
	int i;

	i = 0;
	while (line && line[i])
	{
		if (ft_isspace(line[i]))
			line[i] = ' ';
		i++;
	}
	return (line);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
testq %rdi, %rdi
je 0x478f
movb (%rbx), %al
testb %al, %al
je 0x478f
leaq 0x1(%rbx), %r14
movsbl %al, %edi
callq 0x4c68
testl %eax, %eax
je 0x4785
movb $0x20, -0x1(%r14)
movb (%r14), %al
incq %r14
testb %al, %al
jne 0x4774
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_utils3.c
// Function: no_file_or_directory
void			no_file_or_directory(char *cmd, char *name)
{
	ft_putstr_fd(SHELL_NAME, STDERR_FILENO);
	ft_putstr_fd(": ", STDERR_FILENO);
	if (cmd)
	{
		ft_putstr_fd(cmd, STDERR_FILENO);
		ft_putstr_fd(": ", STDERR_FILENO);
	}
	if (name)
	{
		ft_putstr_fd(name, STDERR_FILENO);
		ft_putstr_fd(": ", STDERR_FILENO);
	}
	ft_putstr_fd("No such file or directory\n", STDERR_FILENO);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1845(%rip), %rdi      # 0x6029
movl $0x2, %esi
callq 0x4e0c
leaq 0x1842(%rip), %rdi      # 0x6037
movl $0x2, %esi
callq 0x4e0c
testq %r14, %r14
je 0x4822
movq %r14, %rdi
movl $0x2, %esi
callq 0x4e0c
leaq 0x181f(%rip), %rdi      # 0x6037
movl $0x2, %esi
callq 0x4e0c
testq %rbx, %rbx
je 0x4845
movq %rbx, %rdi
movl $0x2, %esi
callq 0x4e0c
leaq 0x17fc(%rip), %rdi      # 0x6037
movl $0x2, %esi
callq 0x4e0c
leaq 0x181d(%rip), %rdi      # 0x6069
movl $0x2, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x4e0c
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_utils3.c
// Function: too_many_args
void			too_many_args(char *cmd)
{
	ft_putstr_fd(SHELL_NAME, STDERR_FILENO);
	ft_putstr_fd(": ", STDERR_FILENO);
	ft_putstr_fd(cmd, STDERR_FILENO);
	ft_putstr_fd(": too many arguments\n", STDERR_FILENO);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x17bf(%rip), %rdi      # 0x6029
movl $0x2, %esi
callq 0x4e0c
leaq 0x17bc(%rip), %rdi      # 0x6037
movl $0x2, %esi
callq 0x4e0c
movq %rbx, %rdi
movl $0x2, %esi
callq 0x4e0c
leaq 0x18b8(%rip), %rdi      # 0x6151
movl $0x2, %esi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x4e0c
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_utils3.c
// Function: syntax_error
int				syntax_error(char *token)
{
	ft_putstr_fd(SHELL_NAME, STDERR_FILENO);
	ft_putstr_fd(SYNTAX_ERROR, STDERR_FILENO);
	ft_putstr_fd(token, STDERR_FILENO);
	ft_putstr_fd("'\n", STDERR_FILENO);
	errno = 258;
	return (1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x1770(%rip), %rdi      # 0x6029
movl $0x2, %esi
callq 0x4e0c
leaq 0x189d(%rip), %rdi      # 0x6167
movl $0x2, %esi
callq 0x4e0c
movq %rbx, %rdi
movl $0x2, %esi
callq 0x4e0c
leaq 0x18a6(%rip), %rdi      # 0x618e
movl $0x2, %esi
callq 0x4e0c
callq 0x1040
movl $0x102, (%rax)          # imm = 0x102
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_utils3.c
// Function: print_invalid
void			print_invalid(char *var, char *cmd)
{
	errno = 1;
	ft_putstr_fd("minishell: ", STDOUT_FILENO);
	ft_putstr_fd(cmd, STDOUT_FILENO);
	ft_putstr_fd(": `", STDOUT_FILENO);
	ft_putstr_fd(var, STDOUT_FILENO);
	ft_putstr_fd("\': not a valid identifier\n", STDOUT_FILENO);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x1040
movl $0x1, (%rax)
leaq 0x1808(%rip), %rdi      # 0x6130
movl $0x1, %esi
callq 0x4e0c
movq %rbx, %rdi
movl $0x1, %esi
callq 0x4e0c
leaq 0x184b(%rip), %rdi      # 0x6191
movl $0x1, %esi
callq 0x4e0c
movq %r14, %rdi
movl $0x1, %esi
callq 0x4e0c
leaq 0x1831(%rip), %rdi      # 0x6195
movl $0x1, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x4e0c
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_utils3.c
// Function: get_frequency
int				get_frequency(char *str, char c)
{
	int i;
	int count;

	i = 0;
	count = 0;
	while (str && str[i] != '\0')
	{
		if (str[i] == c)
			count++;
		i++;
	}
	return (count);
}

// Assembly:
xorl %eax, %eax
testq %rdi, %rdi
je 0x499c
movb (%rdi), %cl
testb %cl, %cl
je 0x499c
pushq %rbp
movq %rsp, %rbp
incq %rdi
xorl %eax, %eax
xorl %edx, %edx
cmpb %sil, %cl
sete %dl
addl %edx, %eax
movb (%rdi), %cl
incq %rdi
testb %cl, %cl
jne 0x4988
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_utils4.c
// Function: set_export
void			set_export(t_minishell_meta *ms)
{
	int i;
	int env_len;

	i = 0;
	env_len = 0;
	while (ms->env[env_len] != 0)
		env_len++;
	ms->export = (char**)malloc(sizeof(char*) * (env_len + 1));
	if (ms->export == NULL)
		exit(1);
	ms->export[i] = 0;
	return ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x20(%rdi), %rax
xorl %edi, %edi
cmpq $0x0, (%rax,%rdi)
leaq 0x8(%rdi), %rdi
jne 0x49af
movabsq $0x7fffffff8, %rax      # imm = 0x7FFFFFFF8
andq %rax, %rdi
callq 0x1120
movq %rax, 0x28(%rbx)
testq %rax, %rax
je 0x49e3
movq $0x0, (%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movl $0x1, %edi
callq 0x1150
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_utils4.c
// Function: set_env
void			set_env(t_minishell_meta *ms, char **env)
{
	int i;
	int env_len;

	i = 0;
	env_len = 0;
	while (env[env_len] != 0)
		env_len++;
	ms->env = (char**)malloc(sizeof(char*) * (env_len + 100));
	if (ms->env == NULL)
		exit(0);
	while (i < env_len)
	{
		ms->env[i] = ft_strdup(env[i]);
		i++;
	}
	ms->env[i] = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq $-0x1, %r15
movq $-0x318, %rax           # imm = 0xFCE8
addq $-0x8, %rax
cmpq $0x0, 0x8(%r14,%r15,8)
leaq 0x1(%r15), %r15
jne 0x4a0c
negq %rax
movabsq $0x7fffffff8, %rdi      # imm = 0x7FFFFFFF8
andq %rax, %rdi
callq 0x1120
movq %rax, 0x20(%rbx)
testq %rax, %rax
je 0x4a75
testq %r15, %r15
je 0x4a61
xorl %r12d, %r12d
movq (%r14,%r12,8), %rdi
callq 0x17f4
movq 0x20(%rbx), %rcx
movq %rax, (%rcx,%r12,8)
incq %r12
cmpq %r12, %r15
jne 0x4a42
movq 0x20(%rbx), %rax
jmp 0x4a64
xorl %r15d, %r15d
movq $0x0, (%rax,%r15,8)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
xorl %edi, %edi
callq 0x1150
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_utils4.c
// Function: set_path
void			set_path(t_minishell_meta *ms)
{
	ms->arg = 0;
	substitute_value("$PATH", 0, ms);
	ms->path = ft_split(ms->arg, ':');
	ft_free(&ms->arg);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x10(%rdi), %r14
movq $0x0, 0x10(%rdi)
leaq 0x1717(%rip), %rdi      # 0x61b0
xorl %esi, %esi
movq %rbx, %rdx
callq 0x439a
movq 0x10(%rbx), %rdi
movl $0x3a, %esi
callq 0x4e44
movq %rax, 0x30(%rbx)
movq %r14, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x17b0
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_utils4.c
// Function: set_env_export
void			set_env_export(t_minishell_meta *ms, char **env)
{
	set_env(ms, env);
	set_export(ms);
	ms->path = 0;
	write(STDOUT_FILENO, SHELL_BANNER, 15);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x49ed
movq %rbx, %rdi
callq 0x49a0
movq $0x0, 0x30(%rbx)
leaq 0x1533(%rip), %rsi      # 0x6019
movl $0xf, %edx
movl $0x1, %edi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1050
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_utils4.c
// Function: add_ms_arg
int				add_ms_arg(t_minishell_meta *ms, int index, int j, int flag)
{
	if (flag == 0)
	{
		if (ms->arg)
		{
			ms->piped_cmds->redir[index][j] = ft_strdup(ms->arg);
			ft_free(&ms->arg);
		}
		else
			ft_free(&ms->arg);
		return (j);
	}
	else if (flag == 1)
	{
		if (ms->arg)
		{
			ms->piped_cmds->files1[index][j++] = ft_strdup(ms->arg);
			ft_free(&ms->arg);
		}
		return (j);
	}
	return (j);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebx
movl %esi, %r15d
movq %rdi, %r12
cmpl $0x1, %ecx
je 0x4b3f
testl %ecx, %ecx
jne 0x4b7a
leaq 0x10(%r12), %r14
movq 0x10(%r12), %rdi
testq %rdi, %rdi
je 0x4b72
callq 0x17f4
movq 0x58(%r12), %rdx
movslq %r15d, %rcx
shlq $0x3, %rcx
addq 0x18(%rdx), %rcx
movl %ebx, %edx
jmp 0x4b66
movq 0x10(%r12), %rdi
testq %rdi, %rdi
je 0x4b7a
leaq 0x10(%r12), %r14
callq 0x17f4
movq 0x58(%r12), %rdx
movslq %r15d, %rcx
shlq $0x3, %rcx
addq 0x10(%rdx), %rcx
leal 0x1(%rbx), %edx
movq (%rcx), %rcx
movslq %ebx, %rsi
movq %rax, (%rcx,%rsi,8)
movl %edx, %ebx
movq %r14, %rdi
callq 0x17b0
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/libft/ft_atoi.c
// Function: ft_atoi
int		ft_atoi(const char *s1)
{
	int					neg;
	unsigned long int	val;
	int					i;

	neg = 1;
	val = 0;
	i = 0;
	while ((s1[i] >= 9 && s1[i] <= 13) || s1[i] == 32)
		i++;
	if (s1[i] == '-')
		neg = -1;
	if (s1[i] == '-' || s1[i] == '+')
		i++;
	while ((ft_isdigit(s1[i])) && s1[i] != '\0')
		val = val * 10 + ((const char)s1[i++] - '0');
	return (val * neg);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %eax, %eax
movzbl (%rbx,%rax), %ecx
leal -0x9(%rcx), %edx
cmpb $0x5, %dl
jb 0x4ba8
cmpl $0x20, %ecx
jne 0x4bad
incq %rax
jmp 0x4b97
cmpl $0x2b, %ecx
je 0x4bbf
cmpl $0x2d, %ecx
jne 0x4bca
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0x4bc5
movl $0x1, %r14d
incq %rax
jmp 0x4bd0
movl $0x1, %r14d
movslq %eax, %r15
movsbl (%rbx,%r15), %edi
callq 0x4c54
testl %eax, %eax
je 0x4c0d
addq %rbx, %r15
incq %r15
xorl %ebx, %ebx
movsbl -0x1(%r15), %eax
testl %eax, %eax
je 0x4c0f
leal (%rbx,%rbx,4), %ecx
leal (%rax,%rcx,2), %ebx
addl $-0x30, %ebx
movsbl (%r15), %edi
callq 0x4c54
incq %r15
testl %eax, %eax
jne 0x4be9
jmp 0x4c0f
xorl %ebx, %ebx
imull %r14d, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/libft/ft_itoa.c
// Function: ft_itoa
char			*ft_itoa(int nbr)
{
	int		length;
	int		sig;
	int		i;
	char	*result;

	i = 0;
	sig = nbr < 0 ? 1 : 0;
	length = ft_nbr_len(nbr);
	if ((nbr == 0) || (nbr == -2147483648))
		return (preturn(nbr));
	if (!(result = (char *)malloc(sizeof(char) * (length + 1 + sig))))
		return (NULL);
	if (sig)
	{
		result[0] = '-';
		nbr = -nbr;
	}
	while (++i <= length)
	{
		result[length + sig - i] = (nbr % 10) + '0';
		nbr = nbr / 10;
	}
	result[length + sig] = '\0';
	return (result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testl %edi, %edi
je 0x4d32
movl %edi, %ebx
movl %edi, %r12d
negl %r12d
movl %edi, %eax
cmovnsl %r12d, %eax
xorl %r14d, %r14d
movl $0xcccccccd, %ecx       # imm = 0xCCCCCCCD
movl %eax, %edx
imulq %rcx, %rdx
shrq $0x23, %rdx
incq %r14
cmpl $0x9, %eax
movl %edx, %eax
ja 0x4cb1
testl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
je 0x4d3b
movl %ebx, %r15d
shrl $0x1f, %r15d
leal (%r15,%r14), %edi
incl %edi
callq 0x1120
testq %rax, %rax
je 0x4d4f
leaq (%r15,%r14), %rcx
testl %ebx, %ebx
jns 0x4cf2
movb $0x2d, (%rax)
movl %r12d, %ebx
addq %r14, %r15
movl %ecx, %ecx
addq %rax, %rcx
decq %rcx
movslq %ebx, %rdx
imulq $0x66666667, %rdx, %rbx # imm = 0x66666667
movq %rbx, %rsi
shrq $0x3f, %rsi
sarq $0x22, %rbx
addl %esi, %ebx
leal (%rbx,%rbx), %esi
leal (%rsi,%rsi,4), %esi
subl %esi, %edx
addb $0x30, %dl
movb %dl, (%rcx)
decq %rcx
decq %r14
jne 0x4cfd
movl %r15d, %ecx
movb $0x0, (%rax,%rcx)
jmp 0x4d51
leaq 0x1489(%rip), %rdi      # 0x61c2
jmp 0x4d42
leaq 0x1474(%rip), %rdi      # 0x61b6
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x17f4
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/libft/ft_putendl_fd.c
// Function: ft_putendl_fd
void	ft_putendl_fd(char *s, int fd)
{
	int		i;
	char	c;

	i = 0;
	c = '\n';
	if (s == NULL)
		return ;
	while (s[i] != '\0')
		write(fd, &s[i++], 1);
	write(fd, &c, 1);
	return ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movb $0xa, -0x11(%rbp)
testq %rdi, %rdi
je 0x4ddc
movl %esi, %ebx
movq %rdi, %r14
cmpb $0x0, (%rdi)
je 0x4dcc
movl $0x1, %edx
movl %ebx, %edi
movq %r14, %rsi
callq 0x1050
cmpb $0x0, 0x1(%r14)
leaq 0x1(%r14), %r14
jne 0x4db2
leaq -0x11(%rbp), %rsi
movl $0x1, %edx
movl %ebx, %edi
callq 0x1050
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/libft/ft_putstr_fd.c
// Function: ft_putstr_fd
void	ft_putstr_fd(char *s, int fd)
{
	int i;

	i = 0;
	if (s == NULL)
		return ;
	while (s[i] != '\0')
		write(fd, &s[i++], 1);
	return ;
}

// Assembly:
testq %rdi, %rdi
je 0x4e40
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
cmpb $0x0, (%rdi)
je 0x4e3c
movl %esi, %ebx
movl $0x1, %edx
movl %ebx, %edi
movq %r14, %rsi
callq 0x1050
cmpb $0x0, 0x1(%r14)
leaq 0x1(%r14), %r14
jne 0x4e22
popq %rbx
popq %r14
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/libft/ft_split.c
// Function: ft_split
char			**ft_split(const char *s, char c)
{
	char		**result;

	result = NULL;
	if (s == NULL)
		return (NULL);
	if (s[0] == '\0')
		return (ft_return_zero(result));
	result = (char**)malloc(sizeof(char*) + (ft_strlen(s) * sizeof(char*)));
	if (result == NULL)
		return (NULL);
	return (ft_pre_process_split(result, s, c));
}

// Assembly:
testq %rdi, %rdi
je 0x4fd9
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
cmpb $0x0, (%rdi)
je 0x4fdd
movl %esi, %r13d
movq %rdi, %rbx
callq 0x17de
cltq
leaq 0x8(,%rax,8), %rdi
callq 0x1120
testq %rax, %rax
je 0x4fef
movq %rax, %rsi
movabsq $-0x200000000, %r15     # imm = 0xFFFFFFFE00000000
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rbx, %rcx
movq %rbx, %rdi
addq %rax, %r15
leaq 0x1(%rcx), %rdx
cmpb %r13b, (%rcx)
movq %rdx, %rcx
je 0x4ea7
sarq $0x20, %r15
movb 0x1(%rdi,%r15), %bl
xorl %eax, %eax
testb %bl, %bl
je 0x4ff3
movq %rsi, -0x40(%rbp)
leaq 0x1(%r15), %r14
movq $0x0, -0x38(%rbp)
xorl %r12d, %r12d
movl %r13d, -0x2c(%rbp)
movq %rdi, -0x48(%rbp)
cmpb %r13b, %bl
jne 0x4f4d
cmpb %r13b, 0x2(%rdi,%r15)
je 0x4fbc
movq %r12, %rdi
callq 0x17de
incl %eax
movslq %eax, %rdi
callq 0x1120
movq -0x38(%rbp), %r13
movslq %r13d, %r13
movq -0x40(%rbp), %rcx
movq %rax, (%rcx,%r13,8)
testq %rax, %rax
je 0x4fef
movq %rax, %rbx
movq %r12, %rdi
callq 0x17de
incl %eax
movslq %eax, %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x5294
movq -0x40(%rbp), %rcx
movq %rax, (%rcx,%r13,8)
incl %r13d
movq %r13, -0x38(%rbp)
xorl %r13d, %r13d
jmp 0x4fa4
testq %r12, %r12
je 0x4f5c
movq %r12, %rdi
callq 0x17de
jmp 0x4f5e
xorl %eax, %eax
movq %rax, -0x50(%rbp)
addl $0x2, %eax
movslq %eax, %rdi
callq 0x1120
testq %rax, %rax
je 0x4fb1
movq %rax, %r13
testq %r12, %r12
je 0x4f95
movb (%r12), %al
testb %al, %al
je 0x4f95
xorl %ecx, %ecx
movb %al, (%r13,%rcx)
movb 0x1(%r12,%rcx), %al
incq %rcx
testb %al, %al
jne 0x4f84
movslq -0x50(%rbp), %rax
movb %bl, (%r13,%rax)
movb $0x0, 0x1(%r13,%rax)
movq %r12, %rdi
callq 0x1030
movq %r13, %r12
jmp 0x4fb4
xorl %r12d, %r12d
movl -0x2c(%rbp), %r13d
movq -0x48(%rbp), %rdi
movb 0x1(%rdi,%r14), %bl
incq %r14
incq %r15
testb %bl, %bl
jne 0x4ee4
movslq -0x38(%rbp), %rax
movq -0x40(%rbp), %rsi
jmp 0x4ff6
xorl %esi, %esi
jmp 0x5017
movl $0x8, %edi
callq 0x1120
movq %rax, %rsi
testq %rax, %rax
jne 0x5002
xorl %esi, %esi
jmp 0x5009
xorl %r12d, %r12d
movq %r12, (%rsi,%rax,8)
leaq (%rsi,%rax,8), %rax
addq $0x8, %rax
movq $0x0, (%rax)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
movq %rsi, %rax
retq
nop
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/libft/ft_strcmp.c
// Function: ft_strcmp
int		ft_strcmp(char *s1, char *s2)
{
	unsigned char	a;
	unsigned char	b;
	unsigned int	i;

	i = 0;
	while (s1[i] != '\0' && s1[i] == s2[i])
	{
		i++;
	}
	a = s1[i];
	b = s2[i];
	return (a - b);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movb (%rdi), %al
testb %al, %al
je 0x5094
movl $0x1, %edx
xorl %ecx, %ecx
cmpb (%rsi,%rcx), %al
jne 0x508f
movl %edx, %ecx
movb (%rdi,%rcx), %al
incl %edx
testb %al, %al
jne 0x507d
xorl %eax, %eax
movzbl %al, %eax
jmp 0x5098
xorl %ecx, %ecx
xorl %eax, %eax
movzbl (%rsi,%rcx), %ecx
subl %ecx, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/libft/ft_strncmp.c
// Function: ft_strncmp
int		ft_strncmp(const char *s1, const char *s2, size_t n)
{
	while (n && (*s1 || *s2))
	{
		if (*s1 != *s2)
			return ((unsigned char)*s1 - (unsigned char)*s2);
		s1++;
		s2++;
		n--;
	}
	return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
testq %rdx, %rdx
je 0x50d7
xorl %ecx, %ecx
movzbl (%rdi,%rcx), %r8d
movb (%rsi,%rcx), %r9b
movl %r8d, %r10d
orb %r9b, %r10b
je 0x50d7
cmpb %r9b, %r8b
jne 0x50cd
incq %rcx
cmpq %rcx, %rdx
jne 0x50ad
jmp 0x50d7
movzbl %r9b, %eax
subl %eax, %r8d
movl %r8d, %eax
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/libft/ft_strtrim.c
// Function: ft_strtrim
char	*ft_strtrim(const char *s1, const char *set)
{
	int last_index;
	int start_trim;
	int i;

	if (s1 == NULL)
		return (NULL);
	if (set == NULL)
		return (ft_strdup(s1));
	if (s1[0] == '\0')
		return (ft_calloc(1, sizeof(char)));
	last_index = ft_strlen(s1) - 1;
	i = 0;
	while (s1[i] != '\0' && (ft_strchr(set, s1[i]) != 0))
		i++;
	start_trim = i;
	if (start_trim > last_index)
		return (ft_calloc(1, sizeof(char)));
	while (ft_strchr(set, s1[last_index]))
		last_index--;
	return (ft_substr(s1, start_trim, last_index - start_trim + 1));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x5135
movq %rsi, %r14
movq %rdi, %rbx
testq %rsi, %rsi
je 0x51ac
cmpb $0x0, (%rbx)
je 0x518f
movq %rbx, %rdi
callq 0x17de
movl %eax, %r15d
movb (%rbx), %al
xorl %r12d, %r12d
testb %al, %al
je 0x5146
movsbl %al, %esi
movq %r14, %rdi
callq 0x501c
testq %rax, %rax
je 0x5146
movb 0x1(%rbx,%r12), %al
incq %r12
jmp 0x5117
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl %r15d, %r12d
jge 0x518f
movslq %r15d, %rax
subl %r12d, %r15d
incl %r15d
leaq (%rax,%rbx), %r13
decq %r13
movsbl (%r13), %esi
movq %r14, %rdi
callq 0x501c
decl %r15d
decq %r13
testq %rax, %rax
jne 0x515b
movq %rbx, %rdi
movl %r12d, %esi
movl %r15d, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x51c4
movl $0x1, %edi
movl $0x1, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5260
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17f4
nop
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/libft/ft_substr.c
// Function: ft_substr
char	*ft_substr(char const *s, unsigned int start, int len)
{
	char				*substr;
	unsigned int		i;

	i = 0;
	if (s == NULL)
		return (NULL);
	if ((unsigned)ft_strlen(s) < start)
		return (ft_calloc(1, sizeof(char)));
	substr = (char*)malloc((len * sizeof(char)) + 1);
	if (!substr)
		return (NULL);
	while (s[start] != '\0' && len > 0)
	{
		substr[i++] = s[start++];
		len--;
	}
	substr[i] = '\0';
	return (substr);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x5248
movl %edx, %r15d
movl %esi, %ebx
movq %rdi, %r14
callq 0x17de
cmpl %ebx, %eax
jae 0x51fd
movl $0x1, %edi
movl $0x1, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x5260
movslq %r15d, %rdi
incq %rdi
callq 0x1120
testq %rax, %rax
je 0x5248
movl %ebx, %ecx
movb (%r14,%rcx), %cl
testb %cl, %cl
sete %dl
testl %r15d, %r15d
setle %sil
orb %dl, %sil
jne 0x524c
incl %ebx
xorl %edx, %edx
leal (%rbx,%rdx), %esi
movb %cl, (%rax,%rdx)
incq %rdx
movb (%r14,%rsi), %cl
testb %cl, %cl
je 0x524e
leal -0x1(%r15), %esi
cmpl $0x1, %r15d
movl %esi, %r15d
ja 0x5228
jmp 0x524e
xorl %eax, %eax
jmp 0x5252
xorl %edx, %edx
movb $0x0, (%rax,%rdx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/libft/ft_memcpy.c
// Function: ft_memcpy
void	*ft_memcpy(void *dst, const void *src, size_t n)
{
	unsigned char	*source;
	unsigned char	*dest;
	size_t			i;

	if (!dst && !src)
		return (0);
	source = (unsigned char *)src;
	dest = (unsigned char *)dst;
	i = 0;
	while (i < n)
	{
		dest[i] = source[i];
		i++;
	}
	return (dst);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
movq %rdi, %rcx
orq %rsi, %rcx
sete %cl
testq %rdx, %rdx
sete %dil
orb %cl, %dil
jne 0x52c2
xorl %ecx, %ecx
movb (%rsi,%rcx), %dil
movb %dil, (%rax,%rcx)
incq %rcx
cmpq %rcx, %rdx
jne 0x52b2
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/blasphemy[P]mmc-utils/mmc.c
// Function: help
static void help(char *np)
{
	struct Command *cp;

	printf("Usage:\n");
	for( cp = commands; cp->verb; cp++ )
		print_help(np, cp, BASIC_HELP);

	printf("\n\t%s help|--help|-h\n\t\tShow the help.\n",np);
	printf("\n\t%s <cmd> --help\n\t\tShow detailed help for a command or subset of commands.\n",np);
	printf("\n%s\n", MMC_VERSION);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x936b(%rip), %rsi      # 0xd00b
movl $0x1, %edi
xorl %eax, %eax
callq 0x31c0
cmpq $0x0, 0x134ac(%rip)     # 0x17160
je 0x3cd5
leaq 0x13493(%rip), %r14     # 0x17150
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3d22
cmpq $0x0, 0x48(%r14)
leaq 0x38(%r14), %r14
jne 0x3cbd
leaq 0x93c0(%rip), %rsi      # 0xd09c
movl $0x1, %edi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x31c0
leaq 0x93d0(%rip), %rsi      # 0xd0c2
movl $0x1, %edi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x31c0
leaq 0x930b(%rip), %rsi      # 0xd013
leaq 0x9309(%rip), %rdx      # 0xd018
movl $0x1, %edi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x31c0