LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0xc4d4
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0xc7d0
movl %eax, -0x4(%rbp)
jmp 0xc56a
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0xfb10
cmpq $0x0, %rax
jne 0xc552
movq -0x28(%rbp), %rdi
callq 0x2070
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
jne 0xc505
movl $0x0, -0x4(%rbp)
jmp 0xc56a
movq -0x20(%rbp), %rdi
leaq 0x4e77(%rip), %rsi      # 0x11387
callq 0xf9b0
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
jne 0xc528
movl $0x2, -0x4(%rbp)
jmp 0xc56a
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0xc7d0
movl %eax, -0x2c(%rbp)
movq -0x38(%rbp), %rdi
callq 0x2230
movq -0x40(%rbp), %rdi
callq 0x2110
movl -0x2c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0xc56a
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0xc650
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
leaq 0x4def(%rip), %rdi      # 0x11386
callq 0x2070
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0xc5b2
movl $0x0, -0x4(%rbp)
jmp 0xc644
jmp 0xc5b4
movq -0x20(%rbp), %rdi
callq 0x2170
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
je 0xc634
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
addq $0x13, %rsi
callq 0xc8e0
cmpl $0x0, %eax
je 0xc632
movq -0x28(%rbp), %rdi
addq $0x13, %rdi
callq 0xf950
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
jne 0xc5fd
movl $0x2, -0x4(%rbp)
jmp 0xc644
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x38(%rbp), %rdx
movq -0x38(%rbp), %rcx
callq 0xc4a0
movl %eax, -0x2c(%rbp)
movq -0x38(%rbp), %rdi
callq 0x2230
cmpl $0x0, -0x2c(%rbp)
je 0xc630
movl -0x2c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0xc644
jmp 0xc632
jmp 0xc5b4
movq -0x20(%rbp), %rdi
callq 0x2110
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x28(%rbp), %rdi
callq 0x2070
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
jne 0xc687
movl $0x0, -0x4(%rbp)
jmp 0xc729
jmp 0xc689
movq -0x30(%rbp), %rdi
callq 0x2170
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0xc719
movq -0x18(%rbp), %rdi
movq -0x38(%rbp), %rsi
addq $0x13, %rsi
callq 0xc8e0
cmpl $0x0, %eax
je 0xc714
movq -0x20(%rbp), %rdi
movq -0x38(%rbp), %rsi
addq $0x13, %rsi
callq 0xc740
movq %rax, -0x48(%rbp)
cmpq $0x0, %rax
jne 0xc6db
movq -0x30(%rbp), %rdi
movl $0x2, %esi
callq 0xc8b0
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x48(%rbp), %rdx
movq -0x48(%rbp), %rcx
callq 0xc4a0
movl %eax, -0x3c(%rbp)
movq -0x48(%rbp), %rdi
callq 0x2230
cmpl $0x0, -0x3c(%rbp)
je 0xc712
movq -0x30(%rbp), %rdi
movl -0x3c(%rbp), %esi
callq 0xc8b0
jmp 0xc714
jmp 0xc689
movq -0x30(%rbp), %rdi
callq 0x2110
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/charMstr[P]minishell/sources/pathname_matching_root.c
// Function: path_join
char	*path_join(char *str, char *str2)
{
	char *intermediate;
	char *final;

	if (!str || !str2)
		return (NULL);
	if (!(intermediate = ft_strjoin(str, "/")))
		return (NULL);
	if (!(final = ft_strjoin_free(intermediate, str2, 1)))
		return (NULL);
	return (final);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0xc75e
cmpq $0x0, -0x18(%rbp)
jne 0xc768
movq $0x0, -0x8(%rbp)
jmp 0xc7ba
movq -0x10(%rbp), %rdi
leaq 0x4c14(%rip), %rsi      # 0x11387
callq 0xf9b0
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0xc78c
movq $0x0, -0x8(%rbp)
jmp 0xc7ba
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl $0x1, %edx
callq 0xfab0
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
jne 0xc7b2
movq $0x0, -0x8(%rbp)
jmp 0xc7ba
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x1, 0xc(%rax)
jne 0xc800
movq -0x10(%rbp), %rax
cmpl $0x0, 0x8(%rax)
je 0xc800
movl $0x1, -0x4(%rbp)
jmp 0xc89e
movq -0x10(%rbp), %rax
cmpl $0x0, 0xc(%rax)
jne 0xc815
movq -0x10(%rbp), %rax
movl $0x1, 0xc(%rax)
callq 0x29b0
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0xc82d
movl $0x2, -0x4(%rbp)
jmp 0xc89e
movq -0x18(%rbp), %rdi
callq 0xf950
movq -0x20(%rbp), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
jne 0xc855
movq -0x20(%rbp), %rdi
callq 0x2230
movl $0x2, -0x4(%rbp)
jmp 0xc89e
movq -0x20(%rbp), %rdi
callq 0x10180
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
jne 0xc886
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0x2230
movq -0x20(%rbp), %rdi
callq 0x2230
movl $0x2, -0x4(%rbp)
jmp 0xc89e
movq -0x10(%rbp), %rdi
addq $0x10, %rdi
movq -0x28(%rbp), %rsi
callq 0xfff0
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0xc923
cmpq $0x0, -0x28(%rbp)
jne 0xc92f
movl $0x0, -0x4(%rbp)
jmp 0xc9b7
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2e, %eax
je 0xc952
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2e, %eax
jne 0xc950
movl $0x0, -0x4(%rbp)
jmp 0xc9b7
jmp 0xc977
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2e, %eax
jne 0xc975
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2e, %eax
je 0xc973
movl $0x0, -0x4(%rbp)
jmp 0xc9b7
jmp 0xc975
jmp 0xc977
cmpq $0x0, -0x20(%rbp)
jne 0xc99d
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x10580
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x4(%rbp)
jmp 0xc9b7
movq -0x20(%rbp), %rdx
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rsi
xorl %r8d, %r8d
movl %r8d, %ecx
callq 0xc9c0
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0xcc17
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
cmpl -0x14(%rbp), %eax
jne 0xcc09
movl $0x1, -0x4(%rbp)
jmp 0xcc1e
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0xcbeb
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
cmpb $0x0, (%rax,%rcx)
je 0xcd88
movl -0xc(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpl (%rcx), %eax
jne 0xcc7d
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq -0xc(%rbp), %rsi
callq 0xcd90
cmpl $0x0, %eax
jne 0xcc7b
jmp 0xcd88
jmp 0xcc7d
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x27, %eax
je 0xcca3
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x22, %eax
jne 0xcd3e
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x27, %eax
jne 0xcd2a
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq -0xc(%rbp), %rsi
callq 0xce30
cmpl $0x0, %eax
jne 0xcccf
jmp 0xcd88
jmp 0xccd1
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x19(%rbp)
je 0xccfc
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x27, %eax
setne %al
movb %al, -0x19(%rbp)
movb -0x19(%rbp), %al
testb $0x1, %al
jne 0xcd05
jmp 0xcd10
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xccd1
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq -0xc(%rbp), %rsi
callq 0xce30
cmpl $0x0, %eax
jne 0xcd28
jmp 0xcd88
jmp 0xcd3c
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
callq 0xcf00
jmp 0xcd88
jmp 0xcd3e
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0xcd7a
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x5c, %eax
jne 0xcd7a
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq -0xc(%rbp), %rsi
callq 0xce30
cmpl $0x0, %eax
jne 0xcd78
jmp 0xcd88
jmp 0xcd7a
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xcc43
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/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:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
cmpb $0x0, (%rax,%rcx)
jne 0xcdba
movl $0x0, -0x4(%rbp)
jmp 0xce1f
jmp 0xcdbc
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x21(%rbp)
je 0xcde8
movq -0x18(%rbp), %rax
movl (%rax), %eax
movq -0x20(%rbp), %rcx
cmpl 0x4(%rcx), %eax
setl %al
movb %al, -0x21(%rbp)
movb -0x21(%rbp), %al
testb $0x1, %al
jne 0xcdf1
jmp 0xcdfe
movq -0x18(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xcdbc
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
cmpb $0x0, (%rax,%rcx)
jne 0xce18
movl $0x0, -0x4(%rbp)
jmp 0xce1f
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
cmpb $0x0, (%rax,%rcx)
jne 0xce61
movl $0x0, -0x4(%rbp)
jmp 0xceef
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
addq %rcx, %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movslq (%rax), %rax
addq %rax, %rdi
callq 0xfb10
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq %rax, %rdx
callq 0xee10
movq -0x20(%rbp), %rax
movl 0x4(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x4(%rax)
movq -0x20(%rbp), %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
movl (%rax), %eax
movq -0x20(%rbp), %rcx
cmpl (%rcx), %eax
jne 0xcee8
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0xcd90
movl %eax, -0x4(%rbp)
jmp 0xceef
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq -0xc(%rbp), %rsi
callq 0xce30
cmpl $0x0, %eax
jne 0xcf2e
jmp 0xd081
jmp 0xcf30
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
cmpb $0x0, (%rax,%rcx)
je 0xd081
movl -0xc(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpl (%rcx), %eax
jne 0xcf6a
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq -0xc(%rbp), %rsi
callq 0xcd90
cmpl $0x0, %eax
jne 0xcf68
jmp 0xd081
jmp 0xcf6a
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0xcfbc
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x22, %eax
jne 0xcfbc
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq -0xc(%rbp), %rsi
callq 0xce30
cmpl $0x0, %eax
jne 0xcfa7
jmp 0xd081
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
callq 0xcc30
jmp 0xd081
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x5c, %eax
jne 0xd073
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0xd073
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x5c, %eax
je 0xd059
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x22, %eax
je 0xd059
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x24, %eax
je 0xd059
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0xa, %eax
je 0xd059
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x60, %eax
jne 0xd073
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq -0xc(%rbp), %rsi
callq 0xce30
cmpl $0x0, %eax
jne 0xd071
jmp 0xd081
jmp 0xd073
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xcf30
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/charMstr[P]minishell/sources/quote_removal.c
// Function: quote_removal
void	quote_removal(t_token *token)
{
	t_no_unquote no;

	//debug_unquote(token);
	if (token->unquote_protected == 1)
	{
		no.start = token->protect_s;
		no.end = token->protect_e;
	}
	else
	{
		no.start = -1;
		no.end = -1;
	}
	quote_removal_unquoted_part(token->str, 0, &no);
	//printf("str after quote removal: [%s]\n", str);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x1, 0x14(%rax)
jne 0xd0bc
movq -0x8(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0xc(%rbp)
jmp 0xd0ca
movl $0xffffffff, -0x10(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0xc(%rbp) # imm = 0xFFFFFFFF
movq -0x8(%rbp), %rax
movq (%rax), %rdi
xorl %esi, %esi
leaq -0x10(%rbp), %rdx
callq 0xcc30
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
callq 0xd1e0
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
jne 0xd122
movl $0x0, -0x4(%rbp)
jmp 0xd1d4
leaq -0x20(%rbp), %rdi
callq 0xd230
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0xd2f0
cmpl $0x0, %eax
jne 0xd163
leaq -0x28(%rbp), %rdi
leaq -0xa80c(%rip), %rsi     # 0x2940
callq 0x10090
movq -0x18(%rbp), %rdi
callq 0xd3d0
movl $0x0, -0x4(%rbp)
jmp 0xd1d4
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0xd430
cmpl $0x0, %eax
jne 0xd197
leaq -0x28(%rbp), %rdi
leaq -0xa840(%rip), %rsi     # 0x2940
callq 0x10090
movq -0x18(%rbp), %rdi
callq 0xd3d0
movl $0x0, -0x4(%rbp)
jmp 0xd1d4
leaq -0x28(%rbp), %rdi
leaq -0xa862(%rip), %rsi     # 0x2940
callq 0x10090
leaq -0x20(%rbp), %rdi
leaq -0xa872(%rip), %rsi     # 0x2940
callq 0x10090
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movl $0x10, 0x8(%rax)
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/charMstr[P]minishell/sources/list_to_cmd_root.c
// Function: init_t_simple_cmd
t_simple_cmd	*init_t_simple_cmd(void)
{
	t_simple_cmd *cmd;

	if (!(cmd = malloc(sizeof(t_simple_cmd))))
		return (NULL);
	ft_bzero(cmd, sizeof(t_simple_cmd));
	return (cmd);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl $0x10, %edi
callq 0x2180
movq %rax, -0x10(%rbp)
cmpq $0x0, %rax
jne 0xd206
movq $0x0, -0x8(%rbp)
jmp 0xd21c
movq -0x10(%rbp), %rdi
movl $0x10, %esi
callq 0xe940
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq $0x0, -0x10(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, (%rax)
je 0xd2d9
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x9330
cmpl $0xc, %eax
je 0xd285
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x9330
cmpl $0xd, %eax
je 0xd285
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x9330
cmpl $0xa, %eax
jne 0xd2c5
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq $0x0, 0x8(%rax)
movq -0x18(%rbp), %rsi
leaq -0x10(%rbp), %rdi
callq 0xfff0
jmp 0xd2d4
movq -0x8(%rbp), %rax
movq (%rax), %rax
addq $0x8, %rax
movq %rax, -0x8(%rbp)
jmp 0xd244
movq -0x10(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
movl $0x0, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0xd334
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x28(%rbp)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0xd316
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x2180
movq -0x10(%rbp), %rcx
movq %rax, 0x8(%rcx)
cmpq $0x0, %rax
jne 0xd35d
movl $0x0, -0x4(%rbp)
jmp 0xd3be
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x1c(%rbp), %rcx
movq $0x0, (%rax,%rcx,8)
cmpq $0x0, -0x18(%rbp)
je 0xd3b7
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rdx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x20(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq $0x0, (%rax)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0xd371
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/charMstr[P]minishell/sources/list_to_cmd_root.c
// Function: free_t_simple_cmd
void			free_t_simple_cmd(void *void_cmd)
{
	t_simple_cmd *cmd;

	cmd = (t_simple_cmd*)void_cmd;
	ft_array_free(cmd->argv, ft_array_len(cmd->argv));
	ft_lstclear(&cmd->arrows, free_t_arrow);
	free(cmd);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x10410
movq -0x18(%rbp), %rdi
movl %eax, %esi
callq 0x102f0
movq -0x10(%rbp), %rdi
leaq 0x1bd(%rip), %rsi       # 0xd5d0
callq 0x10090
movq -0x10(%rbp), %rdi
callq 0x2230
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0xd49d
movq -0x18(%rbp), %rdi
callq 0x9330
movl %eax, -0x1c(%rbp)
cmpl $0xc, -0x1c(%rbp)
je 0xd465
cmpl $0xd, -0x1c(%rbp)
je 0xd465
cmpl $0xa, -0x1c(%rbp)
jne 0xd48f
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
movq -0x18(%rbp), %rdx
callq 0xd4b0
cmpl $0x0, %eax
jne 0xd483
movl $0x0, -0x4(%rbp)
jmp 0xd4a4
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0xd440
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
callq 0xd580
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
jne 0xd4de
movl $0x0, -0x4(%rbp)
jmp 0xd56e
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x38(%rbp), %rax
movq $0x0, (%rax)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rax
movq $0x0, (%rax)
movl -0x14(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x28(%rbp), %rdi
callq 0x10180
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
jne 0xd55a
movq -0x28(%rbp), %rdi
callq 0xd5d0
movl $0x0, -0x4(%rbp)
jmp 0xd56e
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0xfff0
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/charMstr[P]minishell/sources/list_to_cmd_assist.c
// Function: init_t_arrow
t_arrow	*init_t_arrow(void)
{
	t_arrow *arrow;

	if (!(arrow = malloc(sizeof(t_arrow))))
		return (NULL);
	ft_bzero(arrow, sizeof(t_arrow));
	return (arrow);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl $0x18, %edi
callq 0x2180
movq %rax, -0x10(%rbp)
cmpq $0x0, %rax
jne 0xd5a6
movq $0x0, -0x8(%rbp)
jmp 0xd5bc
movq -0x10(%rbp), %rdi
movl $0x18, %esi
callq 0xe940
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, %rax
jne 0xd5ec
jmp 0xd60e
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x2230
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x2230
movq -0x10(%rbp), %rdi
callq 0x2230
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
leaq 0x3d57(%rip), %rdi      # 0x11389
movl $0x2, %esi
callq 0xf020
movl -0x4(%rbp), %edi
movl $0x2, %esi
callq 0xef80
movl $0xa, %edi
movl $0x2, %esi
callq 0xef10
movl -0x4(%rbp), %ecx
addl $0x80, %ecx
leaq 0x9acc(%rip), %rax      # 0x17134
movl %ecx, (%rax)
addq $0x10, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/charMstr[P]minishell/sources/debug_functions.c
// Function: debug_id_to_str
char	*debug_id_to_str(int id)
{
	int i = 0;
	t_tokendb *token_type = (t_tokendb []){{"SEMI", SEMI},
	{"LBRACE", LBRACE}, {"RBRACE", RBRACE}, {"PIPE", PIPE}, {"OR_IF", OR_IF},
	{"AND", AND}, {"AND_IF", AND_IF}, {"S_QUOTE", S_QUOTE}, {"D_QUOTE", D_QUOTE},
	{"GREAT", GREAT}, {"DGREAT", DGREAT}, {"LESS", LESS}, {"DLESS", DLESS},
	{"TOKEN", TOKEN}, {"ERROR, NOT RECOGNIZED", -1}};

	while (token_type[i].type != -1 && token_type[i].type != id)
		i++;
	return (token_type[i].str);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movl %edi, -0x4(%rbp)
movl $0x0, -0x8(%rbp)
leaq -0x100(%rbp), %rdi
leaq 0x95a5(%rip), %rsi      # 0x16cd8
movl $0xf0, %edx
callq 0x2160
leaq -0x100(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rcx
movslq -0x8(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rcx
xorl %eax, %eax
cmpl $-0x1, 0x8(%rcx)
movb %al, -0x101(%rbp)
je 0xd783
movq -0x10(%rbp), %rax
movslq -0x8(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
cmpl -0x4(%rbp), %eax
setne %al
movb %al, -0x101(%rbp)
movb -0x101(%rbp), %al
testb $0x1, %al
jne 0xd78f
jmp 0xd79a
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0xd748
movq -0x10(%rbp), %rax
movslq -0x8(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movb (%rax), %al
andb $0x1, %al
movzbl %al, %esi
leaq 0x3c15(%rip), %rdi      # 0x113f3
leaq 0x3c16(%rip), %rdx      # 0x113fb
movb $0x0, %al
callq 0x20b0
movq -0x8(%rbp), %rax
movb 0x28(%rax), %al
andb $0x1, %al
movzbl %al, %esi
leaq 0x3bf4(%rip), %rdi      # 0x113f3
leaq 0x3bfa(%rip), %rdx      # 0x11400
movb $0x0, %al
callq 0x20b0
movq -0x8(%rbp), %rax
movb 0x28(%rax), %al
shrb %al
andb $0x1, %al
movzbl %al, %esi
leaq 0x3bd1(%rip), %rdi      # 0x113f3
leaq 0x3bdd(%rip), %rdx      # 0x11406
movb $0x0, %al
callq 0x20b0
movq -0x8(%rbp), %rax
movb 0x28(%rax), %al
shrb $0x2, %al
andb $0x1, %al
movzbl %al, %esi
leaq 0x3bad(%rip), %rdi      # 0x113f3
leaq 0x3bbf(%rip), %rdx      # 0x1140c
movb $0x0, %al
callq 0x20b0
movq -0x8(%rbp), %rax
movl 0x2c(%rax), %esi
leaq 0x3b91(%rip), %rdi      # 0x113f3
leaq 0x3bad(%rip), %rdx      # 0x11416
movb $0x0, %al
callq 0x20b0
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/charMstr[P]minishell/sources/debug_functions.c
// Function: debug_pars_split_commands
void	debug_pars_split_commands(char **array)
{
	int i;

	i = 0;
	while (array[i])
	{
		ft_putendl_fd(array[i], 2);
		i++;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0xd8c3
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movl $0x2, %esi
callq 0xef40
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xd893
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
leaq 0x3b3e(%rip), %rdi      # 0x11421
movl $0x2, %esi
callq 0xef40
cmpq $0x0, -0x8(%rbp)
je 0xd93a
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rsi
leaq 0x3b53(%rip), %rdi      # 0x11458
movb $0x0, %al
callq 0x20b0
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl 0x8(%rax), %edi
callq 0xd710
movq %rax, %rsi
leaq 0x3885(%rip), %rdi      # 0x111aa
movb $0x0, %al
callq 0x20b0
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0xd8ed
leaq 0x3b1c(%rip), %rdi      # 0x1145d
movl $0x2, %esi
callq 0xef40
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
leaq 0x3b20(%rip), %rdi      # 0x11493
movl $0x2, %esi
callq 0xef40
movq -0x8(%rbp), %rax
movq (%rax), %rsi
leaq 0x3b3f(%rip), %rdi      # 0x114ca
movb $0x0, %al
callq 0x20b0
movq -0x8(%rbp), %rax
cmpq $0x0, (%rax)
je 0xd9b9
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0xfb10
movq %rax, %rsi
leaq 0x3b27(%rip), %rdi      # 0x114d9
movb $0x0, %al
callq 0x20b0
movq -0x8(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rax
movl 0x8(%rax), %edi
callq 0xd710
movl -0xc(%rbp), %esi
movq %rax, %rdx
leaq 0x3b0b(%rip), %rdi      # 0x114e7
movb $0x0, %al
callq 0x20b0
movq -0x8(%rbp), %rax
movb 0x10(%rax), %al
shrb %al
andb $0x1, %al
movzbl %al, %esi
leaq 0x3b00(%rip), %rdi      # 0x114f8
movb $0x0, %al
callq 0x20b0
movq -0x8(%rbp), %rax
movb 0x10(%rax), %al
andb $0x1, %al
movzbl %al, %esi
leaq 0x3af4(%rip), %rdi      # 0x11506
movb $0x0, %al
callq 0x20b0
leaq 0x3af6(%rip), %rdi      # 0x11516
movl $0x2, %esi
callq 0xef40
addq $0x10, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/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:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0xda90
leaq 0x3b03(%rip), %rdi      # 0x1154d
movb $0x0, %al
callq 0x20b0
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rsi
leaq 0x3b00(%rip), %rdi      # 0x11562
movb $0x0, %al
callq 0x20b0
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rsi
leaq 0x3af1(%rip), %rdi      # 0x1156c
movb $0x0, %al
callq 0x20b0
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0xda3c
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0xdac5
movq -0x8(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0xdad3
leaq 0x3aaa(%rip), %rdi      # 0x11576
movb $0x0, %al
callq 0x20b0
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
leaq 0x3aa2(%rip), %rdi      # 0x11588
movb $0x0, %al
callq 0x20b0
leaq 0x3ad5(%rip), %rdi      # 0x115c9
movb $0x0, %al
callq 0x20b0
movq -0x8(%rbp), %rax
movl (%rax), %esi
leaq 0x3b01(%rip), %rdi      # 0x11609
movb $0x0, %al
callq 0x20b0
cmpq $0x0, -0x18(%rbp)
je 0xdb28
movq -0x18(%rbp), %rsi
leaq 0x3afe(%rip), %rdi      # 0x1161f
movb $0x0, %al
callq 0x20b0
jmp 0xdb2a
cmpq $0x0, -0x18(%rbp)
je 0xdb64
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x18(%rbp), %rax
movq (%rax), %rcx
leaq 0x3ae5(%rip), %rdi      # 0x1162b
movb $0x0, %al
callq 0x20b0
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xdb2a
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
leaq 0x39c5(%rip), %rdi      # 0x11588
movb $0x0, %al
callq 0x20b0
leaq 0x3a8b(%rip), %rdi      # 0x1165c
movb $0x0, %al
callq 0x20b0
movq -0x8(%rbp), %rax
movl 0x28(%rax), %esi
leaq 0x3ab6(%rip), %rdi      # 0x1169c
movb $0x0, %al
callq 0x20b0
movq -0x8(%rbp), %rax
movl 0x2c(%rax), %esi
leaq 0x3abb(%rip), %rdi      # 0x116b6
movb $0x0, %al
callq 0x20b0
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/charMstr[P]minishell/sources/debug_terminfo.c
// Function: debug_escape_sequence
void debug_escape_sequence(char *str)
{
	int i = 0;
	int len;

	debug_start();
	if (!str)
	{
		printf("the caps string == NULL\r\n");
		return ;
	}
	len = ft_strlen(str);
	if (!len)
		printf("DEBUG(1/2): the sequence is empty\n");
	else
		printf("DEBUG(1/2): the sequence is [%d] long\n", len);
	ft_putstr_fd("\nDEBUG(2/2): the escape sequence is: \"", 1);
	while (str[i] != '\0')
	{
		if (str[i] == '\x1b')
			ft_putstr_fd("ESC", 1);
		else
			ft_putchar_fd(str[i], 1);
		++i;
	}
	ft_putstr_fd("\"\n", 1);
	debug_end();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
callq 0xdb70
cmpq $0x0, -0x8(%rbp)
jne 0xdc42
leaq 0x3a9a(%rip), %rdi      # 0x116d0
movb $0x0, %al
callq 0x20b0
jmp 0xdcf2
movq -0x8(%rbp), %rdi
callq 0xfb10
movl %eax, -0x10(%rbp)
cmpl $0x0, -0x10(%rbp)
jne 0xdc64
leaq 0x3a8f(%rip), %rdi      # 0x116ea
movb $0x0, %al
callq 0x20b0
jmp 0xdc75
movl -0x10(%rbp), %esi
leaq 0x3a9f(%rip), %rdi      # 0x1170d
movb $0x0, %al
callq 0x20b0
leaq 0x3ab8(%rip), %rdi      # 0x11734
movl $0x1, %esi
callq 0xf020
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0xdcdc
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x1b, %eax
jne 0xdcbb
leaq 0x3aac(%rip), %rdi      # 0x1175b
movl $0x1, %esi
callq 0xf020
jmp 0xdcd1
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movl $0x1, %esi
movsbl (%rax,%rcx), %edi
callq 0xef10
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xdc86
leaq 0x3a7c(%rip), %rdi      # 0x1175f
movl $0x1, %esi
callq 0xf020
callq 0xdb90
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/charMstr[P]minishell/sources/debug_terminfo.c
// Function: debug_value_char
void debug_value_char(char c)
{
	debug_start();
	if (ft_isprint(c))
		printf("\nDEBUG: the char ['%c'] has the value [%d]\n", c, (int)c);
	else
		printf("\nDEBUG: non printable char has value [%d]\n", (int)c);

	debug_end();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movb %dil, %al
movb %al, -0x1(%rbp)
callq 0xdb70
movsbl -0x1(%rbp), %edi
callq 0xea20
cmpl $0x0, %eax
je 0xdd39
movsbl -0x1(%rbp), %esi
movsbl -0x1(%rbp), %edx
leaq 0x3a32(%rip), %rdi      # 0x11762
movb $0x0, %al
callq 0x20b0
jmp 0xdd4b
movsbl -0x1(%rbp), %esi
leaq 0x3a4a(%rip), %rdi      # 0x1178e
movb $0x0, %al
callq 0x20b0
callq 0xdb90
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/charMstr[P]minishell/sources/debug_terminfo.c
// Function: debug_cursor
void	debug_cursor(t_int_pair *cursor)
{
	debug_start();
	printf("the coordinates for the current cursor position:\nx: %d\ny: %d\n", \
			cursor->x, cursor->y);
	debug_end();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
callq 0xdb70
movq -0x8(%rbp), %rax
movl (%rax), %esi
movq -0x8(%rbp), %rax
movl 0x4(%rax), %edx
leaq 0x3a34(%rip), %rdi      # 0x117b9
movb $0x0, %al
callq 0x20b0
callq 0xdb90
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/charMstr[P]minishell/sources/debug_terminfo.c
// Function: debug_term_struct
void	debug_term_struct(t_term *term)
{
	debug_start();
	printf("\n\n------------------------------------------------------------");
	printf("\n-------------------------DEBUG FOR THE TERM STRUCT----------\n");
	debug_cursor(&(term->cursor));
	debug_start();
	printf("prompt ps1: [%s]\n", term->ps1);
	debug_start();
	printf("prompt ps2: [%s]\n", term->ps2);
	debug_start();
	printf("length of current prompt: [%d]\n", term->prompt_len);
	debug_start();
	printf("\n-------------------------DEBUG END -------------------------\n");
	debug_start();
	printf("------------------------------------------------------------\n\n");
	debug_end();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
callq 0xdb70
leaq 0x3a3f(%rip), %rdi      # 0x117f7
movb $0x0, %al
callq 0x20b0
leaq 0x3a70(%rip), %rdi      # 0x11836
movb $0x0, %al
callq 0x20b0
movq -0x8(%rbp), %rdi
addq $0x10, %rdi
callq 0xdd60
callq 0xdb70
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rsi
leaq 0x3a87(%rip), %rdi      # 0x11875
movb $0x0, %al
callq 0x20b0
callq 0xdb70
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rsi
leaq 0x3a7e(%rip), %rdi      # 0x11887
movb $0x0, %al
callq 0x20b0
callq 0xdb70
movq -0x8(%rbp), %rax
movl 0x48(%rax), %esi
leaq 0x3a76(%rip), %rdi      # 0x11899
movb $0x0, %al
callq 0x20b0
callq 0xdb70
leaq 0x3a83(%rip), %rdi      # 0x118b9
movb $0x0, %al
callq 0x20b0
callq 0xdb70
leaq 0x3aaf(%rip), %rdi      # 0x118f8
movb $0x0, %al
callq 0x20b0
callq 0xdb90
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/charMstr[P]minishell/sources/debug_terminfo.c
// Function: debug_clipboard_struct
void	debug_clipboard_struct(t_clipboard clip)
{
	debug_start();
	printf("\n\n-----------------------------------------------------------\n");
	printf("--------------------- CLIPBOARD DEBUG ----------------------\n");
	printf("highlight: [%d]\n", clip.highlight);
	printf("start: [%d]\n", clip.start);
	printf("end: [%d]\n", clip.end);
	printf("paste_me: [%s]\n", clip.paste_me);
	printf("-----------------------------------------------------------\n");
	debug_end();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
leaq 0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
callq 0xdb70
leaq 0x3abb(%rip), %rdi      # 0x11937
movb $0x0, %al
callq 0x20b0
leaq 0x3aec(%rip), %rdi      # 0x11976
movb $0x0, %al
callq 0x20b0
movq -0x8(%rbp), %rax
movl (%rax), %esi
leaq 0x3b16(%rip), %rdi      # 0x119b4
movb $0x0, %al
callq 0x20b0
movq -0x8(%rbp), %rax
movl 0x4(%rax), %esi
leaq 0x3b12(%rip), %rdi      # 0x119c5
movb $0x0, %al
callq 0x20b0
movq -0x8(%rbp), %rax
movl 0x8(%rax), %esi
leaq 0x3b0a(%rip), %rdi      # 0x119d2
movb $0x0, %al
callq 0x20b0
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rsi
leaq 0x3aff(%rip), %rdi      # 0x119dd
movb $0x0, %al
callq 0x20b0
leaq 0x3a4d(%rip), %rdi      # 0x11939
movb $0x0, %al
callq 0x20b0
callq 0xdb90
addq $0x10, %rsp
popq %rbp
retq
nop