LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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 0x7bfa
callq 0x9bf8
testl %eax, %eax
je 0x7bfa
movl $0x1, %r15d
movzbl (%r14,%r15), %eax
testl %eax, %eax
je 0x7bfa
cmpl $0x3d, %eax
je 0x7bf7
movsbl %al, %edi
callq 0x9bf8
testl %eax, %eax
je 0x7bfa
incq %r15
jmp 0x7bd8
movl %r15d, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x7c66
movzbl 0x1(%rdi,%rsi), %eax
cmpq $0x3a, %rax
ja 0x7c66
movabsq $0x400800000000001, %rcx # imm = 0x400800000000001
btq %rax, %rcx
jae 0x7c66
movq %rdx, %rbx
callq 0xab54
movl (%rbx), %esi
movq %r15, %rdi
movq %r14, %rdx
callq 0xab9c
movl %eax, %ebp
testl %eax, %eax
je 0x7c66
movl (%rbx), %r15d
movq %r14, %rdi
callq 0xa5c8
addl %r15d, %eax
movl %eax, (%rbx)
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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, %ebp
movq %rsi, %r14
movq %rdi, %r15
movl %edx, 0x4(%rsp)
movb $0x0, 0x3(%rsp)
movq (%rdi), %rdi
movslq %edx, %rcx
leaq 0x1(%rcx), %rsi
movl %esi, 0x4(%rsp)
movl $0x1, %eax
cmpb $0x0, 0x1(%rdi,%rcx)
je 0x7da6
xorl %r13d, %r13d
leaq 0x4(%rsp), %r12
cmpl %ebp, %edx
jne 0x7d00
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x7c02
testl %eax, %eax
je 0x7da4
cmpb $0x0, 0x3(%rsp)
setne %al
orb %r13b, %al
testb $0x1, %al
jne 0x7d1f
movq (%r15), %rax
movslq 0x4(%rsp), %rcx
movb $0x1, %bl
cmpb $0x5c, (%rax,%rcx)
je 0x7d7f
testb $0x1, %r13b
jne 0x7d48
movq (%r15), %rax
movslq 0x4(%rsp), %rcx
movzbl (%rax,%rcx), %eax
cmpl $0x27, %eax
je 0x7d3b
cmpl $0x22, %eax
jne 0x7d48
movsbl %al, %edi
leaq 0x3(%rsp), %rsi
callq 0x8028
cmpb $0x0, 0x3(%rsp)
setne %al
orb %al, %r13b
testb $0x1, %r13b
je 0x7d5d
xorl %ebx, %ebx
jmp 0x7d7f
movq (%r15), %rax
movslq 0x4(%rsp), %rcx
xorl %ebx, %ebx
cmpb $0x3a, (%rax,%rcx)
jne 0x7d7f
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x7db5
testl %eax, %eax
je 0x7da4
movq (%r15), %rax
movslq 0x4(%rsp), %rdx
leaq 0x1(%rdx), %rcx
movl %ecx, 0x4(%rsp)
cmpb $0x0, 0x1(%rax,%rdx)
movl %ebx, %r13d
jne 0x7ce6
movl $0x1, %eax
jmp 0x7da6
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_O1/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 0x7df3
movq %rdx, %rbx
incq %rsi
movl %esi, (%rdx)
callq 0x7c73
testl %eax, %eax
je 0x7df1
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x7c02
decl (%rbx)
movl $0x1, %eax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O1/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 0xa4b4
testq %rax, %rax
je 0x7e57
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7e60
movq %rsp, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x7ee4
movl %eax, %ebp
movq %rbx, %rdi
callq 0x2240
testl %ebp, %ebp
je 0x7e48
movq (%rsp), %rax
jmp 0x7e59
leaq 0x2b3(%rip), %rsi       # 0x8102
movq %rsp, %rdi
callq 0xa820
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x7edb
movq %rdi, %rbx
incq %r15
testl %esi, %esi
jne 0x7e9d
movl $0x1, %ebp
cmpb $0x5c, %al
jne 0x7e9d
movl %r15d, %r12d
movslq %r12d, %r15
movb 0x1(%rbx,%r15), %al
incq %r15
movl %ebp, %esi
testb %al, %al
jne 0x7e7a
jmp 0x7edb
xorl %ebp, %ebp
cmpl $0x1, %esi
je 0x7e87
movl %r15d, %r14d
cmpb $0x2f, %al
jne 0x7e87
movl %r14d, %r12d
movslq %r14d, %r14
incq %r14
jmp 0x7ec1
movq %rbx, %rdi
movq %r14, %rsi
callq 0xab54
movzbl (%rbx,%r14), %eax
cmpl $0x2f, %eax
je 0x7eb6
testl %eax, %eax
je 0x7e87
cmpl $0x22, %eax
je 0x7eab
cmpl $0x27, %eax
je 0x7eab
jmp 0x7e8a
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x7f69
movl %edx, %r12d
movq %rdi, %r14
leaq 0x7(%rsp), %r15
movb 0x7(%rsp), %r13b
movq %r14, %rdi
movl %r12d, %esi
movq %r15, %rdx
callq 0x7fb4
movl %eax, %ebp
subl %r12d, %eax
movslq %eax, %rdx
movq %r14, %rdi
movl %r12d, %esi
callq 0xa774
xorl %r12d, %r12d
testq %rax, %rax
je 0x7fa2
movsbl %r13b, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x803c
testl %eax, %eax
je 0x7fa2
movq %r14, %rdi
callq 0xa5c8
cmpl %eax, %ebp
je 0x7f9c
movslq %ebp, %rax
leaq 0x1(%rax), %r12
cmpb $0x0, 0x1(%r14,%rax)
jne 0x7f0b
jmp 0x7f69
leaq 0x326b(%rip), %rdi      # 0xb1db
callq 0xa4b4
testq %rax, %rax
je 0x7f97
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 0x803c
xorl %r12d, %r12d
jmp 0x7fa2
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_O1/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, %sil
movzbl (%rcx), %edi
movb $0x1, %r8b
cmpl $0x22, %edi
je 0x7fd9
movb $0x1, %r8b
cmpl $0x27, %edi
je 0x7fd9
testl %edi, %edi
je 0x8027
xorl %r8d, %r8d
andb %sil, %r8b
cmpb $0x1, %r8b
jne 0x7ff4
movb (%rdx), %r8b
testb %r8b, %r8b
je 0x7ff1
cmpb %dil, %r8b
jne 0x7ff4
xorl %edi, %edi
movb %dil, (%rdx)
movb $0x1, %dil
testb $0x1, %sil
je 0x801e
movb (%rcx), %r8b
cmpb $0x5c, %r8b
jne 0x800a
xorl %edi, %edi
jmp 0x801e
cmpb $0x2f, %r8b
setne %r8b
notb %sil
orb %r8b, %sil
testb $0x1, %sil
je 0x8027
incl %eax
incq %rcx
movl %edi, %esi
jmp 0x7fbf
retq
// File: /workspace/github_c_makefile_star2_O1/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 %rsi, %rbx
movq %rdi, %r15
testq %rdi, %rdi
je 0x8073
movl %edx, %ebp
movl $0x18, %edi
callq 0x2190
testq %rax, %rax
je 0x8073
movq %rax, %r14
movq %r15, (%rax)
movq $0x0, 0x8(%rax)
movb %bpl, 0x10(%rax)
jmp 0x8076
xorl %r14d, %r14d
testq %r14, %r14
je 0x80b3
movq (%r14), %rsi
movq %r14, %rdi
callq 0x8138
testl %eax, %eax
je 0x80a9
movq %r14, %rdi
callq 0xa894
testq %rax, %rax
je 0x80a9
movq %rbx, %rdi
movq %rax, %rsi
callq 0xa7e4
movl $0x1, %eax
jmp 0x80bd
movq %r14, %rdi
callq 0x8102
jmp 0x80bb
movq %r15, %rdi
callq 0x2240
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x80f5
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movl $0x18, %edi
callq 0x2190
testq %rax, %rax
je 0x80f8
movq %r14, (%rax)
movq $0x0, 0x8(%rax)
movb %bl, 0x10(%rax)
jmp 0x80fa
xorl %eax, %eax
retq
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 %rbx
subq $0x10, %rsp
leaq 0x8(%rsp), %rbx
movq %rdi, (%rbx)
movq (%rdi), %rdi
callq 0x2240
movq 0x9eaa(%rip), %rsi      # 0x11fc8
movq (%rbx), %rdi
addq $0x8, %rdi
callq 0xa820
movq %rbx, %rdi
callq 0xaa9c
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x81ef
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 0x81b3
cmpb $0x2a, %al
setne %dl
orb %cl, %dl
testb $0x1, %dl
jne 0x818f
cmpb $0x0, 0x10(%r15)
je 0x81e1
testb $0x1, %cl
jne 0x81c3
cmpb $0x27, %al
je 0x81a0
movzbl %al, %ecx
cmpl $0x22, %ecx
jne 0x81c3
movsbl %al, %edi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
callq 0x8275
jmp 0x81c3
movsbl 0x10(%r15), %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x8200
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 0x816d
jmp 0x81ef
movq %r15, %rdi
callq 0x821b
testl %eax, %eax
jne 0x81c3
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_O1/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 0x8268
movq %rax, %r15
movl %ebp, (%rax)
movq %rax, %rdi
callq 0xa894
testq %rax, %rax
je 0x8260
addq $0x8, %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0xa7e4
movl $0x1, %ebx
jmp 0x8268
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_O1/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 0x829d
cmpb %dil, %al
jne 0x82ad
movslq (%rbx), %rsi
movq %rdx, %rdi
callq 0xab54
decl (%rbx)
movb $0x0, (%r14)
jmp 0x82ad
movb %dil, (%r14)
movslq (%rbx), %rsi
movq %rdx, %rdi
callq 0xab54
decl (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/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 0xa5c8
testq %rax, %rax
je 0x830c
leaq 0x2e78(%rip), %rsi      # 0xb155
movq %r15, %rdi
callq 0xaa70
testl %eax, %eax
je 0x8320
leaq 0x3172(%rip), %rsi      # 0xb462
movq %r15, %rdi
callq 0xaa70
testl %eax, %eax
je 0x8334
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x8400
movq 0x8(%r14), %rsi
leaq 0x2ec4(%rip), %rdx      # 0xb1db
leaq 0x3149(%rip), %rcx      # 0xb467
jmp 0x8346
movq 0x8(%r14), %rsi
leaq 0x2e2a(%rip), %rdx      # 0xb155
leaq 0x3134(%rip), %rcx      # 0xb466
jmp 0x8346
movq 0x8(%r14), %rsi
leaq 0x3123(%rip), %rdx      # 0xb462
leaq 0x311f(%rip), %rcx      # 0xb465
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x8353
// File: /workspace/github_c_makefile_star2_O1/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 0x839b
movq %rcx, %r15
movq %rsi, %r12
movq (%rsi), %rax
movq (%rax), %rdi
callq 0xa5c8
testq %rax, %rax
je 0x83b1
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x84ae
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 0x85a8
movq %r15, %rdi
callq 0x2080
testq %rax, %rax
je 0x838d
movq %rax, %r15
leaq 0x309f(%rip), %rsi      # 0xb467
movq %r14, %rdi
callq 0xa4f8
testq %rax, %rax
je 0x83f9
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x85a8
movl %eax, %ebx
movq %r14, %rdi
callq 0x2240
movq %r15, %rdi
callq 0x2130
movl %ebx, %eax
jmp 0x838f
movl $0x2, %eax
jmp 0x838f
// File: /workspace/github_c_makefile_star2_O1/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 0x304e(%rip), %rdi      # 0xb466
callq 0x2080
xorl %ebx, %ebx
testq %rax, %rax
je 0x849d
movq %rax, %r12
movq %rax, %rdi
callq 0x2180
testq %rax, %rax
je 0x848a
movq %rax, %r13
addq $0x13, %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x8644
testl %eax, %eax
je 0x847a
movq %r13, %rdi
callq 0xa4b4
testq %rax, %rax
je 0x8494
movq %rax, %r13
movq 0x8(%r14), %rsi
movq %r15, %rdi
movq %rax, %rdx
movq %rax, %rcx
callq 0x8353
movl %eax, %ebp
movq %r13, %rdi
callq 0x2240
testl %ebp, %ebp
jne 0x849b
movq %r12, %rdi
callq 0x2180
movq %rax, %r13
testq %rax, %rax
jne 0x8437
movq %r12, %rdi
callq 0x2130
jmp 0x849d
movl $0x2, %ebx
jmp 0x849d
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_O1/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 0x855b
movq %rax, %r12
movq %rax, %rdi
callq 0x2180
testq %rax, %rax
je 0x8553
movq %rax, %r13
addq $0x13, %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x8644
testl %eax, %eax
je 0x8543
movq %rbx, %rdi
movq %r13, %rsi
callq 0x856c
movq %rax, %r13
testq %rax, %rax
jne 0x8519
movq %r12, %rdi
movl $0x2, %esi
callq 0x8636
movq 0x8(%r14), %rsi
movq %r15, %rdi
movq %r13, %rdx
movq %r13, %rcx
callq 0x8353
movl %eax, %ebp
movq %r13, %rdi
callq 0x2240
testl %ebp, %ebp
je 0x8543
movq %r12, %rdi
movl %ebp, %esi
callq 0x8636
movq %r12, %rdi
callq 0x2180
movq %rax, %r13
testq %rax, %rax
jne 0x84e6
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_O1/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
movl 0xc(%rdi), %eax
testl %eax, %eax
je 0x85d0
cmpl $0x1, %eax
jne 0x85d7
movl $0x1, %ebp
cmpl $0x0, 0x8(%rbx)
jne 0x8629
testl %eax, %eax
jne 0x85d7
movl $0x1, 0xc(%rbx)
callq 0x27d6
movl $0x2, %ebp
testq %rax, %rax
je 0x8629
movq %rax, %r14
movq %r15, %rdi
callq 0xa4b4
movq %rax, (%r14)
testq %rax, %rax
je 0x8621
movq %r14, %rdi
callq 0xa894
testq %rax, %rax
je 0x8619
addq $0x10, %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0xa7e4
xorl %ebp, %ebp
jmp 0x8629
movq (%r14), %rdi
callq 0x2240
movq %r14, %rdi
callq 0x2240
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x866e
movq 0x8(%rcx), %rdx
cmpb $0x2e, (%rdi)
movb (%rsi), %cl
jne 0x866f
cmpb $0x2e, %cl
je 0x8674
retq
cmpb $0x2e, %cl
je 0x866e
testq %rdx, %rdx
je 0x8683
xorl %ecx, %ecx
xorl %r8d, %r8d
jmp 0x8697
pushq %rax
callq 0xaa70
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
sete %al
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/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
pushq %rax
movl %r8d, %r13d
movl %ecx, %r12d
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x1(%rdi), %rax
movq %rax, (%rsp)
movslq %r12d, %rbp
movb (%r15,%rbp), %cl
testb %cl, %cl
je 0x8707
movslq %r13d, %rax
cmpb (%r14,%rax), %cl
jne 0x8701
testq %rbx, %rbx
je 0x86ea
cmpb $0x2a, %cl
jne 0x86ea
movq %rbx, %rcx
movq (%rcx), %rdx
cmpl %ebp, (%rdx)
je 0x8701
movq 0x8(%rcx), %rcx
testq %rcx, %rcx
jne 0x86da
incl %r12d
incq %rax
incl %r13d
movb 0x1(%r15,%rbp), %cl
incq %rbp
testb %cl, %cl
jne 0x86c7
jmp 0x8707
movl %ebp, %r12d
movl %eax, %r13d
addq %r15, %rbp
movq %rbp, %rdi
movl $0x2a, %esi
callq 0x9c20
movl %eax, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jne 0x879e
movb (%rbp), %cl
movslq %r13d, %rdx
testb %cl, %cl
jne 0x8733
cmpb $0x0, (%r14,%rdx)
je 0x879e
xorl %eax, %eax
cmpb $0x2a, %cl
jne 0x879e
cmpb $0x0, (%r14,%rdx)
je 0x879e
movslq %r12d, %rcx
addq (%rsp), %rcx
movb (%rcx), %sil
incl %r12d
incq %rcx
cmpb $0x2a, %sil
je 0x8748
leal -0x1(%r12), %ecx
addq %r14, %rdx
movb (%rdx), %dil
incl %r13d
testb %dil, %dil
je 0x8772
incq %rdx
cmpb %sil, %dil
jne 0x875f
testb %dil, %dil
je 0x879e
leal -0x1(%r13), %ebp
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl %r13d, %r8d
callq 0x8697
movl %eax, %ecx
movl %ebp, %r13d
movl $0x1, %eax
testl %ecx, %ecx
je 0x86b9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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:
xorl %eax, %eax
testq %rdi, %rdi
je 0x87c6
movq (%rdi), %rcx
cmpl %esi, (%rcx)
je 0x87c1
movq 0x8(%rdi), %rdi
jmp 0x87af
movl $0x1, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O1/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
movl %esi, 0xc(%rsp)
movslq %esi, %rax
cmpb $0x0, (%rdi,%rax)
je 0x88bf
movq %rdx, %rbx
movq %rdi, %r14
leaq 0xc(%rsp), %r15
cmpl (%rbx), %esi
jne 0x881f
movl 0x4(%rbx), %ecx
movslq %ecx, %rdx
cmpq %rdx, %rax
jge 0x881f
movb 0x1(%r14,%rax), %sil
testb %sil, %sil
je 0x88b9
incq %rax
cmpq %rax, %rdx
jne 0x87fc
movl %ecx, 0xc(%rsp)
testb %sil, %sil
je 0x88bf
movslq 0xc(%rsp), %rsi
movzbl (%r14,%rsi), %eax
cmpl $0x27, %eax
je 0x8838
cmpl $0x22, %eax
jne 0x887e
jmp 0x88c9
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x891e
testl %eax, %eax
je 0x88bf
movslq 0xc(%rsp), %rax
movq %rax, %rcx
addq %r14, %rcx
movzbl (%rcx), %edx
testl %edx, %edx
je 0x8868
cmpl $0x27, %edx
je 0x8868
incl %eax
incq %rcx
jmp 0x8855
movl %eax, 0xc(%rsp)
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x891e
testl %eax, %eax
je 0x88bf
movslq 0xc(%rsp), %rax
cmpb $0x5c, (%r14,%rax)
jne 0x889c
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x891e
testl %eax, %eax
je 0x88bf
movslq 0xc(%rsp), %rcx
leaq 0x1(%rcx), %rax
movl %eax, 0xc(%rsp)
cmpb $0x0, 0x1(%r14,%rcx)
movl %eax, %esi
jne 0x87ed
jmp 0x88bf
incl %eax
movl %eax, 0xc(%rsp)
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 0x89ba
// File: /workspace/github_c_makefile_star2_O1/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 0x891b
movslq (%rsi), %rax
cmpb $0x0, (%rdi,%rax)
setne %cl
je 0x8917
cmpl 0x4(%rdx), %eax
jge 0x8917
leal 0x1(%rax), %r8d
movl %r8d, (%rsi)
cmpb $0x0, 0x1(%rdi,%rax)
setne %cl
je 0x8917
incq %rax
movslq 0x4(%rdx), %r9
incl %r8d
cmpq %r9, %rax
jl 0x88fb
movzbl %cl, %eax
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movslq (%rsi), %r12
xorl %ebp, %ebp
cmpb $0x0, (%rdi,%r12)
je 0x89a9
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
addq %rdi, %r12
leaq 0x1(%r12), %r13
movq %r12, %rdi
callq 0xa5c8
movq %r12, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x9e04
decl 0x4(%rbx)
movl (%rbx), %ecx
decl %ecx
movl %ecx, (%rbx)
movslq (%r14), %rax
cmpl %ecx, %eax
jne 0x89a4
cmpb $0x0, (%r15,%rax)
je 0x89a9
movl $0x1, %ebp
cmpl 0x4(%rbx), %eax
jge 0x89a9
leal 0x1(%rax), %ecx
movl %ecx, (%r14)
movb 0x1(%r15,%rax), %dl
testb %dl, %dl
je 0x899a
incq %rax
movslq 0x4(%rbx), %rsi
incl %ecx
cmpq %rsi, %rax
jl 0x8980
xorl %ebp, %ebp
testb %dl, %dl
setne %bpl
jmp 0x89a9
movl $0x1, %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_O1/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 0x891e
testl %eax, %eax
je 0x8a8e
movl 0x4(%rsp), %ecx
movslq %ecx, %rax
cmpb $0x0, (%r14,%rax)
je 0x8a8e
leaq 0x4(%rsp), %r15
movabsq $0x4400000000000005, %r12 # imm = 0x4400000000000005
cmpl (%rbx), %ecx
jne 0x8a2a
movl 0x4(%rbx), %ecx
movslq %ecx, %rdx
cmpq %rdx, %rax
jge 0x8a2a
movb 0x1(%r14,%rax), %sil
testb %sil, %sil
je 0x8a88
incq %rax
cmpq %rax, %rdx
jne 0x8a0f
movl %ecx, 0x4(%rsp)
testb %sil, %sil
je 0x8a8e
movslq 0x4(%rsp), %rax
movzbl (%r14,%rax), %ecx
cmpl $0x5c, %ecx
je 0x8a40
cmpl $0x22, %ecx
jne 0x8a6b
jmp 0x8a9a
movzbl 0x1(%r14,%rax), %eax
leal -0x22(%rax), %ecx
cmpl $0x3e, %ecx
ja 0x8a54
btq %rcx, %r12
jb 0x8a59
cmpl $0xa, %eax
jne 0x8a6b
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x891e
testl %eax, %eax
je 0x8a8e
movslq 0x4(%rsp), %rcx
leaq 0x1(%rcx), %rax
movl %eax, 0x4(%rsp)
cmpb $0x0, 0x1(%r14,%rcx)
movl %eax, %ecx
jne 0x8a00
jmp 0x8a8e
incl %eax
movl %eax, 0x4(%rsp)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x4(%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x891e
testl %eax, %eax
je 0x8a8e
movl 0x4(%rsp), %esi
movq %r14, %rdi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x87c8
// File: /workspace/github_c_makefile_star2_O1/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 %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r15
movq (%rdi), %rax
movq %rax, 0x8(%rsp)
callq 0x8bb0
xorl %ebx, %ebx
testq %rax, %rax
je 0x8ba1
movq %rax, %r14
leaq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0x8bd9
movq %rax, (%rsp)
movq (%r12), %rsi
movq %r14, %rdi
callq 0x8c58
testl %eax, %eax
je 0x8b8a
movq %rsp, %r12
movq (%r12), %rsi
movq %r14, %rdi
callq 0x8d20
movl %eax, %ebp
leaq -0x63d2(%rip), %rsi     # 0x2789
movq %r12, %rdi
callq 0xa820
testl %ebp, %ebp
je 0x8b99
leaq -0x63e5(%rip), %rsi     # 0x2789
leaq 0x8(%rsp), %rdi
callq 0xa820
movq %r14, (%r15)
movl $0x10, 0x8(%r15)
movl $0x1, %ebx
jmp 0x8ba1
leaq -0x6408(%rip), %rsi     # 0x2789
movq %rsp, %rdi
callq 0xa820
movq %r14, %rdi
callq 0x8ce2
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 $0x0, (%rsp)
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x8c4c
movq %rsp, %r14
callq 0x63f7
cmpl $0xc, %eax
je 0x8c17
movq (%rbx), %rdi
callq 0x63f7
cmpl $0xd, %eax
je 0x8c17
movq (%rbx), %rdi
callq 0x63f7
cmpl $0xa, %eax
jne 0x8c43
movq (%rbx), %rsi
movq 0x8(%rsi), %rax
movq 0x8(%rax), %rax
movq %rax, (%rbx)
movq 0x8(%rsi), %rax
movq $0x0, 0x8(%rax)
movq %r14, %rdi
callq 0xa7e4
movq (%rbx), %rdi
testq %rdi, %rdi
jne 0x8bf3
jmp 0x8c4c
movq (%rbx), %rbx
addq $0x8, %rbx
jmp 0x8c39
movq (%rsp), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
xorl %ebx, %ebx
movl $0x0, %eax
testq %rsi, %rsi
je 0x8c82
xorl %eax, %eax
movq %r14, %rcx
movq 0x8(%rcx), %rcx
incl %eax
testq %rcx, %rcx
jne 0x8c77
movl %eax, %r12d
leaq 0x8(,%r12,8), %rdi
callq 0x2190
movq %rax, 0x8(%r15)
testq %rax, %rax
je 0x8cd4
movq $0x0, (%rax,%r12,8)
movl $0x1, %ebx
testq %r14, %r14
je 0x8cd4
xorl %eax, %eax
movq (%r14), %rcx
movq (%rcx), %rcx
movq 0x8(%r15), %rdx
movq %rcx, (%rdx,%rax)
movq (%r14), %rcx
movq $0x0, (%rcx)
movq 0x8(%r14), %r14
addq $0x8, %rax
testq %r14, %r14
jne 0x8caf
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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
movl $0x1, %ebx
testq %rsi, %rsi
je 0x8d70
movq %rsi, %r14
movq %rdi, %r15
movl $0x3400, %ebp           # imm = 0x3400
movq %r14, %rdi
callq 0x63f7
cmpl $0xd, %eax
ja 0x8d63
btl %eax, %ebp
jae 0x8d63
movq %r15, %rdi
movl %eax, %esi
movq %r14, %rdx
callq 0x8d7d
testl %eax, %eax
je 0x8d6e
movq 0x8(%r14), %r14
movq 0x8(%r14), %r14
testq %r14, %r14
jne 0x8d3c
jmp 0x8d70
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/charMstr[P]minishell/sources/list_to_cmd_assist.c
// Function: list_to_cmd_fill_redirections_fields2
int		list_to_cmd_fill_redirections_fields2(t_simple_cmd *cmd, int id, \
		t_list *tokens)
{
	t_arrow	*arrow;
	t_list	*new;
	char	**tmp;

	if (!(arrow = init_t_arrow()))
		return (0);
	tmp = &((t_token *)tokens->next->content)->str;
	arrow->dest = *tmp;
	*tmp = NULL;
	tmp = &((t_token *)tokens->content)->str;
	arrow->src = *tmp;
	*tmp = NULL;
	arrow->id = id;
	if (!(new = ft_lstnew(arrow)))
	{
		free_t_arrow(arrow);
		return (0);
	}
	ft_lstadd_back(&cmd->arrows, new);
	return (1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r12
movl %esi, %ebp
movq %rdi, %rbx
callq 0x8df9
testq %rax, %rax
je 0x8de0
movq %rax, %r15
movq 0x8(%r12), %rax
movq (%rax), %rax
movq (%rax), %rcx
movq %rcx, 0x8(%r15)
xorl %r14d, %r14d
movq %r14, (%rax)
movq (%r12), %rax
movq (%rax), %rcx
movq %rcx, (%r15)
movq %r14, (%rax)
movl %ebp, 0x10(%r15)
movq %r15, %rdi
callq 0xa894
testq %rax, %rax
je 0x8de5
movq %rbx, %rdi
movq %rax, %rsi
callq 0xa7e4
movl $0x1, %r14d
jmp 0x8ded
xorl %r14d, %r14d
jmp 0x8ded
movq %r15, %rdi
callq 0x8e22
movl %r14d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/charMstr[P]minishell/sources/list_to_cmd_assist.c
// Function: free_t_arrow
void	free_t_arrow(void *void_arrow)
{
	t_arrow *arrow;

	if ((arrow = (t_arrow *)void_arrow) == NULL)
		return ;
	free(arrow->dest);
	free(arrow->src);
	free(arrow);
}

// Assembly:
testq %rdi, %rdi
je 0x8e45
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
callq 0x2240
movq (%rbx), %rdi
callq 0x2240
movq %rbx, %rdi
popq %rbx
jmp 0x2240
retq
nop
// File: /workspace/github_c_makefile_star2_O1/charMstr[P]minishell/sources/signal_handler.c
// Function: ft_sigquit
void	ft_sigquit(int sig)
{
	ft_putstr_fd("Quit : ", 2);
	ft_putnbr_fd(sig, 2);
	ft_putchar_fd('\n', 2);
	g_sig = SIGCAUGHT + sig;
}

// Assembly:
pushq %rbx
movl %edi, %ebx
leaq 0x2617(%rip), %rdi      # 0xb469
movl $0x2, %esi
callq 0x9f24
movl %ebx, %edi
movl $0x2, %esi
callq 0x9e9c
movl $0xa, %edi
movl $0x2, %esi
callq 0x9e5c
subl $-0x80, %ebx
leaq 0x92bb(%rip), %rax      # 0x1213c
movl %ebx, (%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/charMstr[P]minishell/sources/debug_functions.c
// Function: debug_lexer_flags
void	debug_lexer_flags(t_control *control)
{
	printf("[%d]%s\n", control->quit, "Quit");
	printf("[%d]%s\n", control->lexer_end.other, "Other");
	printf("[%d]%s\n", control->lexer_end.quote, "Quote");
	printf("[%d]%s\n", control->lexer_end.backslash, "Backslash");
	printf("[%d]%s\n", control->lexer_end.unexpected, "Unexpected");
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movzbl (%rdi), %esi
andl $0x1, %esi
leaq 0x25c0(%rip), %r14      # 0xb4d3
leaq 0x25c1(%rip), %rdx      # 0xb4db
movq %r14, %rdi
xorl %eax, %eax
callq 0x20c0
movzbl 0x28(%rbx), %esi
andl $0x1, %esi
leaq 0x25ae(%rip), %rdx      # 0xb4e0
movq %r14, %rdi
xorl %eax, %eax
callq 0x20c0
movl 0x28(%rbx), %esi
shrl %esi
andl $0x1, %esi
leaq 0x259b(%rip), %rdx      # 0xb4e6
movq %r14, %rdi
xorl %eax, %eax
callq 0x20c0
movl 0x28(%rbx), %esi
shrl $0x2, %esi
andl $0x1, %esi
leaq 0x2587(%rip), %rdx      # 0xb4ec
movq %r14, %rdi
xorl %eax, %eax
callq 0x20c0
movl 0x2c(%rbx), %esi
leaq 0x257d(%rip), %rdx      # 0xb4f6
movq %r14, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x20c0
// File: /workspace/github_c_makefile_star2_O1/charMstr[P]minishell/sources/debug_functions.c
// Function: debug_tokens_list
void	debug_tokens_list(t_list *head)
{
	ft_putendl_fd("\n=================\nTOKENS LIST START\n=================", 2);
	while (head)
	{
		printf("[%s]", ((t_token *)(head->content))->str);
		printf("(%s)\n", debug_id_to_str(((t_token *)head->content)->id));
		head = head->next;
	}
	ft_putendl_fd("=================\nTOKENS LIST END\n=================\n\n", 2);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x253d(%rip), %rdi      # 0xb501
movl $0x2, %esi
callq 0x9e78
testq %rbx, %rbx
je 0x9027
leaq 0x255e(%rip), %r14      # 0xb538
leaq 0x8cff(%rip), %r12      # 0x11ce0
leaq 0x21de(%rip), %r15      # 0xb1c6
movq (%rbx), %rax
movq (%rax), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x20c0
movq (%rbx), %rax
movl 0x8(%rax), %ecx
movq %r12, %rax
movl (%rax), %edx
addq $0x10, %rax
cmpl $-0x1, %edx
je 0x9010
cmpl %ecx, %edx
jne 0x9001
movq -0x18(%rax), %rsi
movq %r15, %rdi
xorl %eax, %eax
callq 0x20c0
movq 0x8(%rbx), %rbx
testq %rbx, %rbx
jne 0x8fe8
leaq 0x250f(%rip), %rdi      # 0xb53d
movl $0x2, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x9e78
// File: /workspace/github_c_makefile_star2_O1/charMstr[P]minishell/sources/debug_functions.c
// Function: debug_token_struct
void	debug_token_struct(t_token *token)
{
	ft_putendl_fd("\n---------------------\ntoken start\n-------------------", 2);
	printf("string:		[%s]\n", token->str);
	if (token->str)
		printf("lenght:		%zu\n", ft_strlen(token->str));
	printf("ID:   		%d [%s]\n", token->id, debug_id_to_str(token->id));
	printf("esc_next:	%d\n", token->esc_next);
	printf("open_quote:	%d\n", token->open_quote);
	ft_putendl_fd("---------------------\ntoken end\n---------------------\n", 2);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x2525(%rip), %rdi      # 0xb573
movl $0x2, %esi
callq 0x9e78
movq (%rbx), %rsi
leaq 0x2548(%rip), %rdi      # 0xb5aa
xorl %eax, %eax
callq 0x20c0
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x9087
callq 0xa5c8
leaq 0x253c(%rip), %rdi      # 0xb5b9
movq %rax, %rsi
xorl %eax, %eax
callq 0x20c0
movl 0x8(%rbx), %esi
leaq 0x8c4f(%rip), %rax      # 0x11ce0
movl (%rax), %ecx
addq $0x10, %rax
cmpl $-0x1, %ecx
je 0x90a0
cmpl %esi, %ecx
jne 0x9091
movq -0x18(%rax), %rdx
leaq 0x251c(%rip), %rdi      # 0xb5c7
xorl %eax, %eax
callq 0x20c0
movl 0x10(%rbx), %esi
shrl %esi
andl $0x1, %esi
leaq 0x2517(%rip), %rdi      # 0xb5d8
xorl %eax, %eax
callq 0x20c0
movzbl 0x10(%rbx), %esi
andl $0x1, %esi
leaq 0x2510(%rip), %rdi      # 0xb5e6
xorl %eax, %eax
callq 0x20c0
leaq 0x2512(%rip), %rdi      # 0xb5f6
movl $0x2, %esi
popq %rbx
jmp 0x9e78
// File: /workspace/github_c_makefile_star2_O1/charMstr[P]minishell/sources/debug_functions.c
// Function: debug_env_list
void	debug_env_list(t_list *head)
{
	while (head)
	{
		printf("--------- new_link:\n");
		printf("label:%s\n",((t_env*)(head->content))->label);
		printf("value:%s\n",((t_env*)(head->content))->value);
		head = head->next;
	}
}

// Assembly:
testq %rdi, %rdi
je 0x9151
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x2582(%rip), %r14      # 0xb688
leaq 0x2520(%rip), %r15      # 0xb62d
leaq 0x2523(%rip), %r12      # 0xb637
movq %r14, %rdi
callq 0x2050
movq (%rbx), %rax
movq (%rax), %rsi
movq %r15, %rdi
xorl %eax, %eax
callq 0x20c0
movq (%rbx), %rax
movq 0x8(%rax), %rsi
movq %r12, %rdi
xorl %eax, %eax
callq 0x20c0
movq 0x8(%rbx), %rbx
testq %rbx, %rbx
jne 0x9114
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/charMstr[P]minishell/sources/debug_functions.c
// Function: debug_history_list
void	debug_history_list(t_history *hist)
{
	int i;
	t_dlist *tmp;

	i = 0;
	if (!hist || !hist->head)
		printf("kunts fucked!!!!\n");
	tmp = hist->head;
	printf("\n==============================================================\n");
	printf("=============================== DEBUG HISTORY ================\n");
	printf("history->size = [%d]\n", hist->size);
	if (tmp)
		printf("head: [%p]\n", tmp);
	while(tmp)
	{
		printf("[%d] -- ADDRESS:[%p] -- STRING:[%s]\n"\
				, i, tmp, (char *)tmp->content);
		tmp = tmp->next;
		i++;
	}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
testq %rdi, %rdi
je 0x9165
cmpq $0x0, 0x8(%r14)
jne 0x9171
leaq 0x2530(%rip), %rdi      # 0xb69c
callq 0x2050
movq 0x8(%r14), %rbx
leaq 0x2531(%rip), %rdi      # 0xb6ad
callq 0x2050
leaq 0x2565(%rip), %rdi      # 0xb6ed
callq 0x2050
movl (%r14), %esi
leaq 0x24aa(%rip), %rdi      # 0xb641
xorl %eax, %eax
callq 0x20c0
testq %rbx, %rbx
je 0x91da
leaq 0x24ad(%rip), %rdi      # 0xb657
movq %rbx, %rsi
xorl %eax, %eax
callq 0x20c0
leaq 0x24a8(%rip), %r14      # 0xb663
xorl %ebp, %ebp
movq (%rbx), %rcx
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x20c0
movq 0x8(%rbx), %rbx
incl %ebp
testq %rbx, %rbx
jne 0x91bd
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/charMstr[P]minishell/sources/debug_terminfo.c
// Function: debug_term_size
void	debug_term_size(t_term *term)
{
	printf("\n==============================================================\n");
	printf("=============================== DEBUG TERM ===================\n");
	printf("term->size_window.x = %d\n", term->size_window.x);
	printf("term->size_window.y = %d\n", term->size_window.y);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x24a0(%rip), %rdi      # 0xb6ad
callq 0x2050
leaq 0x26f9(%rip), %rdi      # 0xb912
callq 0x2050
movl 0x28(%rbx), %esi
leaq 0x2510(%rip), %rdi      # 0xb738
xorl %eax, %eax
callq 0x20c0
movl 0x2c(%rbx), %esi
leaq 0x2519(%rip), %rdi      # 0xb752
xorl %eax, %eax
popq %rbx
jmp 0x20c0