LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/minishell.c
// Function: invoke_minishell
void			invoke_minishell(t_minishell_meta *ms, char *line)
{
	char	*tmp;

	tmp = ft_strtrim(line, "\t \n\v\f\r");
	ft_free(&line);
	line = ft_strdup(tmp);
	ft_free(&tmp);
	init_ms(ms);
	line = parse(ms, line);
	if (!ms->multiline && line[0] != '\0')
	{
		process(ms, line);
		free_all(ms, line);
	}
	else
		free_all(ms, line);
	write(STDOUT_FILENO, SHELL_BANNER, 15);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rax
movq %rdi, %rbx
leaq -0x20(%rbp), %r14
movq %rsi, (%r14)
leaq 0x45b1(%rip), %rsi      # 0x6012
movq %rax, %rdi
callq 0x50f4
leaq -0x28(%rbp), %r15
movq %rax, (%r15)
movq %r14, %rdi
callq 0x17d4
movq (%r15), %rdi
callq 0x1818
movq %rax, (%r14)
movq %r15, %rdi
callq 0x17d4
xorl %r15d, %r15d
movl %r15d, 0x8(%rbx)
movl %r15d, 0x18(%rbx)
movq %r15, 0x10(%rbx)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x40(%rbx)
movq $-0x1, 0x38(%rbx)
movq %r15, 0x58(%rbx)
movq %r15, 0x4c(%rbx)
movq %r15, 0x30(%rbx)
movq %rbx, %rdi
callq 0x4a9a
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x2f4f
movq %rax, %rsi
movq %rax, (%r14)
cmpl %r15d, 0x44(%rbx)
jne 0x1ae7
cmpb $0x0, (%rsi)
je 0x1ae7
movq %rbx, %rdi
callq 0x3e53
movq -0x20(%rbp), %rsi
movq %rbx, %rdi
callq 0x2b97
leaq 0x4523(%rip), %rsi      # 0x6019
movl $0xf, %edx
movl $0x1, %edi
callq 0x1050
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/minishell.c
// Function: is_spaces_only
int				is_spaces_only(char *line)
{
	int i;
	int len;

	i = 0;
	len = ft_strlen(line);
	while (i < len)
	{
		if (!ft_isspace(line[i]))
			return (0);
		i++;
	}
	return (1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r14
callq 0x1802
movl $0x1, %ebx
testl %eax, %eax
jle 0x1b4c
movl %eax, %r15d
xorl %r12d, %r12d
movsbl (%r14,%r12), %edi
callq 0x4c88
testl %eax, %eax
je 0x1b4a
incq %r12
cmpq %r12, %r15
jne 0x1b32
jmp 0x1b4c
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/minishell.c
// Function: main
int				main(int ac, char **av, char **env)
{
	char				*line;
	t_minishell_meta	*ms;

	(void)ac;
	(void)av;
	line = NULL;
	signal(SIGINT, sig_int_handler);
	signal(SIGQUIT, sig_quit_handler);
	if (!(ms = malloc(sizeof(t_minishell_meta))))
		return (1);
	set_env_export(ms, env);
	while (1)
	{
		if (get_line(&line, ms))
			continue ;
		if ((line[0] == '\0' || is_spaces_only(line)) && ft_free(&line))
		{
			write(STDOUT_FILENO, SHELL_BANNER, 15);
			continue ;
		}
		invoke_minishell(ms, line);
	}
	free_tab(ms->path);
	free(ms);
	return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq $0x0, -0x20(%rbp)
leaq 0x23a1(%rip), %rsi      # 0x3f14
movl $0x2, %edi
callq 0x1100
leaq 0x2459(%rip), %rsi      # 0x3fdd
movl $0x3, %edi
callq 0x1100
movl $0x60, %edi
callq 0x1120
testq %rax, %rax
je 0x1c05
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
callq 0x4adf
leaq -0x20(%rbp), %r14
leaq 0x4463(%rip), %r15      # 0x6019
movq %r14, %rdi
movq %rbx, %rsi
callq 0x129c
testl %eax, %eax
jne 0x1bb6
movq -0x20(%rbp), %rdi
cmpb $0x0, (%rdi)
je 0x1bd7
callq 0x1b10
testl %eax, %eax
je 0x1bf7
movq %r14, %rdi
callq 0x17d4
testl %eax, %eax
je 0x1bf7
movl $0xf, %edx
movl $0x1, %edi
movq %r15, %rsi
callq 0x1050
jmp 0x1bb6
movq -0x20(%rbp), %rsi
movq %rbx, %rdi
callq 0x1a40
jmp 0x1bb6
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_cd.c
// Function: print_home_not_set
void	print_home_not_set(void)
{
	errno = 1;
	ft_putstr_fd(SHELL_NAME, STDERR_FILENO);
	ft_putstr_fd(": cd: ", STDERR_FILENO);
	ft_putstr_fd("HOME not set\n", STDERR_FILENO);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
callq 0x1040
movl $0x1, (%rax)
leaq 0x43fb(%rip), %rdi      # 0x6029
movl $0x2, %esi
callq 0x4e34
leaq 0x43f4(%rip), %rdi      # 0x6033
movl $0x2, %esi
callq 0x4e34
leaq 0x43ea(%rip), %rdi      # 0x603a
movl $0x2, %esi
popq %rbp
jmp 0x4e34
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_cd.c
// Function: ms_cd
void	ms_cd(char *path, t_minishell_meta *ms)
{
	int ret;

	errno = 0;
	if ((path == NULL) || ft_strcmp(path, "") == 0)
	{
		substitute_value("$HOME", 0, ms);
		if ((ret = chdir(ms->arg)) == -1)
			print_home_not_set();
		ft_free(&ms->arg);
		return ;
	}
	ret = chdir(path);
	if (ret < 0)
	{
		errno = 1;
		no_file_or_directory("cd", path);
	}
	return ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x1040
movl $0x0, (%rax)
testq %r14, %r14
je 0x1ca8
movq %rax, %r15
leaq 0x4383(%rip), %rsi      # 0x6008
movq %r14, %rdi
callq 0x5090
testl %eax, %eax
je 0x1ca8
movq %r14, %rdi
callq 0x1060
testl %eax, %eax
js 0x1ce2
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4399(%rip), %rdi      # 0x6048
xorl %esi, %esi
movq %rbx, %rdx
callq 0x43bc
movq 0x10(%rbx), %rdi
addq $0x10, %rbx
callq 0x1060
cmpl $-0x1, %eax
jne 0x1cd0
callq 0x1c18
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x17d4
movl $0x1, (%r15)
leaq 0x435e(%rip), %rdi      # 0x604e
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x47ec
nop
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_ce_path.c
// Function: check_and_execute_path
int				check_and_execute_path(t_minishell_meta *ms, int i)
{
	char			*path;
	int				j;
	struct stat		buffer;
	char			*tmp_cmd;

	j = 0;
	if (ms->path == 0)
		return (no_path_set(ms->piped_cmds->cmds[i]));
	while (ms->path[j] != NULL)
	{
		tmp_cmd = ft_strjoin(ms->path[j], "/");
		path = ft_strjoin(tmp_cmd, ms->piped_cmds->cmds[i]);
		if (lstat(path, &buffer) == 0)
		{
			ms_execute(path, ms->piped_cmds->args1[i], ms->env);
			ft_free(&tmp_cmd);
			ft_free(&path);
			return (1);
		}
		ft_free(&path);
		ft_free(&tmp_cmd);
		j++;
	}
	return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdi, %r14
cmpq $0x0, 0x30(%rdi)
je 0x1dc5
movq 0x30(%r14), %rax
movq (%rax), %rdi
xorl %eax, %eax
testq %rdi, %rdi
je 0x1e1e
movslq %esi, %r13
movl $0x8, %r15d
leaq -0xc8(%rbp), %r12
leaq -0x30(%rbp), %rbx
leaq 0x42e1(%rip), %rsi      # 0x6051
callq 0x1875
movq %rax, -0x30(%rbp)
movq 0x58(%r14), %rcx
movq (%rcx), %rcx
movq (%rcx,%r13,8), %rsi
movq %rax, %rdi
callq 0x1875
movq %rax, -0x38(%rbp)
movq %rax, %rdi
movq %r12, %rsi
callq 0x10e0
testl %eax, %eax
je 0x1dec
leaq -0x38(%rbp), %rdi
callq 0x17d4
movq %rbx, %rdi
callq 0x17d4
movq 0x30(%r14), %rax
movq (%rax,%r15), %rdi
addq $0x8, %r15
testq %rdi, %rdi
jne 0x1d69
xorl %eax, %eax
jmp 0x1e1e
movq 0x58(%r14), %rax
movq (%rax), %rax
movslq %esi, %rcx
movq (%rax,%rcx,8), %rdi
xorl %esi, %esi
callq 0x47ec
callq 0x1040
movl $0x7f, (%rax)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x1e1e
leaq -0x38(%rbp), %rbx
movq (%rbx), %rdi
movq 0x20(%r14), %rdx
movq 0x58(%r14), %rax
movq 0x8(%rax), %rax
movq (%rax,%r13,8), %rsi
callq 0x2125
leaq -0x30(%rbp), %rdi
callq 0x17d4
movq %rbx, %rdi
callq 0x17d4
movl $0x1, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_echo.c
// Function: ms_echo
void				ms_echo(char **args)
{
	int i;
	int c;

	i = 0;
	c = 0;
	if (args[0] == NULL)
		c = 0;
	else if (ft_strcmp(args[i], "-n") == 0)
	{
		c = 1;
		i++;
	}
	while (args[i])
	{
		ft_putstr_fd(args[i], STDOUT_FILENO);
		if (args[i + 1])
			ft_putstr_fd(" ", STDOUT_FILENO);
		i++;
	}
	if (c != 1)
		ft_putstr_fd("\n", STDOUT_FILENO);
	errno = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x1ea7
leaq 0x41bf(%rip), %rsi      # 0x6053
callq 0x5090
xorl %r14d, %r14d
testl %eax, %eax
sete %r14b
movq %r14, %rax
jmp 0x1eac
xorl %r14d, %r14d
xorl %eax, %eax
movq (%rbx,%rax,8), %rdi
testq %rdi, %rdi
je 0x1eed
leaq (%rbx,%rax,8), %r15
addq $0x8, %r15
leaq 0x4258(%rip), %rbx      # 0x611c
movl $0x1, %esi
callq 0x4e34
cmpq $0x0, (%r15)
je 0x1ee1
movq %rbx, %rdi
movl $0x1, %esi
callq 0x4e34
movq (%r15), %rdi
addq $0x8, %r15
testq %rdi, %rdi
jne 0x1ec4
testb %r14b, %r14b
jne 0x1f03
leaq 0x4296(%rip), %rdi      # 0x618f
movl $0x1, %esi
callq 0x4e34
callq 0x1040
movl $0x0, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_env.c
// Function: ms_env
void	ms_env(char **env)
{
	int		i;

	i = 0;
	errno = 0;
	while (env[i])
	{
		ft_putendl_fd(env[i], STDOUT_FILENO);
		i++;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x1040
movl $0x0, (%rax)
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x1f52
addq $0x8, %rbx
movl $0x1, %esi
callq 0x4dbc
movq (%rbx), %rdi
addq $0x8, %rbx
testq %rdi, %rdi
jne 0x1f3c
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_execute.c
// Function: write_permission_denied
void			write_permission_denied(char *path)
{
	ft_putstr_fd(SHELL_NAME, STDERR_FILENO);
	ft_putstr_fd(": ", STDERR_FILENO);
	ft_putstr_fd(path, STDERR_FILENO);
	ft_putstr_fd(": ", STDERR_FILENO);
	ft_putstr_fd("Permission denied\n", STDERR_FILENO);
	errno = 126;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x40bc(%rip), %rdi      # 0x6029
movl $0x2, %esi
callq 0x4e34
leaq 0x40b9(%rip), %r14      # 0x6037
movq %r14, %rdi
movl $0x2, %esi
callq 0x4e34
movq %rbx, %rdi
movl $0x2, %esi
callq 0x4e34
movq %r14, %rdi
movl $0x2, %esi
callq 0x4e34
leaq 0x40aa(%rip), %rdi      # 0x6056
movl $0x2, %esi
callq 0x4e34
callq 0x1040
movl $0x7e, (%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_execute.c
// Function: fork_process
void			fork_process(char *path, char **av, char **env)
{
	pid_t	pid;
	int		x;

	x = 1;
	pid = fork();
	if (1)
	{
		signal(SIGINT, proc_signal_handler);
		signal(SIGQUIT, proc_sigquit_handler);
	}
	if (pid == 0)
		x = execve(path, av, env);
	if (x == -1)
	{
		write_error(path);
		exit(127);
		return ;
	}
	wait(&errno);
	errno = errno / 255;
	free_tab(av);
	signal(SIGINT, sig_int_handler);
	signal(SIGQUIT, sig_quit_handler);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
callq 0x1170
movl %eax, %r12d
leaq 0x1f46(%rip), %rsi      # 0x3f69
movl $0x2, %edi
callq 0x1100
leaq 0x1f7c(%rip), %rsi      # 0x3fb0
movl $0x3, %edi
callq 0x1100
testl %r12d, %r12d
jne 0x2056
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x10f0
cmpl $-0x1, %eax
je 0x20b5
callq 0x1040
movq %rax, %r14
movq %rax, %rdi
callq 0x1160
movslq (%r14), %rax
imulq $-0x7f7f7f7f, %rax, %rcx # imm = 0x80808081
shrq $0x20, %rcx
addl %eax, %ecx
movl %ecx, %eax
shrl $0x1f, %eax
sarl $0x7, %ecx
addl %eax, %ecx
movl %ecx, (%r14)
movq %rbx, %rdi
callq 0x2af2
leaq 0x1e82(%rip), %rsi      # 0x3f14
movl $0x2, %edi
callq 0x1100
leaq 0x1f3a(%rip), %rsi      # 0x3fdd
movl $0x3, %edi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1100
movq %r14, %rdi
callq 0x20c7
movl $0x7f, %edi
callq 0x1150
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_execute.c
// Function: write_error
static void		write_error(char *path)
{
	ft_putstr_fd(SHELL_NAME, STDERR_FILENO);
	ft_putstr_fd(": ", STDERR_FILENO);
	ft_putstr_fd(path, 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 %rdi, %rbx
leaq 0x3f51(%rip), %rdi      # 0x6029
movl $0x2, %esi
callq 0x4e34
leaq 0x3f4e(%rip), %r14      # 0x6037
movq %r14, %rdi
movl $0x2, %esi
callq 0x4e34
movq %rbx, %rdi
movl $0x2, %esi
callq 0x4e34
movq %r14, %rdi
movl $0x2, %esi
callq 0x4e34
leaq 0x3f52(%rip), %rdi      # 0x6069
movl $0x2, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x4e34
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_execute.c
// Function: ms_execute
void			ms_execute(char *path, char **args, char **env)
{
	int		i;
	int		len;
	char	**av;

	i = 0;
	errno = 0;
	len = ft_tablen(args);
	if (check_file_permission(path) == 0)
		return ;
	av = (char**)malloc(sizeof(char*) * (len + 2));
	if (av == NULL)
		ms_exit(NULL, NULL, 0);
	av[0] = ft_strdup(path);
	while (args[i] != 0 && len != 0)
	{
		av[i + 1] = ft_strdup(args[i]);
		i++;
	}
	av[i + 1] = 0;
	fork_process(path, av, env);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
callq 0x1040
movl $0x0, (%rax)
movq %r15, %rdi
callq 0x1e5d
movl %eax, %r12d
movq %r14, %rdi
callq 0x37f0
testl %eax, %eax
je 0x21cb
movslq %r12d, %rax
leaq 0x10(,%rax,8), %rdi
callq 0x1120
movq %rax, %r13
testq %rax, %rax
jne 0x2181
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x223e
movq %rbx, -0x30(%rbp)
movq %r14, %rdi
callq 0x1818
movq %rax, (%r13)
testl %r12d, %r12d
setne %al
movq (%r15), %rdi
testq %rdi, %rdi
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x21da
xorl %ecx, %ecx
movq %rcx, %rbx
callq 0x1818
leaq 0x1(%rbx), %rcx
movq %rax, 0x8(%r13,%rbx,8)
movq 0x8(%r15,%rbx,8), %rdi
testq %rdi, %rdi
je 0x21dc
testl %r12d, %r12d
jne 0x21a9
jmp 0x21dc
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ecx, %ecx
movq $0x0, 0x8(%r13,%rcx,8)
movq %r14, %rdi
movq %r13, %rsi
movq -0x30(%rbp), %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2000
nop
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_exit.c
// Function: free_before_exit
void						free_before_exit(t_minishell_meta *ms, char *line)
{
	free_all(ms, line);
	free_tab(ms->env);
	free_tab(ms->export);
	if (ms)
		free(ms);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x2b97
movq 0x20(%rbx), %rdi
callq 0x2af2
movq 0x28(%rbx), %rdi
callq 0x2af2
testq %rbx, %rbx
je 0x2237
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1030
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_exit.c
// Function: ms_exit
void						ms_exit(t_minishell_meta *ms, char *line, int i)
{
	int stat;
	int len_args;

	len_args = ft_tablen(ms->piped_cmds->args1[i]);
	write(STDOUT_FILENO, EXIT_MSG, 5);
	if (len_args == 0)
		stat = 0;
	else if (len_args > 1)
	{
		errno = 1;
		too_many_args("exit");
		return ;
	}
	else if (check_numeric_arg(ms->piped_cmds->args1[i][0]))
		stat = ft_atoi(ms->piped_cmds->args1[i][0]);
	else
	{
		numeric_arg_required(ms->piped_cmds->args1[i][0]);
		stat = 255;
	}
	free_before_exit(ms, line);
	exit(stat);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x58(%rdi), %rax
movq 0x8(%rax), %rax
movslq %edx, %r12
movq (%rax,%r12,8), %rdi
callq 0x1e5d
movl %eax, %r15d
leaq 0x3e17(%rip), %rsi      # 0x6084
movl $0x5, %edx
movl $0x1, %edi
callq 0x1050
testl %r15d, %r15d
je 0x22a6
cmpl $0x2, %r15d
jl 0x22ab
callq 0x1040
movl $0x1, (%rax)
leaq 0x3d71(%rip), %rdi      # 0x600a
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x4876
xorl %r15d, %r15d
jmp 0x22e7
movq 0x58(%r14), %rax
movq 0x8(%rax), %rax
movq (%rax,%r12,8), %rax
movq (%rax), %rdi
callq 0x22fa
movq 0x58(%r14), %rcx
movq 0x8(%rcx), %rcx
movq (%rcx,%r12,8), %rcx
movq (%rcx), %rdi
testl %eax, %eax
jne 0x22df
callq 0x235b
movl $0xff, %r15d
jmp 0x22e7
callq 0x4ba4
movl %eax, %r15d
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2204
movl %r15d, %edi
callq 0x1150
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_exit.c
// Function: check_numeric_arg
static	int					check_numeric_arg(char *line)
{
	int i;

	i = 0;
	if (line == NULL)
		return (0);
	if (line[i] == '-')
	{
		if (ft_isdigit(line[i + 1]) == 0)
			return (0);
		i++;
	}
	while (line && line[i])
	{
		if (ft_isdigit(line[i]) == 0)
			return (0);
		i++;
	}
	return (1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x2352
movq %rdi, %r14
xorl %ebx, %ebx
cmpb $0x2d, (%rdi)
jne 0x2325
movsbl 0x1(%r14), %edi
callq 0x4c74
movl $0x1, %ecx
testl %eax, %eax
jne 0x2327
jmp 0x2354
xorl %ecx, %ecx
movb (%r14,%rcx), %al
movl $0x1, %ebx
testb %al, %al
je 0x2354
addq %rcx, %r14
incq %r14
movsbl %al, %edi
callq 0x4c74
testl %eax, %eax
je 0x2352
movb (%r14), %al
incq %r14
testb %al, %al
jne 0x233a
jmp 0x2354
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_exit.c
// Function: numeric_arg_required
static	void				numeric_arg_required(char *line)
{
	ft_putstr_fd(SHELL_NAME, STDERR_FILENO);
	ft_putstr_fd(": exit: ", STDERR_FILENO);
	ft_putstr_fd(line, STDERR_FILENO);
	ft_putstr_fd(NUMERIC_ARGUMENT_REQUIRED, STDERR_FILENO);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x3cbe(%rip), %rdi      # 0x6029
movl $0x2, %esi
callq 0x4e34
leaq 0x3d0e(%rip), %rdi      # 0x608a
movl $0x2, %esi
callq 0x4e34
movq %rbx, %rdi
movl $0x2, %esi
callq 0x4e34
leaq 0x3cf9(%rip), %rdi      # 0x6093
movl $0x2, %esi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x4e34
nop
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_export.c
// Function: check_var
int				check_var(char *var, char *cmd)
{
	int		i;

	i = 0;
	while ((var[i] != '=' && var[i] != '\0') ||\
	(!ft_isalpha(var[0]) && var[0] != '_'))
	{
		if (!ft_isalnum(var[i]) && var[i] != '_')
		{
			print_invalid(var, cmd);
			return (0);
		}
		i++;
	}
	if (var[i] != '\0' && (ft_strcmp(cmd, "unset") == 0))
	{
		print_invalid(var, cmd);
		return (0);
	}
	return (1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq %rdi, %r12
movzbl (%r12), %eax
cmpl $0x3d, %eax
je 0x23ce
testl %eax, %eax
jne 0x23e1
movsbl (%r14), %edi
callq 0x4c60
testl %eax, %eax
jne 0x23fb
cmpb $0x5f, (%r14)
je 0x23fb
movsbl (%r12), %edi
callq 0x4c40
testl %eax, %eax
jne 0x23f6
cmpb $0x5f, (%r12)
jne 0x241b
incq %r12
jmp 0x23c0
movl $0x1, %r15d
cmpb $0x0, (%r12)
je 0x2429
leaq 0x3ca1(%rip), %rsi      # 0x60b0
movq %rbx, %rdi
callq 0x5090
testl %eax, %eax
jne 0x2429
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4925
xorl %r15d, %r15d
movl %r15d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_export.c
// Function: not_in_env
int				not_in_env(char **env, char *var)
{
	int		env_len;
	int		var_len;
	int		i;

	i = -1;
	var_len = ft_strlen(var);
	while (env[++i] != 0)
	{
		env_len = 0;
		while (env[i][env_len] != '=' && env[i][env_len] != '\0')
			env_len++;
		if (var_len != env_len)
			continue;
		if (ft_strncmp(var, env[i], var_len) != 0)
			continue;
		return (0);
	}
	return (1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %rdi
callq 0x1802
movq (%r15), %rsi
movl $0x1, %ecx
testq %rsi, %rsi
je 0x24a4
movslq %eax, %r12
movl %r12d, %r13d
xorl %ebx, %ebx
xorl %eax, %eax
movzbl (%rsi,%rax), %ecx
testl %ecx, %ecx
je 0x247a
cmpl $0x3d, %ecx
je 0x247a
incq %rax
jmp 0x2468
cmpl %eax, %r13d
jne 0x248e
movq %r14, %rdi
movq %r12, %rdx
callq 0x50c0
testl %eax, %eax
je 0x24a2
movq 0x8(%r15,%rbx,8), %rsi
incq %rbx
testq %rsi, %rsi
jne 0x2466
movl $0x1, %ecx
jmp 0x24a4
xorl %ecx, %ecx
movl %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_export.c
// Function: add_to_tables
void			add_to_tables(t_minishell_meta *ms, int i, int k)
{
	int j;

	j = 0;
	if (check_var(ms->piped_cmds->args1[i][k], "export"))
	{
		if (ft_strchr(ms->piped_cmds->args1[i][k], '=') != NULL)
		{
			unset_var(ms->piped_cmds->args1[i][k], ms);
			while (ms->env[j] != 0)
				j++;
			ms->env[j] = ft_strdup(ms->piped_cmds->args1[i][k]);
			ms->env[++j] = 0;
			j = 0;
		}
		else if (not_in_env(ms->env, ms->piped_cmds->args1[i][k]))
		{
			ms_unset_single(ms->export,\
			ms->piped_cmds->args1[i][k], ms->path);
			while (ms->export[j] != 0)
				j++;
			ms->export[j] = ft_strdup(ms->piped_cmds->args1[i][k]);
			ms->export[++j] = 0;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x58(%rdi), %rax
movq 0x8(%rax), %rax
movslq %esi, %r14
movq (%rax,%r14,8), %rax
movslq %edx, %r15
movq (%rax,%r15,8), %rdi
leaq 0x3bd3(%rip), %rsi      # 0x60b6
callq 0x23ac
testl %eax, %eax
je 0x25c3
movq 0x58(%rbx), %rax
movq 0x8(%rax), %rax
movq (%rax,%r14,8), %rax
movq (%rax,%r15,8), %rdi
movl $0x3d, %esi
callq 0x5040
testq %rax, %rax
je 0x2544
movq 0x58(%rbx), %rax
movq 0x8(%rax), %rax
movq (%rax,%r14,8), %rax
movq (%rax,%r15,8), %rdi
movq %rbx, %rsi
callq 0x405c
movq 0x20(%rbx), %rax
movq $-0x1, %r13
cmpq $0x0, 0x8(%rax,%r13,8)
leaq 0x1(%r13), %r13
jne 0x2532
leaq 0x20(%rbx), %r12
jmp 0x2599
movq 0x20(%rbx), %rdi
movq 0x58(%rbx), %rax
movq 0x8(%rax), %rax
movq (%rax,%r14,8), %rax
movq (%rax,%r15,8), %rsi
callq 0x2435
testl %eax, %eax
je 0x25c3
leaq 0x28(%rbx), %r12
movq 0x58(%rbx), %rax
movq 0x8(%rax), %rax
movq (%rax,%r14,8), %rax
movq (%rax,%r15,8), %rsi
movq 0x28(%rbx), %rdi
movq 0x30(%rbx), %rdx
callq 0x40cd
movq 0x28(%rbx), %rax
movq $-0x1, %r13
cmpq $0x0, 0x8(%rax,%r13,8)
leaq 0x1(%r13), %r13
jne 0x258d
movq 0x58(%rbx), %rax
movq 0x8(%rax), %rax
movq (%rax,%r14,8), %rax
movq (%rax,%r15,8), %rdi
callq 0x1818
movq (%r12), %rcx
movq %rax, (%rcx,%r13,8)
movq (%r12), %rax
movq $0x0, 0x8(%rax,%r13,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_export.c
// Function: ms_export
void			ms_export(t_minishell_meta *ms, int i)
{
	int		k;

	k = 0;
	errno = 0;
	if (ms->piped_cmds->args1[i][0] == NULL && ms->no_args)
	{
		print_export_env(ms->env);
		print_export_env(ms->export);
		return ;
	}
	while (ms->piped_cmds->args1[i][k] != 0)
	{
		add_to_tables(ms, i, k);
		if (ft_strncmp(ms->piped_cmds->args1[i][k], "PATH=", 5) == 0)
			set_path(ms);
		k++;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
callq 0x1040
movl $0x0, (%rax)
movq 0x58(%rbx), %rax
movq 0x8(%rax), %rax
movslq %r14d, %r14
movq (%rax,%r14,8), %rax
cmpq $0x0, (%rax)
je 0x2677
movq 0x58(%rbx), %rax
movq 0x8(%rax), %rax
movq (%rax,%r14,8), %rax
cmpq $0x0, (%rax)
je 0x266e
xorl %r15d, %r15d
leaq 0x3a9e(%rip), %r12      # 0x60bd
movq %rbx, %rdi
movl %r14d, %esi
movl %r15d, %edx
callq 0x24b5
movq 0x58(%rbx), %rax
movq 0x8(%rax), %rax
movq (%rax,%r14,8), %rax
movq (%rax,%r15,8), %rdi
movl $0x5, %edx
movq %r12, %rsi
callq 0x50c0
testl %eax, %eax
jne 0x2656
movq %rbx, %rdi
callq 0x4a9a
movq 0x58(%rbx), %rax
movq 0x8(%rax), %rax
movq (%rax,%r14,8), %rax
cmpq $0x0, 0x8(%rax,%r15,8)
leaq 0x1(%r15), %r15
jne 0x261f
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x0, 0x4c(%rbx)
je 0x2603
movq 0x20(%rbx), %rdi
callq 0x2694
movq 0x28(%rbx), %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2694
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_export.c
// Function: print_export_env
static void		print_export_env(char **env)
{
	int i;
	int j;

	i = 0;
	j = 0;
	while (env[i] != 0)
	{
		ft_putstr_fd("declare -x ", STDOUT_FILENO);
		j = 0;
		while (env[i][j] != '\0')
		{
			ft_putchar_fd(env[i][j], STDOUT_FILENO);
			if (env[i][j] == '=')
				ft_putchar_fd('\"', STDOUT_FILENO);
			j++;
		}
		if (ft_strchr(env[i], '=') != NULL)
			ft_putstr_fd("\"", STDOUT_FILENO);
		ft_putstr_fd("\n", STDOUT_FILENO);
		i++;
	}
}

// Assembly:
cmpq $0x0, (%rdi)
je 0x275c
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r13d, %r13d
leaq 0x3a0a(%rip), %r14      # 0x60c3
leaq 0x3acf(%rip), %r15      # 0x618f
movq %r14, %rdi
movl $0x1, %esi
callq 0x4e34
movq (%rbx,%r13,8), %rdi
movb (%rdi), %al
testb %al, %al
je 0x2711
xorl %r12d, %r12d
movsbl %al, %edi
movl $0x1, %esi
callq 0x4d98
movq (%rbx,%r13,8), %rax
cmpb $0x3d, (%rax,%r12)
jne 0x2701
movl $0x22, %edi
movl $0x1, %esi
callq 0x4d98
movq (%rbx,%r13,8), %rdi
movb 0x1(%rdi,%r12), %al
incq %r12
testb %al, %al
jne 0x26da
movl $0x3d, %esi
callq 0x5040
testq %rax, %rax
je 0x2731
leaq 0x39a8(%rip), %rdi      # 0x60cf
movl $0x1, %esi
callq 0x4e34
movq %r15, %rdi
movl $0x1, %esi
callq 0x4e34
cmpq $0x0, 0x8(%rbx,%r13,8)
leaq 0x1(%r13), %r13
jne 0x26c0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_file_descriptor.c
// Function: set_in_fd
void					set_in_fd(t_minishell_meta *ms, char *filename)
{
	if (ms->file_fd == 1 || ms->file_fd == -1)
	{
		ms->in_fd = dup(STDIN_FILENO);
		close(STDIN_FILENO);
	}
	else
		close(ms->file_fd);
	ms->file_fd = open(filename, O_RDONLY);
	if (ms->file_fd < 0 && (ms->process_bit = -1))
	{
		close(ms->file_fd);
		ms->file_fd = -1;
		dup2(ms->in_fd, 0);
		no_file_or_directory(NULL, filename);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl 0x40(%rdi), %r15d
cmpl $0x1, %r15d
je 0x2780
cmpl $-0x1, %r15d
jne 0x278e
xorl %r15d, %r15d
xorl %edi, %edi
callq 0x1080
movl %eax, 0x38(%r14)
movl %r15d, %edi
callq 0x10b0
movq %rbx, %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x1140
movl %eax, 0x40(%r14)
testl %eax, %eax
js 0x27b5
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movl %r15d, 0x18(%r14)
movl %eax, %edi
callq 0x10b0
movl %r15d, 0x40(%r14)
movl 0x38(%r14), %edi
xorl %esi, %esi
callq 0x1070
xorl %edi, %edi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x47ec
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_file_descriptor.c
// Function: handle_in_out_redir
void					handle_in_out_redir(t_minishell_meta *ms,\
char *filename, int i)
{
	set_out_fd(ms, filename, 0);
	set_in_fd(ms, filename);
	if ((ms->piped_cmds->pipe[i] != '|') && (ms->multiline = -99))
		unset_fd(ms);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %rbx
xorl %edx, %edx
callq 0x27e9
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2760
movq 0x58(%rbx), %rax
movq 0x20(%rax), %rax
movslq %r14d, %rcx
cmpb $0x7c, (%rax,%rcx)
jne 0x2889
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffff9d, 0x44(%rbx) # imm = 0xFFFFFF9D
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3b40
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_file_descriptor.c
// Function: call_actual_handle
void					call_actual_handle(char *filename, char *redir,\
t_minishell_meta *ms, int i)
{
	int j;

	j = 0;
	if (filename[0] == '\0' && redir[0] == '\0')
		return ;
	if (redir[0] == '\0')
	{
		while (ms->piped_cmds->args1[i][j] != 0)
			j++;
		ms->piped_cmds->args1[i][j] = ft_strdup(filename);
		j++;
		ms->piped_cmds->args1[i][j] = 0;
	}
	if (ft_strcmp(redir, ">>") == 0)
		set_out_fd(ms, filename, 1);
	else if ((ft_strcmp(redir, "><") == 0)\
	&& syntax_error("<") && (ms->process_bit = -1))
		return ;
	else if ((ft_strcmp(redir, "<>") == 0))
		handle_in_out_redir(ms, filename, i);
	else if (redir[0] == '>')
		set_out_fd(ms, filename, 0);
	else if (redir[0] == '<')
		set_in_fd(ms, filename);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %r15d
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
cmpb $0x0, (%rdi)
jne 0x28cc
cmpb $0x0, (%r12)
je 0x29ad
cmpb $0x0, (%r12)
jne 0x2925
movq 0x58(%r14), %rax
movq 0x8(%rax), %rax
movl %r15d, -0x2c(%rbp)
movslq %r15d, %r13
movq (%rax,%r13,8), %rax
xorl %r15d, %r15d
cmpq $0x0, (%rax,%r15)
leaq 0x8(%r15), %r15
jne 0x28e9
movq %rbx, %rdi
callq 0x1818
movq 0x58(%r14), %rcx
movq 0x8(%rcx), %rcx
movq (%rcx,%r13,8), %rcx
movq %rax, -0x8(%rcx,%r15)
movq 0x58(%r14), %rax
movq 0x8(%rax), %rax
movq (%rax,%r13,8), %rax
movq $0x0, (%rax,%r15)
movl -0x2c(%rbp), %r15d
leaq 0x37a5(%rip), %rsi      # 0x60d1
movq %r12, %rdi
callq 0x5090
testl %eax, %eax
je 0x2977
leaq 0x3795(%rip), %rsi      # 0x60d4
movq %r12, %rdi
callq 0x5090
testl %eax, %eax
je 0x2995
leaq 0x3785(%rip), %rsi      # 0x60d7
movq %r12, %rdi
callq 0x5090
testl %eax, %eax
je 0x29bc
movzbl (%r12), %eax
cmpl $0x3c, %eax
je 0x29d8
cmpl $0x3e, %eax
jne 0x29ad
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
jmp 0x2982
movq %r14, %rdi
movq %rbx, %rsi
movl $0x1, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x27e9
leaq 0x3739(%rip), %rdi      # 0x60d5
callq 0x48c5
testl %eax, %eax
je 0x294b
movl $0xffffffff, 0x18(%r14) # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
movq %rbx, %rsi
movl %r15d, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2848
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2760
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_file_descriptor.c
// Function: handle_fd
void					handle_fd(t_minishell_meta *ms, int index)
{
	int i;

	i = 0;
	while (ms->piped_cmds->files1[index][i])
	{
		call_actual_handle(ms->piped_cmds->files1[index][i],\
		ms->piped_cmds->redir[index][i], ms, index);
		i++;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movslq %esi, %r14
movq 0x58(%rdi), %rax
movq 0x10(%rax), %rcx
movq (%rcx,%r14,8), %rcx
movq (%rcx), %rdi
testq %rdi, %rdi
je 0x2a49
xorl %r15d, %r15d
movq 0x18(%rax), %rax
movq (%rax,%r14,8), %rax
movq (%rax,%r15), %rsi
movq %rbx, %rdx
movl %r14d, %ecx
callq 0x28a2
movq 0x58(%rbx), %rax
movq 0x10(%rax), %rcx
movq (%rcx,%r14,8), %rcx
movq 0x8(%rcx,%r15), %rdi
addq $0x8, %r15
testq %rdi, %rdi
jne 0x2a18
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_free.c
// Function: free_tab1
void					free_tab1(char **args, int length)
{
	int i;

	i = 0;
	while (i <= length + 1)
	{
		free(args[i]);
		args[i] = 0;
		i++;
	}
	if (args)
	{
		free(args);
		args = 0;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $-0x1, %esi
jl 0x2a89
movl %esi, %r14d
addl $0x2, %r14d
xorl %r15d, %r15d
movq (%rbx,%r15,8), %rdi
callq 0x1030
movq $0x0, (%rbx,%r15,8)
incq %r15
cmpq %r15, %r14
jne 0x2a70
testq %rbx, %rbx
je 0x2aa0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1030
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_free.c
// Function: free_tab_tab_v1
void					free_tab_tab_v1(char ***args, int len)
{
	int i;

	i = 0;
	while (i < len)
	{
		if (args[i][0] != 0)
			free_tab(args[i]);
		else
			free(args[i]);
		i++;
	}
	free(args);
	return ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testl %esi, %esi
jle 0x2ae0
movl %esi, %r14d
xorl %r15d, %r15d
movq (%rbx,%r15,8), %rdi
cmpq $0x0, (%rdi)
je 0x2ad3
callq 0x2af2
jmp 0x2ad8
callq 0x1030
incq %r15
cmpq %r15, %r14
jne 0x2ac2
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_free.c
// Function: free_tab
void					free_tab(char **args)
{
	int i;

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x2b22
movq %rdi, %rbx
movq %rdi, %r14
cmpq $0x0, (%r14)
je 0x2b27
movq %r14, %rdi
callq 0x17d4
movq $0x0, (%r14)
addq $0x8, %r14
testq %rbx, %rbx
jne 0x2b04
popq %rbx
popq %r14
popq %rbp
retq
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_free.c
// Function: free_tab_tab
void					free_tab_tab(char ***args, int len)
{
	int i;

	i = 0;
	while (args[i] != 0)
	{
		free_tab(args[i]);
		i++;
	}
	while (i < (len))
	{
		free(args[i]);
		args[i] = 0;
		i++;
	}
	if (args)
	{
		free(args);
		args = 0;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
movq (%rdi), %rdi
xorl %r15d, %r15d
testq %rdi, %rdi
je 0x2b5e
callq 0x2af2
movq 0x8(%rbx,%r15,8), %rdi
incq %r15
jmp 0x2b4a
cmpl %r14d, %r15d
jge 0x2b87
movl %r15d, %eax
leaq (%rbx,%rax,8), %r12
movq (%r12), %rdi
callq 0x1030
movq $0x0, (%r12)
addq $0x8, %r12
incl %r15d
cmpl %r14d, %r15d
jl 0x2b6a
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_free.c
// Function: free_all
void					free_all(t_minishell_meta *ms, char *line)
{
	free_tab(ms->path);
	if (ms->piped_cmds != 0)
	{
		free_tab(ms->piped_cmds->cmds);
		free_tab_tab_v1(ms->piped_cmds->args1, ms->piped_cmds->length);
		free_tab_tab_v1(ms->piped_cmds->files1, ms->piped_cmds->length);
		free_tab_tab_v1(ms->piped_cmds->redir, ms->piped_cmds->length);
		ft_free(&ms->piped_cmds->pipe);
		free(ms->piped_cmds);
		ms->piped_cmds = 0;
	}
	ft_free(&line);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsi, -0x10(%rbp)
movq 0x30(%rdi), %rdi
callq 0x2af2
movq 0x58(%rbx), %rax
testq %rax, %rax
je 0x2c0c
movq (%rax), %rdi
callq 0x2af2
movq 0x58(%rbx), %rax
movq 0x8(%rax), %rdi
movl 0x28(%rax), %esi
callq 0x2aab
movq 0x58(%rbx), %rax
movq 0x10(%rax), %rdi
movl 0x28(%rax), %esi
callq 0x2aab
movq 0x58(%rbx), %rax
movq 0x18(%rax), %rdi
movl 0x28(%rax), %esi
callq 0x2aab
movq 0x58(%rbx), %rdi
addq $0x20, %rdi
callq 0x17d4
movq 0x58(%rbx), %rdi
callq 0x1030
movq $0x0, 0x58(%rbx)
leaq -0x10(%rbp), %rdi
callq 0x17d4
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_parse.c
// Function: parse_piped_commands
int						parse_piped_commands(t_minishell_meta *ms,
char *line, int j)
{
	int	freq;
	int	start;
	int	arg_end;

	start = 0;
	freq = get_frequency(line, 26);
	while (freq-- >= 0 && ft_free(&ms->arg))
	{
		ms->piped_cmds->cmds[j] = get_command(&line[start], ms);
		arg_end = get_args(ms, &line[start + ms->arg_start], j) - 1
		+ start + ms->arg_start;
		get_files(&line[arg_end], ms, j);
		ms->piped_cmds->pipe[j++] = '|';
		while (line[arg_end] != '\0' && line[arg_end] != 26)
			arg_end++;
		start = arg_end + 1;
	}
	return (j);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebx
movq %rdi, %r14
movq %rsi, -0x38(%rbp)
movq %rsi, %rdi
movl $0x1a, %esi
callq 0x498e
testl %eax, %eax
js 0x2d20
movl %eax, %r12d
movq %r14, -0x40(%rbp)
leaq 0x10(%r14), %rax
movq %rax, -0x48(%rbp)
movslq %ebx, %rax
movq %rax, %r15
addl %r12d, %eax
incl %eax
movl %eax, -0x2c(%rbp)
xorl %r14d, %r14d
movq -0x40(%rbp), %r13
movq -0x48(%rbp), %rdi
callq 0x17d4
testl %eax, %eax
je 0x2d1d
movq %r12, -0x50(%rbp)
leal -0x1(%r12), %eax
movl %eax, -0x30(%rbp)
movslq %r14d, %r14
movq -0x38(%rbp), %rax
leaq (%rax,%r14), %rbx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x3240
movq 0x58(%r13), %rcx
movq (%rcx), %rcx
movq %rax, (%rcx,%r15,8)
movslq 0x8(%r13), %rsi
addq %rbx, %rsi
movq %r13, %rdi
movl %r15d, %edx
callq 0x2d31
movl 0x8(%r13), %r12d
addl %eax, %r14d
leal (%r12,%r14), %eax
decl %eax
movslq %eax, %rbx
addq -0x38(%rbp), %rbx
movq %rbx, %rdi
movq %r13, %rsi
movl %r15d, %edx
callq 0x347e
movq 0x58(%r13), %rax
movq 0x20(%rax), %rax
movb $0x7c, (%rax,%r15)
incq %r15
addl %r12d, %r14d
movzbl (%rbx), %eax
testl %eax, %eax
je 0x2d08
cmpl $0x1a, %eax
je 0x2d08
incl %r14d
incq %rbx
jmp 0x2cf4
cmpl $0x0, -0x50(%rbp)
movl -0x30(%rbp), %eax
movl %eax, %r12d
jg 0x2c6f
movl -0x2c(%rbp), %ebx
jmp 0x2d20
movl %r15d, %ebx
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_parse.c
// Function: get_args
static int				get_args(t_minishell_meta *ms, char *line, int index)
{
	int		i;
	int		quote_bit;
	int		j;

	if ((i = check_endline(line, ms, &j, &quote_bit)) < 0)
		return (-i);
	while (line && line[ms->n = i] && line[i] != 26)
	{
		if (ft_isredir(line[i]) && quote_bit % 2 == 0)
			break ;
		if (ft_isspace(line[i]) && (quote_bit % 2 == 0))
		{
			(ms->arg == NULL) ? ms->arg = ft_strdup("") : (void)ms->arg;
			ms->piped_cmds->args1[index][j++] = ft_strdup(ms->arg);
			while (ft_free(&ms->arg) && line[i] != '\0' && ft_isspace(line[i]))
				i++;
			continue;
		}
		if (line[i] == 24 && (quote_bit = quote_bit + (0 * ++i) + 1))
			continue;
		else
			ms->arg = ft_stradd(ms->arg, line[i]);
		i++;
	}
	return (return_value(ms, index, j, line));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, -0x34(%rbp)
movq %rsi, %rbx
movq %rdi, %r15
leaq -0x2c(%rbp), %rdx
leaq -0x30(%rbp), %rcx
movq %rsi, %rdi
movq %r15, %rsi
callq 0x3600
movl %eax, %r12d
testl %eax, %eax
js 0x2e7a
testq %rbx, %rbx
je 0x2e64
leaq 0x10(%r15), %r13
movslq -0x34(%rbp), %rax
movq %rax, -0x40(%rbp)
movl %r12d, 0x50(%r15)
movl %r12d, %r14d
movzbl (%rbx,%r14), %eax
testl %eax, %eax
je 0x2e64
cmpl $0x1a, %eax
je 0x2e64
movsbl %al, %edi
callq 0x45ed
testl %eax, %eax
je 0x2db1
testb $0x1, -0x30(%rbp)
je 0x2e64
movsbl (%rbx,%r14), %edi
callq 0x4c88
testl %eax, %eax
je 0x2e35
testb $0x1, -0x30(%rbp)
jne 0x2e35
cmpq $0x0, (%r13)
jne 0x2ddc
leaq 0x3235(%rip), %rdi      # 0x6008
callq 0x1818
movq %rax, (%r13)
movq 0x10(%r15), %rdi
callq 0x1818
movq 0x58(%r15), %rcx
movq 0x8(%rcx), %rcx
movq -0x40(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x2c(%rbp), %rdx
leal 0x1(%rdx), %esi
movl %esi, -0x2c(%rbp)
movq %rax, (%rcx,%rdx,8)
movq %r13, %rdi
callq 0x17d4
testl %eax, %eax
je 0x2e5b
movq %r14, %r12
movsbl (%rbx,%r12), %edi
testl %edi, %edi
je 0x2e5b
callq 0x4c88
testl %eax, %eax
je 0x2e5b
incq %r12
movq %r13, %rdi
callq 0x17d4
testl %eax, %eax
jne 0x2e12
jmp 0x2e5b
cmpb $0x18, (%rbx,%r14)
jne 0x2e44
incl %r12d
incl -0x30(%rbp)
jne 0x2e5b
movq 0x10(%r15), %rdi
movl %r12d, %eax
movsbl (%rbx,%rax), %esi
callq 0x192d
movq %rax, 0x10(%r15)
incl %r12d
testq %rbx, %rbx
jne 0x2d7e
movl -0x2c(%rbp), %edx
movq %r15, %rdi
movl -0x34(%rbp), %esi
movq %rbx, %rcx
callq 0x366e
movl %eax, %r12d
jmp 0x2e7d
negl %r12d
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_parse.c
// Function: load_cmds_args
void					load_cmds_args(t_minishell_meta *ms, char **line_splits)
{
	int		i;
	int		arg_end;
	int		j;

	i = -1;
	j = 0;
	while (line_splits[++i] != NULL && (ft_free(&ms->arg)))
	{
		if (ft_strchr(line_splits[i], 26))
		{
			j = parse_piped_commands(ms, line_splits[i], j);
			continue;
		}
		ms->piped_cmds->cmds[j] = get_command(line_splits[i], ms);
		arg_end = get_args(ms, &line_splits[i][ms->arg_start], j);
		get_files(&line_splits[i][arg_end + ms->arg_start], ms, j);
		j++;
	}
	terminate_tabs(ms, j);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, (%rsi)
je 0x2f39
movq %rsi, %r15
leaq 0x10(%rbx), %r12
xorl %r14d, %r14d
movq %r12, %rdi
callq 0x17d4
testl %eax, %eax
je 0x2f3c
movq (%r15), %rdi
movl $0x1a, %esi
callq 0x5040
movq (%r15), %rsi
testq %rax, %rax
je 0x2ee2
movq %rbx, %rdi
movl %r14d, %edx
callq 0x2c1c
movl %eax, %r14d
jmp 0x2f28
movq %rsi, %rdi
movq %rbx, %rsi
callq 0x3240
movq 0x58(%rbx), %rcx
movq (%rcx), %rcx
movslq %r14d, %rdx
movq %rax, (%rcx,%rdx,8)
movslq 0x8(%rbx), %rsi
addq (%r15), %rsi
movq %rbx, %rdi
movl %r14d, %edx
callq 0x2d31
movslq 0x8(%rbx), %rcx
movslq %eax, %rdi
addq %rcx, %rdi
addq (%r15), %rdi
movq %rbx, %rsi
movl %r14d, %edx
callq 0x347e
incl %r14d
cmpq $0x0, 0x8(%r15)
leaq 0x8(%r15), %r15
jne 0x2eb1
jmp 0x2f3c
xorl %r14d, %r14d
movq %rbx, %rdi
movl %r14d, %esi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x460c
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_parse.c
// Function: parse
char					*parse(t_minishell_meta *ms, char *line)
{
	char	**line_splits;

	if (check_line(line) && (ms->multiline = 1))
		return (line);
	line = refine_line(line, ms);
	if (((line == NULL) && (ms->multiline = 1)))
		return (line);
	ms->piped_cmds = init_cmds(ft_strlen(line));
	if (ms->piped_cmds == NULL)
		exit(1);
	if (ft_strchr(line, 25) != NULL || ft_strchr(line, 26) != NULL)
		line_splits = ft_split(line, 25);
	else
	{
		line_splits = (char **)malloc(2 * sizeof(char*));
		line_splits[0] = ft_strdup(line);
		line_splits[1] = NULL;
	}
	load_cmds_args(ms, line_splits);
	free_tab(line_splits);
	return (line);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x47b2
testl %eax, %eax
je 0x2f78
movl $0x1, 0x44(%r14)
jmp 0x2ffa
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3932
testq %rax, %rax
je 0x2ff0
movq %rax, %rbx
movq %rax, %rdi
callq 0x1802
movl %eax, %edi
callq 0x3a8e
movq %rax, 0x58(%r14)
testq %rax, %rax
je 0x302a
movq %rbx, %rdi
movl $0x19, %esi
callq 0x5040
testq %rax, %rax
jne 0x2fcb
movq %rbx, %rdi
movl $0x1a, %esi
callq 0x5040
testq %rax, %rax
je 0x3008
movq %rbx, %rdi
movl $0x19, %esi
callq 0x4e6c
movq %rax, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x2e8f
movq %r15, %rdi
callq 0x2af2
jmp 0x2ffa
movl $0x1, 0x44(%r14)
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x1120
movq %rax, %r15
movq %rbx, %rdi
callq 0x1818
movq %rax, (%r15)
movq $0x0, 0x8(%r15)
jmp 0x2fdb
movl $0x1, %edi
callq 0x1150
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_parse_input_line.c
// Function: parse_input_line
char						*parse_input_line(char *line, t_minishell_meta *ms)
{
	int i;

	i = 0;
	while (line[i] != '\0')
	{
		if (line[i] == ';' && line[i - 1] != '\\')
			line[i] = 25;
		if (line[i] == '|' && line[i - 1] != '\\')
			line[i] = 26;
		if (line[i] == '\'' || line[i] == '\"')
		{
			line = replace_semi(line, (i + 1), line[i], ms);
			i = ms->end_quote;
			if (line == NULL && (ms->multiline = 1))
				return (0);
		}
		i++;
	}
	return (line);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
xorl %ecx, %ecx
xorl %edx, %edx
movslq %edx, %rdi
movzbl (%rax,%rdi), %r8d
cmpl $0x3b, %r8d
je 0x3085
testl %r8d, %r8d
jne 0x3090
jmp 0x30e9
cmpb $0x5c, -0x1(%rdi,%rax)
je 0x3090
movb $0x19, (%rax,%rdi)
cmpb $0x7c, (%rax,%rdi)
jne 0x30a1
cmpb $0x5c, -0x1(%rdi,%rax)
je 0x30a1
movb $0x1a, (%rax,%rdi)
movzbl (%rax,%rdi), %edi
cmpl $0x27, %edi
je 0x30af
cmpl $0x22, %edi
jne 0x30dc
leal 0x1(%rdx), %r8d
movslq %r8d, %r8
addq %rax, %r8
movb (%r8), %r9b
incq %r8
incl %edx
cmpb %dil, %r9b
je 0x30cb
testb %r9b, %r9b
jne 0x30b9
movl %edx, 0x48(%rsi)
cmpb $0x0, -0x1(%r8)
cmoveq %rcx, %rax
testq %rax, %rax
je 0x30e0
incl %edx
jmp 0x3070
movl $0x1, 0x44(%rsi)
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_parse_input_line.c
// Function: fetch_redir
char						*fetch_redir(char *line, int *i)
{
	char	*redir_seq;
	int		j;

	j = *i;
	redir_seq = NULL;
	redir_seq = ft_stradd(redir_seq, line[*i]);
	j++;
	if (line[j] == '>')
	{
		redir_seq = ft_stradd(redir_seq, line[j]);
		j++;
	}
	*i = j;
	return (redir_seq);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movslq (%rsi), %r15
movsbl (%rdi,%r15), %esi
xorl %edi, %edi
callq 0x192d
movb 0x1(%r14,%r15), %cl
cmpb $0x3e, %cl
jne 0x3125
movsbl %cl, %esi
movq %rax, %rdi
callq 0x192d
addl $0x2, %r15d
jmp 0x3128
incq %r15
movl %r15d, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_parse_input_line.c
// Function: check_invalid_redir
int							check_invalid_redir(char *line, int i,\
t_minishell_meta *ms)
{
	char *redir_seq;
	char *tmp;

	redir_seq = fetch_redir(line, &i);
	if (ms->arg == NULL)
		tmp = ft_strdup(redir_seq);
	else
		tmp = ft_strjoin(ms->arg, redir_seq);
	ft_free(&ms->arg);
	ms->arg = ft_strdup(tmp);
	ft_free(&tmp);
	ft_free(&redir_seq);
	if (line[i] == 0)
		return (throw_newline_error(ms));
	else if (ft_isredir(line[i]))
	{
		redir_seq = fetch_redir(line, &i);
		syntax_error(redir_seq);
		ft_free(&redir_seq);
		ft_free(&ms->arg);
		return (0);
	}
	ft_free(&redir_seq);
	return (i);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %rbx
movq %rdi, %r14
leaq -0x24(%rbp), %rax
movl %esi, (%rax)
movq %rax, %rsi
callq 0x30eb
movq %rax, -0x30(%rbp)
movq 0x10(%rbx), %rdi
addq $0x10, %rbx
testq %rdi, %rdi
je 0x319e
movq %rax, %rsi
callq 0x1875
jmp 0x31a6
movq %rax, %rdi
callq 0x1818
leaq -0x38(%rbp), %r15
movq %rax, (%r15)
movq %rbx, %rdi
callq 0x17d4
movq (%r15), %rdi
callq 0x1818
movq %rax, (%rbx)
movq %r15, %rdi
callq 0x17d4
leaq -0x30(%rbp), %r12
movq %r12, %rdi
callq 0x17d4
movslq -0x24(%rbp), %r15
movb (%r14,%r15), %al
testb %al, %al
je 0x3211
movsbl %al, %edi
callq 0x45ed
testl %eax, %eax
je 0x3222
leaq -0x24(%rbp), %rsi
movq %r14, %rdi
callq 0x30eb
leaq -0x30(%rbp), %r14
movq %rax, (%r14)
movq %rax, %rdi
callq 0x48c5
movq %r14, %rdi
callq 0x17d4
jmp 0x321d
leaq 0x2ec2(%rip), %rdi      # 0x60da
callq 0x48c5
xorl %r15d, %r15d
jmp 0x3225
movq %r12, %rbx
movq %rbx, %rdi
callq 0x17d4
movl %r15d, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_parse_utils.c
// Function: get_command
char						*get_command(char *line, t_minishell_meta *ms)
{
	int		i;
	char	*command;
	int		quote_bit;

	i = 0;
	quote_bit = 0;
	command = NULL;
	i = pre_process_cmd(&command, i, line, &quote_bit);
	while (line[i] && (!ft_isspace(line[i]) || quote_bit % 2)\
	&& line[i] != '\0' && line[i] != 26)
	{
		if (ft_isredir(line[i]) && !(quote_bit % 2))
			break ;
		if (line[i] != 24)
			command = ft_stradd(command, line[i]);
		else
			quote_bit++;
		i++;
	}
	if (command == NULL)
		command = ft_strdup("");
	ms->arg_start = i;
	return (command);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, -0x30(%rbp)
movq %rdi, %r14
movb (%rdi), %al
xorl %ebx, %ebx
testb %al, %al
je 0x3279
movsbl %al, %edi
callq 0x4c88
testl %eax, %eax
je 0x3275
movb 0x1(%r14,%rbx), %al
incq %rbx
testb %al, %al
jne 0x325d
movl %ebx, %ecx
jmp 0x327b
xorl %ecx, %ecx
movb (%r14,%rbx), %dl
xorl %r13d, %r13d
cmpb $0x18, %dl
sete %r13b
leal (%rcx,%r13), %r12d
movslq %r12d, %rax
movb (%r14,%rax), %al
testb %al, %al
je 0x32da
xorl %esi, %esi
cmpb $0x18, %dl
sete %sil
movslq %ecx, %rcx
addq %rcx, %rsi
leaq (%r14,%rsi), %rbx
incq %rbx
xorl %r15d, %r15d
movsbl %al, %edi
callq 0x4c88
testl %eax, %eax
je 0x32dd
movsbl -0x1(%rbx), %esi
movq %r15, %rdi
callq 0x192d
movq %rax, %r15
incl %r12d
movb (%rbx), %al
incq %rbx
testb %al, %al
jne 0x32b1
jmp 0x32dd
xorl %r15d, %r15d
movslq %r12d, %rcx
movb (%r14,%rcx), %al
testb %al, %al
je 0x3346
addq %rcx, %r14
movsbl %al, %edi
callq 0x4c88
movl %r13d, %ebx
andl $0x1, %ebx
testl %eax, %eax
je 0x3301
testl %ebx, %ebx
je 0x3346
movzbl (%r14), %eax
testl %eax, %eax
je 0x3346
cmpl $0x1a, %eax
je 0x3346
movsbl %al, %edi
callq 0x45ed
testl %eax, %eax
je 0x331e
testl %ebx, %ebx
je 0x3346
movb (%r14), %al
cmpb $0x18, %al
jne 0x332a
incl %r13d
jmp 0x3338
movsbl %al, %esi
movq %r15, %rdi
callq 0x192d
movq %rax, %r15
incl %r12d
movb 0x1(%r14), %al
incq %r14
testb %al, %al
jne 0x32eb
testq %r15, %r15
jne 0x335a
leaq 0x2cb6(%rip), %rdi      # 0x6008
callq 0x1818
movq %rax, %r15
movq -0x30(%rbp), %rax
movl %r12d, 0x8(%rax)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq