LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/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 0x2b45
movq 0x20(%rbx), %rdi
callq 0x2aa2
movq 0x28(%rbx), %rdi
callq 0x2aa2
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O3/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 0x1e2f
movl %eax, %r15d
leaq 0x3e57(%rip), %rsi      # 0x6084
movl $0x5, %edx
movl $0x1, %edi
callq 0x1050
testl %r15d, %r15d
je 0x2266
cmpl $0x2, %r15d
jl 0x226b
callq 0x1040
movl $0x1, (%rax)
leaq 0x3db1(%rip), %rdi      # 0x600a
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x485a
xorl %r15d, %r15d
jmp 0x22a7
movq 0x58(%r14), %rax
movq 0x8(%rax), %rax
movq (%rax,%r12,8), %rax
movq (%rax), %rdi
callq 0x22ba
movq 0x58(%r14), %rcx
movq 0x8(%rcx), %rcx
movq (%rcx,%r12,8), %rcx
movq (%rcx), %rdi
testl %eax, %eax
jne 0x229f
callq 0x231c
movl $0xff, %r15d
jmp 0x22a7
callq 0x4b88
movl %eax, %r15d
movq %r14, %rdi
movq %rbx, %rsi
callq 0x21d0
movl %r15d, %edi
callq 0x1150
// File: /workspace/github_c_makefile_star2_O3/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 0x2313
movq %rdi, %r14
movb (%rdi), %al
xorl %ebx, %ebx
cmpb $0x2d, %al
jne 0x22ea
movsbl 0x1(%r14), %edi
callq 0x4c54
testl %eax, %eax
je 0x2315
movb 0x1(%r14), %al
movl $0x1, %ecx
jmp 0x22ec
xorl %ecx, %ecx
movl $0x1, %ebx
testb %al, %al
je 0x2315
addq %rcx, %r14
incq %r14
movsbl %al, %edi
callq 0x4c54
testl %eax, %eax
je 0x2313
movb (%r14), %al
incq %r14
testb %al, %al
jne 0x22fb
jmp 0x2315
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x3cfd(%rip), %rdi      # 0x6029
movl $0x2, %esi
callq 0x4e0c
leaq 0x3d4d(%rip), %rdi      # 0x608a
movl $0x2, %esi
callq 0x4e0c
movq %rbx, %rdi
movl $0x2, %esi
callq 0x4e0c
leaq 0x3d38(%rip), %rdi      # 0x6093
movl $0x2, %esi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x4e0c
nop
// File: /workspace/github_c_makefile_star2_O3/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 0x238e
testl %eax, %eax
jne 0x23a5
movsbl (%r14), %edi
callq 0x4c40
testl %eax, %eax
jne 0x23bd
cmpb $0x5f, (%r14)
je 0x23bd
movb (%r12), %al
movsbl %al, %edi
callq 0x4c20
testl %eax, %eax
jne 0x23b8
cmpb $0x5f, (%r12)
jne 0x23dd
incq %r12
jmp 0x2380
movl $0x1, %r15d
cmpb $0x0, (%r12)
je 0x23eb
leaq 0x3cdf(%rip), %rsi      # 0x60b0
movq %rbx, %rdi
callq 0x506c
testl %eax, %eax
jne 0x23eb
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4909
xorl %r15d, %r15d
movl %r15d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x17de
movq (%r15), %rsi
movl $0x1, %ecx
testq %rsi, %rsi
je 0x2466
movslq %eax, %r12
movl %r12d, %r13d
xorl %ebx, %ebx
xorl %eax, %eax
movzbl (%rsi,%rax), %ecx
testl %ecx, %ecx
je 0x243c
cmpl $0x3d, %ecx
je 0x243c
incq %rax
jmp 0x242a
cmpl %eax, %r13d
jne 0x2450
movq %r14, %rdi
movq %r12, %rdx
callq 0x50a0
testl %eax, %eax
je 0x2464
movq 0x8(%r15,%rbx,8), %rsi
incq %rbx
testq %rsi, %rsi
jne 0x2428
movl $0x1, %ecx
jmp 0x2466
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_O3/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 0x3c11(%rip), %rsi      # 0x60b6
callq 0x236c
testl %eax, %eax
je 0x2585
movq 0x58(%rbx), %rax
movq 0x8(%rax), %rax
movq (%rax,%r14,8), %rax
movq (%rax,%r15,8), %rdi
movl $0x3d, %esi
callq 0x501c
testq %rax, %rax
je 0x2506
movq 0x58(%rbx), %rax
movq 0x8(%rax), %rax
movq (%rax,%r14,8), %rax
movq (%rax,%r15,8), %rdi
movq %rbx, %rsi
callq 0x4030
leaq 0x20(%rbx), %r12
movq 0x20(%rbx), %rax
movq $-0x1, %r13
cmpq $0x0, 0x8(%rax,%r13,8)
leaq 0x1(%r13), %r13
jne 0x24f8
jmp 0x255b
movq 0x20(%rbx), %rdi
movq 0x58(%rbx), %rax
movq 0x8(%rax), %rax
movq (%rax,%r14,8), %rax
movq (%rax,%r15,8), %rsi
callq 0x23f7
testl %eax, %eax
je 0x2585
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 0x40a3
movq 0x28(%rbx), %rax
movq $-0x1, %r13
cmpq $0x0, 0x8(%rax,%r13,8)
leaq 0x1(%r13), %r13
jne 0x254f
movq 0x58(%rbx), %rax
movq 0x8(%rax), %rax
movq (%rax,%r14,8), %rax
movq (%rax,%r15,8), %rdi
callq 0x17f4
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_O3/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 0x2627
xorl %r15d, %r15d
leaq 0x3aee(%rip), %r12      # 0x60bd
movq %rbx, %rdi
movl %r14d, %esi
movl %r15d, %edx
callq 0x2477
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 0x50a0
testl %eax, %eax
jne 0x2606
movq %rbx, %rdi
callq 0x4a7c
movq 0x58(%rbx), %rax
movq 0x8(%rax), %rax
movq (%rax,%r14,8), %rax
cmpq $0x0, 0x8(%rax,%r15,8)
leaq 0x1(%r15), %r15
jne 0x25cf
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x0, 0x4c(%rbx)
je 0x261e
movq 0x20(%rbx), %rdi
callq 0x2644
movq 0x28(%rbx), %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2644
// File: /workspace/github_c_makefile_star2_O3/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 0x270c
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r13d, %r13d
leaq 0x3a5a(%rip), %r14      # 0x60c3
leaq 0x3b1f(%rip), %r15      # 0x618f
movq %r14, %rdi
movl $0x1, %esi
callq 0x4e0c
movq (%rbx,%r13,8), %rdi
movb (%rdi), %al
testb %al, %al
je 0x26c1
xorl %r12d, %r12d
movsbl %al, %edi
movl $0x1, %esi
callq 0x4d70
movq (%rbx,%r13,8), %rdi
cmpb $0x3d, (%rdi,%r12)
jne 0x26b5
movl $0x22, %edi
movl $0x1, %esi
callq 0x4d70
movq (%rbx,%r13,8), %rdi
movb 0x1(%rdi,%r12), %al
incq %r12
testb %al, %al
jne 0x268a
movl $0x3d, %esi
callq 0x501c
testq %rax, %rax
je 0x26e1
leaq 0x39f8(%rip), %rdi      # 0x60cf
movl $0x1, %esi
callq 0x4e0c
movq %r15, %rdi
movl $0x1, %esi
callq 0x4e0c
cmpq $0x0, 0x8(%rbx,%r13,8)
leaq 0x1(%r13), %r13
jne 0x2670
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/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 0x2730
cmpl $-0x1, %r15d
jne 0x273e
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 0x2765
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 0x47d0
// File: /workspace/github_c_makefile_star2_O3/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 0x2799
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2710
movq 0x58(%rbx), %rax
movq 0x20(%rax), %rax
movslq %r14d, %rcx
cmpb $0x7c, (%rax,%rcx)
jne 0x2839
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 0x3b1c
// File: /workspace/github_c_makefile_star2_O3/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)
movb (%rsi), %al
je 0x28cb
testb %al, %al
jne 0x28d3
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 0x288d
movq %rbx, %rdi
callq 0x17f4
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
jmp 0x28d3
testb %al, %al
je 0x295b
leaq 0x37f7(%rip), %rsi      # 0x60d1
movq %r12, %rdi
callq 0x506c
testl %eax, %eax
je 0x2925
leaq 0x37e7(%rip), %rsi      # 0x60d4
movq %r12, %rdi
callq 0x506c
testl %eax, %eax
je 0x2943
leaq 0x37d7(%rip), %rsi      # 0x60d7
movq %r12, %rdi
callq 0x506c
testl %eax, %eax
je 0x296a
movzbl (%r12), %eax
cmpl $0x3c, %eax
je 0x2986
cmpl $0x3e, %eax
jne 0x295b
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
jmp 0x2930
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 0x2799
leaq 0x378b(%rip), %rdi      # 0x60d5
callq 0x48a9
testl %eax, %eax
je 0x28f9
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 0x27f8
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2710
// File: /workspace/github_c_makefile_star2_O3/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 0x29f7
xorl %r15d, %r15d
movq 0x18(%rax), %rax
movq (%rax,%r14,8), %rax
movq (%rax,%r15), %rsi
movq %rbx, %rdx
movl %r14d, %ecx
callq 0x2852
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 0x29c6
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/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
jge 0x2a26
testq %rbx, %rbx
jne 0x2a49
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
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 0x2a30
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O3/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 0x2a90
movl %esi, %r14d
xorl %r15d, %r15d
movq (%rbx,%r15,8), %rdi
cmpq $0x0, (%rdi)
je 0x2a83
callq 0x2aa2
jmp 0x2a88
callq 0x1030
incq %r15
cmpq %r15, %r14
jne 0x2a72
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O3/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:
testq %rdi, %rdi
je 0x2ae0
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0x2ad4
movq %rbx, %r14
movq %r14, %rdi
callq 0x17b0
movq $0x0, (%r14)
cmpq $0x0, 0x8(%r14)
leaq 0x8(%r14), %r14
jne 0x2aba
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x1030
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x2b0c
callq 0x2aa2
movq 0x8(%rbx,%r15,8), %rdi
incq %r15
jmp 0x2af8
cmpl %r14d, %r15d
jge 0x2b35
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 0x2b18
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O3/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 0x2aa2
movq 0x58(%rbx), %rax
testq %rax, %rax
je 0x2bba
movq (%rax), %rdi
callq 0x2aa2
movq 0x58(%rbx), %rax
movq 0x8(%rax), %rdi
movl 0x28(%rax), %esi
callq 0x2a5b
movq 0x58(%rbx), %rax
movq 0x10(%rax), %rdi
movl 0x28(%rax), %esi
callq 0x2a5b
movq 0x58(%rbx), %rax
movq 0x18(%rax), %rdi
movl 0x28(%rax), %esi
callq 0x2a5b
movq 0x58(%rbx), %rdi
addq $0x20, %rdi
callq 0x17b0
movq 0x58(%rbx), %rdi
callq 0x1030
movq $0x0, 0x58(%rbx)
leaq -0x10(%rbp), %rdi
callq 0x17b0
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/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 0x4972
testl %eax, %eax
js 0x2cd5
movl %eax, %r12d
movq %r14, -0x40(%rbp)
leaq 0x10(%r14), %rax
movq %rax, -0x48(%rbp)
movslq %ebx, %rbx
movq %rbx, %r15
leal (%r12,%rbx), %eax
incl %eax
movl %eax, -0x2c(%rbp)
xorl %r14d, %r14d
movq -0x40(%rbp), %rbx
movq -0x48(%rbp), %rdi
callq 0x17b0
testl %eax, %eax
je 0x2cd2
movq %r12, -0x50(%rbp)
leal -0x1(%r12), %eax
movl %eax, -0x30(%rbp)
movslq %r14d, %r14
movq -0x38(%rbp), %rax
leaq (%rax,%r14), %r13
movq %r13, %rdi
movq %rbx, %rsi
callq 0x3204
movq 0x58(%rbx), %rcx
movq (%rcx), %rcx
movq %rax, (%rcx,%r15,8)
movslq 0x8(%rbx), %rsi
addq %r13, %rsi
movq %rbx, %rdi
movl %r15d, %edx
callq 0x2ce6
movl 0x8(%rbx), %r12d
addl %eax, %r14d
leal (%r12,%r14), %eax
decl %eax
movslq %eax, %r13
addq -0x38(%rbp), %r13
movq %r13, %rdi
movq %rbx, %rsi
movl %r15d, %edx
callq 0x343b
movq 0x58(%rbx), %rax
movq 0x20(%rax), %rax
movb $0x7c, (%rax,%r15)
incq %r15
addl %r12d, %r14d
movzbl (%r13), %eax
testl %eax, %eax
je 0x2cbb
cmpl $0x1a, %eax
je 0x2cbb
incl %r14d
incq %r13
jmp 0x2ca5
cmpl $0x0, -0x50(%rbp)
movl -0x30(%rbp), %eax
movl %eax, %r12d
jg 0x2c20
movl -0x2c(%rbp), %eax
movl %eax, %ebx
jmp 0x2cd5
movq %r15, %rbx
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_O3/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 0x35bc
movl %eax, %r14d
testl %eax, %eax
js 0x2e3b
testq %rbx, %rbx
je 0x2e25
leaq 0x10(%r15), %r12
movslq -0x34(%rbp), %rax
movq %rax, -0x40(%rbp)
movl %r14d, %r13d
movl %r14d, 0x50(%r15)
movzbl (%rbx,%r13), %eax
testl %eax, %eax
je 0x2e25
cmpl $0x1a, %eax
je 0x2e25
movsbl %al, %edi
callq 0x45d0
testl %eax, %eax
je 0x2d66
testb $0x1, -0x30(%rbp)
je 0x2e25
movsbl (%rbx,%r13), %edi
callq 0x4c68
testl %eax, %eax
je 0x2df2
testb $0x1, -0x30(%rbp)
jne 0x2df2
movq (%r12), %rdi
testq %rdi, %rdi
jne 0x2d96
leaq 0x327e(%rip), %rdi      # 0x6008
callq 0x17f4
movq %rax, %rdi
movq %rax, (%r12)
callq 0x17f4
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 %r12, %rdi
callq 0x17b0
testl %eax, %eax
je 0x2d36
movsbl (%rbx,%r13), %edi
testl %edi, %edi
je 0x2dea
callq 0x4c68
testl %eax, %eax
je 0x2dea
incq %r13
movq %r12, %rdi
callq 0x17b0
testl %eax, %eax
jne 0x2dc9
movl %r13d, %r14d
jmp 0x2d33
movb (%rbx,%r13), %al
cmpb $0x18, %al
jne 0x2e0d
movq %r13, %r14
incq %r14
incl -0x30(%rbp)
jne 0x2d33
movb (%rbx,%r14), %al
movq (%r12), %rdi
movsbl %al, %esi
callq 0x1905
movq %rax, (%r12)
incl %r14d
jmp 0x2d33
movl -0x2c(%rbp), %edx
movq %r15, %rdi
movl -0x34(%rbp), %esi
movq %rbx, %rcx
callq 0x3625
movl %eax, %r14d
jmp 0x2e3e
negl %r14d
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_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 0x2efa
movq %rsi, %r15
leaq 0x10(%rbx), %r12
xorl %r14d, %r14d
movq %r12, %rdi
callq 0x17b0
testl %eax, %eax
je 0x2efd
movq (%r15), %rdi
movl $0x1a, %esi
callq 0x501c
movq (%r15), %rsi
testq %rax, %rax
je 0x2ea3
movq %rbx, %rdi
movl %r14d, %edx
callq 0x2bcc
movl %eax, %r14d
jmp 0x2ee9
movq %rsi, %rdi
movq %rbx, %rsi
callq 0x3204
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 0x2ce6
movslq 0x8(%rbx), %rcx
movslq %eax, %rdi
addq %rcx, %rdi
addq (%r15), %rdi
movq %rbx, %rsi
movl %r14d, %edx
callq 0x343b
incl %r14d
cmpq $0x0, 0x8(%r15)
leaq 0x8(%r15), %r15
jne 0x2e72
jmp 0x2efd
xorl %r14d, %r14d
movq %rbx, %rdi
movl %r14d, %esi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x45ec
// File: /workspace/github_c_makefile_star2_O3/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 0x4797
testl %eax, %eax
je 0x2f39
movl $0x1, 0x44(%r14)
jmp 0x2fbb
movq %rbx, %rdi
movq %r14, %rsi
callq 0x38f5
testq %rax, %rax
je 0x2fb1
movq %rax, %rbx
movq %rax, %rdi
callq 0x17de
movl %eax, %edi
callq 0x3a68
movq %rax, 0x58(%r14)
testq %rax, %rax
je 0x2feb
movq %rbx, %rdi
movl $0x19, %esi
callq 0x501c
testq %rax, %rax
jne 0x2f8c
movq %rbx, %rdi
movl $0x1a, %esi
callq 0x501c
testq %rax, %rax
je 0x2fc9
movq %rbx, %rdi
movl $0x19, %esi
callq 0x4e44
movq %rax, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x2e50
movq %r15, %rdi
callq 0x2aa2
jmp 0x2fbb
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 0x17f4
movq %rax, (%r15)
movq $0x0, 0x8(%r15)
jmp 0x2f9c
movl $0x1, %edi
callq 0x1150
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/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
movslq %ecx, %rdi
movb (%rax,%rdi), %dl
movzbl %dl, %r8d
cmpl $0x3a, %r8d
jg 0x3079
cmpl $0x22, %r8d
je 0x304e
cmpl $0x27, %r8d
jne 0x3097
leal 0x1(%rcx), %edi
movslq %edi, %rdi
addq %rax, %rdi
movb (%rdi), %r8b
incq %rdi
incl %ecx
cmpb %dl, %r8b
je 0x3069
testb %r8b, %r8b
jne 0x3057
movl %ecx, 0x48(%rsi)
testq %rax, %rax
je 0x30a0
cmpb $0x0, -0x1(%rdi)
jne 0x309c
jmp 0x30a0
cmpl $0x7c, %r8d
je 0x3089
cmpl $0x3b, %r8d
jne 0x309c
movb $0x19, %dl
jmp 0x308b
movb $0x1a, %dl
cmpb $0x5c, -0x1(%rax,%rdi)
je 0x309c
movb %dl, (%rax,%rdi)
jmp 0x309c
testl %r8d, %r8d
je 0x30a9
incl %ecx
jmp 0x3032
movl $0x1, 0x44(%rsi)
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x1905
cmpb $0x3e, 0x1(%r14,%r15)
jne 0x30e5
movq %rax, %rdi
movl $0x3e, %esi
callq 0x1905
addl $0x2, %r15d
jmp 0x30e8
incq %r15
movl %r15d, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x30ab
movq %rax, -0x30(%rbp)
movq 0x10(%rbx), %rdi
addq $0x10, %rbx
testq %rdi, %rdi
je 0x315e
movq %rax, %rsi
callq 0x184d
jmp 0x3166
movq %rax, %rdi
callq 0x17f4
movq %rax, %r15
leaq -0x38(%rbp), %r12
movq %rax, (%r12)
movq %rbx, %rdi
callq 0x17b0
movq %r15, %rdi
callq 0x17f4
movq %rax, (%rbx)
movq %r12, %rdi
callq 0x17b0
leaq -0x30(%rbp), %r12
movq %r12, %rdi
callq 0x17b0
movslq -0x24(%rbp), %r15
movb (%r14,%r15), %al
testb %al, %al
je 0x31d5
movsbl %al, %edi
callq 0x45d0
testl %eax, %eax
je 0x31e6
leaq -0x24(%rbp), %rsi
movq %r14, %rdi
callq 0x30ab
leaq -0x30(%rbp), %r14
movq %rax, (%r14)
movq %rax, %rdi
callq 0x48a9
movq %r14, %rdi
callq 0x17b0
jmp 0x31e1
leaq 0x2efe(%rip), %rdi      # 0x60da
callq 0x48a9
xorl %r15d, %r15d
jmp 0x31e9
movq %r12, %rbx
movq %rbx, %rdi
callq 0x17b0
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_O3/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
testb %al, %al
je 0x323f
xorl %r12d, %r12d
movsbl %al, %edi
callq 0x4c68
testl %eax, %eax
je 0x3247
movb 0x1(%r14,%r12), %al
incq %r12
testb %al, %al
jne 0x3222
xorl %r13d, %r13d
jmp 0x3256
xorl %r13d, %r13d
xorl %r12d, %r12d
jmp 0x3256
xorl %r13d, %r13d
cmpb $0x18, (%r14,%r12)
sete %r13b
addl %r13d, %r12d
movslq %r12d, %rcx
movb (%r14,%rcx), %al
testb %al, %al
je 0x3294
leaq (%rcx,%r14), %rbx
incq %rbx
xorl %r15d, %r15d
movsbl %al, %edi
callq 0x4c68
testl %eax, %eax
je 0x3297
movsbl -0x1(%rbx), %esi
movq %r15, %rdi
callq 0x1905
movq %rax, %r15
incl %r12d
movb (%rbx), %al
incq %rbx
testb %al, %al
jne 0x326b
jmp 0x3297
xorl %r15d, %r15d
movslq %r12d, %rcx
movb (%r14,%rcx), %al
testb %al, %al
je 0x3300
addq %rcx, %r14
movsbl %al, %edi
callq 0x4c68
movl %r13d, %ebx
andl $0x1, %ebx
testl %eax, %eax
je 0x32bb
testl %ebx, %ebx
je 0x3300
movzbl (%r14), %eax
testl %eax, %eax
je 0x3300
cmpl $0x1a, %eax
je 0x3300
movsbl %al, %edi
callq 0x45d0
testl %eax, %eax
je 0x32d8
testl %ebx, %ebx
je 0x3300
movb (%r14), %al
cmpb $0x18, %al
jne 0x32e4
incl %r13d
jmp 0x32f2
movsbl %al, %esi
movq %r15, %rdi
callq 0x1905
movq %rax, %r15
incl %r12d
movb 0x1(%r14), %al
incq %r14
testb %al, %al
jne 0x32a5
testq %r15, %r15
jne 0x3314
leaq 0x2cfc(%rip), %rdi      # 0x6008
callq 0x17f4
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
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_parse_utils.c
// Function: get_redir
char						*get_redir(char *redir,
char *line, t_minishell_meta *ms)
{
	int i;

	i = 0;
	redir = NULL;
	if (line[i] == '\0')
		return (ft_strdup(""));
	while (ft_isredir(line[i]) && line[i] != '\0')
	{
		redir = ft_stradd(redir, line[i]);
		i++;
	}
	ms->arg_start += i;
	return (redir);
}

// Assembly:
movb (%rsi), %al
testb %al, %al
je 0x3381
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movsbl %al, %edi
callq 0x45d0
testl %eax, %eax
je 0x338d
xorl %r12d, %r12d
xorl %r15d, %r15d
movb (%r14,%r12), %al
testb %al, %al
je 0x3393
movsbl %al, %esi
movq %r15, %rdi
callq 0x1905
movq %rax, %r15
movsbl 0x1(%r14,%r12), %edi
incq %r12
callq 0x45d0
testl %eax, %eax
jne 0x3357
jmp 0x3393
leaq 0x2c80(%rip), %rdi      # 0x6008
jmp 0x17f4
xorl %r15d, %r15d
xorl %r12d, %r12d
addl %r12d, 0x8(%rbx)
movq %r15, %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_utils.c
// Function: get_file_name
int							get_file_name(char *line, int i,\
int *quote_bit, char **str)
{
	while (line[i] && line[i] != 26)
	{
		if (line[i] == 24 && (*quote_bit = *quote_bit + 1))
		{
			i++;
			continue;
		}
		if ((ft_isspace(line[i]) || ft_isredir(line[i])) && (*quote_bit % 2))
		{
			str[0] = ft_stradd(str[0], line[i]);
			i++;
			continue;
		}
		if (!ft_isspace(line[i]) && (!ft_isredir(line[i])))
		{
			str[0] = ft_stradd(str[0], line[i]);
			i++;
			continue ;
		}
		return (i);
	}
	return (i);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r15
movl %esi, %r14d
movslq %esi, %r12
addq %rdi, %r12
movzbl (%r12), %eax
cmpl $0x18, %eax
je 0x33d2
testl %eax, %eax
je 0x342f
cmpl $0x1a, %eax
jne 0x33db
jmp 0x342f
incl (%r15)
jne 0x3427
movb (%r12), %al
movsbl %al, %edi
callq 0x4c68
testl %eax, %eax
jne 0x33f5
movsbl (%r12), %edi
callq 0x45d0
testl %eax, %eax
je 0x33fb
testb $0x1, (%r15)
jne 0x3417
movsbl (%r12), %edi
callq 0x4c68
testl %eax, %eax
jne 0x342f
movsbl (%r12), %edi
callq 0x45d0
testl %eax, %eax
jne 0x342f
movq (%rbx), %rdi
movsbl (%r12), %esi
callq 0x1905
movq %rax, (%rbx)
incl %r14d
incq %r12
jmp 0x33bd
movl %r14d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_parse_utils.c
// Function: get_files
void						get_files(char *line,\
t_minishell_meta *ms, int index)
{
	int		i;
	int		quote_bit;
	int		j;

	i = 0;
	quote_bit = 0;
	while ((j = 0) && line[i] != '\0' && ft_isalpha(line[i]))
		i++;
	while (line[i] != '\0' && ft_isspace(line[i]))
		i++;
	if (line[i] == '\0' || !ft_isredir(line[i]))
		return ;
	while (line[i] && line[i] != 26)
	{
		while (line[i] && ft_isredir(line[i]))
			ms->arg = ft_stradd(ms->arg, line[i++]);
		j = add_ms_arg(ms, index, j, 0);
		while (line[i] != '\0' && ft_isspace(line[i]))
			i++;
		i = get_file_name(line, i, &quote_bit, &ms->arg);
		j = add_ms_arg(ms, index, j, 1);
	}
	j = add_ms_arg(ms, index, j, 1);
	ms->piped_cmds->redir[index][j] = 0;
	ms->piped_cmds->files1[index][j] = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, -0x2c(%rbp)
movq %rsi, -0x38(%rbp)
movl $0x0, -0x3c(%rbp)
movb (%rdi), %al
testb %al, %al
je 0x35aa
movq %rdi, %r15
xorl %r12d, %r12d
movsbl %al, %edi
callq 0x4c68
testl %eax, %eax
je 0x3487
movb 0x1(%r15,%r12), %al
incq %r12
testb %al, %al
jne 0x346a
jmp 0x35aa
movb (%r15,%r12), %al
testb %al, %al
je 0x35aa
movsbl %al, %edi
callq 0x45d0
testl %eax, %eax
je 0x35aa
movq -0x38(%rbp), %rax
leaq 0x10(%rax), %r13
leaq 0x1(%r15), %rax
movq %rax, -0x48(%rbp)
xorl %r14d, %r14d
movslq %r12d, %rbx
movzbl (%r15,%rbx), %eax
testl %eax, %eax
je 0x3568
cmpl $0x1a, %eax
je 0x3568
addq -0x48(%rbp), %rbx
movsbl %al, %edi
callq 0x45d0
testl %eax, %eax
je 0x34fc
movq (%r13), %rdi
incl %r12d
movsbl -0x1(%rbx), %esi
callq 0x1905
movq %rax, (%r13)
movb (%rbx), %al
incq %rbx
testb %al, %al
jne 0x34d3
movslq %r12d, %rbx
movq -0x38(%rbp), %rdi
movl -0x2c(%rbp), %esi
movl %r14d, %edx
xorl %ecx, %ecx
callq 0x4afb
movl %eax, %r14d
movb (%r15,%rbx), %al
testb %al, %al
je 0x3537
addq -0x48(%rbp), %rbx
movsbl %al, %edi
callq 0x4c68
testl %eax, %eax
je 0x3537
incl %r12d
movb (%rbx), %al
incq %rbx
testb %al, %al
jne 0x351f
movq %r15, %rdi
movl %r12d, %esi
leaq -0x3c(%rbp), %rdx
movq %r13, %rcx
callq 0x33a3
movl %eax, %r12d
movq -0x38(%rbp), %rdi
movl -0x2c(%rbp), %esi
movl %r14d, %edx
movl $0x1, %ecx
callq 0x4afb
movl %eax, %r14d
jmp 0x34b6
movq -0x38(%rbp), %rbx
movq %rbx, %rdi
movl -0x2c(%rbp), %r15d
movl %r15d, %esi
movl %r14d, %edx
movl $0x1, %ecx
callq 0x4afb
movq 0x58(%rbx), %rcx
movq 0x18(%rcx), %rcx
movslq %r15d, %rdx
movq (%rcx,%rdx,8), %rcx
cltq
xorl %esi, %esi
movq %rsi, (%rcx,%rax,8)
movq 0x58(%rbx), %rcx
movq 0x10(%rcx), %rcx
movq (%rcx,%rdx,8), %rcx
movq %rsi, (%rcx,%rax,8)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_parse_utils2.c
// Function: check_endline
int			check_endline(char *line, t_minishell_meta *ms, int *j, int *q)
{
	int i;

	*j = 0;
	*q = 0;
	i = 0;
	while (line[i] != '\0' && ft_isspace(line[i]))
		i++;
	if ((line[i] == '\0' || line[i] == 26 || ft_isredir(line[i]))\
	&& (ms->no_args = 1))
		return (-i);
	return (i);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
xorl %ebx, %ebx
movl %ebx, (%rdx)
movl %ebx, (%rcx)
movb (%rdi), %al
testb %al, %al
je 0x360e
movq %rdi, %r15
xorl %ebx, %ebx
movsbl %al, %edi
callq 0x4c68
testl %eax, %eax
je 0x35f4
movb 0x1(%r15,%rbx), %al
incq %rbx
testb %al, %al
jne 0x35da
jmp 0x360e
movzbl (%r15,%rbx), %eax
cmpl $0x1a, %eax
je 0x360e
testl %eax, %eax
je 0x360e
movsbl %al, %edi
callq 0x45d0
testl %eax, %eax
je 0x3618
movl $0x1, 0x4c(%r14)
negl %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/src/ms_parse_utils2.c
// Function: return_value
int			return_value(t_minishell_meta *ms, int index, int j, char *line)
{
	int i;

	i = ms->n;
	if (ms->arg)
		ms->piped_cmds->args1[index][j++] = ft_strdup(ms->arg);
	else if (line[i - 1] == 24 && line[i - 2] == 24)
		ms->piped_cmds->args1[index][j++] = ft_strdup("");
	ft_free(&ms->arg);
	ms->piped_cmds->args1[index][j] = 0;
	return (i);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rdi, %r15
movslq 0x50(%rdi), %r14
leaq 0x10(%rdi), %r12
movq 0x10(%rdi), %rdi
movslq %esi, %r13
testq %rdi, %rdi
je 0x3668
callq 0x17f4
movq 0x58(%r15), %rcx
movq 0x8(%rcx), %rcx
movq (%rcx,%r13,8), %rcx
movslq %ebx, %rdx
incl %ebx
movq %rax, (%rcx,%rdx,8)
jmp 0x3681
cmpb $0x18, -0x1(%rcx,%r14)
jne 0x3681
cmpb $0x18, -0x2(%rcx,%r14)
jne 0x3681
leaq 0x2989(%rip), %rdi      # 0x6008
jmp 0x364c
movq %r12, %rdi
callq 0x17b0
movq 0x58(%r15), %rax
movq 0x8(%rax), %rax
movq (%rax,%r13,8), %rax
movslq %ebx, %rcx
movq $0x0, (%rax,%rcx,8)
movl %r14d, %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_parse_utils2.c
// Function: return_line
char		*return_line(char *line, t_minishell_meta *ms)
{
	ft_free(&line);
	line = ft_strdup(ms->arg);
	ft_free(&ms->arg);
	return (line);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
leaq -0x18(%rbp), %r14
movq %rdi, (%r14)
movq %r14, %rdi
callq 0x17b0
movq 0x10(%rbx), %rdi
addq $0x10, %rbx
callq 0x17f4
movq %rax, (%r14)
movq %rbx, %rdi
callq 0x17b0
movq (%r14), %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_parse_utils2.c
// Function: free_on_multiline
int			free_on_multiline(t_minishell_meta *ms)
{
	if (ms->arg != NULL && (ms->process_bit = -1))
		ft_free(&ms->arg);
	ft_putstr("Multiline commands not supported\n");
	errno = 1;
	return (1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpq $0x0, 0x10(%rdi)
je 0x370e
movl $0xffffffff, 0x18(%rdi) # imm = 0xFFFFFFFF
addq $0x10, %rdi
callq 0x17b0
leaq 0x29cd(%rip), %rdi      # 0x60e2
callq 0x4de8
callq 0x1040
movl $0x1, (%rax)
movl $0x1, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_parse_utils2.c
// Function: add_to_line
int			add_to_line(char *line, int i, t_minishell_meta *ms)
{
	ms->arg = ft_stradd(ms->arg, 24);
	i = parse_quotes(line, i, ms);
	if (i == 0 && ft_free(&line) && free_on_multiline(ms))
		return (-1);
	ms->arg = ft_stradd(ms->arg, 24);
	return (i);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %r14d
movq %rdi, %r15
movq %rdi, -0x20(%rbp)
movq 0x10(%rdx), %rdi
movl $0x18, %esi
callq 0x1905
movq %rax, 0x10(%rbx)
movq %r15, %rdi
movl %r14d, %esi
movq %rbx, %rdx
callq 0x42a0
movl %eax, %r14d
testl %eax, %eax
je 0x377e
movq 0x10(%rbx), %rdi
movl $0x18, %esi
callq 0x1905
movq %rax, 0x10(%rbx)
jmp 0x3799
leaq -0x20(%rbp), %rdi
callq 0x17b0
testl %eax, %eax
je 0x376a
movq %rbx, %rdi
callq 0x36f3
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_parse_utils3.c
// Function: check_red_err
int							check_red_err(char *line, int i,\
t_minishell_meta *ms)
{
	if (line[i] == '\\')
	{
		if (line[i + 1] == '\0' && ft_free(&line) && free_on_multiline(ms))
			return (-1);
		ms->arg = ft_stradd(ms->arg, line[i + 1]);
		i++;
		return (i);
	}
	else if (line[i] == ';' && (line[i] = 25))
	{
		if (line[i + 1] == ';' && syntax_error(";;")\
		&& ft_free(&ms->arg) && ft_free(&line))
			return (-1);
	}
	else if (line[i] == '|')
	{
		if (line[i] == '|' && i == 0 && syntax_error("|") && ft_free(&line))
			return (-1);
		line[i] = 26;
	}
	ms->arg = ft_stradd(ms->arg, line[i]);
	return (i);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movl %esi, %r14d
movq %rdi, %r15
movq %rdi, -0x28(%rbp)
movslq %esi, %r12
movzbl (%rdi,%r12), %eax
cmpl $0x3b, %eax
je 0x383b
cmpl $0x7c, %eax
je 0x382f
cmpl $0x5c, %eax
jne 0x3879
cmpb $0x0, 0x1(%r15,%r12)
je 0x38cc
incq %r12
movl %r12d, %r14d
jmp 0x3879
testl %r14d, %r14d
je 0x389f
movb $0x1a, (%r15,%r12)
jmp 0x3879
movb $0x19, (%r15,%r12)
cmpb $0x3b, 0x1(%r15,%r12)
jne 0x3879
leaq 0x28b5(%rip), %rdi      # 0x6104
callq 0x48a9
testl %eax, %eax
je 0x3879
leaq 0x10(%rbx), %rdi
callq 0x17b0
testl %eax, %eax
je 0x3879
leaq -0x28(%rbp), %rdi
callq 0x17b0
movl %eax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %ecx, %ecx
jne 0x3892
addq -0x28(%rbp), %r12
movq 0x10(%rbx), %rdi
movsbl (%r12), %esi
callq 0x1905
movq %rax, 0x10(%rbx)
movl %r14d, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2861(%rip), %rdi      # 0x6107
callq 0x48a9
testl %eax, %eax
je 0x3834
leaq -0x28(%rbp), %rdi
callq 0x17b0
movl %eax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %ecx, %ecx
jne 0x3892
movq -0x28(%rbp), %r15
jmp 0x3834
leaq -0x28(%rbp), %rdi
callq 0x17b0
testl %eax, %eax
je 0x3827
movq %rbx, %rdi
callq 0x36f3
movl %eax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %ecx, %ecx
jne 0x3892
jmp 0x3827
// File: /workspace/github_c_makefile_star2_O3/pvineet44[P]minishell/src/ms_parse_utils3.c
// Function: refine_line
char						*refine_line(char *line, t_minishell_meta *ms)
{
	int		i;

	i = 0;
	while (i < ft_strlen(line))
	{
		if ((line[i] == '\'' || line[i] == '\"')\
		&& (i == 0 || line[i - 1] != '\\'))
		{
			if ((i = add_to_line(line, i, ms)) == -1)
				return (0);
		}
		else if (line[i] == '$')
			i = substitute_value(line, i, ms);
		else if (line[i] != '|' && ft_isredir(line[i]))
		{
			i = check_invalid_redir(line, i, ms);
			if (i == 0 && ft_free(&line))
				return (0);
			continue ;
		}
		else if ((i = check_red_err(line, i, ms)) == -1)
			return (0);
		i++;
	}
	return (return_line(line, ms));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rdi, -0x28(%rbp)
callq 0x17de
testl %eax, %eax
jle 0x39d6
xorl %r14d, %r14d
leaq -0x28(%rbp), %r15
xorl %r12d, %r12d
movq -0x28(%rbp), %rdi
movslq %r12d, %rcx
movb (%rdi,%rcx), %al
movzbl %al, %edx
cmpl $0x26, %edx
jg 0x3943
cmpl $0x22, %edx
je 0x394d
cmpl $0x24, %edx
je 0x395d
jmp 0x3977
cmpl $0x7c, %edx
je 0x39aa
cmpl $0x27, %edx
jne 0x3977
testl %r12d, %r12d
je 0x396a
cmpb $0x5c, -0x1(%rdi,%rcx)
jne 0x396a
cmpb $0x24, %al
jne 0x3977
movl %r12d, %esi
movq %rbx, %rdx
callq 0x439a
jmp 0x39ba
movl %r12d, %esi
movq %rbx, %rdx
callq 0x372c
jmp 0x39b5
movsbl %al, %edi
callq 0x45d0
movq -0x28(%rbp), %rdi
testl %eax, %eax
je 0x39aa
movl %r12d, %esi
movq %rbx, %rdx
callq 0x3120
movl %eax, %r12d
testl %eax, %eax
jne 0x39c0
movq %r15, %rdi
callq 0x17b0
xorl %r12d, %r12d
testl %eax, %eax
je 0x39c0
jmp 0x39f4
movl %r12d, %esi
movq %rbx, %rdx
callq 0x37e8
cmpl $-0x1, %eax
je 0x39e4
movl %eax, %r12d
incl %r12d
movq -0x28(%rbp), %rdi
callq 0x17de
cmpl %eax, %r12d
jl 0x3925
movq -0x28(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x36b2
movq %rax, %r14
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
xorl %r14d, %r14d
jmp 0x39e4