LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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 0x9be0
movslq (%r14), %rdx
addq %rax, %rdx
movq %r12, %rdi
movl %ebp, %esi
callq 0x9d48
testq %rax, %rax
je 0x72ae
movq %rax, %r13
movslq (%r14), %rax
movb $0x0, (%r12,%rax)
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %r13, %rcx
callq 0x72bf
movl %eax, %ebx
movq %r13, %rdi
callq 0x2230
movl %ebx, %eax
jmp 0x72b0
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_O2/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 0x72e0
leaq 0x417e(%rip), %rsi      # 0xb45e
movq %rdx, %rdi
callq 0x982c
testq %rax, %rax
je 0x732f
movq %rax, %r12
movl (%r14), %ebp
movq (%rax), %rdi
callq 0x9be0
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 0x733a
movl %eax, %ebx
movq %r12, %rdi
callq 0x9f50
movq %r12, %rdi
movl %eax, %esi
callq 0x9ed4
movl %ebx, %eax
jmp 0x7331
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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, %r15
movq %rsi, %r14
movq %rdi, %r12
movq (%rdx), %rsi
testq %rsi, %rsi
je 0x7373
movq (%r12), %rax
movq (%rax), %r13
movq (%r13), %rdi
pushq $0x1
popq %rdx
callq 0x9b9c
movq %rax, (%r13)
testq %rax, %rax
je 0x7397
addq $0x8, %r15
movq (%r15), %rsi
movq (%r12), %r12
testq %rsi, %rsi
je 0x739b
addq $0x8, %r12
movq %r12, %rdi
callq 0x73d0
addq $0x8, %r15
testl %eax, %eax
jne 0x7377
xorl %eax, %eax
jmp 0x73c6
movq (%r12), %r15
movq (%r15), %rdi
callq 0x9be0
movl %eax, (%r14)
movq (%r15), %rdi
pushq $0x1
popq %rdx
movq %rbx, %rsi
callq 0x9b9c
movq %rax, %rcx
movq %rax, (%r15)
xorl %eax, %eax
testq %rcx, %rcx
setne %al
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x27a3
xorl %ebx, %ebx
testq %rax, %rax
je 0x7445
movq %rax, %r15
movq %r12, %rdi
callq 0x9aec
movq %rax, (%r15)
testq %rax, %rax
je 0x7433
andl $0x0, 0x8(%r15)
movq $0x1, 0x14(%r15)
movq %rax, %rdi
callq 0x9be0
movl %eax, 0x1c(%r15)
movq %r15, %rdi
callq 0x9e58
testq %rax, %rax
je 0x743d
movq %r14, %rdi
movq %rax, %rsi
callq 0x9dd8
pushq $0x1
popq %rbx
jmp 0x7445
movq %r15, %rdi
callq 0x2230
jmp 0x7445
movq %r15, %rdi
callq 0x2747
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
leaq 0x8(%rsp), %r14
movq %rdi, 0x8(%rsp)
movq (%rdi), %rax
testq %rax, %rax
je 0x74a6
movq (%rax), %r15
movq (%r15), %rdi
callq 0x74b2
testl %eax, %eax
je 0x7490
movq %r14, %rdi
movl %ebx, %esi
callq 0x7532
testl %eax, %eax
je 0x7498
jmp 0x74a8
movq %r15, %rdi
callq 0x8457
movq 0x8(%rsp), %rax
movq (%rax), %rdi
addq $0x8, %rdi
jmp 0x7464
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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:
xorl %ecx, %ecx
xorl %esi, %esi
xorl %edx, %edx
movslq %edx, %rdx
incq %rdx
movb $0x1, %r9b
xorl %eax, %eax
xorl %r10d, %r10d
movzbl -0x1(%rdi,%rdx), %r8d
testl %r8d, %r8d
je 0x7531
cmpb $0x5c, %r8b
setne %r11b
orb %r10b, %r11b
testb $0x1, %r11b
jne 0x74ed
incq %rdx
movb $0x1, %r10b
xorl %r9d, %r9d
jmp 0x74c6
testl %esi, %esi
setne %al
orb %al, %r10b
testb $0x1, %r10b
je 0x7514
testl %esi, %esi
setne %al
andb %al, %r9b
cmpb $0x1, %r9b
jne 0x74b8
movsbl %r8b, %eax
cmpl %eax, %esi
cmovel %ecx, %esi
jmp 0x74b8
movl %r8d, %esi
cmpl $0x22, %r8d
je 0x74b8
movl %r8d, %esi
cmpl $0x27, %r8d
je 0x74b8
xorl %esi, %esi
cmpl $0x2a, %r8d
jne 0x74b8
pushq $0x1
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x7898
testq %rax, %rax
je 0x759e
leaq 0x8(%rsp), %r14
movq %rax, (%r14)
movl %ebp, 0x8(%r14)
andl $0x0, 0xc(%r14)
andq $0x0, 0x10(%r14)
movq %r14, %rdi
movq %rax, %rsi
callq 0x7cd8
movl %eax, %ebp
leaq 0x5b6(%rip), %rsi       # 0x7b35
movq %r14, %rdi
callq 0x9de8
testl %ebp, %ebp
je 0x75a3
leaq 0x18(%rsp), %rdi
leaq -0x4e50(%rip), %rsi     # 0x2747
callq 0x9de8
jmp 0x75d8
pushq $0x2
popq %rbp
jmp 0x75d8
movq 0x18(%rsp), %rsi
testq %rsi, %rsi
je 0x75c8
movq %rbx, %rdi
callq 0x6d63
leaq 0x579(%rip), %rsi       # 0x7b35
leaq 0x8(%rsp), %rdi
callq 0x9de8
jmp 0x75d6
movq (%rbx), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x8457
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
andl $0x0, 0x4(%rsp)
leaq 0x3b73(%rip), %rdi      # 0xb17d
pushq $0x4
popq %rsi
callq 0x3285
testq %rax, %rax
je 0x763d
movq %rax, %r14
movq (%rbx), %rdi
callq 0x765a
cmpl $-0x1, %eax
je 0x7642
movq %rbx, %rdi
movq %r14, %rsi
movl %eax, %edx
movl %eax, %ecx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x7740
pushq $0x1
popq %rax
jmp 0x7652
leaq 0x4(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x76a3
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq $-0x1
popq %rbx
testl %edi, %edi
je 0x769b
callq 0x93fc
testl %eax, %eax
je 0x769b
pushq $0x1
popq %r15
movzbl (%r14,%r15), %eax
testl %eax, %eax
je 0x769b
cmpl $0x3d, %eax
je 0x7698
movsbl %al, %edi
callq 0x93fc
testl %eax, %eax
je 0x769b
incq %r15
jmp 0x7679
movl %r15d, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x1
popq %rbp
cmpb $0x7e, (%rdi,%rsi)
jne 0x7709
movzbl 0x1(%rdi,%rsi), %eax
cmpq $0x3a, %rax
ja 0x7709
movabsq $0x400800000000001, %rcx # imm = 0x400800000000001
btq %rax, %rcx
jae 0x7709
movq %rdx, %rbx
callq 0xa0b8
movl (%rbx), %esi
movq %r15, %rdi
movq %r14, %rdx
callq 0xa100
testl %eax, %eax
je 0x7707
movl %eax, %ebp
movl (%rbx), %r15d
movq %r14, %rdi
callq 0x9be0
addl %r15d, %eax
movl %eax, (%rbx)
jmp 0x7709
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
movq %rdi, %r15
leaq 0x3(%rsp), %rax
movb $0x0, (%rax)
xorl %ebp, %ebp
leaq 0x4(%rsp), %r13
movq (%r15), %rax
movslq %edx, %rcx
leaq 0x1(%rcx), %rsi
movl %esi, 0x4(%rsp)
cmpb $0x0, 0x1(%rax,%rcx)
je 0x7838
movl %ebp, %r12d
cmpl %ebx, %edx
jne 0x7798
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x76a3
testl %eax, %eax
je 0x783d
movb 0x3(%rsp), %al
testb %al, %al
setne %cl
orb %r12b, %cl
testb $0x1, %cl
je 0x77c0
movl 0x4(%rsp), %edx
xorl %ebp, %ebp
testb $0x1, %r12b
jne 0x7762
movslq %edx, %rcx
movq (%r15), %rsi
movb (%rsi,%rcx), %cl
jmp 0x77d3
movq (%r15), %rcx
movslq 0x4(%rsp), %rdx
movb (%rcx,%rdx), %cl
movb $0x1, %bpl
cmpb $0x5c, %cl
je 0x7762
cmpb $0x27, %cl
je 0x77e0
movzbl %cl, %esi
cmpl $0x22, %esi
jne 0x77f5
movsbl %cl, %edi
leaq 0x3(%rsp), %rsi
callq 0x7a8f
movb 0x3(%rsp), %al
movl 0x4(%rsp), %edx
testb %al, %al
setne %al
orb %al, %r12b
xorl %ebp, %ebp
testb $0x1, %r12b
jne 0x7762
movq (%r15), %rax
movslq %edx, %rcx
xorl %ebp, %ebp
cmpb $0x3a, (%rax,%rcx)
jne 0x7762
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x7850
testl %eax, %eax
je 0x783f
movl 0x4(%rsp), %edx
xorl %ebp, %ebp
jmp 0x7762
pushq $0x1
popq %rbp
jmp 0x783f
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x788e
movq %rdx, %rbx
incq %rsi
movl %esi, (%rdx)
callq 0x7716
testl %eax, %eax
je 0x788c
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x76a3
decl (%rbx)
pushq $0x1
popq %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O2/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
andq $0x0, (%rsp)
callq 0x9aec
testq %rax, %rax
je 0x78ea
movq %rax, %rbx
pushq $-0x1
popq %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0x78f3
movq %rsp, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x7976
movl %eax, %ebp
movq %rbx, %rdi
callq 0x2230
testl %ebp, %ebp
je 0x78db
movq (%rsp), %rax
jmp 0x78ec
leaq 0x253(%rip), %rsi       # 0x7b35
movq %rsp, %rdi
callq 0x9de8
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r14d
movl %esi, %ebp
movq %rdi, %rbx
pushq $0x1
popq %r12
movslq %r14d, %r14
movb 0x1(%rbx,%r14), %al
testb %al, %al
je 0x7967
movl %ebp, %ecx
incq %r14
testl %ebp, %ebp
jne 0x7926
movl %r12d, %ebp
cmpb $0x5c, %al
je 0x790a
xorl %ebp, %ebp
cmpl $0x1, %ecx
je 0x790a
movl %r14d, %r15d
cmpb $0x2f, %al
jne 0x790a
movl %r15d, %r13d
movslq %r15d, %r15
incq %r15
movzbl (%rbx,%r15), %eax
cmpl $0x2f, %eax
jne 0x7954
movq %rbx, %rdi
movq %r15, %rsi
callq 0xa0b8
jmp 0x793d
testl %eax, %eax
je 0x790a
cmpl $0x22, %eax
je 0x7934
cmpl $0x27, %eax
je 0x7934
movl %r13d, %r14d
jmp 0x790a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x7(%rsp), %r15
movb $0x0, (%r15)
movslq %ebp, %rax
cmpb $0x0, (%r14,%rax)
je 0x79f1
movb 0x7(%rsp), %r13b
movq %r14, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x7a32
movl %eax, %r12d
subl %ebp, %eax
movslq %eax, %rdx
movq %r14, %rdi
movl %ebp, %esi
callq 0x9d48
xorl %ebp, %ebp
testq %rax, %rax
je 0x7a21
movsbl %r13b, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x7aa0
testl %eax, %eax
je 0x7a21
movq %r14, %rdi
callq 0x9be0
leal 0x1(%r12), %ebp
cmpl %eax, %r12d
jne 0x7992
pushq $0x1
popq %rbp
jmp 0x7a21
leaq 0x37e3(%rip), %rdi      # 0xb1db
callq 0x9aec
testq %rax, %rax
je 0x7a1f
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 0x7aa0
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x7a56
cmpl $0x27, %esi
je 0x7a56
testl %esi, %esi
je 0x7a8e
testb $0x1, %dil
jne 0x7a71
jmp 0x7a80
testb $0x1, %dil
je 0x7a80
movb (%rdx), %dil
testb %dil, %dil
je 0x7a6b
cmpb %sil, %dil
jne 0x7a6e
xorl %esi, %esi
movb %sil, (%rdx)
movb (%rcx), %sil
cmpb $0x5c, %sil
je 0x7a85
movzbl %sil, %esi
cmpl $0x2f, %esi
je 0x7a8e
movb $0x1, %dil
jmp 0x7a87
xorl %edi, %edi
incl %eax
incq %rcx
jmp 0x7a3d
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r15
movl %edx, %esi
callq 0x7b00
testq %rax, %rax
je 0x7af0
movq %rax, %r14
movq (%rax), %rsi
movq %rax, %rdi
callq 0x7b70
testl %eax, %eax
je 0x7ae6
movq %r14, %rdi
callq 0x9e58
testq %rax, %rax
je 0x7ae6
movq %rbx, %rdi
movq %rax, %rsi
callq 0x9dac
pushq $0x1
popq %rax
jmp 0x7afa
movq %r14, %rdi
callq 0x7b35
jmp 0x7af8
movq %r15, %rdi
callq 0x2230
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x7b28
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
pushq $0x18
popq %rdi
callq 0x2180
testq %rax, %rax
je 0x7b2b
movq %r14, (%rax)
andq $0x0, 0x8(%rax)
movb %bl, 0x10(%rax)
jmp 0x7b2d
xorl %eax, %eax
retq
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x2230
movq 0xb477(%rip), %rsi      # 0x12fc8
addq $0x8, %rbx
movq %rbx, %rdi
callq 0x9de8
movq %r14, %rdi
callq 0xa018
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/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
movq %rsi, %r14
movq %rdi, %r15
leaq 0x10(%rdi), %r12
pushq $-0x1
popq %rcx
xorl %eax, %eax
pushq $0x1
popq %rbx
leaq 0x4(%rsp), %r13
movslq %ecx, %rcx
leaq 0x1(%rcx), %rsi
movl %esi, 0x4(%rsp)
movzbl 0x1(%r14,%rcx), %ecx
testl %ecx, %ecx
je 0x7c16
cmpl $0x5c, %ecx
setne %bpl
orb %al, %bpl
testb $0x1, %bpl
je 0x7bec
cmpl $0x2a, %ecx
setne %dl
orb %al, %dl
testb $0x1, %dl
jne 0x7bcb
cmpb $0x0, (%r12)
je 0x7c08
testb $0x1, %al
jne 0x7bfc
cmpl $0x27, %ecx
je 0x7bd9
cmpl $0x22, %ecx
jne 0x7bfc
movsbl %cl, %edi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
callq 0x7c98
jmp 0x7bfc
movsbl (%r12), %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x7c27
xorb $0x1, %bpl
movl 0x4(%rsp), %ecx
movl %ebp, %eax
jmp 0x7b92
movq %r15, %rdi
callq 0x7c42
testl %eax, %eax
jne 0x7bfc
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_O2/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
pushq $0x4
popq %rdi
callq 0x2180
xorl %ebx, %ebx
testq %rax, %rax
je 0x7c8b
movq %rax, %r15
movl %ebp, (%rax)
movq %rax, %rdi
callq 0x9e58
testq %rax, %rax
je 0x7c83
addq $0x8, %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x9dac
pushq $0x1
popq %rbx
jmp 0x7c8b
movq %r15, %rdi
callq 0x2230
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x7cc0
cmpb %dil, %al
jne 0x7cd0
movslq (%rbx), %rsi
movq %rdx, %rdi
callq 0xa0b8
decl (%rbx)
movb $0x0, (%r14)
jmp 0x7cd0
movb %dil, (%r14)
movslq (%rbx), %rsi
movq %rdx, %rdi
callq 0xa0b8
decl (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x9be0
testq %rax, %rax
je 0x7d2c
leaq 0x3458(%rip), %rsi      # 0xb155
movq %r15, %rdi
callq 0x9ffc
testl %eax, %eax
je 0x7d40
leaq 0x3752(%rip), %rsi      # 0xb462
movq %r15, %rdi
callq 0x9ffc
testl %eax, %eax
je 0x7d54
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x7e1e
movq 0x8(%r14), %rsi
leaq 0x34a4(%rip), %rdx      # 0xb1db
leaq 0x3729(%rip), %rcx      # 0xb467
jmp 0x7d66
movq 0x8(%r14), %rsi
leaq 0x340a(%rip), %rdx      # 0xb155
leaq 0x3714(%rip), %rcx      # 0xb466
jmp 0x7d66
movq 0x8(%r14), %rsi
leaq 0x3703(%rip), %rdx      # 0xb462
leaq 0x36ff(%rip), %rcx      # 0xb465
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x7d73
// File: /workspace/github_c_makefile_star2_O2/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 0x7dbb
movq %rcx, %r15
movq %rsi, %r12
movq (%rsi), %rax
movq (%rax), %rdi
callq 0x9be0
testq %rax, %rax
je 0x7dd1
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x7eba
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 0x7f9c
movq %r15, %rdi
callq 0x2080
testq %rax, %rax
je 0x7dad
movq %rax, %r15
leaq 0x367f(%rip), %rsi      # 0xb467
movq %r14, %rdi
callq 0x9b2c
testq %rax, %rax
je 0x7e19
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x7f9c
movl %eax, %ebx
movq %r14, %rdi
callq 0x2230
movq %r15, %rdi
callq 0x2120
movl %ebx, %eax
jmp 0x7daf
pushq $0x2
popq %rax
jmp 0x7daf
// File: /workspace/github_c_makefile_star2_O2/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 0x3630(%rip), %rdi      # 0xb466
callq 0x2080
xorl %ebx, %ebx
testq %rax, %rax
je 0x7ea9
movq %rax, %r12
movq %r12, %rdi
callq 0x2170
testq %rax, %rax
je 0x7e9c
movq %rax, %r13
addq $0x13, %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x8034
testl %eax, %eax
je 0x7e45
movq %r13, %rdi
callq 0x9aec
testq %rax, %rax
je 0x7ea6
movq %rax, %r13
movq 0x8(%r14), %rsi
movq %r15, %rdi
movq %rax, %rdx
movq %rax, %rcx
callq 0x7d73
movl %eax, %ebp
movq %r13, %rdi
callq 0x2230
testl %ebp, %ebp
je 0x7e45
movl %ebp, %ebx
jmp 0x7ea9
movq %r12, %rdi
callq 0x2120
jmp 0x7ea9
pushq $0x2
popq %rbx
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_O2/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 0x7f53
movq %rax, %r12
movq %r12, %rdi
callq 0x2170
testq %rax, %rax
je 0x7f4b
movq %rax, %r13
addq $0x13, %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x8034
testl %eax, %eax
je 0x7ede
movq %rbx, %rdi
movq %r13, %rsi
callq 0x7f64
movq %rax, %r13
testq %rax, %rax
jne 0x7f1f
movq %r12, %rdi
pushq $0x2
popq %rsi
callq 0x8028
movq 0x8(%r14), %rsi
movq %r15, %rdi
movq %r13, %rdx
movq %r13, %rcx
callq 0x7d73
movl %eax, %ebp
movq %r13, %rdi
callq 0x2230
testl %ebp, %ebp
je 0x7ede
movq %r12, %rdi
movl %ebp, %esi
callq 0x8028
jmp 0x7ede
movq %r12, %rdi
callq 0x2120
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_O2/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 0x7fc2
cmpl $0x1, %eax
jne 0x7fca
cmpl $0x0, 0x8(%r14)
je 0x7fca
pushq $0x1
popq %rbx
jmp 0x801a
movl $0x1, 0xc(%r14)
callq 0x27a3
pushq $0x2
popq %rbx
testq %rax, %rax
je 0x801a
movq %rax, %r15
movq %r12, %rdi
callq 0x9aec
movq %rax, (%r15)
testq %rax, %rax
je 0x8012
movq %r15, %rdi
callq 0x9e58
testq %rax, %rax
je 0x800a
addq $0x10, %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x9dac
xorl %ebx, %ebx
jmp 0x801a
movq (%r15), %rdi
callq 0x2230
movq %r15, %rdi
callq 0x2230
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/charMstr[P]minishell/sources/match_path_parts_root.c
// Function: match_path_part_root
int	match_path_part_root(t_list *path_parts, char *ref)
{
	t_list		*wild_cards;
	t_strings	strings;

	strings.str = ((t_path_part *)(path_parts->content))->path_part;
	strings.ref = ref;
	wild_cards = ((t_path_part *)(path_parts->content))->star_index;
	if (!strings.str || !strings.ref)
		return (0);
	if (!(strings.str[0] == '.'))
	{
		if (strings.ref[0] == '.')
			return (0);
	}
	else if (strings.str[0] == '.')
	{
		if (!(strings.ref[0] == '.'))
			return (0);
	}
	if (!wild_cards)
		return (!ft_strcmp(strings.str, strings.ref));
	else
		return (match_path_part(strings, wild_cards, 0, 0));
}

// Assembly:
movq (%rdi), %rcx
movq (%rcx), %rdi
testq %rdi, %rdi
sete %dl
testq %rsi, %rsi
sete %r8b
xorl %eax, %eax
orb %dl, %r8b
jne 0x805e
movq 0x8(%rcx), %rdx
cmpb $0x2e, (%rdi)
movb (%rsi), %cl
jne 0x805f
cmpb $0x2e, %cl
je 0x8064
retq
cmpb $0x2e, %cl
je 0x805e
testq %rdx, %rdx
je 0x8073
xorl %ecx, %ecx
xorl %r8d, %r8d
jmp 0x8087
pushq %rax
callq 0x9ffc
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
sete %al
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/charMstr[P]minishell/sources/match_path_parts_root.c
// Function: match_path_part
int	match_path_part(t_strings strs, t_list *wild_cards, int i, int j)
{
	while (strs.str[i] && strs.ref[j] && (strs.str[i] == strs.ref[j]))
	{
		if (strs.str[i] == '*' && match_path_check_valid_star(wild_cards, i))
			break;
		i++;
		j++;
	}
	if (ft_isonly(strs.str + i, '*') || (!strs.str[i] && !strs.ref[j]))
		return (1);
	if (!strs.ref[j] || !strs.str[i] || strs.str[i] != '*')
		return (0);
	while (strs.str[i + 1] == '*')
		i++;
	while (strs.ref[j] && strs.ref[j] != strs.str[i + 1])
		j++;
	if (!strs.ref[j])
		return (0);
	return (match_path_part(strs, wild_cards, i, j + 1) \
		|| match_path_part(strs, wild_cards, i + 1, j));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r8d, %r14d
movl %ecx, %r15d
movq %rdx, 0x10(%rsp)
leaq 0x1(%rdi), %rax
movq %rsi, (%rsp)
movq %rdi, 0x8(%rsp)
movq %rax, 0x18(%rsp)
movslq %r15d, %rbx
movslq %r14d, %rbp
movq %rbp, %rcx
shlq $0x20, %rcx
leaq (%rax,%rbx), %r13
leaq (%rsi,%rbp), %r12
movb (%rdi,%rbx), %al
testb %al, %al
je 0x8127
cmpb (%rsi,%rbp), %al
jne 0x8127
cmpb $0x2a, %al
jne 0x8106
movq 0x10(%rsp), %rdi
movl %ebx, %esi
movq %r12, 0x20(%rsp)
movq %r14, %r12
movq %rcx, %r14
callq 0x81c9
movq %r14, %rcx
movq %r12, %r14
movq 0x20(%rsp), %r12
movq 0x8(%rsp), %rdi
movq (%rsp), %rsi
testl %eax, %eax
jne 0x8127
incq %rbx
incq %rbp
movabsq $0x100000000, %rax      # imm = 0x100000000
addq %rax, %rcx
incl %r15d
incq %r13
incl %r14d
incq %r12
jmp 0x80c7
movq %rcx, %rbp
addq %rdi, %rbx
movq %rbx, %rdi
pushq $0x2a
popq %rsi
callq 0x9424
testl %eax, %eax
jne 0x81aa
movb (%rbx), %cl
sarq $0x20, %rbp
movq (%rsp), %rax
movb (%rax,%rbp), %dl
testb %cl, %cl
je 0x81c0
cmpb $0x2a, %cl
jne 0x81af
testb %dl, %dl
je 0x81af
movb (%r13), %al
incl %r15d
incq %r13
cmpb $0x2a, %al
je 0x8156
leal -0x1(%r15), %ecx
movb (%r12), %dl
testb %dl, %dl
je 0x81af
cmpb %al, %dl
je 0x817c
incl %r14d
incq %r12
jmp 0x8168
leal 0x1(%r14), %r8d
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
movq (%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x8087
movq %rbx, %rdi
movq (%rsp), %rsi
testl %eax, %eax
movq 0x18(%rsp), %rax
je 0x80b2
pushq $0x1
popq %rax
jmp 0x81b1
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
testb %dl, %dl
sete %al
jmp 0x81b1
// File: /workspace/github_c_makefile_star2_O2/charMstr[P]minishell/sources/match_path_parts_root.c
// Function: match_path_check_valid_star
int	match_path_check_valid_star(t_list *wild_cards, int index)
{
	while (wild_cards)
	{
		if (*((int*)(wild_cards->content)) == index)
			return (1);
		wild_cards = wild_cards->next;
	}
	return (0);
}

// Assembly:
pushq $0x1
popq %rax
testq %rdi, %rdi
je 0x81de
movq (%rdi), %rcx
cmpl %esi, (%rcx)
je 0x81e0
movq 0x8(%rdi), %rdi
jmp 0x81cc
xorl %eax, %eax
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/charMstr[P]minishell/sources/quote_removal.c
// Function: quote_removal_unquoted_part
void	quote_removal_unquoted_part(char *str, int i, t_no_unquote *no)
{
	while (str[i])
	{
		if (i == no->start)
			if (!quote_removal_skip_protected_part(str, &i, no))
				return ;
		if (str[i] == '\'' || str[i] == '\"')
		{
			if (str[i] == '\'')
			{
				if (!quote_removal_eat_char(str, &i, no))
					return ;
				while (str[i] && str[i] != '\'')
					i++;
				if (!quote_removal_eat_char(str, &i, no))
					return ;
			}
			else
				return (quote_removal_doubly_quoted_part(str, i, no));
		}
		if (str[i] && str[i] == '\\')
			if (!quote_removal_eat_char(str, &i, no))
				return ;
		i++;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rdi, %r14
leaq 0xc(%rsp), %r15
movl %esi, 0xc(%rsp)
movslq %esi, %rax
movb (%r14,%rax), %al
testb %al, %al
je 0x82ac
cmpl (%rbx), %esi
jne 0x822e
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x82ca
testl %eax, %eax
je 0x82ac
movslq 0xc(%rsp), %rsi
movb (%r14,%rsi), %al
cmpb $0x27, %al
je 0x823c
movzbl %al, %ecx
cmpl $0x22, %ecx
jne 0x828b
jmp 0x82b6
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x82f5
testl %eax, %eax
je 0x82ac
movslq 0xc(%rsp), %rax
movq %rax, %rcx
addq %r14, %rcx
movzbl (%rcx), %edx
testl %edx, %edx
je 0x826c
cmpl $0x27, %edx
je 0x826c
incl %eax
incq %rcx
jmp 0x8259
movl %eax, 0xc(%rsp)
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x82f5
testl %eax, %eax
je 0x82ac
movslq 0xc(%rsp), %rsi
movb (%r14,%rsi), %al
cmpb $0x5c, %al
jne 0x82a5
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x82f5
testl %eax, %eax
je 0x82ac
movl 0xc(%rsp), %esi
incl %esi
jmp 0x81f8
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %r14, %rdi
movq %rbx, %rdx
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x8370
// File: /workspace/github_c_makefile_star2_O2/charMstr[P]minishell/sources/quote_removal.c
// Function: quote_removal_skip_protected_part
int		quote_removal_skip_protected_part(char *str, int *i, t_no_unquote *no)
{
	if (!str[*i])
		return (0);
	while (str[*i] && *i < no->end)
		(*i)++;
	if (!str[*i])
		return (0);
	return (1);
}

// Assembly:
movslq (%rsi), %rax
cmpb $0x0, (%rdi,%rax)
je 0x82f2
movb $0x1, %cl
testb %cl, %cl
je 0x82ea
cmpl 0x4(%rdx), %eax
jge 0x82ea
incl %eax
movl %eax, (%rsi)
movslq %eax, %rcx
movb (%rdi,%rcx), %cl
jmp 0x82d5
xorl %eax, %eax
testb %cl, %cl
setne %al
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/charMstr[P]minishell/sources/quote_removal.c
// Function: quote_removal_eat_char
int		quote_removal_eat_char(char *str, int *i, t_no_unquote *no)
{
	if (!str[*i])
		return (0);
	ft_memmove(str + *i, str + *i + 1, ft_strlen(str + *i));
	no->end--;
	no->start--;
	if (*i == no->start)
	{
		return (quote_removal_skip_protected_part(str, i, no));
	}
	return (1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movslq (%rsi), %r12
cmpb $0x0, (%rdi,%r12)
je 0x835f
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
addq %rdi, %r12
leaq 0x1(%r12), %r13
movq %r12, %rdi
callq 0x9be0
movq %r12, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x9568
movq (%rbx), %xmm0
pcmpeqd %xmm1, %xmm1
paddd %xmm0, %xmm1
movq %xmm1, (%rbx)
movd %xmm1, %eax
cmpl %eax, (%r14)
jne 0x8363
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x82ca
xorl %eax, %eax
jmp 0x8366
pushq $0x1
popq %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/charMstr[P]minishell/sources/quote_removal.c
// Function: quote_removal_doubly_quoted_part
void	quote_removal_doubly_quoted_part(char *str, int i, t_no_unquote *no)
{
	if (!quote_removal_eat_char(str, &i, no))
		return ;
	while (str[i])
	{
		if (i == no->start)
			if (!quote_removal_skip_protected_part(str, &i, no))
				return ;
		if (str[i] && str[i] == '\"')
		{
			if (!quote_removal_eat_char(str, &i, no))
				return ;
			return (quote_removal_unquoted_part(str, i, no));
		}
		if (str[i] == '\\' && str[i + 1] && (str[i + 1] == '\\' \
				|| str[i + 1] == '\"' || str[i + 1] == '$' \
				|| str[i + 1] == '\n' || str[i + 1] == '`'))
			if (!quote_removal_eat_char(str, &i, no))
				return ;
		i++;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
leaq 0x4(%rsp), %rax
movl %esi, (%rax)
movq %rax, %rsi
callq 0x82f5
testl %eax, %eax
je 0x844b
leaq 0x4(%rsp), %r15
movl (%r15), %eax
movabsq $0x4400000000000005, %r12 # imm = 0x4400000000000005
movslq %eax, %rcx
movb (%r14,%rcx), %dl
testb %dl, %dl
je 0x844b
cmpl (%rbx), %eax
jne 0x83d7
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x82ca
testl %eax, %eax
je 0x844b
movl 0x4(%rsp), %eax
movslq %eax, %rcx
movb (%r14,%rcx), %dl
cmpb $0x5c, %dl
je 0x83e6
movzbl %dl, %ecx
cmpl $0x22, %ecx
jne 0x8415
jmp 0x841d
movzbl 0x1(%r14,%rcx), %ecx
leal -0x22(%rcx), %edx
cmpl $0x3e, %edx
ja 0x83fa
btq %rdx, %r12
jb 0x83ff
cmpl $0xa, %ecx
jne 0x8415
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x82f5
testl %eax, %eax
je 0x844b
movl 0x4(%rsp), %eax
incl %eax
movl %eax, 0x4(%rsp)
jmp 0x83a7
leaq 0x4(%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x82f5
testl %eax, %eax
je 0x844b
movl 0x4(%rsp), %esi
movq %r14, %rdi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x81e4
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/charMstr[P]minishell/sources/list_to_cmd_root.c
// Function: list_to_cmd_root
int				list_to_cmd_root(t_token *token_node)
{
	t_simple_cmd	*cmd;
	t_list			*tokens_list;
	t_list			*redirections;

	tokens_list = (t_list *)(token_node->str);
	if (!(cmd = init_t_simple_cmd()))
		return (0);
	redirections = list_to_cmd_skim_redirections(&tokens_list);
	/* OK
	printf("for the command words:\n");
	debug_tokens_list(tokens_list);
	printf("for the redirections:\n");
	debug_tokens_list(redirections);
	*/
	if (!list_to_cmd_fill_argv_array(cmd, tokens_list))
	{
		ft_lstclear(&redirections, del_token);
		free_t_simple_cmd(cmd);
		return (0);
	}
	if (!list_to_cmd_fill_redirections_fields(cmd, redirections))
	{
		ft_lstclear(&redirections, del_token);
		free_t_simple_cmd(cmd);
		return (0);
	}
	ft_lstclear(&redirections, del_token);
	ft_lstclear(&tokens_list, del_token);
	token_node->str = (char *)cmd;
	token_node->id = CMD;
	//debug_simple_cmd(cmd);
	return (1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r15
movq (%rdi), %rax
movq %rax, 0x10(%rsp)
callq 0x853a
xorl %ebx, %ebx
testq %rax, %rax
je 0x8529
movq %rax, %r14
leaq 0x10(%rsp), %r13
movq %r13, %rdi
callq 0x855b
movq %rax, %r12
movq %rax, 0x8(%rsp)
movq (%r13), %rsi
movq %r14, %rdi
callq 0x85cb
testl %eax, %eax
je 0x8510
movq %r14, %rdi
movq %r12, %rsi
callq 0x8670
movl %eax, %ebp
leaq -0x5d9a(%rip), %rsi     # 0x2747
leaq 0x8(%rsp), %rdi
callq 0x9de8
testl %ebp, %ebp
je 0x8521
leaq -0x5daf(%rip), %rsi     # 0x2747
leaq 0x10(%rsp), %rdi
callq 0x9de8
movq %r14, (%r15)
movl $0x10, 0x8(%r15)
pushq $0x1
popq %rbx
jmp 0x8529
leaq -0x5dd0(%rip), %rsi     # 0x2747
leaq 0x8(%rsp), %rdi
callq 0x9de8
movq %r14, %rdi
callq 0x8634
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/charMstr[P]minishell/sources/list_to_cmd_root.c
// Function: list_to_cmd_skim_redirections
t_list			*list_to_cmd_skim_redirections(t_list **tokens)
{
	t_list *redirections;
	t_list *couple;

	redirections = NULL;
	while (*tokens)
	{
		if (tklst_id(*tokens) == GREAT || tklst_id(*tokens) == DGREAT \
					|| tklst_id(*tokens) == LESS)
		{
			couple = *tokens;
			*tokens = (*tokens)->next->next;
			couple->next->next = NULL;
			ft_lstadd_back(&redirections, couple);
		}
		else
			tokens = &(*tokens)->next;
	}
	return (redirections);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsp, %r14
andq $0x0, (%r14)
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x85bf
callq 0x5fd5
cmpl $0xc, %eax
je 0x8595
movq (%rbx), %rdi
callq 0x5fd5
cmpl $0xd, %eax
je 0x8595
movq (%rbx), %rdi
callq 0x5fd5
cmpl $0xa, %eax
jne 0x85b6
movq (%rbx), %rsi
movq 0x8(%rsi), %rax
movq 0x8(%rax), %rax
movq %rax, (%rbx)
movq 0x8(%rsi), %rax
andq $0x0, 0x8(%rax)
movq %r14, %rdi
callq 0x9dac
jmp 0x8569
movq (%rbx), %rbx
addq $0x8, %rbx
jmp 0x8569
movq (%rsp), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/charMstr[P]minishell/sources/list_to_cmd_root.c
// Function: list_to_cmd_fill_argv_array
int				list_to_cmd_fill_argv_array(t_simple_cmd *cmd, t_list *tokens)
{
	int		size;
	int		index;
	t_list	*copy;

	copy = tokens;
	size = 0;
	index = 0;
	while (copy)
	{
		copy = copy->next;
		size++;
	}
	if (!(cmd->argv = malloc(sizeof(char *) * (size + 1))))
		return (0);
	cmd->argv[size] = NULL;
	while (tokens)
	{
		cmd->argv[index] = ((t_token *)tokens->content)->str;
		((t_token *)tokens->content)->str = NULL;
		tokens = tokens->next;
		index++;
	}
	return (1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x8
popq %r15
movq %rsi, %rax
testq %rax, %rax
je 0x85ec
movq 0x8(%rax), %rax
addq $0x8, %r15
jmp 0x85dd
movq %r15, %rdi
callq 0x2180
movq %rax, 0x8(%r14)
testq %rax, %rax
je 0x862c
andq $0x0, -0x8(%rax,%r15)
xorl %ecx, %ecx
pushq $0x1
popq %rax
testq %rbx, %rbx
je 0x862e
movq (%rbx), %rdx
movq (%rdx), %rdx
movq 0x8(%r14), %rsi
movq %rdx, (%rsi,%rcx)
movq (%rbx), %rdx
andq $0x0, (%rdx)
movq 0x8(%rbx), %rbx
addq $0x8, %rcx
jmp 0x8608
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/charMstr[P]minishell/sources/list_to_cmd_assist.c
// Function: list_to_cmd_fill_redirections_fields
int		list_to_cmd_fill_redirections_fields(t_simple_cmd *cmd, t_list *tokens)
{
	int id;

	while (tokens)
	{
		id = tklst_id(tokens);
		if (id == GREAT || id == DGREAT || id == LESS)
		{
			if (!list_to_cmd_fill_redirections_fields2(cmd, id, tokens))
				return (0);
			tokens = tokens->next;
		}
		tokens = tokens->next;
	}
	return (1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
pushq $0x1
popq %rbx
movl $0x3400, %ebp           # imm = 0x3400
testq %r14, %r14
je 0x86b9
movq %r14, %rdi
callq 0x5fd5
cmpl $0xd, %eax
ja 0x86b1
btl %eax, %ebp
jae 0x86b1
movq %r15, %rdi
movl %eax, %esi
movq %r14, %rdx
callq 0x86c6
testl %eax, %eax
je 0x86b7
movq 0x8(%r14), %r14
movq 0x8(%r14), %r14
jmp 0x8685
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq