LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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:
cmpb $0x0, (%rsi)
je 0x33c6
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movsbl (%rsi), %edi
callq 0x45ed
testl %eax, %eax
je 0x33d2
xorl %r12d, %r12d
xorl %r15d, %r15d
movb (%r14,%r12), %al
testb %al, %al
je 0x33d8
movsbl %al, %esi
movq %r15, %rdi
callq 0x192d
movq %rax, %r15
movsbl 0x1(%r14,%r12), %edi
incq %r12
callq 0x45ed
testl %eax, %eax
jne 0x339c
jmp 0x33d8
leaq 0x2c3b(%rip), %rdi      # 0x6008
jmp 0x1818
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_O1/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 0x3417
testl %eax, %eax
je 0x3472
cmpl $0x1a, %eax
jne 0x341c
jmp 0x3472
incl (%r15)
jne 0x346a
movsbl (%r12), %edi
callq 0x4c88
testl %eax, %eax
jne 0x3438
movsbl (%r12), %edi
callq 0x45ed
testl %eax, %eax
je 0x343e
testb $0x1, (%r15)
jne 0x345a
movsbl (%r12), %edi
callq 0x4c88
testl %eax, %eax
jne 0x3472
movsbl (%r12), %edi
callq 0x45ed
testl %eax, %eax
jne 0x3472
movq (%rbx), %rdi
movsbl (%r12), %esi
callq 0x192d
movq %rax, (%rbx)
incl %r14d
incq %r12
jmp 0x3402
movl %r14d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 $0x18, %rsp
movl %edx, -0x2c(%rbp)
movq %rsi, %rbx
movq %rdi, %r15
movl $0x0, -0x30(%rbp)
movb (%rdi), %al
xorl %r14d, %r14d
testb %al, %al
je 0x34c5
movsbl %al, %edi
callq 0x4c88
testl %eax, %eax
je 0x34c0
movb 0x1(%r15,%r14), %al
incq %r14
testb %al, %al
jne 0x34a8
movl %r14d, %r12d
jmp 0x34c8
xorl %r12d, %r12d
movb (%r15,%r14), %al
testb %al, %al
je 0x35f1
movsbl %al, %edi
callq 0x45ed
testl %eax, %eax
je 0x35f1
leaq 0x10(%rbx), %rax
movq %rax, -0x40(%rbp)
leaq 0x1(%r15), %rax
movq %rax, -0x38(%rbp)
xorl %r13d, %r13d
movslq %r12d, %r14
movzbl (%r15,%r14), %eax
testl %eax, %eax
je 0x35b3
cmpl $0x1a, %eax
je 0x35b3
movb (%r15,%r14), %al
testb %al, %al
je 0x3547
addq -0x38(%rbp), %r14
movsbl %al, %edi
callq 0x45ed
testl %eax, %eax
je 0x3547
movq 0x10(%rbx), %rdi
incl %r12d
movsbl -0x1(%r14), %esi
callq 0x192d
movq %rax, 0x10(%rbx)
movb (%r14), %al
incq %r14
testb %al, %al
jne 0x351c
movq %rbx, %rdi
movl -0x2c(%rbp), %esi
movl %r13d, %edx
xorl %ecx, %ecx
callq 0x4b19
movl %eax, %r13d
movslq %r12d, %r14
movb (%r15,%r14), %al
testb %al, %al
je 0x3582
addq -0x38(%rbp), %r14
movsbl %al, %edi
callq 0x4c88
testl %eax, %eax
je 0x3582
incl %r12d
movb (%r14), %al
incq %r14
testb %al, %al
jne 0x3569
movq %r15, %rdi
movl %r12d, %esi
leaq -0x30(%rbp), %rdx
movq -0x40(%rbp), %rcx
callq 0x33e8
movl %eax, %r12d
movq %rbx, %rdi
movl -0x2c(%rbp), %esi
movl %r13d, %edx
movl $0x1, %ecx
callq 0x4b19
movl %eax, %r13d
jmp 0x34f7
movq %rbx, %rdi
movl -0x2c(%rbp), %r14d
movl %r14d, %esi
movl %r13d, %edx
movl $0x1, %ecx
callq 0x4b19
movq 0x58(%rbx), %rcx
movq 0x18(%rcx), %rcx
movslq %r14d, %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 $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_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 %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
movl %r15d, (%rdx)
movl %r15d, (%rcx)
movb (%rdi), %al
xorl %r12d, %r12d
testb %al, %al
je 0x363e
movsbl %al, %edi
callq 0x4c88
testl %eax, %eax
je 0x363b
movb 0x1(%r14,%r12), %al
incq %r12
testb %al, %al
jne 0x3623
movl %r12d, %r15d
movzbl (%r14,%r12), %eax
testl %eax, %eax
je 0x3658
cmpl $0x1a, %eax
je 0x3658
movsbl %al, %edi
callq 0x45ed
testl %eax, %eax
je 0x3662
movl $0x1, 0x4c(%rbx)
negl %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_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 0x36b1
callq 0x1818
movq 0x58(%r15), %rcx
movq 0x8(%rcx), %rcx
movq (%rcx,%r13,8), %rcx
movslq %ebx, %rdx
incl %ebx
movq %rax, (%rcx,%rdx,8)
jmp 0x36ca
cmpb $0x18, -0x1(%rcx,%r14)
jne 0x36ca
cmpb $0x18, -0x2(%rcx,%r14)
jne 0x36ca
leaq 0x2940(%rip), %rdi      # 0x6008
jmp 0x3695
movq %r12, %rdi
callq 0x17d4
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_O1/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 0x17d4
movq 0x10(%rbx), %rdi
addq $0x10, %rbx
callq 0x1818
movq %rax, (%r14)
movq %rbx, %rdi
callq 0x17d4
movq (%r14), %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x3757
movl $0xffffffff, 0x18(%rdi) # imm = 0xFFFFFFFF
addq $0x10, %rdi
callq 0x17d4
leaq 0x2984(%rip), %rdi      # 0x60e2
callq 0x4e10
callq 0x1040
movl $0x1, (%rax)
movl $0x1, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movl %esi, %r14d
movq %rdi, -0x18(%rbp)
movq 0x10(%rdx), %rdi
movl $0x18, %esi
callq 0x192d
movq %rax, 0x10(%rbx)
movq -0x18(%rbp), %rdi
movl %r14d, %esi
movq %rbx, %rdx
callq 0x42c4
movl %eax, %r14d
testl %eax, %eax
je 0x37c6
movq 0x10(%rbx), %rdi
movl $0x18, %esi
callq 0x192d
movq %rax, 0x10(%rbx)
jmp 0x37e1
leaq -0x18(%rbp), %rdi
callq 0x17d4
testl %eax, %eax
je 0x37b2
movq %rbx, %rdi
callq 0x373c
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movl %r14d, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/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 %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %r14d
movq %rdi, -0x20(%rbp)
movslq %esi, %r15
movzbl (%rdi,%r15), %eax
cmpl $0x3b, %eax
je 0x387f
cmpl $0x7c, %eax
je 0x386f
cmpl $0x5c, %eax
jne 0x38bd
cmpb $0x0, 0x1(%rdi,%r15)
je 0x3909
incq %r15
movl %r15d, %r14d
jmp 0x38bd
testl %r14d, %r14d
je 0x38e0
movq -0x20(%rbp), %rax
movb $0x1a, (%rax,%r15)
jmp 0x38bd
movb $0x19, (%rdi,%r15)
cmpb $0x3b, 0x1(%rdi,%r15)
jne 0x38bd
leaq 0x2871(%rip), %rdi      # 0x6104
callq 0x48c5
testl %eax, %eax
je 0x38bd
leaq 0x10(%rbx), %rdi
callq 0x17d4
testl %eax, %eax
je 0x38bd
leaq -0x20(%rbp), %rdi
callq 0x17d4
movl %eax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %ecx, %ecx
jne 0x38d5
addq -0x20(%rbp), %r15
movq 0x10(%rbx), %rdi
movsbl (%r15), %esi
callq 0x192d
movq %rax, 0x10(%rbx)
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2820(%rip), %rdi      # 0x6107
callq 0x48c5
testl %eax, %eax
je 0x3874
leaq -0x20(%rbp), %rdi
callq 0x17d4
movl %eax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %ecx, %ecx
jne 0x38d5
jmp 0x3874
leaq -0x20(%rbp), %rdi
callq 0x17d4
testl %eax, %eax
je 0x3867
movq %rbx, %rdi
callq 0x373c
movl %eax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %ecx, %ecx
jne 0x38d5
jmp 0x3867
// File: /workspace/github_c_makefile_star2_O1/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, %r14
movq %rdi, -0x28(%rbp)
callq 0x1802
testl %eax, %eax
jle 0x3a0b
xorl %ebx, %ebx
leaq -0x28(%rbp), %r15
xorl %r12d, %r12d
movq -0x28(%rbp), %rdi
movslq %r12d, %rcx
movzbl (%rdi,%rcx), %eax
cmpl $0x26, %eax
jg 0x3975
cmpl $0x22, %eax
jne 0x3990
jmp 0x397f
cmpl $0x7c, %eax
je 0x39df
cmpl $0x27, %eax
jne 0x39af
testl %r12d, %r12d
je 0x39a2
cmpb $0x5c, -0x1(%rdi,%rcx)
jne 0x39a2
cmpl $0x7c, %eax
je 0x39df
cmpl $0x24, %eax
jne 0x39af
movl %r12d, %esi
movq %r14, %rdx
callq 0x43bc
jmp 0x39f3
movl %r12d, %esi
movq %r14, %rdx
callq 0x3775
jmp 0x39ee
movsbl %al, %edi
callq 0x45ed
testl %eax, %eax
je 0x39df
movq -0x28(%rbp), %rdi
movl %r12d, %esi
movq %r14, %rdx
callq 0x3160
movl %eax, %r12d
testl %eax, %eax
jne 0x39f9
movq %r15, %rdi
callq 0x17d4
testl %eax, %eax
je 0x39f9
jmp 0x3a1a
movq -0x28(%rbp), %rdi
movl %r12d, %esi
movq %r14, %rdx
callq 0x3830
cmpl $-0x1, %eax
je 0x3a1a
movl %eax, %r12d
incl %r12d
movq -0x28(%rbp), %rdi
callq 0x1802
cmpl %eax, %r12d
jl 0x395e
movq -0x28(%rbp), %rdi
movq %r14, %rsi
callq 0x36fb
movq %rax, %rbx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_parse_utils3.c
// Function: create_3d_array
char						***create_3d_array(int length)
{
	char	***array;
	int		i;

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

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

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

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

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

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

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

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r15
movl %esi, %r14d
movq %rdi, %rbx
movq 0x58(%rdi), %rax
movq (%rax), %rax
movslq %esi, %r12
movq (%rax,%r12,8), %rdi
leaq 0x2376(%rip), %rsi      # 0x600a
callq 0x5090
testl %eax, %eax
je 0x3d60
movq 0x58(%rbx), %rax
movq (%rax), %rax
movq (%rax,%r12,8), %rdi
leaq 0x2456(%rip), %rsi      # 0x6109
callq 0x5090
testl %eax, %eax
je 0x3d70
movq 0x58(%rbx), %rax
movq (%rax), %rax
movq (%rax,%r12,8), %rdi
leaq 0x237c(%rip), %rsi      # 0x604e
callq 0x5090
movq 0x58(%rbx), %rcx
testl %eax, %eax
je 0x3d79
movq (%rcx), %rax
movq (%rax,%r12,8), %rdi
leaq 0x241c(%rip), %rsi      # 0x610d
callq 0x5090
testl %eax, %eax
je 0x3d8e
movq 0x58(%rbx), %rax
movq (%rax), %rax
movq (%rax,%r12,8), %rdi
leaq 0x2401(%rip), %rsi      # 0x6111
callq 0x5090
movq 0x58(%rbx), %rcx
testl %eax, %eax
je 0x3d99
movq (%rcx), %rax
movq (%rax,%r12,8), %rdi
leaq 0x2385(%rip), %rsi      # 0x60b0
callq 0x5090
testl %eax, %eax
je 0x3da8
movq 0x58(%rbx), %rax
movq (%rax), %rax
movq (%rax,%r12,8), %rdi
leaq 0x2370(%rip), %rsi      # 0x60b6
callq 0x5090
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
jne 0x3db8
movq %rbx, %rdi
movl %r14d, %esi
callq 0x25d2
jmp 0x3db3
movq %rbx, %rdi
movq %r15, %rsi
movl %r14d, %edx
callq 0x223e
jmp 0x3db3
xorl %eax, %eax
callq 0x3ed0
jmp 0x3db3
movq 0x8(%rcx), %rax
movq (%rax,%r12,8), %rax
movq (%rax), %rdi
movq %rbx, %rsi
callq 0x1c5b
jmp 0x3db3
movq 0x20(%rbx), %rdi
callq 0x1f1c
jmp 0x3db3
movq 0x8(%rcx), %rax
movq (%rax,%r12,8), %rdi
callq 0x1e78
jmp 0x3db3
movq %rbx, %rdi
movl %r14d, %esi
callq 0x4235
movl $0x1, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_process.c
// Function: search_and_execute_path
void					search_and_execute_path(t_minishell_meta *ms, int i)
{
	if (ft_strchr(ms->piped_cmds->cmds[i], '/') != NULL)
		ms_execute(ms->piped_cmds->cmds[i], ms->piped_cmds->args1[i], ms->env);
	else if ((ft_strcmp(ms->piped_cmds->cmds[i], "") == 0)\
	|| check_and_execute_path(ms, i) == 0)
		command_not_found(ms, i);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %rbx
movq 0x58(%rdi), %rax
movq (%rax), %rax
movslq %esi, %r15
movq (%rax,%r15,8), %rdi
movl $0x2f, %esi
callq 0x5040
movq 0x58(%rbx), %rcx
movq (%rcx), %rdx
movq (%rdx,%r15,8), %rdi
testq %rax, %rax
je 0x3e14
movq 0x8(%rcx), %rax
movq (%rax,%r15,8), %rsi
movq 0x20(%rbx), %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2125
leaq 0x21ed(%rip), %rsi      # 0x6008
callq 0x5090
testl %eax, %eax
je 0x3e3e
movq %rbx, %rdi
movl %r14d, %esi
callq 0x1d21
testl %eax, %eax
je 0x3e3e
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movl %r14d, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x4567
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_process.c
// Function: process
void					process(t_minishell_meta *ms, char *line)
{
	int		i;
	int		in;

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

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

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

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

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

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

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
callq 0x1040
movl (%rax), %edi
callq 0x4ca8
movq %rax, -0x18(%rbp)
movb (%rax), %al
testb %al, %al
je 0x4048
movl $0x1, %r14d
movq 0x10(%rbx), %rdi
movsbl %al, %esi
callq 0x192d
movq %rax, 0x10(%rbx)
movq -0x18(%rbp), %rax
movb (%rax,%r14), %al
incq %r14
testb %al, %al
jne 0x4029
leaq -0x18(%rbp), %rdi
callq 0x17d4
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_unset.c
// Function: unset_var
void	unset_var(char *var, t_minishell_meta *ms)
{
	int		i;
	char	*tmp_var;

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq $0x0, -0x18(%rbp)
movb (%rdi), %al
cmpb $0x3d, %al
je 0x4098
movq %rdi, %r14
incq %r14
movq -0x18(%rbp), %rdi
movsbl %al, %esi
callq 0x192d
movq %rax, -0x18(%rbp)
movb (%r14), %al
incq %r14
cmpb $0x3d, %al
jne 0x407e
leaq -0x18(%rbp), %r14
movq (%r14), %rsi
movq 0x20(%rbx), %rdi
movq 0x30(%rbx), %rdx
callq 0x40cd
movq (%r14), %rsi
movq 0x28(%rbx), %rdi
movq 0x30(%rbx), %rdx
callq 0x40cd
movq %r14, %rdi
callq 0x17d4
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_unset.c
// Function: ms_unset_single
int		ms_unset_single(char **env, char *arg, char **path)
{
	int		env_len;
	int		i;

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %rax
movq %rdi, %r15
leaq 0x1fc2(%rip), %rsi      # 0x60b0
movq %rax, -0x30(%rbp)
movq %rax, %rdi
callq 0x23ac
testl %eax, %eax
je 0x4164
movq %rbx, -0x38(%rbp)
movq (%r15), %rax
testq %rax, %rax
je 0x41a8
movl $0x1, %r14d
xorl %ebx, %ebx
leaq (%r15,%rbx,8), %r12
xorl %r13d, %r13d
movzbl (%rax,%r13), %ecx
testl %ecx, %ecx
je 0x4130
cmpl $0x3d, %ecx
je 0x4130
incq %r13
jmp 0x411d
movq -0x30(%rbp), %rdi
callq 0x1802
cmpl %r13d, %eax
jne 0x4152
movq (%r12), %rsi
movq -0x30(%rbp), %rdi
movq %r13, %rdx
callq 0x50c0
testl %eax, %eax
je 0x4169
movq 0x8(%r15,%rbx,8), %rax
incq %rbx
incl %r14d
testq %rax, %rax
jne 0x4116
jmp 0x41a8
xorl %r14d, %r14d
jmp 0x41c2
movq %r12, %rdi
callq 0x17d4
leal 0x1(%rbx), %eax
movq (%r15,%rax,8), %rax
testq %rax, %rax
je 0x419d
movslq %r14d, %rcx
movslq %ebx, %rdx
movq %rax, (%r15,%rdx,8)
movq 0x8(%r15,%rcx,8), %rax
movq %rcx, %rbx
incq %rcx
testq %rax, %rax
jne 0x4180
decq %rcx
movq %rcx, %rbx
movslq %ebx, %rax
movq $0x0, (%r15,%rax,8)
leaq 0x2002(%rip), %rsi      # 0x61b1
movq -0x30(%rbp), %rdi
callq 0x5090
movl $0x1, %r14d
testl %eax, %eax
je 0x41d4
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x38(%rbp), %rbx
testq %rbx, %rbx
je 0x41c2
movq %rbx, %r15
cmpq $0x0, (%r15)
je 0x41c2
movq %r15, %rdi
callq 0x17d4
movq $0x0, (%r15)
addq $0x8, %r15
testq %rbx, %rbx
jne 0x41e0
jmp 0x41c2
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_unset.c
// Function: free_path
void	free_path(char **args)
{
	int i;

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

// Assembly:
testq %rdi, %rdi
je 0x4234
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq %rdi, %r14
cmpq $0x0, (%r14)
je 0x4230
movq %r14, %rdi
callq 0x17d4
movq $0x0, (%r14)
addq $0x8, %r14
testq %rbx, %rbx
jne 0x4212
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_unset.c
// Function: ms_unset
void	ms_unset(t_minishell_meta *ms, int i)
{
	int	j;
	int valid_var;

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

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

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movslq %esi, %rdx
movb (%rdi,%rdx), %r12b
movb 0x1(%rdi,%rdx), %al
leaq 0x1(%rdx), %rbx
testb %al, %al
sete %sil
cmpb %r12b, %al
sete %cl
orb %cl, %sil
testb $0x1, %sil
jne 0x43a6
movq %rdi, %r15
leaq (%rdi,%rdx), %r13
incq %r13
cmpb $0x5c, %al
jne 0x4331
cmpb $0x27, %r12b
sete %dl
movb 0x1(%r13), %cl
cmpb $0x22, %cl
setne %sil
cmpb $0x5c, %cl
setne %dil
cmpb $0x24, %cl
je 0x4376
andb %dil, %sil
orb %dl, %sil
je 0x4376
cmpb $0x27, %r12b
sete %cl
cmpb $0x24, %al
setne %al
orb %cl, %al
jne 0x4360
movsbl 0x1(%r13), %edi
callq 0x4c60
testl %eax, %eax
je 0x4360
movq %r15, %rdi
movl %ebx, %esi
movq %r14, %rdx
callq 0x43bc
movl %eax, %ebx
jmp 0x4372
movq 0x10(%r14), %rdi
movsbl (%r13), %esi
callq 0x192d
movq %rax, 0x10(%r14)
incl %ebx
jmp 0x4389
movq 0x10(%r14), %rdi
movsbl %cl, %esi
callq 0x192d
movq %rax, 0x10(%r14)
addl $0x2, %ebx
movslq %ebx, %r13
movb (%r15,%r13), %al
cmpb %r12b, %al
sete %cl
testb %al, %al
je 0x43a6
addq %r15, %r13
cmpb %r12b, %al
jne 0x4307
xorl %eax, %eax
testb %cl, %cl
cmovnel %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_utils.c
// Function: substitute_value
int		substitute_value(char *line, int i, t_minishell_meta *ms)
{
	char	*var;

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
movslq %esi, %r13
leaq 0x1(%r13), %r12
movsbl 0x1(%rdi,%r13), %edi
cmpl $0x3f, %edi
jne 0x43f5
movq %rbx, %rdi
callq 0x3fff
addl %r12d, %eax
movl %eax, %r12d
jmp 0x4479
movl %esi, %r15d
callq 0x4c74
testl %eax, %eax
jne 0x4479
movsbl (%r14,%r12), %edi
callq 0x4c60
testl %eax, %eax
je 0x448b
movb (%r14,%r12), %al
xorl %r12d, %r12d
testb %al, %al
je 0x4463
movsbl %al, %edi
callq 0x4c60
testl %eax, %eax
jne 0x443d
movsbl 0x1(%r14,%r13), %edi
callq 0x4c74
testl %eax, %eax
jne 0x443d
cmpb $0x5f, 0x1(%r14,%r13)
jne 0x445a
movsbl 0x1(%r14,%r13), %esi
movq %r12, %rdi
callq 0x192d
movq %rax, %r12
movb 0x2(%r14,%r13), %al
incq %r13
testb %al, %al
jne 0x441a
incl %r13d
movl %r13d, %r15d
decl %r15d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x44b7
movq %r12, %rdi
callq 0x1030
movl %r15d, %r12d
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movzbl (%r14,%r12), %eax
cmpl $0x22, %eax
je 0x4476
cmpl $0x27, %eax
je 0x4476
cmpl $0x5f, %eax
je 0x440f
movq 0x10(%rbx), %rdi
movl $0x24, %esi
callq 0x192d
movq %rax, 0x10(%rbx)
jmp 0x4476
// File: /workspace/github_c_makefile_star2_O1/pvineet44[P]minishell/src/ms_utils.c
// Function: add_env
void	add_env(t_minishell_meta *ms, char *var)
{
	int		env_len;
	int		var_len;
	int		i;

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsi, -0x30(%rbp)
movq %rsi, %rdi
callq 0x1802
movq 0x20(%rbx), %rcx
movq (%rcx), %rsi
testq %rsi, %rsi
je 0x4558
movslq %eax, %r15
leal 0x1(%r15), %r14d
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpb $0x3d, (%rsi,%r13)
leaq 0x1(%r13), %r13
jne 0x44ed
cmpl %r13d, %r14d
jne 0x450d
movq -0x30(%rbp), %rdi
movq %r15, %rdx
callq 0x50c0
testl %eax, %eax
je 0x4520
movq 0x20(%rbx), %rax
movq 0x8(%rax,%r12,8), %rsi
incq %r12
testq %rsi, %rsi
jne 0x44ea
jmp 0x4558
movq 0x20(%rbx), %rax
movq (%rax,%r12,8), %rax
movl %r13d, %ecx
movb (%rax,%rcx), %al
testb %al, %al
je 0x4558
incq %r13
movq 0x10(%rbx), %rdi
movsbl %al, %esi
callq 0x192d
movq %rax, 0x10(%rbx)
movq 0x20(%rbx), %rax
movq (%rax,%r12,8), %rax
movb (%rax,%r13), %al
incq %r13
testb %al, %al
jne 0x4535
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_utils.c
// Function: command_not_found
void	command_not_found(t_minishell_meta *ms, int i)
{
	if (ms->piped_cmds->files1[i][0] != 0)
		unset_fd(ms);
	write(STDERR_FILENO, "minishell: ", 11);
	write(STDERR_FILENO, ms->piped_cmds->cmds[i],
	ft_strlen(ms->piped_cmds->cmds[i]));
	write(STDERR_FILENO, COMMAND_NOT_FOUND, 20);
	errno = 127;
}

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

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

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

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

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

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1829(%rip), %rdi      # 0x6029
movl $0x2, %esi
callq 0x4e34
leaq 0x1826(%rip), %rdi      # 0x6037
movl $0x2, %esi
callq 0x4e34
testq %r14, %r14
je 0x483e
movq %r14, %rdi
movl $0x2, %esi
callq 0x4e34
leaq 0x1803(%rip), %rdi      # 0x6037
movl $0x2, %esi
callq 0x4e34
testq %rbx, %rbx
je 0x4861
movq %rbx, %rdi
movl $0x2, %esi
callq 0x4e34
leaq 0x17e0(%rip), %rdi      # 0x6037
movl $0x2, %esi
callq 0x4e34
leaq 0x1801(%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_utils3.c
// Function: too_many_args
void			too_many_args(char *cmd)
{
	ft_putstr_fd(SHELL_NAME, STDERR_FILENO);
	ft_putstr_fd(": ", STDERR_FILENO);
	ft_putstr_fd(cmd, STDERR_FILENO);
	ft_putstr_fd(": too many arguments\n", STDERR_FILENO);
}

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

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

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

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

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

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

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

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

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

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

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebx
movl %esi, %r15d
movq %rdi, %r12
cmpl $0x1, %ecx
je 0x4b5d
testl %ecx, %ecx
jne 0x4b98
leaq 0x10(%r12), %r14
movq 0x10(%r12), %rdi
testq %rdi, %rdi
je 0x4b90
callq 0x1818
movq 0x58(%r12), %rdx
movslq %r15d, %rcx
shlq $0x3, %rcx
addq 0x18(%rdx), %rcx
movl %ebx, %edx
jmp 0x4b84
movq 0x10(%r12), %rdi
testq %rdi, %rdi
je 0x4b98
leaq 0x10(%r12), %r14
callq 0x1818
movq 0x58(%r12), %rdx
movslq %r15d, %rcx
shlq $0x3, %rcx
addq 0x10(%rdx), %rcx
leal 0x1(%rbx), %edx
movq (%rcx), %rcx
movslq %ebx, %rsi
movq %rax, (%rcx,%rsi,8)
movl %edx, %ebx
movq %r14, %rdi
callq 0x17d4
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop