LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/word_expand_root_v2.c
// Function: word_expand_stage1
int		word_expand_stage1(t_list **tokens, t_control *control)
{
	int res;
	int is_filename;

	//printf("word_exp_stage1: BEFORE: token list is:\n");
	//debug_tokens_list(*tokens);
	if (!tild_expansion_root(control->env, \
				&((t_token*)(*tokens)->content)->str))
		return (2);
	is_filename = ((t_token *)((*tokens)->content))->is_filename;
	if ((res = parameter_expansion_root(*tokens, control, is_filename)))
		return (res);
	skim_empty_tokens(tokens);
	if (!*tokens)
		return (3);
	if (is_filename && ft_strlen(((t_token*)(*tokens)->content)->str) == 0)
		return (1);
	res = pathname_expansion_root(tokens, is_filename);
	//printf("word_exp_stage1: AFTER: token list is:\n");
	//debug_tokens_list(*tokens);
	return (res);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x20(%rsi), %rdi
movq (%rbx), %rax
movq (%rax), %rsi
callq 0x7af8
testl %eax, %eax
je 0x71cb
movq (%rbx), %rdi
movq (%rdi), %rax
movl 0xc(%rax), %ebp
movq %r14, %rsi
movl %ebp, %edx
callq 0x728c
testl %eax, %eax
jne 0x71d0
movq %rbx, %rdi
callq 0x7238
movq (%rbx), %rax
testq %rax, %rax
je 0x71d5
testl %ebp, %ebp
je 0x71bd
movq (%rax), %rax
movq (%rax), %rdi
callq 0xa4f8
testq %rax, %rax
je 0x71dc
movq %rbx, %rdi
movl %ebp, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x7944
movl $0x2, %eax
popq %rbx
popq %r14
popq %rbp
retq
movl $0x3, %eax
jmp 0x71d0
movl $0x1, %eax
jmp 0x71d0
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/word_expand_root_v2.c
// Function: word_expand_replace
void	word_expand_replace(t_list ***tokens, t_list *expanded)
{
	t_list *last;
	t_list *del_me;

	last = ft_lstlast(expanded);
	last->next = (**tokens)->next;
	del_me = **tokens;
	**tokens = expanded;
	*tokens = &last;
	del_token(del_me->content);
	free(del_me);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0xa7a4
leaq 0x8(%rsp), %rcx
movq %rax, (%rcx)
movq (%r14), %rdx
movq (%rdx), %rdx
movq 0x8(%rdx), %rdx
movq %rdx, 0x8(%rax)
movq (%r14), %rax
movq (%rax), %r15
movq %rbx, (%rax)
movq %rcx, (%r14)
movq (%r15), %rdi
callq 0x278e
movq %r15, %rdi
callq 0x2240
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/word_expand_assist.c
// Function: skim_empty_tokens
void	skim_empty_tokens(t_list **tokens)
{
	t_list	*del_me;

	while (*tokens)
	{
		if (!ft_strlen(((t_token *)((*tokens)->content))->str))
		{
			del_me = *tokens;
			*tokens = (*tokens)->next;
			del_token((t_token *)(del_me->content));
			free(del_me);
		}
		else
			tokens = &(*tokens)->next;
	}
}

// Assembly:
movq (%rdi), %rax
testq %rax, %rax
je 0x7289
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rax), %rax
movq (%rax), %rdi
callq 0xa4f8
movq (%rbx), %r14
testq %rax, %rax
je 0x7263
addq $0x8, %r14
movq %r14, %rbx
jmp 0x727a
movq 0x8(%r14), %rax
movq %rax, (%rbx)
movq (%r14), %rdi
callq 0x278e
movq %r14, %rdi
callq 0x2240
movq (%rbx), %rax
testq %rax, %rax
jne 0x7247
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/parameter_expansion_root.c
// Function: parameter_expansion_root
int		parameter_expansion_root(t_list *token, \
		t_control *control, int filename)
{
	t_expansion	exp;
	int			res;

	res = 0;
	reset_t_expansion(&exp, filename, control);
	return (parameter_exp(token, control, exp, res));
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movb $0x0, 0x28(%rsp)
movq $0x0, 0x20(%rsp)
movl %edx, 0x2c(%rsp)
movq 0x20(%rsi), %rdx
leaq 0x419e(%rip), %rdi      # 0xb454
movl $0x3, %esi
callq 0x33b4
movq %rax, 0x30(%rsp)
movq %rax, 0x10(%rsp)
movups 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7313
addq $0x38, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/parameter_expansion_root.c
// Function: parameter_exp
int		parameter_exp(t_list *token, t_control *ctrl, t_expansion exp, int res)
{
	char *insert;
	char *str;

	while ((exp.start = param_exp_find_start(token, exp.start, &exp.quoted)) \
			!= -1)
	{
		str = ((t_token *)token->content)->str;
		if ((exp.end = param_exp_find_end(token, exp.start)) == exp.start)
		{
			exp.start++;
			continue;
		}
		if (!(insert = param_exp_get_env(ctrl, str + exp.start + 1, \
				exp.end - exp.start)))
			return (2);
		//printf("expanded variable = [%s]\n", insert);
		ft_memmove(str + exp.start, str + exp.end + 1, \
				ft_strlen(str + exp.end));
		if ((res = parameter_expansion2(&token, &insert, &exp)))
		{
			free(insert);
			return (res);
		}
		free(insert);
	}
	return (0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %rbp
movq %rdi, 0x10(%rsp)
leaq 0x58(%rsp), %r14
movl -0x8(%r14), %esi
movq %r14, %rdx
callq 0x741c
movl %eax, -0x8(%r14)
xorl %ecx, %ecx
cmpl $-0x1, %eax
je 0x740b
leaq 0x50(%rsp), %r15
leaq 0x8(%rsp), %r13
movq (%rbp), %rcx
movq (%rcx), %r12
movq %rbp, %rdi
movl %eax, %esi
callq 0x74ac
movl %eax, 0x4(%r15)
movslq (%r15), %rcx
cmpl %ecx, %eax
jne 0x7379
incl %eax
movl %eax, (%r15)
jmp 0x73e0
leaq (%r12,%rcx), %rsi
incq %rsi
subl %ecx, %eax
movq %rbx, %rdi
movl %eax, %edx
callq 0x7506
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x7402
movslq (%r15), %rbp
addq %r12, %rbp
movslq 0x4(%r15), %rax
leaq (%r12,%rax), %rdi
addq %rax, %r12
incq %r12
callq 0xa4f8
movq %rbp, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x9d58
leaq 0x10(%rsp), %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x7564
movl %eax, %ebp
movq 0x8(%rsp), %rdi
callq 0x2240
testl %ebp, %ebp
jne 0x7409
movl (%r15), %eax
movq 0x10(%rsp), %rbp
movq %rbp, %rdi
movl %eax, %esi
movq %r14, %rdx
callq 0x741c
movl %eax, (%r15)
cmpl $-0x1, %eax
jne 0x7356
xorl %ecx, %ecx
jmp 0x740b
movl $0x2, %ecx
jmp 0x740b
movl %ebp, %ecx
movl %ecx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/parameter_expansion_root.c
// Function: param_exp_find_start
int		param_exp_find_start(t_list *token, int start, char *quot)
{
	int		esc_next;
	char	*str;

	str = ((t_token*)token->content)->str;
	*quot = 0;
	esc_next = 0;
	while (str[start])
	{
		if (!esc_next && !*quot && (str[start] == '\'' || str[start] == '\"'))
			*quot = str[start];
		else if (!esc_next && *quot && str[start] == *quot)
			*quot = 0;
		if (!esc_next && str[start] == '\\')
		{
			esc_next = 1;
			start++;
			continue;
		}
		if (!esc_next && *quot != '\'' && str[start] == '$')
			return (start);
		esc_next = 0;
		start++;
	}
	return (-1);
}

// Assembly:
movq (%rdi), %rax
movq (%rax), %rcx
movb $0x0, (%rdx)
movslq %esi, %rdi
movb (%rcx,%rdi), %r9b
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testb %r9b, %r9b
je 0x74a8
addq %rdi, %rcx
incq %rcx
movb $0x1, %r10b
xorl %edi, %edi
xorl %r8d, %r8d
testb $0x1, %r10b
je 0x7498
testb %r8b, %r8b
jne 0x7464
cmpb $0x22, %r9b
je 0x746c
movzbl %r9b, %r8d
cmpl $0x27, %r8d
je 0x746c
xorl %r8d, %r8d
jmp 0x7475
cmpb %r8b, %r9b
jne 0x7475
xorl %r9d, %r9d
movb %r9b, (%rdx)
movl %r9d, %edi
movl %r9d, %r8d
movb -0x1(%rcx), %r9b
cmpb $0x5c, %r9b
jne 0x7484
xorl %r10d, %r10d
jmp 0x749b
movl %edi, %r8d
cmpb $0x24, %r9b
jne 0x7498
movb $0x1, %r10b
cmpb $0x27, %dil
je 0x749b
jmp 0x74a9
movb $0x1, %r10b
movb (%rcx), %r9b
incl %esi
incq %rcx
testb %r9b, %r9b
jne 0x7444
retq
movl %esi, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/parameter_expansion_root.c
// Function: param_exp_find_end
int		param_exp_find_end(t_list *token, int start)
{
	int		end;
	char	*str;

	str = ((t_token*)token->content)->str;
	end = start + 1;
	while (str[end])
	{
		if (str[start + 1] == '?')
			return (start + 1);
		if (!ft_isalnum(str[end]) && str[end] != '_')
			break ;
		end++;
	}
	return (end - 1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
movq (%rdi), %rax
movq (%rax), %r15
movslq %esi, %r14
movzbl 0x1(%r15,%r14), %eax
testl %eax, %eax
je 0x74fe
leaq 0x1(%r14), %rbx
cmpl $0x3f, %eax
je 0x74fe
jmp 0x74db
incq %r14
cmpb $0x3f, (%r15,%rbx)
je 0x74fe
movsbl %al, %edi
callq 0x9b78
testl %eax, %eax
jne 0x74ef
cmpb $0x5f, 0x1(%r15,%r14)
jne 0x74fb
movb 0x2(%r15,%r14), %al
testb %al, %al
jne 0x74d1
incl %r14d
movl %r14d, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/parameter_expansion_root.c
// Function: param_exp_get_env
char	*param_exp_get_env(t_control *control, char *str, int len)
{
	char *value;
	char **addr_value;

	if (!ft_strncmp(str, "?", len))
		return (ft_itoa(control->exit_status));
	addr_value = env_get_addr(str, len, control->env);
	//printf("str: [%s], len: %d\n", str,  len);
	//printf("value: %s\n", value);
	if (!addr_value)
		value = ft_strdup("");
	else
		value = ft_strdup(*addr_value);
	return (value);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r15
movslq %edx, %r14
leaq 0x3f3d(%rip), %rsi      # 0xb458
movq %rbx, %rdi
movq %r14, %rdx
callq 0xa518
testl %eax, %eax
je 0x7543
movq 0x20(%r15), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x341b
testq %rax, %rax
je 0x7551
movq (%rax), %rdi
jmp 0x7558
movl 0x4(%r15), %edi
popq %rbx
popq %r14
popq %r15
jmp 0x9c38
leaq 0x3c83(%rip), %rdi      # 0xb1db
popq %rbx
popq %r14
popq %r15
jmp 0xa3e4
nop
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/parameter_expansion2.c
// Function: parameter_expansion2
int	parameter_expansion2(t_list **token, char **var, t_expansion *exp)
{
	int field_split;

	((t_token *)(*token)->content)->unquote_protected = 1;
	((t_token *)(*token)->content)->protect_s = exp->start;
	field_split = need_to_field_split1(var, exp);
	if (field_split == 2 || (field_split == 1 && exp->is_filename))
		return (field_split);
	if (!field_split)
	{
		if (!param_exp_no_fsplit(*token, *var, exp))
			return (2);
	}
	else
	{
		if (!field_splitting_root(token, *var, exp))
			return (2);
	}
	return (0);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq (%rdi), %rax
movq (%rax), %rax
movl $0x1, 0x14(%rax)
movl (%rdx), %ecx
movl %ecx, 0x18(%rax)
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x75d4
testl %eax, %eax
je 0x75b3
cmpl $0x2, %eax
je 0x75ce
movl $0x1, %eax
cmpl $0x0, 0xc(%rbx)
jne 0x75ce
movq (%r15), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x7724
jmp 0x75c1
movq (%r14), %rdi
movq (%r15), %rsi
movq %rbx, %rdx
callq 0x7677
testl %eax, %eax
je 0x75c9
xorl %eax, %eax
jmp 0x75ce
movl $0x2, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/parameter_expansion2.c
// Function: need_to_field_split1
int	need_to_field_split1(char **str, t_expansion *exp)
{
	char *tmp;

	tmp = *str;
	if (exp->quoted || (exp->ifs && !ft_strlen(exp->ifs)))
		return (0);
	if (!exp->ifs)
	{
		if (!(*str = ft_strtrim(*str, " \t\n")))
		{
			free(tmp);
			return (2);
		}
		free(tmp);
		if (-1 != ft_stristr(*str, " \t\n"))
			return (1);
		return (0);
	}
	else
	{
		return (need_to_field_split2(str, exp));
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
xorl %ebp, %ebp
cmpb $0x0, 0x8(%rsi)
je 0x75f0
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rsi, %r15
movq %rdi, %rbx
movq (%rdi), %r14
movq 0x10(%rsi), %rax
movq %r14, %rdi
testq %rax, %rax
je 0x7631
movq %rax, %rdi
callq 0xa4f8
testq %rax, %rax
je 0x75e3
cmpq $0x0, 0x10(%r15)
je 0x762e
movq %rbx, %rdi
movq %r15, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x76cb
movq (%rbx), %rdi
leaq 0x3e22(%rip), %rsi      # 0xb45a
callq 0xa5b0
movq %rax, %r15
movq %rax, (%rbx)
movq %r14, %rdi
callq 0x2240
testq %r15, %r15
je 0x766d
movq (%rbx), %rdi
leaq 0x3e00(%rip), %rsi      # 0xb45a
callq 0xa890
xorl %ebp, %ebp
cmpl $-0x1, %eax
setne %bpl
jmp 0x75e3
movl $0x2, %ebp
jmp 0x75e3
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/parameter_expansion2.c
// Function: param_exp_no_fsplit
int	param_exp_no_fsplit(t_list *token, char *var, t_expansion *exp)
{
	char **ptr_str;

	ptr_str = &((t_token*)token->content)->str;
	((t_token *)token->content)->protect_e = ft_strlen(var) + exp->start;
	if (!ft_strstradd(ptr_str, exp->start, var))
		return (0);
	exp->start += ft_strlen(var);
	return (1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %r12
movq %rsi, %rdi
callq 0xa4f8
movl (%rbx), %esi
addl %esi, %eax
movq (%r15), %rcx
movl %eax, 0x1c(%rcx)
movq %r12, %rdi
movq %r14, %rdx
callq 0xaac0
testl %eax, %eax
je 0x76bd
movq %r14, %rdi
callq 0xa4f8
addl %eax, (%rbx)
movl $0x1, %eax
jmp 0x76bf
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/parameter_expansion2.c
// Function: need_to_field_split2
int	need_to_field_split2(char **str, t_expansion *exp)
{
	char *tmp;

	tmp = *str;
	if (!(*str = ft_strtrim(*str, exp->ifs)))
	{
		free(tmp);
		return (2);
	}
	free(tmp);
	if (-1 != ft_stristr(*str, exp->ifs))
		return (1);
	return (0);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %r15
movq 0x10(%rsi), %rsi
movq %r15, %rdi
callq 0xa5b0
movq %rax, %r12
movq %rax, (%r14)
movq %r15, %rdi
callq 0x2240
testq %r12, %r12
je 0x7713
movq (%r14), %rdi
movq 0x10(%rbx), %rsi
callq 0xa890
movl %eax, %ecx
xorl %eax, %eax
cmpl $-0x1, %ecx
setne %al
jmp 0x7718
movl $0x2, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/field_splitting_root.c
// Function: field_splitting_root
int	field_splitting_root(t_list **token, char *var, t_expansion *exp)
{
	char *str1;
	char *str2;

	str1 = ((t_token*)(*token)->content)->str;
	if (!(str2 = ft_substr(str1, exp->start, ft_strlen(str1) + exp->start)))
		return (0);
	str1[exp->start] = '\0';
//	printf("before param expansion: (str1) = [%s]\n", str1);
//	printf("after param expansion: (str2)  = [%s]\n", str2);
	if (!field_splitting_root_assist(token, exp, var, str2))
	{
		free(str2);
		return (0);
	}
	free(str2);
	return (1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq (%rdi), %rax
movq (%rax), %rax
movq (%rax), %r12
movl (%rdx), %ebp
movq %r12, %rdi
callq 0xa4f8
movslq (%r14), %rdx
addq %rax, %rdx
movq %r12, %rdi
movl %ebp, %esi
callq 0xa69c
testq %rax, %rax
je 0x778a
movq %rax, %r13
movslq (%r14), %rax
movb $0x0, (%r12,%rax)
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %r13, %rcx
callq 0x779b
movl %eax, %ebx
movq %r13, %rdi
callq 0x2240
movl %ebx, %eax
jmp 0x778c
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/field_splitting_root.c
// Function: field_splitting_root_assist
int	field_splitting_root_assist(t_list **token, t_expansion *exp, char *var,\
		char *str2)
{
	char	**array;

	if (!exp->ifs)
	{
		if (!(array = ft_split_whitespaces(var, " \n\t")))
			return (0);
	}
	else if (!(array = ft_split_whitespaces(var, exp->ifs)))
		return (0);
	((t_token *)(*token)->content)->protect_e = exp->start + \
				ft_strlen(array[0]);
	//debug_array(array);
	if (!field_splitting(token, exp, array, str2))
	{
		ft_array_free(array, ft_array_len(array));
		return (0);
	}
	ft_array_free(array, ft_array_len(array));
	return (1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x10(%rsi), %rsi
testq %rsi, %rsi
jne 0x77bc
leaq 0x3ca2(%rip), %rsi      # 0xb45e
movq %rdx, %rdi
callq 0xa0fc
testq %rax, %rax
je 0x780b
movq %rax, %r12
movl (%r14), %ebp
movq (%rax), %rdi
callq 0xa4f8
addl %ebp, %eax
movq (%r15), %rcx
movq (%rcx), %rcx
movl %eax, 0x1c(%rcx)
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x7816
movl %eax, %ebx
movq %r12, %rdi
callq 0xa8e0
movq %r12, %rdi
movl %eax, %esi
callq 0xa84c
movl %ebx, %eax
jmp 0x780d
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/field_splitting_root.c
// Function: field_splitting
int	field_splitting(t_list **tok, t_expansion *exp, char **array, char *str2)
{
	char	**str;
	int		i;

	i = 1;
	str = &((t_token*)(*tok)->content)->str;
	if (array[0] && !(*str = ft_strjoin_free(*str, array[0], 1)))
		return (0);
	while (array[i])
	{
		tok = &(*tok)->next;
		if (!(field_splitting_assist(tok, array[i])))
			return (0);
		i++;
	}
	str = &((t_token*)(*tok)->content)->str;
	exp->start = ft_strlen(*str);
	if (!(*str = ft_strjoin_free(*str, str2, 1)))
		return (0);
	return (1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
movq (%rdx), %rsi
testq %rsi, %rsi
je 0x7850
movq (%r15), %rax
movq (%rax), %r13
movq (%r13), %rdi
movl $0x1, %edx
callq 0xa4b4
movq %rax, (%r13)
testq %rax, %rax
je 0x78af
movq 0x8(%r12), %rsi
testq %rsi, %rsi
je 0x787e
addq $0x10, %r12
movq (%r15), %r15
addq $0x8, %r15
movq %r15, %rdi
callq 0x78bb
testl %eax, %eax
je 0x78af
movq (%r12), %rsi
addq $0x8, %r12
testq %rsi, %rsi
jne 0x785e
movq (%r15), %rax
movq (%rax), %r15
movq (%r15), %rdi
callq 0xa4f8
movl %eax, (%r14)
movq (%r15), %rdi
movq %rbx, %rsi
movl $0x1, %edx
callq 0xa4b4
movq %rax, %rcx
movq %rax, (%r15)
xorl %eax, %eax
testq %rcx, %rcx
setne %al
jmp 0x78b1
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/field_splitting_root.c
// Function: field_splitting_assist
int	field_splitting_assist(t_list **tok, char *str)
{
	t_list	*new_link;
	t_token	*new_token;

	if (!(new_token = lexer_init_token()))
		return (0);
	if (!(new_token->str = ft_strdup(str)))
	{
		free(new_token);
		return (0);
	}
	new_token->id = TOKEN;
	new_token->unquote_protected = 1;
	new_token->protect_s = 0;
	new_token->protect_e = ft_strlen(new_token->str);
	if (!(new_link = ft_lstnew(new_token)))
	{
		del_token(new_token);
		return (0);
	}
	ft_lstadd_front(tok, new_link);
	return (1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r12
movq %rdi, %r14
callq 0x27ea
xorl %ebx, %ebx
testq %rax, %rax
je 0x7935
movq %rax, %r15
movq %r12, %rdi
callq 0xa3e4
movq %rax, (%r15)
testq %rax, %rax
je 0x7923
movl $0x0, 0x8(%r15)
movq $0x1, 0x14(%r15)
movq %rax, %rdi
callq 0xa4f8
movl %eax, 0x1c(%r15)
movq %r15, %rdi
callq 0xa7bc
testq %rax, %rax
je 0x792d
movq %r14, %rdi
movq %rax, %rsi
callq 0xa738
movl $0x1, %ebx
jmp 0x7935
movq %r15, %rdi
callq 0x2240
jmp 0x7935
movq %r15, %rdi
callq 0x278e
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/pathname_expansion_root.c
// Function: pathname_expansion_root
int	pathname_expansion_root(t_list **tokens, int is_filename)
{
	int res;

	while (*tokens)
	{
		if (!pathname_is_expandable(((t_token*)(*tokens)->content)->str))
			quote_removal((t_token*)(*tokens)->content);
		else
		{
			if ((res = pathname_expansion(&tokens, is_filename)))
				return (res);
		}
		tokens = &((*tokens)->next);
	}
	return (0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, (%rsp)
movq (%rdi), %rax
xorl %ebx, %ebx
testq %rax, %rax
je 0x79a1
movl %esi, %ebp
movq %rsp, %r14
movq (%rax), %r15
movq (%r15), %rdi
callq 0x79ae
testl %eax, %eax
je 0x797d
movq %r14, %rdi
movl %ebp, %esi
callq 0x7a27
testl %eax, %eax
je 0x7985
jmp 0x799f
movq %r15, %rdi
callq 0x8a4f
movq (%rsp), %rax
movq (%rax), %rax
leaq 0x8(%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rax
testq %rax, %rax
jne 0x795e
jmp 0x79a1
movl %eax, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/pathname_expansion_root.c
// Function: pathname_is_expandable
int	pathname_is_expandable(char *str)
{
	int quoted;
	int	escaped;
	int i;

	quoted = 0;
	escaped = 0;
	i = 0;
	while (str[i])
	{
		if (!escaped && str[i] == '\\')
		{
			i++;
			escaped = 1;
			continue;
		}
		if (!escaped && !quoted && (str[i] == '\"' || str[i] == '\''))
			quoted = str[i];
		else if (!escaped && quoted && str[i] == quoted)
			quoted = 0;
		else if (!escaped && !quoted && str[i] == '*')
			return (1);
		escaped = 0;
		i++;
	}
	return (0);
}

// Assembly:
movb (%rdi), %sil
testb %sil, %sil
je 0x7a1e
xorl %eax, %eax
xorl %ecx, %ecx
xorl %edx, %edx
cmpb $0x5c, %sil
je 0x79c7
movl %esi, %r8d
jmp 0x79d7
movslq %ecx, %rcx
movb 0x1(%rdi,%rcx), %r8b
testb %r8b, %r8b
je 0x7a1e
incq %rcx
cmpb $0x5c, %sil
je 0x79fb
testl %edx, %edx
jne 0x79fb
movzbl %r8b, %edx
cmpb $0x22, %dl
je 0x7a0e
cmpl $0x27, %edx
je 0x7a0e
cmpl $0x2a, %edx
movl $0x0, %edx
jne 0x7a0e
jmp 0x7a21
cmpb $0x5c, %sil
je 0x7a0e
testl %edx, %edx
je 0x7a0e
movsbl %r8b, %esi
cmpl %esi, %edx
cmovel %eax, %edx
movslq %ecx, %rcx
movb 0x1(%rdi,%rcx), %sil
incq %rcx
testb %sil, %sil
jne 0x79bc
xorl %eax, %eax
retq
movl $0x1, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/pathname_expansion_root.c
// Function: pathname_expansion
int	pathname_expansion(t_list ***token, int is_filename)
{
	t_list		*path_parts;
	t_path_exp	tool;
	int res;

	if (!(path_parts = split_path_root(((t_token*)((**token)->content))->str)))
		return (2);
	init_path_expansion_struct(path_parts, &tool, is_filename);
	if ((res = pathname_matching_root(&tool, path_parts)))
	{
		ft_lstclear(&(tool.path_parts), delete_path_part_link);
		ft_lstclear(&(tool.matched_paths), del_token);
		return (res);
	}
	//debug_path_parts(tool.path_parts);
	ft_lstclear(&(tool.path_parts), delete_path_part_link);
	if (!tool.matched_paths)
		quote_removal((t_token*)(**token)->content);
	else
	{
		//debug_tokens_list(**token);
		word_expand_replace(token, tool.matched_paths);
		ft_lstclear(&(tool.path_parts), delete_path_part_link);
	}
	return (0);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movq (%rdi), %rax
movq (%rax), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x7dc0
testq %rax, %rax
je 0x7a99
leaq 0x8(%rsp), %r14
movq %rax, (%r14)
movl %ebp, 0x8(%r14)
movl $0x0, 0xc(%r14)
movq $0x0, 0x10(%r14)
movq %r14, %rdi
movq %rax, %rsi
callq 0x8258
movl %eax, %ebp
leaq 0x626(%rip), %rsi       # 0x80a0
movq %r14, %rdi
callq 0xa748
testl %ebp, %ebp
je 0x7aa0
leaq 0x18(%rsp), %rdi
leaq -0x5304(%rip), %rsi     # 0x278e
callq 0xa748
jmp 0x7ad5
movl $0x2, %ebp
jmp 0x7ad5
movq 0x18(%rsp), %rsi
testq %rsi, %rsi
je 0x7ac5
movq %rbx, %rdi
callq 0x71e3
leaq 0x5e7(%rip), %rsi       # 0x80a0
leaq 0x8(%rsp), %rdi
callq 0xa748
jmp 0x7ad3
movq (%rbx), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x8a4f
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/tild_expansion_root.c
// Function: tild_expansion_root
int	tild_expansion_root(t_list *env, char **str)
{
	char	*home_env;
	int		start_assignement;
	int		index;

	index = 0;
	if (!(home_env = env_get("HOME", 4, env)))
		return (1);
	start_assignement = index_assignement_sign(*str);
	if (start_assignement == -1)
		return (tild_expand_try(str, home_env, &index));
	else
		return (expand_tild_in_assignement(str, home_env, start_assignement, \
				start_assignement));
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %rdx
movl $0x0, 0x4(%rsp)
leaq 0x366c(%rip), %rdi      # 0xb17d
movl $0x4, %esi
callq 0x33b4
testq %rax, %rax
je 0x7b46
movq %rax, %r14
movq (%rbx), %rdi
callq 0x7b65
cmpl $-0x1, %eax
je 0x7b4d
movq %rbx, %rdi
movq %r14, %rsi
movl %eax, %edx
movl %eax, %ecx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x7c58
movl $0x1, %eax
jmp 0x7b5d
leaq 0x4(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7bb2
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/tild_expansion_root.c
// Function: index_assignement_sign
int	index_assignement_sign(char *str)
{
	int i;

	i = 1;
	if (!str[0] || !ft_isalpha(str[0]))
		return (-1);
	while (str[i])
	{
		if (str[i] == '=')
			return (i);
		if (!(ft_isalpha(str[i])))
			return (-1);
		i++;
	}
	return (-1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
movsbl (%rdi), %edi
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testl %edi, %edi
je 0x7baa
callq 0x9ba0
testl %eax, %eax
je 0x7baa
movl $0x1, %r15d
movzbl (%r14,%r15), %eax
testl %eax, %eax
je 0x7baa
cmpl $0x3d, %eax
je 0x7ba7
movsbl %al, %edi
callq 0x9ba0
testl %eax, %eax
je 0x7baa
incq %r15
jmp 0x7b88
movl %r15d, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/tild_expansion_root.c
// Function: tild_expand_try
int tild_expand_try(char **str, char *home_env, int *i)
{
	int res;

	if (!is_tild_expandable(*str, *i))
		return (1);
	ft_strcdel(*str, *i);
	res = ft_strstradd(str, *i, home_env);
	if (res)
		*i = *i + ft_strlen(home_env);
	return (res);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %rdi
movslq (%rdx), %rsi
movl $0x1, %ebp
cmpb $0x7e, (%rdi,%rsi)
jne 0x7c1a
movzbl 0x1(%rdi,%rsi), %eax
cmpq $0x3a, %rax
ja 0x7c1a
movabsq $0x400800000000001, %rcx # imm = 0x400800000000001
btq %rax, %rcx
jae 0x7c1a
movq %rdx, %rbx
callq 0xaa78
movl (%rbx), %esi
movq %r15, %rdi
movq %r14, %rdx
callq 0xaac0
testl %eax, %eax
je 0x7c18
movl %eax, %ebp
movl (%rbx), %r15d
movq %r14, %rdi
callq 0xa4f8
addl %r15d, %eax
movl %eax, (%rbx)
jmp 0x7c1a
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/tild_expansion_assist.c
// Function: expand_tild_in_assignement
int	expand_tild_in_assignement(char **str, char *home_env, int i, int start)
{
	int		esc_next;
	char	quoted;

	esc_next = 0;
	quoted = 0;
	while ((*str)[++i])
	{
		if ((i == start + 1) && !tild_expand_try(str, home_env, &i))
			return (0);
		if (!quoted && !esc_next && (*str)[i] == '\\')
		{
			esc_next = 1;
			continue;
		}
		if (!esc_next && ((*str)[i] == '\'' || (*str)[i] == '"'))
			path_set_quoted((*str)[i], &quoted);
		if (!quoted && !esc_next && (*str)[i] == ':')
		{
			if (!tild_expand_try_after_column(str, home_env, &i))
				return (0);
		}
		esc_next = 0;
	}
	return (1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq %rsi, %r14
movb $0x0, 0x3(%rsp)
movq (%rdi), %rax
movslq %edx, %rcx
leaq 0x1(%rcx), %rsi
movl %esi, 0x4(%rsp)
cmpb $0x0, 0x1(%rax,%rcx)
je 0x7d57
movq %rdi, %r15
xorl %ebp, %ebp
leaq 0x4(%rsp), %r12
cmpl %ebx, %edx
jne 0x7caa
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x7bb2
testl %eax, %eax
je 0x7d5f
movb 0x3(%rsp), %cl
testb %cl, %cl
setne %dil
orb %bpl, %dil
movq (%r15), %rax
movl 0x4(%rsp), %edx
movslq %edx, %rsi
testb $0x1, %dil
je 0x7cd3
testb $0x1, %bpl
jne 0x7d3b
movb (%rax,%rsi), %sil
jmp 0x7ce0
movb (%rax,%rsi), %sil
movb $0x1, %r13b
cmpb $0x5c, %sil
je 0x7d3e
cmpb $0x27, %sil
je 0x7cef
movzbl %sil, %edi
cmpl $0x22, %edi
jne 0x7d08
movsbl %sil, %edi
leaq 0x3(%rsp), %rsi
callq 0x7fd1
movb 0x3(%rsp), %cl
movq (%r15), %rax
movl 0x4(%rsp), %edx
testb %cl, %cl
setne %cl
orb %cl, %bpl
testb $0x1, %bpl
jne 0x7d3b
movslq %edx, %rcx
xorl %r13d, %r13d
cmpb $0x3a, (%rax,%rcx)
jne 0x7d3e
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x7d74
testl %eax, %eax
je 0x7d62
movq (%r15), %rax
movl 0x4(%rsp), %edx
xorl %r13d, %r13d
movslq %edx, %rcx
leaq 0x1(%rcx), %rsi
movl %esi, 0x4(%rsp)
cmpb $0x0, 0x1(%rax,%rcx)
movl %r13d, %ebp
jne 0x7c90
movl $0x1, %r13d
jmp 0x7d62
xorl %r13d, %r13d
movl %r13d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/tild_expansion_assist.c
// Function: tild_expand_try_after_column
int	tild_expand_try_after_column(char **str, char *home_env, int *i)
{
	if (!(*str)[*i + 1])
		return (1);
	(*i)++;
	if (is_tild_expandable(*str, *i))
		return (tild_expand_try(str, home_env, i));
	(*i)--;
	return (1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %rdi
movslq (%rdx), %rsi
cmpb $0x0, 0x1(%rdi,%rsi)
je 0x7db2
movq %rdx, %rbx
incq %rsi
movl %esi, (%rdx)
callq 0x7c27
testl %eax, %eax
je 0x7db0
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x7bb2
decl (%rbx)
movl $0x1, %eax
popq %rbx
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/split_path_root.c
// Function: split_path_root
t_list	*split_path_root(char *path_to_dup_and_split)
{
	t_list *path_parts;
	char *dup_path;

	path_parts = NULL;
	if (!(dup_path = ft_strdup(path_to_dup_and_split)))
		return (NULL);
	//printf("str is: %s\n", dup_path);
	collapse_fwd_slashes(dup_path, 0, -1, 0);
	//printf("str2 is: %s\n", dup_path);
	if (!split_path(dup_path, &path_parts, 0))
	{
		free(dup_path);
		ft_lstclear(&path_parts, delete_path_part_link);
		return (NULL);
	}
	free(dup_path);
	//del me
	//debug_path_parts(path_parts);
	return (path_parts);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq $0x0, (%rsp)
callq 0xa3e4
testq %rax, %rax
je 0x7e17
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7e20
movq %rsp, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x7ea4
movl %eax, %ebp
movq %rbx, %rdi
callq 0x2240
testl %ebp, %ebp
je 0x7e08
movq (%rsp), %rax
jmp 0x7e19
leaq 0x291(%rip), %rsi       # 0x80a0
movq %rsp, %rdi
callq 0xa748
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/split_path_root.c
// Function: collapse_fwd_slashes
void collapse_fwd_slashes(char *str, int esc_next, int i, int k)
{
	while (str[++i])
	{
		if (str[i] == '\\' && esc_next == 0)
		{
			esc_next = 1;
			continue;
		}
		if (esc_next != 1 && str[i] == '/')
		{
			k = i;
			while (str[++k])
			{
				if (str[k] != '/' && str[k] != '"' && str[k] != '\'')
				{
					i = k - 1;
					break;
				}
				if (str[k] == '/')
					ft_strcdel(str, k--);
			}
		}
		esc_next = 0;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movslq %edx, %r15
movb 0x1(%rdi,%r15), %al
testb %al, %al
je 0x7e9b
movq %rdi, %rbx
incq %r15
testl %esi, %esi
jne 0x7e5a
movl $0x1, %ebp
cmpb $0x5c, %al
jne 0x7e5a
movslq %r15d, %r15
movb 0x1(%rbx,%r15), %al
incq %r15
movl %ebp, %esi
testb %al, %al
jne 0x7e3a
jmp 0x7e9b
xorl %ebp, %ebp
cmpl $0x1, %esi
je 0x7e47
movl %r15d, %r14d
cmpb $0x2f, %al
jne 0x7e47
movl %r14d, %r12d
movslq %r14d, %r14
incq %r14
jmp 0x7e7e
movq %rbx, %rdi
movq %r14, %rsi
callq 0xaa78
movzbl (%rbx,%r14), %eax
cmpl $0x2f, %eax
je 0x7e73
testl %eax, %eax
je 0x7e47
cmpl $0x22, %eax
je 0x7e68
cmpl $0x27, %eax
je 0x7e68
movl %r12d, %r15d
jmp 0x7e47
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/split_path_root.c
// Function: split_path
int	split_path(char *str, t_list **paths, int start)
{
	int		end;
	char	*path_part;
	char	quoted;
	char	start_quoted_at_next_path_part;

	quoted = 0;
	while (str[start])
	{
		start_quoted_at_next_path_part = quoted;
		end = find_path_end(str, start, &quoted);
		if (!(path_part = ft_substr(str, start, end - start)))
			return (0);
		//printf("\nend char: [%c]\n", str[end]);
	//	printf("full_path was:	[%s]\n", str);
		//printf("path_part = [%s]\n", path_part);
		if (!add_path_part(path_part, paths, start_quoted_at_next_path_part))
			return (0);
		if (end == (int)ft_strlen(str))
			return (1);
		start = end + 1;
	}
	if (!(path_part = ft_strdup("")))
		return (0);
	return (add_path_part(path_part, paths, start_quoted_at_next_path_part));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movb $0x0, 0x7(%rsp)
movslq %edx, %rax
cmpb $0x0, (%rdi,%rax)
je 0x7f29
movl %edx, %r12d
movq %rdi, %r14
leaq 0x7(%rsp), %r15
movb 0x7(%rsp), %r13b
movq %r14, %rdi
movl %r12d, %esi
movq %r15, %rdx
callq 0x7f74
movl %eax, %ebp
subl %r12d, %eax
movslq %eax, %rdx
movq %r14, %rdi
movl %r12d, %esi
callq 0xa69c
xorl %r12d, %r12d
testq %rax, %rax
je 0x7f62
movsbl %r13b, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x7fe4
testl %eax, %eax
je 0x7f62
movq %r14, %rdi
callq 0xa4f8
cmpl %eax, %ebp
je 0x7f5c
movslq %ebp, %rax
leaq 0x1(%rax), %r12
cmpb $0x0, 0x1(%r14,%rax)
jne 0x7ecb
jmp 0x7f29
leaq 0x32ab(%rip), %rdi      # 0xb1db
callq 0xa3e4
testq %rax, %rax
je 0x7f57
movsbl %r13b, %edx
movq %rax, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7fe4
xorl %r12d, %r12d
jmp 0x7f62
movl $0x1, %r12d
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/split_path_root.c
// Function: find_path_end
int	find_path_end(char *str, int i, char *quoted)
{
	int esc_next;

	esc_next = 0;
	while (str[i])
	{
		if (!esc_next & (str[i] == '"' || str[i] == '\''))
			path_set_quoted(str[i], quoted);
		if (!esc_next && str[i] == '\\')
		{
			esc_next = 1;
			i++;
			continue;
		}
		if (!esc_next && str[i] == '/')
			return (i);
		esc_next = 0;
		i++;
	}
	return (i);
}

// Assembly:
movl %esi, %eax
movslq %esi, %rcx
addq %rdi, %rcx
movb $0x1, %dil
movzbl (%rcx), %esi
cmpl $0x22, %esi
je 0x7f98
cmpl $0x27, %esi
je 0x7f98
testl %esi, %esi
je 0x7fd0
testb $0x1, %dil
jne 0x7fb3
jmp 0x7fc2
testb $0x1, %dil
je 0x7fc2
movb (%rdx), %dil
testb %dil, %dil
je 0x7fad
cmpb %sil, %dil
jne 0x7fb0
xorl %esi, %esi
movb %sil, (%rdx)
movb (%rcx), %sil
cmpb $0x5c, %sil
je 0x7fc7
movzbl %sil, %esi
cmpl $0x2f, %esi
je 0x7fd0
movb $0x1, %dil
jmp 0x7fc9
xorl %edi, %edi
incl %eax
incq %rcx
jmp 0x7f7f
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/split_path2.c
// Function: add_path_part
int	add_path_part(char *str, t_list **path_parts, char quoted)
{
	t_path_part *path_part;
	t_list *new_link;

	if (!(path_part = init_path_part_link(str, quoted)))
	{
		free(str);
		return (0);
	}
	if (!path_part_unquoting(path_part, path_part->path_part))
	{
		delete_path_part_link(path_part);
		return (0);
	}
	//debug_path_part(path_part);
	if (!(new_link = ft_lstnew(path_part)))
	{
		delete_path_part_link(path_part);
		return (0);
	}
	ft_lstadd_back(path_parts, new_link);
	return (1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r15
testq %rdi, %rdi
je 0x8047
movl %edx, %ebp
movq %rsi, %rbx
movl $0x18, %edi
callq 0x2190
testq %rax, %rax
je 0x8047
movq %rax, %r14
movq %r15, (%rax)
movq $0x0, 0x8(%rax)
movb %bpl, 0x10(%rax)
movq %rax, %rdi
movq %r15, %rsi
callq 0x80d8
testl %eax, %eax
je 0x8051
movq %r14, %rdi
callq 0xa7bc
testq %rax, %rax
je 0x8051
movq %rbx, %rdi
movq %rax, %rsi
callq 0xa70c
movl $0x1, %eax
jmp 0x805b
movq %r15, %rdi
callq 0x2240
jmp 0x8059
movq %r14, %rdi
callq 0x80a0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/split_path2.c
// Function: init_path_part_link
t_path_part *init_path_part_link(char *str, char quoted)
{
	t_path_part *new;

	if (!str)
		return (NULL);
	if (!(new = (t_path_part *)malloc(sizeof(t_path_part))))
		return (NULL);
	new->path_part = str;
	new->star_index = NULL;
	new->quoted = quoted;
	return (new);
}

// Assembly:
testq %rdi, %rdi
je 0x8093
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movl $0x18, %edi
callq 0x2190
testq %rax, %rax
je 0x8096
movq %r14, (%rax)
movq $0x0, 0x8(%rax)
movb %bl, 0x10(%rax)
jmp 0x8098
xorl %eax, %eax
retq
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/split_path2.c
// Function: delete_path_part_link
void	delete_path_part_link(void *content)
{
	t_path_part *elem;

	elem = (t_path_part *)content;
	free(elem->path_part);
	ft_lstclear(&(elem->star_index), free);
	ft_free((void **)&elem);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsp, %r14
movq %rdi, (%r14)
movq (%rdi), %rdi
callq 0x2240
movq 0x9f0c(%rip), %rsi      # 0x11fc8
addq $0x8, %rbx
movq %rbx, %rdi
callq 0xa748
movq %r14, %rdi
callq 0xa9c0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/split_path3.c
// Function: path_part_unquoting
int	path_part_unquoting(t_path_part *new, char *str)
{
	int i;
	int esc_next;

	i = -1;
	esc_next = 0;
	while (str[++i])
	{
		if (!esc_next && str[i] == '\\')
		{
			esc_next = 1;
			path_part_unquoting_escape_char(str, &i, new->quoted);
			continue;
		}
		if (str[i] == '*' && !esc_next && !new->quoted)
		{
			if (!add_index_valid_kleen_star_to_lst(new, i))
				return (0);
		}
		else if (!esc_next && (str[i] == '\'' || str[i] == '"'))
			path_part_unquoting_assist(str[i], &new->quoted, str, &i);
		esc_next = 0;
	}
	return (1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl $0x0, 0x4(%rsp)
movb (%rsi), %al
movl $0x1, %ebx
testb %al, %al
je 0x818f
movq %rsi, %r14
movq %rdi, %r15
leaq 0x10(%rdi), %r12
xorl %esi, %esi
leaq 0x4(%rsp), %r13
xorl %ecx, %ecx
cmpb $0x5c, %al
setne %bpl
orb %cl, %bpl
testb $0x1, %bpl
je 0x8153
cmpb $0x2a, %al
setne %dl
orb %cl, %dl
testb $0x1, %dl
jne 0x812f
cmpb $0x0, (%r12)
je 0x8181
testb $0x1, %cl
jne 0x8163
cmpb $0x27, %al
je 0x8140
movzbl %al, %ecx
cmpl $0x22, %ecx
jne 0x8163
movsbl %al, %edi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
callq 0x8215
jmp 0x8163
movsbl (%r12), %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x81a0
xorb $0x1, %bpl
movslq 0x4(%rsp), %rax
leaq 0x1(%rax), %rsi
movl %esi, 0x4(%rsp)
movb 0x1(%r14,%rax), %al
movl %ebp, %ecx
testb %al, %al
jne 0x810d
jmp 0x818f
movq %r15, %rdi
callq 0x81bb
testl %eax, %eax
jne 0x8163
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/split_path3.c
// Function: add_index_valid_kleen_star_to_lst
int	add_index_valid_kleen_star_to_lst(t_path_part *new, int index)
{
	int	*i;
	t_list *new_star_index;

	if (!(i = malloc(sizeof(int))))
		return (0);
	*i = index;
	if (!(new_star_index = ft_lstnew((void*)i)))
	{
		free(i);
		return (0);
	}
	ft_lstadd_back(&(new->star_index), new_star_index);
	return (1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %r14
movl $0x4, %edi
callq 0x2190
xorl %ebx, %ebx
testq %rax, %rax
je 0x8208
movq %rax, %r15
movl %ebp, (%rax)
movq %rax, %rdi
callq 0xa7bc
testq %rax, %rax
je 0x8200
addq $0x8, %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0xa70c
movl $0x1, %ebx
jmp 0x8208
movq %r15, %rdi
callq 0x2240
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/split_path3.c
// Function: path_part_unquoting_assist
void path_part_unquoting_assist(char c, char *quoted, char *str, int *index)
{
	if (!*quoted)
	{
		*quoted = c;
		ft_strcdel(str, *index);
		(*index)--;
		//eat the char.
		return ;
	}
	else if (c == quoted[0])
	{
		//eat the char.
		ft_strcdel(str, *index);
		(*index)--;
		quoted[0] = 0;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rsi, %r14
movb (%rsi), %al
testb %al, %al
je 0x823d
cmpb %dil, %al
jne 0x824d
movslq (%rbx), %rsi
movq %rdx, %rdi
callq 0xaa78
decl (%rbx)
movb $0x0, (%r14)
jmp 0x824d
movb %dil, (%r14)
movslq (%rbx), %rsi
movq %rdx, %rdi
callq 0xaa78
decl (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/pathname_matching_root.c
// Function: pathname_matching_root
int	pathname_matching_root(t_path_exp *tool, t_list *path_parts)
{
	char *first_path_part;

	first_path_part = ((t_path_part *)(path_parts->content))->path_part;
	if (!ft_strlen(first_path_part))
		return (pathname_matching(tool, path_parts->next, "", "/"));
	else if (!ft_strcmp(first_path_part, "."))
		return (pathname_matching(tool, path_parts->next, ".", "./"));
	else if (!ft_strcmp(first_path_part, ".."))
		return (pathname_matching(tool, path_parts->next, "..", "../"));
	else
		return (pathname_matching_relative(tool, path_parts));
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rax
movq (%rax), %r15
movq %r15, %rdi
callq 0xa4f8
testq %rax, %rax
je 0x82ac
leaq 0x2ed8(%rip), %rsi      # 0xb155
movq %r15, %rdi
callq 0xa994
testl %eax, %eax
je 0x82c0
leaq 0x31d2(%rip), %rsi      # 0xb462
movq %r15, %rdi
callq 0xa994
testl %eax, %eax
je 0x82d4
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x83a0
movq 0x8(%r14), %rsi
leaq 0x2f24(%rip), %rdx      # 0xb1db
leaq 0x31a9(%rip), %rcx      # 0xb467
jmp 0x82e6
movq 0x8(%r14), %rsi
leaq 0x2e8a(%rip), %rdx      # 0xb155
leaq 0x3194(%rip), %rcx      # 0xb466
jmp 0x82e6
movq 0x8(%r14), %rsi
leaq 0x3183(%rip), %rdx      # 0xb462
leaq 0x317f(%rip), %rcx      # 0xb465
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x82f3
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/pathname_matching_root.c
// Function: pathname_matching
int pathname_matching(t_path_exp *tool, t_list *path_parts, char *path_start, \
		char *open_me)
{
	int		res;
	char	*path_fuller;
	DIR		*dir_p;

	if (!path_parts)
		return (pathname_matched_add_to_list(tool, path_start));
	if (!ft_strlen(((t_path_part *)path_parts->content)->path_part))
	{
		if (!(dir_p = opendir(open_me)))
			return (0);
		if (!(path_fuller = ft_strjoin(path_start, "/")))
			return (2);
		res = pathname_matched_add_to_list(tool, path_fuller);
		free(path_fuller);
		closedir(dir_p);
		return (res);
	}
	return (pathname_matching_assist(tool, path_parts, path_start, open_me));
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rdi, %rbx
testq %rsi, %rsi
je 0x833b
movq %rcx, %r15
movq %rsi, %r12
movq (%rsi), %rax
movq (%rax), %rdi
callq 0xa4f8
testq %rax, %rax
je 0x8351
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x844e
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x8554
movq %r15, %rdi
callq 0x2080
testq %rax, %rax
je 0x832d
movq %rax, %r15
leaq 0x30ff(%rip), %rsi      # 0xb467
movq %r14, %rdi
callq 0xa428
testq %rax, %rax
je 0x8399
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x8554
movl %eax, %ebx
movq %r14, %rdi
callq 0x2240
movq %r15, %rdi
callq 0x2130
movl %ebx, %eax
jmp 0x832f
movl $0x2, %eax
jmp 0x832f
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/pathname_matching_root.c
// Function: pathname_matching_relative
int pathname_matching_relative(t_path_exp *tool, t_list *path_parts)
{
	DIR		*dir_p;
	struct	dirent *entry;
	int		res;
	char	*path_start;

	if (!(dir_p = opendir("./")))
		return (0);
	while ((entry = readdir(dir_p)) != NULL)
	{
		if (match_path_part_root(path_parts, entry->d_name))
		{
			if (!(path_start = ft_strdup(entry->d_name)))
				return (2);
			res = pathname_matching(tool, path_parts->next, path_start, \
					path_start);
			free(path_start);
			if (res)
				return (res);
		}
	}
	closedir(dir_p);
	return (0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
leaq 0x30ae(%rip), %rdi      # 0xb466
callq 0x2080
xorl %ebx, %ebx
testq %rax, %rax
je 0x843d
movq %rax, %r12
movq %rax, %rdi
callq 0x2180
testq %rax, %rax
je 0x842a
movq %rax, %r13
addq $0x13, %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x85f0
testl %eax, %eax
je 0x841a
movq %r13, %rdi
callq 0xa3e4
testq %rax, %rax
je 0x8434
movq %rax, %r13
movq 0x8(%r14), %rsi
movq %r15, %rdi
movq %rax, %rdx
movq %rax, %rcx
callq 0x82f3
movl %eax, %ebp
movq %r13, %rdi
callq 0x2240
testl %ebp, %ebp
jne 0x843b
movq %r12, %rdi
callq 0x2180
movq %rax, %r13
testq %rax, %rax
jne 0x83d7
movq %r12, %rdi
callq 0x2130
jmp 0x843d
movl $0x2, %ebx
jmp 0x843d
movl %ebp, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/pathname_matching_root.c
// Function: pathname_matching_assist
int pathname_matching_assist(t_path_exp *tool, t_list *path_parts, \
		char *path_start, char *open_me)
{
	DIR		*dir_p;
	struct	dirent *entry;
	int		res;
	char	*path_fuller;

	if (!(dir_p = opendir(open_me)))
		return (0);
	while ((entry = readdir(dir_p)) != NULL)
	{
		if (match_path_part_root(path_parts, entry->d_name))
		{
			if (!(path_fuller = path_join(path_start, entry->d_name)))
				pathname_matching_closedir_return(dir_p, 2);
			res = pathname_matching(tool, path_parts->next, path_fuller, \
					path_fuller);
			free(path_fuller);
			if (res)
				pathname_matching_closedir_return(dir_p, res);
		}
	}
	closedir(dir_p);
	return (0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rcx, %rdi
callq 0x2080
testq %rax, %rax
je 0x8508
movq %rax, %r12
movq %rax, %rdi
callq 0x2180
testq %rax, %rax
je 0x8500
movq %rax, %r13
addq $0x13, %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x85f0
testl %eax, %eax
je 0x84f0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x8519
movq %rax, %r13
testq %rax, %rax
je 0x84bb
movq 0x8(%r14), %rsi
movq %r15, %rdi
movq %r13, %rdx
movq %r13, %rcx
jmp 0x84d3
movq %r12, %rdi
movl $0x2, %esi
callq 0x85e4
movq 0x8(%r14), %rsi
movq %r15, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x82f3
movl %eax, %ebp
movq %r13, %rdi
callq 0x2240
testl %ebp, %ebp
je 0x84f0
movq %r12, %rdi
movl %ebp, %esi
callq 0x85e4
movq %r12, %rdi
callq 0x2180
movq %rax, %r13
testq %rax, %rax
jne 0x8486
movq %r12, %rdi
callq 0x2130
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/pathname_matching_utils.c
// Function: pathname_matched_add_to_list
int	pathname_matched_add_to_list(t_path_exp *tool, char *path)
{
	t_token *new_token;
	t_list	*new_link;

	if (tool->first_match == 1 && tool->is_filename)
		return (1);
	if (!tool->first_match)
		tool->first_match = 1;
	if (!(new_token = lexer_init_token()))
		return (2);
	if (!(new_token->str = ft_strdup(path)))
	{
		free(new_token);
		return (2);
	}
	if (!(new_link = ft_lstnew(new_token)))
	{
		free(new_token->str);
		free(new_token);
		return (2);
	}
	ft_lstadd_back(&tool->matched_paths, new_link);
	return (0);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r12
movq %rdi, %r14
movl 0xc(%rdi), %eax
testl %eax, %eax
je 0x857c
cmpl $0x1, %eax
jne 0x8584
movl $0x1, %ebx
cmpl $0x0, 0x8(%r14)
jne 0x85d6
jmp 0x8584
movl $0x1, 0xc(%r14)
callq 0x27ea
movl $0x2, %ebx
testq %rax, %rax
je 0x85d6
movq %rax, %r15
movq %r12, %rdi
callq 0xa3e4
movq %rax, (%r15)
testq %rax, %rax
je 0x85ce
movq %r15, %rdi
callq 0xa7bc
testq %rax, %rax
je 0x85c6
addq $0x10, %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0xa70c
xorl %ebx, %ebx
jmp 0x85d6
movq (%r15), %rdi
callq 0x2240
movq %r15, %rdi
callq 0x2240
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq