LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/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 0x861a
movq 0x8(%rcx), %rdx
cmpb $0x2e, (%rdi)
movb (%rsi), %cl
jne 0x861b
cmpb $0x2e, %cl
je 0x8620
retq
cmpb $0x2e, %cl
je 0x861a
testq %rdx, %rdx
je 0x862f
xorl %ecx, %ecx
xorl %r8d, %r8d
jmp 0x8643
pushq %rax
callq 0xa994
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
sete %al
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/match_path_parts_root.c
// Function: match_path_part
int	match_path_part(t_strings strs, t_list *wild_cards, int i, int j)
{
	while (strs.str[i] && strs.ref[j] && (strs.str[i] == strs.ref[j]))
	{
		if (strs.str[i] == '*' && match_path_check_valid_star(wild_cards, i))
			break;
		i++;
		j++;
	}
	if (ft_isonly(strs.str + i, '*') || (!strs.str[i] && !strs.ref[j]))
		return (1);
	if (!strs.ref[j] || !strs.str[i] || strs.str[i] != '*')
		return (0);
	while (strs.str[i + 1] == '*')
		i++;
	while (strs.ref[j] && strs.ref[j] != strs.str[i + 1])
		j++;
	if (!strs.ref[j])
		return (0);
	return (match_path_part(strs, wild_cards, i, j + 1) \
		|| match_path_part(strs, wild_cards, i + 1, j));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %r13d
movl %ecx, %r12d
movq %rsi, %r15
leaq 0x1(%rdi), %rax
movq %rax, 0x10(%rsp)
leaq 0x1(%rsi), %rax
movq %rax, 0x8(%rsp)
movq %rdx, (%rsp)
movl $0x1, %ebp
movslq %r12d, %rbx
movb (%rdi,%rbx), %cl
testb %cl, %cl
je 0x86c2
movslq %r13d, %rax
cmpb (%r15,%rax), %cl
jne 0x86bc
testq %rdx, %rdx
je 0x86a6
cmpb $0x2a, %cl
jne 0x86a6
movq %rdx, %rcx
movq (%rcx), %r8
cmpl %ebx, (%r8)
je 0x86bc
movq 0x8(%rcx), %rcx
testq %rcx, %rcx
jne 0x8695
incl %r12d
incq %rax
incl %r13d
movb 0x1(%rdi,%rbx), %cl
incq %rbx
testb %cl, %cl
jne 0x8682
jmp 0x86c2
movl %ebx, %r12d
movl %eax, %r13d
movq %rdi, %r14
addq %rdi, %rbx
movq %rbx, %rdi
movl $0x2a, %esi
callq 0x9bc8
testl %eax, %eax
jne 0x874b
movb (%rbx), %cl
movslq %r13d, %rax
movb (%r15,%rax), %dl
testb %cl, %cl
je 0x875c
cmpb $0x2a, %cl
jne 0x8749
testb %dl, %dl
je 0x8749
movq %r15, %rsi
movslq %r12d, %rcx
addq 0x10(%rsp), %rcx
movb (%rcx), %dil
incl %r12d
incq %rcx
cmpb $0x2a, %dil
je 0x86fa
leal -0x1(%r12), %ecx
addq 0x8(%rsp), %rax
cmpb %dil, %dl
je 0x8726
movb (%rax), %dl
incl %r13d
incq %rax
testb %dl, %dl
jne 0x8713
jmp 0x8749
leal 0x1(%r13), %r8d
movq %r14, %rdi
movq (%rsp), %rbx
movq %rbx, %rdx
callq 0x8643
movq %r14, %rdi
movq %rbx, %rdx
testl %eax, %eax
je 0x8675
jmp 0x874b
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
testb %dl, %dl
sete %bpl
jmp 0x874b
// File: /workspace/github_c_makefile_star2_O3/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 0x877f
movq (%rdi), %rcx
cmpl %esi, (%rcx)
je 0x877a
movq 0x8(%rdi), %rdi
jmp 0x8768
movl $0x1, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x8867
movq %rdx, %rbx
movq %rdi, %r14
leaq 0xc(%rsp), %r15
cmpl (%rbx), %esi
jne 0x87ce
movl 0x4(%rbx), %ecx
movslq %ecx, %rdx
cmpq %rdx, %rax
jge 0x87ca
cmpb $0x0, 0x1(%r14,%rax)
je 0x8867
incq %rax
cmpq %rax, %rdx
jne 0x87b4
movl %ecx, %esi
movl %esi, 0xc(%rsp)
movslq %esi, %rax
movzbl (%r14,%rax), %eax
cmpl $0x27, %eax
je 0x87e5
cmpl $0x22, %eax
jne 0x8834
jmp 0x8871
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x88b9
testl %eax, %eax
je 0x8867
movslq 0xc(%rsp), %rax
movq %rax, %rcx
addq %r14, %rcx
movzbl (%rcx), %edx
testl %edx, %edx
je 0x8815
cmpl $0x27, %edx
je 0x8815
incl %eax
incq %rcx
jmp 0x8802
movl %eax, 0xc(%rsp)
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x88b9
testl %eax, %eax
je 0x8867
movslq 0xc(%rsp), %rsi
movb (%r14,%rsi), %al
cmpb $0x5c, %al
jne 0x884e
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x88b9
testl %eax, %eax
je 0x8867
movl 0xc(%rsp), %esi
movslq %esi, %rcx
leaq 0x1(%rcx), %rax
movl %eax, 0xc(%rsp)
cmpb $0x0, 0x1(%r14,%rcx)
movl %eax, %esi
jne 0x87a5
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 0x8953
// File: /workspace/github_c_makefile_star2_O3/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), %rcx
cmpb $0x0, (%rdi,%rcx)
je 0x88b6
leal 0x1(%rcx), %eax
movq %rcx, %r8
movslq 0x4(%rdx), %r9
cmpq %r9, %rcx
jge 0x88ad
leaq 0x1(%r8), %rcx
movl %eax, (%rsi)
incl %eax
cmpb $0x0, 0x1(%rdi,%r8)
jne 0x8891
xorl %eax, %eax
cmpq %r9, %r8
setge %al
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/quote_removal.c
// Function: quote_removal_eat_char
int		quote_removal_eat_char(char *str, int *i, t_no_unquote *no)
{
	if (!str[*i])
		return (0);
	ft_memmove(str + *i, str + *i + 1, ft_strlen(str + *i));
	no->end--;
	no->start--;
	if (*i == no->start)
	{
		return (quote_removal_skip_protected_part(str, i, no));
	}
	return (1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movslq (%rsi), %r12
xorl %eax, %eax
cmpb $0x0, (%rdi,%r12)
je 0x8949
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
addq %rdi, %r12
leaq 0x1(%r12), %r13
movq %r12, %rdi
callq 0xa4f8
movq %r12, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x9d58
movq (%rbx), %xmm0
pcmpeqd %xmm1, %xmm1
paddd %xmm0, %xmm1
movq %xmm1, (%rbx)
movd %xmm1, %ecx
movl $0x1, %eax
cmpl %ecx, (%r14)
jne 0x8949
movslq %ecx, %rdx
cmpb $0x0, (%r15,%rdx)
movl $0x0, %eax
je 0x8949
incl %ecx
movq %rdx, %rsi
movslq 0x4(%rbx), %rdi
cmpq %rdi, %rdx
jge 0x8941
leaq 0x1(%rsi), %rdx
movl %ecx, (%r14)
incl %ecx
cmpb $0x0, 0x1(%r15,%rsi)
jne 0x8924
xorl %eax, %eax
cmpq %rdi, %rsi
setge %al
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x88b9
testl %eax, %eax
je 0x8a15
movl 0x4(%rsp), %eax
movslq %eax, %rcx
cmpb $0x0, (%r14,%rcx)
je 0x8a15
leaq 0x4(%rsp), %r15
movabsq $0x4400000000000005, %r12 # imm = 0x4400000000000005
cmpl (%rbx), %eax
jne 0x89be
movl 0x4(%rbx), %edx
movslq %edx, %rsi
cmpq %rsi, %rcx
jge 0x89ba
cmpb $0x0, 0x1(%r14,%rcx)
je 0x8a15
incq %rcx
cmpq %rcx, %rsi
jne 0x89a8
movl %edx, %eax
movl %eax, 0x4(%rsp)
movslq %eax, %rcx
movzbl (%r14,%rcx), %edx
cmpl $0x5c, %edx
je 0x89d2
cmpl $0x22, %edx
jne 0x8a01
jmp 0x8a21
movzbl 0x1(%r14,%rcx), %ecx
leal -0x22(%rcx), %edx
cmpl $0x3e, %edx
ja 0x89e6
btq %rdx, %r12
jb 0x89eb
cmpl $0xa, %ecx
jne 0x8a01
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x88b9
testl %eax, %eax
je 0x8a15
movl 0x4(%rsp), %eax
cltq
leaq 0x1(%rax), %rcx
movl %ecx, 0x4(%rsp)
cmpb $0x0, 0x1(%r14,%rax)
movl %ecx, %eax
jne 0x8999
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x4(%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x88b9
testl %eax, %eax
je 0x8a15
movl 0x4(%rsp), %esi
movq %r14, %rdi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x8780
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/list_to_cmd_root.c
// Function: list_to_cmd_root
int				list_to_cmd_root(t_token *token_node)
{
	t_simple_cmd	*cmd;
	t_list			*tokens_list;
	t_list			*redirections;

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r15
movq (%rdi), %rax
movq %rax, 0x10(%rsp)
callq 0x8b34
xorl %ebx, %ebx
testq %rax, %rax
je 0x8b23
movq %rax, %r14
leaq 0x10(%rsp), %r13
movq %r13, %rdi
callq 0x8b59
movq %rax, %r12
movq %rax, 0x8(%rsp)
movq (%r13), %rsi
movq %r14, %rdi
callq 0x8bdc
testl %eax, %eax
je 0x8b0a
movq %r14, %rdi
movq %r12, %rsi
callq 0x8ca0
movl %eax, %ebp
leaq -0x634b(%rip), %rsi     # 0x278e
leaq 0x8(%rsp), %rdi
callq 0xa748
testl %ebp, %ebp
je 0x8b1b
leaq -0x6360(%rip), %rsi     # 0x278e
leaq 0x10(%rsp), %rdi
callq 0xa748
movq %r14, (%r15)
movl $0x10, 0x8(%r15)
movl $0x1, %ebx
jmp 0x8b23
leaq -0x6383(%rip), %rsi     # 0x278e
leaq 0x8(%rsp), %rdi
callq 0xa748
movq %r14, %rdi
callq 0x8c64
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x8bd2
movq %rsp, %r14
callq 0x63db
cmpl $0xc, %eax
je 0x8b97
movq (%rbx), %rdi
callq 0x63db
cmpl $0xd, %eax
je 0x8b97
movq (%rbx), %rdi
callq 0x63db
cmpl $0xa, %eax
jne 0x8bc3
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 0xa70c
movq (%rbx), %rdi
testq %rdi, %rdi
jne 0x8b73
jmp 0x8bcc
movq (%rbx), %rbx
addq $0x8, %rbx
jmp 0x8bb9
movq (%rsp), %rax
jmp 0x8bd4
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %ebp, %ebp
movl $0x0, %eax
testq %rsi, %rsi
je 0x8c05
xorl %eax, %eax
movq %rbx, %rcx
movq 0x8(%rcx), %rcx
incl %eax
testq %rcx, %rcx
jne 0x8bfa
movl %eax, %r15d
leaq 0x8(,%r15,8), %rdi
callq 0x2190
movq %rax, 0x8(%r14)
testq %rax, %rax
je 0x8c57
movq $0x0, (%rax,%r15,8)
movl $0x1, %ebp
testq %rbx, %rbx
je 0x8c57
xorl %eax, %eax
movq (%rbx), %rcx
movq (%rcx), %rcx
movq 0x8(%r14), %rdx
movq %rcx, (%rdx,%rax)
movq (%rbx), %rcx
movq $0x0, (%rcx)
movq 0x8(%rbx), %rbx
addq $0x8, %rax
testq %rbx, %rbx
jne 0x8c32
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/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 0x8cf0
movq %rsi, %r14
movq %rdi, %r15
movl $0x3400, %ebp           # imm = 0x3400
movq %r14, %rdi
callq 0x63db
cmpl $0xd, %eax
ja 0x8ce3
btl %eax, %ebp
jae 0x8ce3
movq %r15, %rdi
movl %eax, %esi
movq %r14, %rdx
callq 0x8cfd
testl %eax, %eax
je 0x8cee
movq 0x8(%r14), %r14
movq 0x8(%r14), %r14
testq %r14, %r14
jne 0x8cbc
jmp 0x8cf0
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/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 0x8d79
testq %rax, %rax
je 0x8d60
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 0xa7bc
testq %rax, %rax
je 0x8d65
movq %rbx, %rdi
movq %rax, %rsi
callq 0xa70c
movl $0x1, %r14d
jmp 0x8d6d
xorl %r14d, %r14d
jmp 0x8d6d
movq %r15, %rdi
callq 0x8d9e
movl %r14d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x8dc1
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_O3/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 0x269b(%rip), %rdi      # 0xb469
movl $0x2, %esi
callq 0x9e70
movl %ebx, %edi
movl $0x2, %esi
callq 0x9df0
movl $0xa, %edi
movl $0x2, %esi
callq 0x9db0
subl $-0x80, %ebx
leaq 0x933f(%rip), %rax      # 0x1213c
movl %ebx, (%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x2644(%rip), %r14      # 0xb4d3
leaq 0x2645(%rip), %rdx      # 0xb4db
movq %r14, %rdi
xorl %eax, %eax
callq 0x20c0
movzbl 0x28(%rbx), %esi
andl $0x1, %esi
leaq 0x2632(%rip), %rdx      # 0xb4e0
movq %r14, %rdi
xorl %eax, %eax
callq 0x20c0
movl 0x28(%rbx), %esi
shrl %esi
andl $0x1, %esi
leaq 0x261f(%rip), %rdx      # 0xb4e6
movq %r14, %rdi
xorl %eax, %eax
callq 0x20c0
movl 0x28(%rbx), %esi
shrl $0x2, %esi
andl $0x1, %esi
leaq 0x260b(%rip), %rdx      # 0xb4ec
movq %r14, %rdi
xorl %eax, %eax
callq 0x20c0
movl 0x2c(%rbx), %esi
leaq 0x2601(%rip), %rdx      # 0xb4f6
movq %r14, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x20c0
// File: /workspace/github_c_makefile_star2_O3/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 0x25c1(%rip), %rdi      # 0xb501
movl $0x2, %esi
callq 0x9dcc
testq %rbx, %rbx
je 0x8fa3
leaq 0x25e2(%rip), %r14      # 0xb538
leaq 0x8d83(%rip), %r12      # 0x11ce0
leaq 0x2262(%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 0x8f8c
cmpl %ecx, %edx
jne 0x8f7d
movq -0x18(%rax), %rsi
movq %r15, %rdi
xorl %eax, %eax
callq 0x20c0
movq 0x8(%rbx), %rbx
testq %rbx, %rbx
jne 0x8f64
leaq 0x2593(%rip), %rdi      # 0xb53d
movl $0x2, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x9dcc
// File: /workspace/github_c_makefile_star2_O3/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 0x25a9(%rip), %rdi      # 0xb573
movl $0x2, %esi
callq 0x9dcc
movq (%rbx), %rsi
leaq 0x25cc(%rip), %rdi      # 0xb5aa
xorl %eax, %eax
callq 0x20c0
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x9003
callq 0xa4f8
leaq 0x25c0(%rip), %rdi      # 0xb5b9
movq %rax, %rsi
xorl %eax, %eax
callq 0x20c0
movl 0x8(%rbx), %esi
leaq 0x8cd3(%rip), %rax      # 0x11ce0
movl (%rax), %ecx
addq $0x10, %rax
cmpl $-0x1, %ecx
je 0x901c
cmpl %esi, %ecx
jne 0x900d
movq -0x18(%rax), %rdx
leaq 0x25a0(%rip), %rdi      # 0xb5c7
xorl %eax, %eax
callq 0x20c0
movl 0x10(%rbx), %esi
shrl %esi
andl $0x1, %esi
leaq 0x259b(%rip), %rdi      # 0xb5d8
xorl %eax, %eax
callq 0x20c0
movzbl 0x10(%rbx), %esi
andl $0x1, %esi
leaq 0x2594(%rip), %rdi      # 0xb5e6
xorl %eax, %eax
callq 0x20c0
leaq 0x2596(%rip), %rdi      # 0xb5f6
movl $0x2, %esi
popq %rbx
jmp 0x9dcc
// File: /workspace/github_c_makefile_star2_O3/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 0x90cd
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x2606(%rip), %r14      # 0xb688
leaq 0x25a4(%rip), %r15      # 0xb62d
leaq 0x25a7(%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 0x9090
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x90e3
movq 0x8(%r14), %rbx
testq %rbx, %rbx
jne 0x90f3
leaq 0x25b2(%rip), %rdi      # 0xb69c
callq 0x2050
movq 0x8(%r14), %rbx
leaq 0x25b3(%rip), %rdi      # 0xb6ad
callq 0x2050
leaq 0x25e7(%rip), %rdi      # 0xb6ed
callq 0x2050
movl (%r14), %esi
leaq 0x252c(%rip), %rdi      # 0xb641
xorl %eax, %eax
callq 0x20c0
testq %rbx, %rbx
je 0x9158
leaq 0x252f(%rip), %rdi      # 0xb657
movq %rbx, %rsi
xorl %eax, %eax
callq 0x20c0
leaq 0x252a(%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 0x913b
popq %rbx
popq %r14
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/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 0x2520(%rip), %rdi      # 0xb6ad
callq 0x2050
leaq 0x2779(%rip), %rdi      # 0xb912
callq 0x2050
movl 0x28(%rbx), %esi
leaq 0x2590(%rip), %rdi      # 0xb738
xorl %eax, %eax
callq 0x20c0
movl 0x2c(%rbx), %esi
leaq 0x2599(%rip), %rdi      # 0xb752
xorl %eax, %eax
popq %rbx
jmp 0x20c0
// File: /workspace/github_c_makefile_star2_O3/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x255d(%rip), %rdi      # 0xb72c
movl $0x1, %esi
callq 0x9e70
testq %rbx, %rbx
je 0x91fc
movq %rbx, %rdi
callq 0xa4f8
testl %eax, %eax
je 0x920f
leaq 0x257b(%rip), %rdi      # 0xb76c
movl %eax, %esi
xorl %eax, %eax
callq 0x20c0
jmp 0x921b
leaq 0x274e(%rip), %rdi      # 0xb951
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2050
leaq 0x2754(%rip), %rdi      # 0xb96a
callq 0x2050
leaq 0x2571(%rip), %rdi      # 0xb793
movl $0x1, %esi
callq 0x9e70
leaq 0x2587(%rip), %r14      # 0xb7ba
movzbl (%rbx), %eax
cmpl $0x1b, %eax
je 0x924e
testl %eax, %eax
je 0x9260
movsbl %al, %edi
movl $0x1, %esi
callq 0x9db0
jmp 0x925b
movq %r14, %rdi
movl $0x1, %esi
callq 0x9e70
incq %rbx
jmp 0x9233
leaq 0x2557(%rip), %rdi      # 0xb7be
movl $0x1, %esi
callq 0x9e70
leaq 0x29d2(%rip), %rdi      # 0xbc4a
movl $0x1, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x9e70
// File: /workspace/github_c_makefile_star2_O3/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 %rbx
movl %edi, %ebx
leaq 0x2499(%rip), %rdi      # 0xb72c
movl $0x1, %esi
callq 0x9e70
movl %ebx, %edi
callq 0x9bbc
testl %eax, %eax
je 0x92bc
leaq 0x2512(%rip), %rdi      # 0xb7c1
movl %ebx, %esi
movl %ebx, %edx
xorl %eax, %eax
callq 0x20c0
jmp 0x92cc
leaq 0x252a(%rip), %rdi      # 0xb7ed
movl %ebx, %esi
xorl %eax, %eax
callq 0x20c0
leaq 0x2977(%rip), %rdi      # 0xbc4a
movl $0x1, %esi
popq %rbx
jmp 0x9e70
// File: /workspace/github_c_makefile_star2_O3/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 %rbx
movq %rdi, %rbx
leaq 0x2443(%rip), %rdi      # 0xb72c
movl $0x1, %esi
callq 0x9e70
movl (%rbx), %esi
movl 0x4(%rbx), %edx
leaq 0x2519(%rip), %rdi      # 0xb818
xorl %eax, %eax
callq 0x20c0
leaq 0x293d(%rip), %rdi      # 0xbc4a
movl $0x1, %esi
popq %rbx
jmp 0x9e70
// File: /workspace/github_c_makefile_star2_O3/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x2406(%rip), %rbx      # 0xb72c
movq %rbx, %rdi
movl $0x1, %esi
callq 0x9e70
leaq 0x251c(%rip), %rdi      # 0xb856
xorl %eax, %eax
callq 0x20c0
leaq 0x2644(%rip), %rdi      # 0xb98c
callq 0x2050
leaq 0x10(%r14), %rdi
callq 0x92de
movq %rbx, %rdi
movl $0x1, %esi
callq 0x9e70
movq 0x38(%r14), %rsi
leaq 0x2527(%rip), %rdi      # 0xb895
xorl %eax, %eax
callq 0x20c0
movq %rbx, %rdi
movl $0x1, %esi
callq 0x9e70
movq 0x40(%r14), %rsi
leaq 0x251a(%rip), %rdi      # 0xb8a7
xorl %eax, %eax
callq 0x20c0
movq %rbx, %rdi
movl $0x1, %esi
callq 0x9e70
movl 0x48(%r14), %esi
leaq 0x250d(%rip), %rdi      # 0xb8b9
xorl %eax, %eax
callq 0x20c0
movq %rbx, %rdi
movl $0x1, %esi
callq 0x9e70
leaq 0x2603(%rip), %rdi      # 0xb9ca
callq 0x2050
movq %rbx, %rdi
movl $0x1, %esi
callq 0x9e70
leaq 0x2628(%rip), %rdi      # 0xba08
callq 0x2050
leaq 0x285e(%rip), %rdi      # 0xbc4a
movl $0x1, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x9e70
// File: /workspace/github_c_makefile_star2_O3/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 %rax
leaq 0x2327(%rip), %rdi      # 0xb72c
movl $0x1, %esi
callq 0x9e70
leaq 0x2630(%rip), %rdi      # 0xba46
callq 0x2050
leaq 0x2662(%rip), %rdi      # 0xba84
callq 0x2050
movl 0x10(%rsp), %esi
leaq 0x24a7(%rip), %rdi      # 0xb8d9
xorl %eax, %eax
callq 0x20c0
movl 0x14(%rsp), %esi
leaq 0x24a6(%rip), %rdi      # 0xb8ea
xorl %eax, %eax
callq 0x20c0
movl 0x18(%rsp), %esi
leaq 0x24a1(%rip), %rdi      # 0xb8f7
xorl %eax, %eax
callq 0x20c0
movq 0x20(%rsp), %rsi
leaq 0x2499(%rip), %rdi      # 0xb902
xorl %eax, %eax
callq 0x20c0
leaq 0x25d1(%rip), %rdi      # 0xba48
callq 0x2050
leaq 0x27c7(%rip), %rdi      # 0xbc4a
movl $0x1, %esi
popq %rax
jmp 0x9e70
nop
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/btree_debug.c
// Function: btree_debug
void	btree_debug(t_btree *root, void (*display)())
{
	t_depth	depths;

	ft_putstr_fd("\n======================================================"\
			"=========================\n======================== BTREE DEBUG "\
			"START ====================================\n", 1);
	if (!root)
	{
		ft_putstr_fd("NULL ROOT\n", 1);
		return ;
	}
	depths.max = btree_depth(root);
	depths.current = 0;
	depths.bottom = 0;
	while (++depths.bottom <= depths.max)
	{
		btree_debug2(root, depths, display, NULL);
		ft_putchar_fd('\n', 1);
	}
	ft_putstr_fd("\n============================== DEBUG END ============="\
			"=========================\n====================================="\
			"==========================================\n\n\n", 1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x2619(%rip), %rdi      # 0xbac1
movl $0x1, %esi
callq 0x9e70
testq %r14, %r14
je 0x950f
movq %r14, %rdi
callq 0xadb0
leaq 0x26a8(%rip), %r15      # 0xbb6e
testl %eax, %eax
jle 0x9516
movl %eax, %r12d
movl %r12d, %ebp
negl %ebp
movl $0x1, %r13d
movq %r14, %rdi
movq %r12, %rsi
movl %r13d, %edx
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x9531
movl $0xa, %edi
movl $0x1, %esi
callq 0x9db0
leal 0x1(%rbp,%r13), %eax
movl %r13d, %ecx
incl %ecx
movl %ecx, %r13d
cmpl $0x1, %eax
jne 0x94d8
jmp 0x9516
leaq 0x264d(%rip), %r15      # 0xbb63
movq %r15, %rdi
movl $0x1, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9e70
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/btree_debug.c
// Function: btree_debug2
static	void	btree_debug2(t_btree *node, t_depth depths, void (*display)(),
		t_btree *parent)
{
	int	size_line;
	int	i;

	depths.current++;
	i = 0;
	size_line = (1 << (depths.max - depths.current)) * SIZE_LEAF;
	if (!node)
	{
		while (i++ < size_line)
			ft_putchar_fd(' ', 1);
		return ;
	}
	if (depths.current == depths.bottom)
	{
		while (i++ < (size_line - SIZE_LEAF) / 2)
			ft_putchar_fd(' ', 1);
		display(node->item, parent);
		while (i++ <= (size_line - SIZE_LEAF))
			ft_putchar_fd(' ', 1);
		return ;
	}
	btree_debug2(node->left, depths, display, node);
	btree_debug2(node->right, depths, display, node);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, 0x8(%rsp)
movq %rsi, %r15
movq %rsi, %r13
shrq $0x20, %r13
incl %r13d
testq %rdi, %rdi
je 0x95e6
movl %edx, %ebp
movq %rdi, %r12
cmpl %edx, %r13d
jne 0x956c
movq %r8, %r14
movq %r12, %rbx
jmp 0x95ae
movl %r15d, %eax
movq %rax, 0x10(%rsp)
movq (%r12), %rdi
movq %r13, %r15
shlq $0x20, %r15
addq 0x10(%rsp), %r15
movq %r15, %rsi
movl %ebp, %edx
movq 0x8(%rsp), %rcx
movq %r12, %r8
callq 0x9531
movq 0x8(%r12), %rbx
incl %r13d
testq %rbx, %rbx
je 0x95e6
movq %r12, %r14
movq %rbx, %r12
cmpl %r13d, %ebp
jne 0x9574
subl %ebp, %r15d
movl $0x6, %ebp
movl %r15d, %ecx
shll %cl, %ebp
addl $-0x6, %ebp
movl %ebp, %r15d
sarl %r15d
testl %r15d, %r15d
jle 0x960c
leal 0x1(%r15), %r12d
movl %r15d, %r13d
movl $0x20, %edi
movl $0x1, %esi
callq 0x9db0
decl %r13d
jne 0x95d0
jmp 0x9612
subl %r13d, %r15d
movl $0x6, %ebx
movl %r15d, %ecx
shll %cl, %ebx
testl %ebx, %ebx
jle 0x9642
movl $0x20, %edi
movl $0x1, %esi
callq 0x9db0
decl %ebx
jne 0x95f7
jmp 0x9642
movl $0x1, %r12d
movq 0x10(%rbx), %rdi
xorl %ebx, %ebx
movq %r14, %rsi
xorl %eax, %eax
callq *0x8(%rsp)
cmpl %ebp, %r12d
jg 0x9642
testl %r15d, %r15d
cmovgl %r15d, %ebx
movl $0x20, %edi
movl $0x1, %esi
callq 0x9db0
incl %ebx
cmpl %ebp, %ebx
jl 0x962d
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/debug_exe.c
// Function: debug_node_id
void	debug_node_id(t_btree *node)
{
	printf("\033[35mnode id:");
	if (!node)
		printf("\033[31mnode is NULL:\n");
	else if (btree_id(node) == TOKEN)
		printf("TOKEN\n");
	else if (btree_id(node) == SEMI)
		printf("SEMI\n");
	else if (btree_id(node) == PIPE)
		printf("PIPE\n");
	else if (btree_id(node) == OR_IF)
		printf("OR_IF\n");
	else if (btree_id(node) == AND)
		printf("AND\n");
	else if (btree_id(node) == AND_IF)
		printf("AND_IF\n");
	else if (btree_id(node) == LBRACE)
		printf("LBRACE\n");
	else if (btree_id(node) == RBRACE)
		printf("RBRACE\n");
	else if (btree_id(node) == S_QUOTE)
		printf("S_QUOTE\n");
	else if (btree_id(node) == D_QUOTE)
		printf("D_QUOTE\n");
	else if (btree_id(node) == LESS)
		printf("LESS\n");
	else if (btree_id(node) == DLESS)
		printf("DLESS\n");
	else if (btree_id(node) == GREAT)
		printf("GREAT\n");
	else if (btree_id(node) == DGREAT)
		printf("DGREAT\n");
	else if (btree_id(node) == SUBSHELL)
		printf("SUBSHELL\n");
	else if (btree_id(node) == LIST)
		printf("LIST\n");
	else
		printf("\033[31mWARNING, id unrecognized\n");
	printf("\033[0m");
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x25b3(%rip), %rdi      # 0xbc12
xorl %eax, %eax
callq 0x20c0
testq %rbx, %rbx
je 0x9690
movq %rbx, %rdi
callq 0x63f1
testl %eax, %eax
je 0x969c
movq %rbx, %rdi
callq 0x63f1
cmpl $0x1, %eax
jne 0x96a8
leaq 0x1de6(%rip), %rdi      # 0xb471
jmp 0x97fb
leaq 0x26dc(%rip), %rdi      # 0xbd73
jmp 0x97fb
leaq 0x1e14(%rip), %rdi      # 0xb4b7
jmp 0x97fb
movq %rbx, %rdi
callq 0x63f1
cmpl $0x2, %eax
jne 0x96c1
leaq 0x1dc8(%rip), %rdi      # 0xb484
jmp 0x97fb
movq %rbx, %rdi
callq 0x63f1
cmpl $0x3, %eax
jne 0x96da
leaq 0x1db4(%rip), %rdi      # 0xb489
jmp 0x97fb
movq %rbx, %rdi
callq 0x63f1
cmpl $0x4, %eax
jne 0x96f3
leaq 0x1da1(%rip), %rdi      # 0xb48f
jmp 0x97fb
movq %rbx, %rdi
callq 0x63f1
cmpl $0x5, %eax
jne 0x970c
leaq 0x1d8c(%rip), %rdi      # 0xb493
jmp 0x97fb
movq %rbx, %rdi
callq 0x63f1
cmpl $0x6, %eax
jne 0x9725
leaq 0x1d56(%rip), %rdi      # 0xb476
jmp 0x97fb
movq %rbx, %rdi
callq 0x63f1
cmpl $0x7, %eax
jne 0x973e
leaq 0x1d44(%rip), %rdi      # 0xb47d
jmp 0x97fb
movq %rbx, %rdi
callq 0x63f1
cmpl $0x8, %eax
jne 0x9757
leaq 0x1d48(%rip), %rdi      # 0xb49a
jmp 0x97fb
movq %rbx, %rdi
callq 0x63f1
cmpl $0x9, %eax
jne 0x9770
leaq 0x1d37(%rip), %rdi      # 0xb4a2
jmp 0x97fb
movq %rbx, %rdi
callq 0x63f1
cmpl $0xa, %eax
jne 0x9786
leaq 0x1d2e(%rip), %rdi      # 0xb4b2
jmp 0x97fb
movq %rbx, %rdi
callq 0x63f1
cmpl $0xb, %eax
jne 0x979c
leaq 0x1d17(%rip), %rdi      # 0xb4b1
jmp 0x97fb
movq %rbx, %rdi
callq 0x63f1
cmpl $0xc, %eax
jne 0x97b2
leaq 0x1cfb(%rip), %rdi      # 0xb4ab
jmp 0x97fb
movq %rbx, %rdi
callq 0x63f1
cmpl $0xd, %eax
jne 0x97c8
leaq 0x1ce4(%rip), %rdi      # 0xb4aa
jmp 0x97fb
movq %rbx, %rdi
callq 0x63f1
cmpl $0xe, %eax
jne 0x97de
leaq 0x25cd(%rip), %rdi      # 0xbda9
jmp 0x97fb
movq %rbx, %rdi
callq 0x63f1
cmpl $0xf, %eax
leaq 0x25b4(%rip), %rax      # 0xbda4
leaq 0x258f(%rip), %rdi      # 0xbd86
cmoveq %rax, %rdi
callq 0x2050
leaq 0x2443(%rip), %rdi      # 0xbc4a
xorl %eax, %eax
popq %rbx
jmp 0x20c0
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/debug_exe.c
// Function: debug_arrow_struct
void	debug_arrow_struct(t_arrow *arrow)
{
	if (!arrow)
	{
		printf("\033[31mWARNING, the arrow pointer was null.\n\033[0m");
		return ;
	}
	printf("\tarrow->id = ");
	if (arrow->id == GREAT)
		printf("GREAT\n");
	else if (arrow->id == DGREAT)
		printf("DGREAT\n");
	else if (arrow->id == LESS)
		printf("LESS\n");
	else
		printf("\033[31mWR0NG ID\033[0m\n");
	printf("\tarrow->dest = [%s]\n", arrow->dest);
}

// Assembly:
testq %rdi, %rdi
je 0x9843
pushq %rbx
movq %rdi, %rbx
leaq 0x2430(%rip), %rdi      # 0xbc4f
xorl %eax, %eax
callq 0x20c0
movl 0x10(%rbx), %eax
addl $-0xa, %eax
cmpl $0x3, %eax
ja 0x9851
movl %eax, %eax
leaq 0x287a(%rip), %rcx      # 0xc0b4
movslq (%rcx,%rax,4), %rdi
addq %rcx, %rdi
jmp 0x9858
leaq 0x23d6(%rip), %rdi      # 0xbc20
xorl %eax, %eax
jmp 0x20c0
leaq 0x255a(%rip), %rdi      # 0xbdb2
callq 0x2050
movq 0x8(%rbx), %rsi
leaq 0x23f5(%rip), %rdi      # 0xbc5d
xorl %eax, %eax
popq %rbx
jmp 0x20c0
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/debug_exe.c
// Function: debug_simple_cmd
void	debug_simple_cmd(t_simple_cmd *cmd)
{
	int i;
	t_list *tmp;

	i = 0;
	printf("\n==============================================================\n");
	printf("=============================== DEBUG SIMPLE_CMD =============\n");
	if (!cmd)
	{
		printf("\033[31mWARNING, the cmd structure is a NULL pointer\n\033[0m");
		return ;
	}
	printf("argv:\n");
	if (!cmd->argv)
	{
		printf("\033[31mWARNING, the cmd->argv is a NULL pointer\n\033[0m");
	}
	while (cmd->argv && cmd->argv[i])
	{
		printf("\tcmd->argv[%d]: [%s]\n", i, cmd->argv[i]);
		i++;
	}
	printf("arrows:\n");
	tmp = cmd->arrows;
	while (tmp)
	{
		debug_arrow_struct((t_arrow*)tmp->content);
		tmp = tmp->next;
	}
	printf("======================= END DEBUG SIMPLE_CMD =================\n");
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x1e2e(%rip), %rdi      # 0xb6ad
callq 0x2050
leaq 0x2539(%rip), %rdi      # 0xbdc4
callq 0x2050
testq %rbx, %rbx
je 0x9924
leaq 0x2563(%rip), %rdi      # 0xbe03
callq 0x2050
movq 0x8(%rbx), %rax
testq %rax, %rax
jne 0x98c5
leaq 0x23f4(%rip), %rdi      # 0xbca9
xorl %eax, %eax
callq 0x20c0
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x98f1
leaq 0x2410(%rip), %r14      # 0xbcdc
xorl %r15d, %r15d
movq (%rax,%r15,8), %rdx
testq %rdx, %rdx
je 0x98f1
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x20c0
incq %r15
movq 0x8(%rbx), %rax
testq %rax, %rax
jne 0x98cf
leaq 0x2511(%rip), %rdi      # 0xbe09
callq 0x2050
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x9913
movq (%rbx), %rdi
callq 0x980f
movq 0x8(%rbx), %rbx
jmp 0x9900
leaq 0x24f7(%rip), %rdi      # 0xbe11
popq %rbx
popq %r14
popq %r15
jmp 0x2050
leaq 0x2347(%rip), %rdi      # 0xbc72
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x20c0
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/debug_exe.c
// Function: debug_array
void	debug_array(char **array)
{
	int i;

	i = 0;
	printf("\n==============================================================\n");
	printf("=============================== DEBUG ARRAY ==================\n");
	if (!array || !*array)
	{
		printf("\033[31mNULL POINTER!\033[0m\n");
		return ;
	}
	while (array[i])
	{
		printf("\t[%s]\n", array[i]);
		i++;
	}
	printf("======================= END DEBUG ARRAY ======================\n");
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x1d67(%rip), %rdi      # 0xb6ad
callq 0x2050
leaq 0x24fe(%rip), %rdi      # 0xbe50
callq 0x2050
leaq 0x2531(%rip), %r14      # 0xbe8f
testq %rbx, %rbx
je 0x9993
movq (%rbx), %rsi
testq %rsi, %rsi
je 0x9993
addq $0x8, %rbx
leaq 0x1c3c(%rip), %r15      # 0xb5b2
leaq 0x2529(%rip), %r14      # 0xbea6
movq %r15, %rdi
xorl %eax, %eax
callq 0x20c0
movq (%rbx), %rsi
addq $0x8, %rbx
testq %rsi, %rsi
jne 0x997d
movq %r14, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2050
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/debug_exe.c
// Function: debug_unquote
void	debug_unquote(t_token *token)
{
	printf("\n==============================================================\n");
	printf("=============================== DEBUG UNQUOTE ================\n");
	printf("the string is: [%s]\n", token->str);
	if (!token->unquote_protected)
	{
		printf("\033[31mthe protection is off\033[0m\n");
		return ;
	}
	printf("\033[32mthe protection is ON\033[0m\n");
	printf("start: %d\n", token->protect_s);
	printf("end: %d\n", token->protect_e);
	printf("======================= END DEBUG UNQUOTE ====================\n");
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x1d02(%rip), %rdi      # 0xb6ad
callq 0x2050
leaq 0x252e(%rip), %rdi      # 0xbee5
callq 0x2050
movq (%rbx), %rsi
leaq 0x232c(%rip), %rdi      # 0xbcf2
xorl %eax, %eax
callq 0x20c0
cmpl $0x0, 0x14(%rbx)
je 0x9a0a
leaq 0x2569(%rip), %rdi      # 0xbf43
callq 0x2050
movl 0x18(%rbx), %esi
leaq 0x231e(%rip), %rdi      # 0xbd07
xorl %eax, %eax
callq 0x20c0
movl 0x1c(%rbx), %esi
leaq 0x2318(%rip), %rdi      # 0xbd12
xorl %eax, %eax
callq 0x20c0
leaq 0x2559(%rip), %rdi      # 0xbf61
jmp 0x9a11
leaq 0x2513(%rip), %rdi      # 0xbf24
popq %rbx
jmp 0x2050
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/debug_exe.c
// Function: debug_path_parts
void	debug_path_parts(t_list *path_parts)
{
	int i;

	i = 0;
	printf("\n==============================================================\n");
	printf("============================= DEBUG PATH_PARTS ===============\n");
	while (path_parts)
	{
		printf("[%d] str is: [%s]\n", i++, ((t_path_part *)(path_parts->content))->path_part);
		path_parts = path_parts->next;
	}
	printf("==================== END DEBUG PATH_PARTS ====================\n");
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x1c88(%rip), %rdi      # 0xb6ad
callq 0x2050
leaq 0x256f(%rip), %rdi      # 0xbfa0
callq 0x2050
testq %rbx, %rbx
je 0x9a62
leaq 0x22d9(%rip), %r14      # 0xbd1b
xorl %esi, %esi
leal 0x1(%rsi), %ebp
movq (%rbx), %rax
movq (%rax), %rdx
movq %r14, %rdi
xorl %eax, %eax
callq 0x20c0
movq 0x8(%rbx), %rbx
movl %ebp, %esi
testq %rbx, %rbx
jne 0x9a44
leaq 0x2576(%rip), %rdi      # 0xbfdf
popq %rbx
popq %r14
popq %rbp
jmp 0x2050
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/sources/debug_exe.c
// Function: debug_path_part
void	debug_path_part(t_path_part *path_part)
{
	t_list *stars;

	printf("\n==============================================================\n");
	printf("============================= DEBUG PATH_PART ================\n");
	printf("the string is: [%s]\n", path_part->path_part);
	printf("quoted at the start of the string was: %d\n", path_part->quoted);
	printf("the ints linked list:\n");

	stars = path_part->star_index;
	while (stars)
	{
		printf("valid star a index: [%d]\n", *((int*)stars->content));
		stars = stars->next;
	}
	printf("===================== END DEBUG PATH_PART ====================\n");
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x1c2d(%rip), %rdi      # 0xb6ad
callq 0x2050
leaq 0x2592(%rip), %rdi      # 0xc01e
callq 0x2050
movq (%rbx), %rsi
leaq 0x2257(%rip), %rdi      # 0xbcf2
xorl %eax, %eax
callq 0x20c0
movsbl 0x10(%rbx), %esi
leaq 0x2281(%rip), %rdi      # 0xbd2e
xorl %eax, %eax
callq 0x20c0
leaq 0x25a2(%rip), %rdi      # 0xc05d
callq 0x2050
movq 0x8(%rbx), %r14
testq %r14, %r14
je 0x9ae8
leaq 0x2289(%rip), %rbx      # 0xbd59
movq (%r14), %rax
movl (%rax), %esi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x20c0
movq 0x8(%r14), %r14
testq %r14, %r14
jne 0x9ad0
leaq 0x2584(%rip), %rdi      # 0xc073
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2050
nop
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/libft/ft_atoi.c
// Function: ft_atoi
int		ft_atoi(const char *str)
{
	int i;
	int signe;
	int result;

	i = 0;
	signe = 1;
	result = 0;
	while (str[i] == '\t' || str[i] == '\n' || str[i] == '\v' ||
			str[i] == '\f' || str[i] == '\r' || str[i] == ' ')
		i++;
	if (str[i] == '+')
		i++;
	else if (str[i] == '-')
	{
		signe *= -1;
		i++;
	}
	while (str[i] >= '0' && str[i] <= '9')
		result = (10 * result) + str[i++] - '0';
	return (result * signe);
}

// Assembly:
xorl %eax, %eax
movzbl (%rdi,%rax), %ecx
leal -0x9(%rcx), %edx
cmpl $0x5, %edx
jae 0x9b0f
incq %rax
jmp 0x9afe
cmpl $0x20, %ecx
je 0x9b0a
cmpl $0x2b, %ecx
je 0x9b28
cmpl $0x2d, %ecx
jne 0x9b2b
incq %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
jmp 0x9b30
incq %rax
movl $0x1, %ecx
movslq %eax, %rsi
movb (%rdi,%rsi), %dl
leal -0x30(%rdx), %r8d
xorl %eax, %eax
cmpb $0x9, %r8b
ja 0x9b64
addq %rdi, %rsi
incq %rsi
xorl %eax, %eax
movzbl %dl, %edx
leal (%rax,%rax,4), %eax
leal (%rdx,%rax,2), %eax
addl $-0x30, %eax
movb (%rsi), %dl
leal -0x30(%rdx), %edi
incq %rsi
cmpb $0xa, %dil
jb 0x9b4a
imull %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/libft/ft_isonly_ft.c
// Function: ft_isonly_ft
int	ft_isonly_ft(char *str, int (*ft_issmth)(int c), int strict)
{
	int i;

	i = -1;
	if (!str || !str[0])
		return (strict ? 0 : 1);
	while (str[++i])
		if (!ft_issmth(str[i]))
			return (0);
	return (1);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x9c21
movq %rdi, %r14
cmpb $0x0, (%rdi)
je 0x9c21
movq %rsi, %rbx
movsbl (%r14), %edi
testl %edi, %edi
je 0x9c2a
callq *%rbx
incq %r14
testl %eax, %eax
jne 0x9c0c
xorl %eax, %eax
jmp 0x9c2f
xorl %eax, %eax
testl %edx, %edx
sete %al
jmp 0x9c2f
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/libft/ft_itoa.c
// Function: ft_itoa
char		*ft_itoa(int n)
{
	char	*ptr;
	int		size;

	size = predict_size(n);
	if (!(ptr = (char *)malloc(sizeof(*ptr) * (size + 1))))
		return (NULL);
	ptr[size] = '\0';
	while ((n > 9) || (n < -9))
	{
		ptr[--size] = (n < 0) ? -(n % 10) + '0' : n % 10 + '0';
		n = n / 10;
	}
	ptr[--size] = (n < 0) ? -(n % 10) + '0' : n % 10 + '0';
	ptr[0] = (size == 1) ? '-' : ptr[0];
	return (ptr);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edi, %ebx
movl %edi, %r14d
shrl $0x1f, %r14d
leal -0xa(%rbx), %ebp
cmpl $-0x14, %ebp
ja 0x9c73
movl %ebx, %eax
incl %r14d
cltq
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x22, %rcx
leal (%rcx,%rdx), %eax
addl %edx, %ecx
addl $-0xa, %ecx
cmpl $-0x13, %ecx
jb 0x9c4f
leal 0x2(%r14), %eax
movslq %eax, %rdi
callq 0x2190
testq %rax, %rax
je 0x9d10
movslq %r14d, %rcx
movb $0x0, 0x1(%rax,%rcx)
cmpl $-0x14, %ebp
ja 0x9ceb
incq %rcx
addq %rax, %rcx
decq %rcx
movl $0xcccccccd, %edx       # imm = 0xCCCCCCCD
movl %ebx, %esi
negl %esi
cmovsl %ebx, %esi
movq %rsi, %rdi
imulq %rdx, %rdi
shrq $0x23, %rdi
addl %edi, %edi
leal (%rdi,%rdi,4), %edi
subl %edi, %esi
orb $0x30, %sil
movb %sil, (%rcx)
movslq %ebx, %rsi
imulq $0x66666667, %rsi, %rsi # imm = 0x66666667
movq %rsi, %rdi
shrq $0x3f, %rdi
sarq $0x22, %rsi
leal (%rsi,%rdi), %ebx
addl %edi, %esi
addl $-0xa, %esi
decl %r14d
decq %rcx
cmpl $-0x13, %esi
jb 0x9ca3
movb $0x30, %cl
subb %bl, %cl
movl %ebx, %edx
orb $0x30, %dl
testl %ebx, %ebx
movzbl %cl, %ecx
movzbl %dl, %edx
cmovsl %ecx, %edx
movslq %r14d, %rsi
movb %dl, (%rax,%rsi)
movb $0x2d, %cl
cmpl $0x1, %esi
je 0x9d0e
movb (%rax), %cl
movb %cl, (%rax)
popq %rbx
popq %r14
popq %rbp
retq
nopl (%rax)