LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/parsing/quotes/quotes.c
// Function: parse_quotes
char		*parse_quotes(char *str)
{
	char	*str_in_quotes;
	char	*buff;
	char	*tmp;
	int		opening;
	int		closing;

	buff = ft_strdup("");
	while (*str)
	{
		if (!(str_in_quotes = remove_quotes(str, &opening, &closing)))
		{
			free(buff);
			return (NULL);
		}
		tmp = join_parsed_str(str, str_in_quotes, buff, opening);
		free(buff);
		buff = tmp;
		if (str_in_quotes != str)
			free(str_in_quotes);
		if (opening != -1)
			str += (closing + 1);
		else
			break ;
	}
	return (buff);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x2b06(%rip), %rdi      # 0x601e
callq 0x51fc
movq %rax, %r12
movb (%rbx), %al
testb %al, %al
je 0x36c3
xorl %r14d, %r14d
cmpb $0x22, %al
je 0x3542
movzbl %al, %eax
cmpl $0x27, %eax
je 0x3542
testl %eax, %eax
jne 0x3552
jmp 0x3633
movq %rbx, %rdi
movl %r14d, %esi
callq 0x36e8
testw %ax, %ax
jne 0x355c
movb 0x1(%rbx,%r14), %al
incq %r14
jmp 0x352d
movsbl (%rbx,%r14), %esi
movq %rbx, %rdi
movl %r14d, %edx
leaq 0x14(%rsp), %rcx
callq 0x3915
testq %rax, %rax
je 0x36c8
movq %rax, %r13
movq %rax, %rdi
callq 0x307b
movq %rax, %r15
movq %rax, %rdi
callq 0x2fe4
movq %rax, %rbp
movq %r15, %rdi
callq 0x1030
movq %rbp, %rdi
callq 0x51fc
movq %rax, 0x8(%rsp)
movq %rbp, %rdi
callq 0x1030
leal -0x1(%r14), %eax
cmpl $-0x3, %eax
ja 0x3646
incl %r14d
movq %r14, %rdi
callq 0x1160
testq %rax, %rax
je 0x36b6
movq %rax, %r15
movq %rax, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x53b0
movq %r15, %rdi
callq 0x307b
movq %rax, 0x18(%rsp)
movq %r12, %rdi
movq %rax, %rsi
callq 0x523c
movq %rax, 0x20(%rsp)
movq %rax, %rdi
movq 0x8(%rsp), %rbp
movq %rbp, %rsi
callq 0x523c
movq %rax, %r14
movq 0x18(%rsp), %rdi
callq 0x1030
movq %r15, %rdi
callq 0x1030
movq 0x20(%rsp), %rdi
callq 0x1030
xorl %r15d, %r15d
jmp 0x367a
movq %rbx, %rdi
callq 0x307b
movq %rax, %rbp
movb $0x1, %r15b
movq %rbx, %r13
jmp 0x364e
xorl %r15d, %r15d
movq 0x8(%rsp), %rbp
movq %r12, %rdi
leaq 0x29c6(%rip), %rsi      # 0x601e
callq 0x5460
testq %rax, %rax
je 0x366c
movq %rbp, %rdi
callq 0x51fc
jmp 0x3677
movq %r12, %rdi
movq %rbp, %rsi
callq 0x523c
movq %rax, %r14
movq %rbp, %rdi
callq 0x1030
movq %r12, %rdi
callq 0x1030
cmpq %rbx, %r13
je 0x3697
movq %r13, %rdi
callq 0x1030
testb %r15b, %r15b
jne 0x36d3
movslq 0x14(%rsp), %rax
addq %rax, %rbx
incq %rbx
movb (%rbx), %al
movq %r14, %r12
testb %al, %al
jne 0x352a
jmp 0x36d3
xorl %r15d, %r15d
xorl %r14d, %r14d
movq 0x8(%rsp), %rbp
jmp 0x367a
movq %r12, %r14
jmp 0x36d3
movq %r12, %rdi
callq 0x1030
xorl %r14d, %r14d
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/parsing/quotes/quotes_utils.c
// Function: check_prev_backslashes
short	check_prev_backslashes(char *str, int i)
{
	int n;

	n = 0;
	while (i && str[--i] == '\\')
		n++;
	return ((n + 1) % 2);
}

// Assembly:
testl %esi, %esi
je 0x370a
movslq %esi, %rcx
xorl %eax, %eax
cmpb $0x5c, -0x1(%rdi,%rcx)
jne 0x3704
decq %rcx
incl %eax
testq %rcx, %rcx
jne 0x36f1
movl %esi, %eax
notl %eax
andl $0x1, %eax
retq
movw $0x1, %ax
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/parsing/quotes/quotes_utils.c
// Function: n_special_chars
int		n_special_chars(char *str, int opening, int closing, char quote)
{
	int	i;
	int	n;

	i = opening + 1;
	n = 0;
	while (i < closing)
	{
		if (quote != '\'' && is_special_char(str[i]))
			n++;
		else if (is_space(str[i]))
			n++;
		i++;
	}
	return (n);
}

// Assembly:
leal 0x1(%rsi), %r8d
xorl %eax, %eax
cmpl %edx, %r8d
jge 0x37c0
movslq %esi, %rsi
decl %edx
xorl %eax, %eax
movabsq $0x100000000800009, %r8 # imm = 0x100000000800009
movzbl 0x1(%rdi,%rsi), %r9d
cmpb $0x27, %cl
jne 0x379a
cmpl $0x20, %r9d
sete %r10b
cmpl $0x9, %r9d
sete %r9b
orb %r10b, %r9b
movzbl %r9b, %r10d
jmp 0x37b6
movl $0x1, %r10d
leal -0x24(%r9), %r11d
cmpl $0x38, %r11d
ja 0x37b0
btq %r11, %r8
jb 0x37b6
cmpl $0x7c, %r9d
jne 0x3781
addl %r10d, %eax
incq %rsi
cmpl %esi, %edx
jne 0x3776
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/parsing/quotes/quotes_utils_2.c
// Function: get_string_between_quotes
char	*get_string_between_quotes(char *str, int opening,
										int closing, char quote)
{
	char	*buff;
	int		i;
	int		j;

	j = 0;
	i = opening + 1;
	buff = alloc_in_quotes(str, quote, opening, closing);
	while (i < closing)
	{
		if (quote == '\'' && (is_special_char(str[i]) ||
			(str[i - 1] == '\\' && is_alpha(str[i]))))
			buff[j++] = '\\';
		else
		{
			if (is_space(str[i])
				|| str[i] == '|' || str[i] == ';' || str[i] == '\'')
				buff[j++] = '\\';
			if (str[i - 1] == '\\' && (str[i] == '|' || is_alpha(str[i])))
				buff[j++] = '\\';
		}
		buff[j++] = str[i++];
	}
	buff[j] = '\0';
	return (buff);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %r15
callq 0x375a
movl %ebp, %ecx
subl %r14d, %ecx
addl %ecx, %eax
incl %eax
movslq %eax, %rdi
callq 0x1160
movq %rax, %r12
leal 0x1(%r14), %eax
xorl %r13d, %r13d
cmpl %ebp, %eax
jge 0x38df
movq %r15, %rcx
movslq %eax, %r15
movq %rcx, (%rsp)
addq %rcx, %r15
decl %ebp
cmpb $0x27, %bl
jne 0x3864
movsbl (%r15), %edi
callq 0x3721
testw %ax, %ax
jne 0x389e
movslq %r14d, %rax
movq (%rsp), %rcx
cmpb $0x5c, (%rcx,%rax)
jne 0x3864
movsbl (%r15), %edi
callq 0x370f
testw %ax, %ax
jne 0x389e
movsbl (%r15), %edi
callq 0x3746
testw %ax, %ax
je 0x38c7
movslq %r13d, %rax
incl %r13d
movb $0x5c, (%r12,%rax)
movslq %r14d, %rax
movq (%rsp), %rcx
cmpb $0x5c, (%rcx,%rax)
jne 0x38a9
movb (%r15), %al
cmpb $0x7c, %al
je 0x389e
movsbl %al, %edi
callq 0x370f
testw %ax, %ax
je 0x38a9
movslq %r13d, %rax
incl %r13d
movb $0x5c, (%r12,%rax)
movb (%r15), %al
movslq %r13d, %rcx
incl %r13d
movb %al, (%r12,%rcx)
incl %r14d
incq %r15
cmpl %r14d, %ebp
jne 0x3836
jmp 0x38dc
movzbl (%r15), %eax
cmpl $0x27, %eax
je 0x3872
cmpl $0x7c, %eax
je 0x3872
cmpl $0x3b, %eax
je 0x3872
jmp 0x387d
movslq %r13d, %r13
movb $0x0, (%r12,%r13)
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/parsing/quotes/quotes_utils_2.c
// Function: find_closing_quote
char	*find_closing_quote(char *str, char quote
								, int opening, int *closing)
{
	int	i;

	i = opening + 1;
	*closing = 0;
	if (str[i] == quote && i >= 2 && str[i - 2] == ' ')
	{
		*closing += opening + 1;
		return (ft_strdup("\"\" "));
	}
	while (str[i])
	{
		if (str[i] == quote
			&& (quote == '\'' || check_prev_backslashes(str, i)))
		{
			*closing += opening + 1;
			return (get_string_between_quotes(str, opening
						, *closing, quote));
		}
		*closing += 1;
		i++;
	}
	handle_quote_error(quote);
	return (NULL);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r15
movslq %edx, %rcx
leaq 0x1(%rcx), %rdi
movl $0x0, (%r14)
movb 0x1(%r15,%rcx), %al
cmpb %bpl, %al
setne %dl
testl %ecx, %ecx
setle %sil
orb %dl, %sil
jne 0x3975
movl %ebx, %edx
cmpb $0x20, -0x1(%r15,%rdx)
jne 0x3975
movl %edi, (%r14)
leaq 0x2809(%rip), %rdi      # 0x616b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x51fc
movq %rdi, (%rsp)
testb %al, %al
je 0x39bc
leal 0x1(%rbx), %r12d
leaq (%rcx,%r15), %r13
addq $0x2, %r13
xorl %edx, %edx
cmpb %bpl, %al
jne 0x39a9
cmpb $0x27, %bpl
je 0x39ec
movq %r15, %rdi
movl %r12d, %esi
callq 0x36e8
movl (%r14), %edx
testw %ax, %ax
jne 0x39ec
incl %edx
movl %edx, (%r14)
movb (%r13), %al
incl %r12d
incq %r13
testb %al, %al
jne 0x398b
cmpb $0x27, %bpl
leaq 0x2748(%rip), %rax      # 0x610f
leaq 0x276f(%rip), %rsi      # 0x613d
cmoveq %rax, %rsi
xorl %edi, %edi
xorl %edx, %edx
callq 0x47c0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addl (%rsp), %edx
movl %edx, (%r14)
movsbl %bpl, %ecx
movq %r15, %rdi
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x37ea
nop
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/parsing/utils/split_non_escaped.c
// Function: ft_split_non_escaped
char			**ft_split_non_escaped(char *input, char delimiter)
{
	char	**args;
	int		len;

	if (!(args = malloc((count_args(input, delimiter) + 2) * sizeof(char *))))
		return (NULL);
	len = ft_strlen(input);
	input = set_split_delimiter(input, delimiter);
	divide_arguments(args, input, len);
	return (args);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, %ebp
movq %rdi, %r14
callq 0x3bfd
cltq
leaq 0x10(,%rax,8), %rdi
callq 0x1160
movq %rax, %r13
testq %rax, %rax
je 0x3bb5
movq %r14, %rdi
callq 0x5408
decq %r14
movb 0x1(%r14), %cl
incq %r14
cmpb $0x20, %cl
je 0x3a4e
cmpb %bpl, %cl
movq %r13, 0x8(%rsp)
movq %rax, 0x10(%rsp)
jne 0x3a75
movb 0x1(%r14), %cl
incq %r14
cmpb %bpl, %cl
je 0x3a69
testb %cl, %cl
je 0x3af7
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
xorl %r13d, %r13d
movsbl %bpl, %ebp
movl $0x1, %ebx
xorl %r15d, %r15d
movsbl %cl, %edi
movl %ebp, %esi
callq 0x3bdc
testw %ax, %ax
je 0x3ae5
testq %r15, %r15
je 0x3ae0
movslq %r12d, %rcx
movl %r12d, %edx
xorl %eax, %eax
movl %edx, %esi
cmpb $0x5c, (%r14,%rsi)
jne 0x3acc
incq %rax
decl %edx
movq %r13, %rsi
addq %rax, %rsi
jne 0x3aaa
movq $-0x1, %rcx
movl %r15d, %eax
jmp 0x3acf
subq %rax, %rcx
cmpl $0x2, %eax
jb 0x3adc
cmpb $0x20, (%r14,%rcx)
cmovel %ebx, %eax
testb $0x1, %al
jne 0x3ae5
movb $0x0, (%r14,%r15)
movb 0x1(%r14,%r15), %cl
incq %r15
decq %r13
incl %r12d
testb %cl, %cl
jne 0x3a8e
xorl %ebx, %ebx
movq 0x10(%rsp), %r12
testl %r12d, %r12d
jle 0x3ba1
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
xorl %r15d, %r15d
movq 0x8(%rsp), %r13
movslq %ebx, %rdi
addq %r14, %rdi
callq 0x51fc
movq %rax, %rbp
movq %rax, (%r13,%r15,8)
movl $0x3, %edx
movq %rax, %rdi
leaq 0x2637(%rip), %rsi      # 0x616f
callq 0x542c
testl %eax, %eax
je 0x3b4b
movq %rbp, %rdi
callq 0x5408
jmp 0x3b70
leaq 0x24cc(%rip), %rdi      # 0x601e
callq 0x51fc
movq %rax, %r13
movq %rbp, %rdi
callq 0x1030
movq 0x8(%rsp), %rax
movq %r13, (%rax,%r15,8)
movl $0x2, %eax
addl %ebx, %eax
incq %r15
movq 0x10(%rsp), %rcx
cmpl %ecx, %eax
jge 0x3ba4
movslq %eax, %rbx
cmpb $0x0, (%r14,%rbx)
jne 0x3b92
incq %rbx
cmpq %r12, %rbx
jl 0x3b81
jmp 0x3ba4
cmpl %ecx, %ebx
movq 0x8(%rsp), %r13
jl 0x3b16
jmp 0x3ba9
xorl %r15d, %r15d
movq 0x8(%rsp), %r13
movslq %r15d, %rax
movq $0x0, (%r13,%rax,8)
movq %r13, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/parsing/utils/split_non_escaped_utils.c
// Function: count_args
int		count_args(char *input, char delimiter)
{
	int		i;
	int		l;

	l = 0;
	i = 0;
	while (input[i])
	{
		if (is_delimiter(input[i], delimiter) && input[i - 1] != '\\')
		{
			l++;
			while (input[i] && !is_delimiter(input[i], delimiter))
				i++;
		}
		i++;
	}
	return (l);
}

// Assembly:
movb (%rdi), %r8b
testb %r8b, %r8b
je 0x3c78
leaq 0x1(%rdi), %rcx
xorl %eax, %eax
movq %rdi, %r9
xorl %edx, %edx
cmpb $0x20, %sil
jne 0x3c26
cmpb $0x9, %r8b
je 0x3c2b
movzbl %r8b, %r10d
cmpl $0x20, %r10d
je 0x3c2b
cmpb %sil, %r8b
jne 0x3c62
cmpb $0x5c, -0x1(%r9)
je 0x3c62
incl %eax
movslq %edx, %r9
addq %rcx, %r9
cmpb $0x20, %sil
jne 0x3c50
cmpb $0x9, %r8b
je 0x3c62
movzbl %r8b, %r10d
cmpl $0x20, %r10d
je 0x3c62
cmpb %sil, %r8b
je 0x3c62
incl %edx
movb (%r9), %r8b
incq %r9
testb %r8b, %r8b
jne 0x3c3a
movslq %edx, %rdx
leaq (%rdi,%rdx), %r9
incq %r9
incq %rdx
movb (%r9), %r8b
testb %r8b, %r8b
jne 0x3c10
retq
xorl %eax, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/validator/validator.c
// Function: validate_input
int				validate_input(t_shell *shell, char *line)
{
	int it;

	it = -1;
	while (line[++it])
	{
		if (line[it] == '|' ||
			line[it] == '<' ||
			line[it] == '>' ||
			line[it] == ';')
		{
			if (validator(shell, line, line[it], it))
				return (0);
		}
	}
	return (1);
	if (line[it + 1] == '<' || line[it + 1] == '>')
		it++;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, (%rsp)
leaq 0x1(%rsi), %r15
movq $-0x1, %r13
movq %r13, %r12
incq %r13
movb -0x1(%r15), %bl
movzbl %bl, %eax
cmpl $0x3d, %eax
jg 0x3cbc
leal -0x3b(%rax), %ecx
cmpl $0x2, %ecx
jb 0x3cc6
testl %eax, %eax
jne 0x3d2f
jmp 0x3d4d
cmpl $0x7c, %eax
je 0x3cc6
cmpl $0x3e, %eax
jne 0x3d2f
movsbl %bl, %ebp
movq %r14, %rdi
movl %r12d, %esi
movl %ebp, %edx
callq 0x3e3c
incl %r12d
testw %ax, %ax
je 0x3cf5
movq (%rsp), %rdi
movq %r14, %rsi
movl %ebp, %edx
movl %r12d, %ecx
callq 0x3ecb
testl %eax, %eax
je 0x3d2f
jmp 0x3d6d
cmpb $0x7c, %bl
jne 0x3d13
movq %r15, %rdi
movl %r12d, %esi
callq 0x3eab
movl %r13d, %r12d
testw %ax, %ax
movq (%rsp), %rbx
je 0x3d17
jmp 0x3d54
movq (%rsp), %rbx
movsbl -0x1(%r15), %ecx
movq %rbx, %rdi
movq %r14, %rsi
movl %r12d, %edx
callq 0x3d80
testq %rax, %rax
jne 0x3d37
incq %r15
jmp 0x3c99
movq (%rsp), %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3f44
movl $0x1, %eax
jmp 0x3d6a
movl $0x1, %eax
jmp 0x3d6f
leaq 0x2417(%rip), %rsi      # 0x6172
movq %rbx, %rdi
xorl %edx, %edx
callq 0x47c0
movl $0x2, %eax
movl %eax, 0x28(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/validator/validator_utils.c
// Function: post_to_token
char		*post_to_token(t_shell *shell, char *line, int it, char token)
{
	char	*key;
	char	*value;
	char	*tmp;

	if (token == '>')
		while (line[it++])
			if (line[it] == '}' && line[it - 1] != ' ')
			{
				key = get_var_key(line, it);
				value = expand_var(key, shell);
				if (contain_spaces(value))
				{
					free(value);
					tmp = ft_strjoin("$", key);
					free(key);
					return (tmp);
				}
				free(key);
				free(value);
			}
	return (NULL);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpb $0x3e, %cl
jne 0x3e04
movq %rsi, %rbx
movslq %edx, %rcx
movb (%rsi,%rcx), %al
testb %al, %al
je 0x3e04
movq %rdi, %r14
leal 0x1(%rcx), %ebp
leaq (%rcx,%rbx), %r13
incq %r13
movb (%r13), %cl
cmpb $0x7d, %cl
setne %dl
cmpb $0x20, %al
sete %al
orb %dl, %al
jne 0x3df9
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1ab6
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x30a8
movq %rax, %r12
movq %rax, %rdi
callq 0x1b3a
testw %ax, %ax
jne 0x3e15
movq %r15, %rdi
callq 0x1030
movq %r12, %rdi
callq 0x1030
movb (%r13), %cl
incl %ebp
incq %r13
movl %ecx, %eax
testb %cl, %cl
jne 0x3daa
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
callq 0x1030
leaq 0x237b(%rip), %rdi      # 0x619f
movq %r15, %rsi
callq 0x523c
movq %rax, %rbx
movq %r15, %rdi
callq 0x1030
movq %rbx, %rax
jmp 0x3e06
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/validator/validator_utils.c
// Function: prior_to_token
short		prior_to_token(char *line, int it, char token)
{
	int aux_it;

	aux_it = it;
	while (aux_it > 0 && line[aux_it] == ' ')
		aux_it--;
	if (token == '>' || token == '<')
		return (aux_it > 0 && aux_it != it &&
				(line[aux_it] == '>' ||
				line[aux_it] == '<'));
	else
	{
		return (aux_it < 1 ||
				line[aux_it] == ';' ||
				line[aux_it] == '>' ||
				line[aux_it] == '<' ||
				line[aux_it] == '|');
	}
	return (0);
}

// Assembly:
movl %esi, %ecx
testl %esi, %esi
jle 0x3e61
movl %esi, %ecx
movl %ecx, %eax
cmpb $0x20, (%rdi,%rax)
jne 0x3e61
leal -0x1(%rcx), %eax
cmpl $0x2, %ecx
movl %eax, %ecx
jge 0x3e44
andb $-0x3, %dl
cmpb $0x3c, %dl
setne %al
jmp 0x3ea7
andb $-0x3, %dl
cmpb $0x3c, %dl
jne 0x3e7b
testl %esi, %esi
setle %al
cmpl %esi, %ecx
sete %dl
orb %al, %dl
je 0x3e9b
xorl %eax, %eax
jmp 0x3ea7
movb $0x1, %al
testl %ecx, %ecx
jle 0x3ea7
movl %ecx, %ecx
movzbl (%rdi,%rcx), %ecx
leal -0x3b(%rcx), %edx
cmpl $0x2, %edx
jb 0x3ea7
cmpl $0x3e, %ecx
je 0x3ea7
cmpl $0x7c, %ecx
je 0x3ea7
jmp 0x3e77
movl %ecx, %eax
movb (%rdi,%rax), %al
andb $-0x3, %al
cmpb $0x3c, %al
sete %al
movzbl %al, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/validator/validator_utils.c
// Function: nothing_after_pipe
short		nothing_after_pipe(char *line, int it)
{
	if ((it - 2) >= 0 && *(line - 2) == '\\')
		return (0);
	while (*line && *line == ' ')
		line++;
	if (!*line)
		return (1);
	return (0);
}

// Assembly:
cmpl $0x2, %esi
jl 0x3eb9
cmpb $0x5c, -0x2(%rdi)
jne 0x3eb9
xorl %eax, %eax
retq
movb (%rdi), %cl
incq %rdi
cmpb $0x20, %cl
je 0x3eb9
xorl %eax, %eax
testb %cl, %cl
sete %al
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/validator/validator_utils.c
// Function: get_validator_err
int			get_validator_err(t_shell *shell,
		char *line, char separator, int it)
{
	if (separator == ';')
		print_errors(shell, "syntax error near unexpected token `;'", NULL);
	else if (separator == '|')
		print_errors(shell, "syntax error near unexpected token `|'", NULL);
	else if (separator == '>' && line[it + 1] == '>')
		print_errors(shell, "syntax error near unexpected token `>>'", NULL);
	else if (separator == '>')
		print_errors(shell, "syntax error near unexpected token `>'", NULL);
	else if (separator == '<' && line[it + 1] == '<')
		print_errors(shell, "syntax error near unexpected token `<<'", NULL);
	else if (separator == '<')
		print_errors(shell, "syntax error near unexpected token `<'", NULL);
	shell->stat_loc = 2;
	return (1);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpl $0x3d, %edx
jg 0x3ef6
cmpl $0x3b, %edx
je 0x3f09
cmpl $0x3c, %edx
jne 0x3f36
movslq %ecx, %rax
cmpb $0x3c, 0x1(%rsi,%rax)
leaq 0x2351(%rip), %rax      # 0x623e
leaq 0x2372(%rip), %rsi      # 0x6266
jmp 0x3f28
cmpl $0x3e, %edx
je 0x3f12
cmpl $0x7c, %edx
jne 0x3f36
leaq 0x22c1(%rip), %rsi      # 0x61c8
jmp 0x3f2c
leaq 0x2291(%rip), %rsi      # 0x61a1
jmp 0x3f2c
movslq %ecx, %rax
cmpb $0x3e, 0x1(%rsi,%rax)
leaq 0x22ce(%rip), %rax      # 0x61ef
leaq 0x22ef(%rip), %rsi      # 0x6217
cmoveq %rax, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x47c0
movl $0x2, 0x28(%rbx)
movl $0x1, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/validator/validator_utils.c
// Function: safe_print_err
void		safe_print_err(t_shell *shell, char *key)
{
	char	*tmp;

	tmp = ft_strjoin(key, ": ambiguous redirect");
	print_errors(shell, tmp, NULL);
	free(tmp);
	free(key);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x2337(%rip), %rsi      # 0x628d
movq %rbx, %rdi
callq 0x523c
movq %rax, %r15
movq %r14, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x47c0
movq %r15, %rdi
callq 0x1030
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1030
nop
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/redirections/redirections.c
// Function: find_redirections
int				find_redirections(t_shell *shell)
{
	size_t	it;
	int		fd;

	it = 0;
	while (shell->args[it])
	{
		if (validator(shell, shell->args[it]))
		{
			if (ft_strcmp(shell->args[it], ">"))
				fd = redirections_output(shell, it);
			else if (ft_strcmp(shell->args[it], "<"))
				fd = redirections_input(shell, it);
			else if (ft_strcmp(shell->args[it], ">>"))
				fd = redirections_append(shell, it);
			else
				it++;
		}
		else
		{
			fd = -1;
			break ;
		}
	}
	return (fd);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rdi), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x4110
xorl %ebp, %ebp
leaq 0x22b7(%rip), %r14      # 0x6262
leaq 0x22f3(%rip), %r15      # 0x62a5
leaq 0x22e9(%rip), %r12      # 0x62a2
movq %rdi, %rcx
xorl %edx, %edx
xorl %eax, %eax
movzbl (%rcx), %esi
cmpl $0x3b, %esi
jle 0x3fd7
cmpl $0x3c, %esi
je 0x3fe6
cmpl $0x3e, %esi
jne 0x3fe0
incq %rdx
jmp 0x3fe9
cmpl $0x20, %esi
je 0x3fe9
testl %esi, %esi
je 0x3fee
xorl %edx, %edx
xorl %eax, %eax
jmp 0x3fe9
incq %rax
incq %rcx
jmp 0x3fc0
cmpq $0x3, %rdx
jae 0x4112
cmpq $0x3, %rax
jae 0x4124
movq %r15, %rsi
callq 0x5460
testq %rax, %rax
je 0x402f
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x420f
movl %eax, %r13d
movq 0x18(%rbx), %rax
movq (%rax,%rbp,8), %rdi
testq %rdi, %rdi
jne 0x3fb9
jmp 0x4158
movq 0x18(%rbx), %rax
movq (%rax,%rbp,8), %rdi
movq %r12, %rsi
callq 0x5460
movq 0x18(%rbx), %rcx
testq %rax, %rax
je 0x4082
cmpq $0x0, 0x8(%rcx,%rbp,8)
je 0x40a7
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x42b2
movswl %ax, %r13d
cmpw $-0x1, %r13w
je 0x4070
movl %r13d, %edi
xorl %esi, %esi
callq 0x1070
movq 0x18(%rbx), %rdx
movq (%rdx,%rbp,8), %rsi
movq %rbx, %rdi
callq 0x1d30
jmp 0x40c5
movq (%rcx,%rbp,8), %rdi
leaq 0x2217(%rip), %rsi      # 0x62a4
callq 0x5460
testq %rax, %rax
je 0x4108
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x416c
jmp 0x401a
movl $0x2, 0x28(%rbx)
movq %rbx, %rdi
leaq 0x2214(%rip), %rsi      # 0x62cc
xorl %edx, %edx
callq 0x47c0
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movq 0x18(%rbx), %rdx
movq (%rdx,%rbp,8), %rsi
movq %rbx, %rdi
callq 0x1d30
testq %rbp, %rbp
jne 0x401d
movq 0x18(%rbx), %rax
cmpq $0x0, (%rax)
je 0x4101
movq 0x8(%rbx), %rdi
callq 0x1030
movq 0x18(%rbx), %rax
movq (%rax), %rdi
callq 0x51fc
movq %rax, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0x401d
incq %rbp
jmp 0x401d
jmp 0x4158
leaq 0x20fb(%rip), %rax      # 0x6214
leaq 0x20f3(%rip), %r14      # 0x6213
cmoveq %rax, %r14
leaq 0x217c(%rip), %rdi      # 0x62a7
movq %r14, %rsi
callq 0x523c
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x47c0
movq %r14, %rdi
callq 0x1030
movl $0x2, 0x28(%rbx)
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movl %r13d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/redirections/redirections_utils.c
// Function: redirections_append
int		redirections_append(t_shell *shell, size_t it)
{
	int fd;

	fd = -1;
	if (!(shell->args[it + 1]))
	{
		shell->stat_loc = 2;
		print_errors(shell,
				"syntax error near unexpected token `newline'", NULL);
	}
	else
	{
		if ((fd = open(shell->args[it + 1],
						O_CREAT | O_APPEND | O_WRONLY, 0644)) == -1)
		{
			shell->stat_loc = 1;
			print_errors(shell,
					" No such file or directory", shell->args[it + 1]);
		}
		else
			dup2(fd, 1);
		delete_environment(shell, shell->args[it], shell->args);
	}
	delete_environment(shell, shell->args[it], shell->args);
	return (fd);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x18(%rdi), %rax
movq 0x8(%rax,%rsi,8), %rdi
testq %rdi, %rdi
je 0x41aa
movl $0x441, %esi            # imm = 0x441
movl $0x1a4, %edx            # imm = 0x1A4
xorl %eax, %eax
callq 0x1180
movl %eax, %ebp
cmpl $-0x1, %eax
je 0x41c9
movl %ebp, %edi
movl $0x1, %esi
callq 0x1070
jmp 0x41e8
movl $0x2, 0x28(%rbx)
leaq 0x2114(%rip), %rsi      # 0x62cc
movq %rbx, %rdi
xorl %edx, %edx
callq 0x47c0
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x41f8
movl $0x1, 0x28(%rbx)
movq 0x18(%rbx), %rax
movq 0x8(%rax,%r14,8), %rdx
leaq 0x1ec8(%rip), %rsi      # 0x60a8
movq %rbx, %rdi
callq 0x47c0
movq 0x18(%rbx), %rdx
movq (%rdx,%r14,8), %rsi
movq %rbx, %rdi
callq 0x1d30
movq 0x18(%rbx), %rdx
movq (%rdx,%r14,8), %rsi
movq %rbx, %rdi
callq 0x1d30
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/redirections/redirections_utils.c
// Function: redirections_output
int		redirections_output(t_shell *shell, size_t it)
{
	int fd;

	fd = -1;
	if (!(shell->args[it + 1]))
	{
		shell->stat_loc = 2;
		print_errors(shell,
				"syntax error near unexpected token `newline'", NULL);
	}
	else
	{
		if ((fd = open(shell->args[it + 1],
						O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1)
		{
			shell->stat_loc = 1;
			print_errors(shell,
					" No such file or directory", shell->args[it + 1]);
		}
		else
			dup2(fd, 1);
		delete_environment(shell, shell->args[it], shell->args);
	}
	delete_environment(shell, shell->args[it], shell->args);
	return (fd);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x18(%rdi), %rax
movq 0x8(%rax,%rsi,8), %rdi
testq %rdi, %rdi
je 0x424d
movl $0x241, %esi            # imm = 0x241
movl $0x1a4, %edx            # imm = 0x1A4
xorl %eax, %eax
callq 0x1180
movl %eax, %ebp
cmpl $-0x1, %eax
je 0x426c
movl %ebp, %edi
movl $0x1, %esi
callq 0x1070
jmp 0x428b
movl $0x2, 0x28(%rbx)
leaq 0x2071(%rip), %rsi      # 0x62cc
movq %rbx, %rdi
xorl %edx, %edx
callq 0x47c0
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x429b
movl $0x1, 0x28(%rbx)
movq 0x18(%rbx), %rax
movq 0x8(%rax,%r14,8), %rdx
leaq 0x1e25(%rip), %rsi      # 0x60a8
movq %rbx, %rdi
callq 0x47c0
movq 0x18(%rbx), %rdx
movq (%rdx,%r14,8), %rsi
movq %rbx, %rdi
callq 0x1d30
movq 0x18(%rbx), %rdx
movq (%rdx,%r14,8), %rsi
movq %rbx, %rdi
callq 0x1d30
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/redirections/redirections_utils.c
// Function: redirection_exists
short	redirection_exists(t_shell *shell, size_t it)
{
	struct stat	s;
	int			fd;

	fd = -1;
	if ((fd = open(shell->args[it + 1], O_RDONLY, 0644)) == -1)
	{
		if (stat(shell->args[it + 1], &s) != -1)
		{
			if (!(s.st_mode & S_IRUSR) ||
					(s.st_mode & S_IRUSR && (!(s.st_mode & S_IXUSR))))
			{
				shell->stat_loc = 1;
				print_errors(shell, " Permission denied", shell->args[it + 1]);
			}
		}
		else
		{
			shell->stat_loc = 1;
			print_errors(shell,
					" No such file or directory", shell->args[it + 1]);
		}
	}
	return (fd);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x90, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x18(%rdi), %rax
movq 0x8(%rax,%rsi,8), %rdi
xorl %esi, %esi
movl $0x1a4, %edx            # imm = 0x1A4
xorl %eax, %eax
callq 0x1180
movl %eax, %ebp
cmpl $-0x1, %eax
jne 0x432c
movq 0x18(%rbx), %rax
movq 0x8(%rax,%r14,8), %rdi
movq %rsp, %rsi
callq 0x1130
cmpl $-0x1, %eax
je 0x430d
movl 0x18(%rsp), %eax
notl %eax
testl $0x140, %eax            # imm = 0x140
je 0x432c
leaq 0x1d78(%rip), %rsi      # 0x6083
jmp 0x4314
leaq 0x1d94(%rip), %rsi      # 0x60a8
movl $0x1, 0x28(%rbx)
movq 0x18(%rbx), %rax
movq 0x8(%rax,%r14,8), %rdx
movq %rbx, %rdi
callq 0x47c0
movl %ebp, %eax
addq $0x90, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/search/search.c
// Function: search_binary_in_pwd
char			*search_binary_in_pwd(t_shell *shell)
{
	struct stat		s;
	struct dirent	*direntp;
	DIR				*pdir;

	if (stat(".", &s) != -1 &&
		s.st_mode & S_IFDIR)
	{
		if (!(pdir = opendir(".")))
			return (NULL);
		while ((direntp = readdir(pdir)))
		{
			if (ft_strcmp(direntp->d_name, shell->args[0]))
			{
				closedir(pdir);
				return (absolute_bin_path(".", shell->binary));
			}
			direntp++;
		}
		closedir(pdir);
	}
	shell->stat_loc = 127;
	print_errors(shell, " No such file or directory", shell->binary);
	return (NULL);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rdi, %rbx
leaq 0x1d1b(%rip), %rdi      # 0x606b
leaq 0x8(%rsp), %rsi
callq 0x1130
cmpl $-0x1, %eax
je 0x43c9
testb $0x40, 0x21(%rsp)
je 0x43c9
leaq 0x1cfe(%rip), %rdi      # 0x606b
callq 0x1050
testq %rax, %rax
je 0x43e3
movq %rax, %r14
movq %r14, %rdi
callq 0x1150
testq %rax, %rax
je 0x43c1
addq $0x13, %rax
movq 0x18(%rbx), %rcx
movq (%rcx), %rsi
movq %rax, %rdi
callq 0x5460
testq %rax, %rax
je 0x437a
movq %r14, %rdi
callq 0x10d0
movq 0x8(%rbx), %rsi
leaq 0x1cb9(%rip), %rdi      # 0x606b
addq $0x98, %rsp
popq %rbx
popq %r14
jmp 0x49fe
movq %r14, %rdi
callq 0x10d0
movl $0x7f, 0x28(%rbx)
movq 0x8(%rbx), %rdx
leaq 0x1ccd(%rip), %rsi      # 0x60a8
movq %rbx, %rdi
callq 0x47c0
xorl %eax, %eax
addq $0x98, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/search/search.c
// Function: search_binary
char			*search_binary(t_shell *shell, char **paths)
{
	size_t			it;
	struct stat		s;
	char			*bin_name;

	it = -1;
	bin_name = ft_strdup(shell->args[0]);
	to_lower_in(bin_name);
	while (paths[++it])
		if (binary_path_exists(shell, paths[it], bin_name, &s))
			return (absolute_bin_path(paths[it], shell->binary));
	if (stat(bin_name, &s) != -1)
		return (check_command(shell, bin_name, s));
	else if (lstat(bin_name, &s) != -1 ||
			!ft_strncmp(bin_name, "./", 2) || ft_strchr(shell->args[0], '/'))
	{
		shell->stat_loc = 127;
		print_errors(shell, " No such file or directory", shell->binary);
		free(bin_name);
		return (NULL);
	}
	else
		return (check_command(shell, bin_name, s));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movq 0x18(%rdi), %rax
movq (%rax), %rdi
callq 0x51fc
movq %rax, %r14
movq %rax, %rdi
callq 0x4620
movq (%r15), %r13
testq %r13, %r13
je 0x448c
xorl %ebp, %ebp
leaq 0x8(%rsp), %r12
movq %r13, %rdi
movq %r12, %rsi
callq 0x1130
cmpl $-0x1, %eax
je 0x447f
testb $0x40, 0x21(%rsp)
je 0x447f
movq %r13, %rdi
callq 0x1050
testq %rax, %rax
je 0x447f
movq %rax, %r13
movq %r13, %rdi
callq 0x1150
testq %rax, %rax
je 0x4477
addq $0x13, %rax
movq %rax, %rdi
movq %r14, %rsi
callq 0x5460
testq %rax, %rax
je 0x4454
jmp 0x44be
movq %r13, %rdi
callq 0x10d0
movq 0x8(%r15,%rbp,8), %r13
incq %rbp
testq %r13, %r13
jne 0x442d
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x1130
cmpl $-0x1, %eax
je 0x44f3
movl 0x20(%rsp), %edx
movq %rbx, %rdi
movq %r14, %rsi
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x456e
movl $0x1, 0x30(%rbx)
movq %r13, %rdi
callq 0x10d0
movq %r14, %rdi
callq 0x1030
movq (%r15,%rbp,8), %rdi
movq 0x8(%rbx), %rsi
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x49fe
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x10f0
cmpl $-0x1, %eax
je 0x453b
movl $0x7f, 0x28(%rbx)
movq 0x8(%rbx), %rdx
leaq 0x1b91(%rip), %rsi      # 0x60a8
movq %rbx, %rdi
callq 0x47c0
movq %r14, %rdi
callq 0x1030
xorl %eax, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1db7(%rip), %rsi      # 0x62f9
movl $0x2, %edx
movq %r14, %rdi
callq 0x542c
testl %eax, %eax
je 0x4505
movq 0x18(%rbx), %rax
movq (%rax), %rdi
movl $0x2f, %esi
callq 0x51dc
testq %rax, %rax
jne 0x4505
jmp 0x449e
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/search/search.c
// Function: check_command
static	char	*check_command(t_shell *shell, char *bin_name, struct stat s)
{
	if (command_exists(shell, bin_name, s))
	{
		free(bin_name);
		return (ft_strdup(shell->binary));
	}
	free(bin_name);
	return (NULL);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
andl $0xf000, %edx           # imm = 0xF000
movl %edx, %eax
negw %ax
jo 0x458e
cmpl $0x4000, %edx           # imm = 0x4000
jne 0x45dd
movq 0x18(%r14), %rax
movq (%rax), %rdi
leaq 0x1d5e(%rip), %rsi      # 0x62fa
movl $0x1, %edx
callq 0x542c
testl %eax, %eax
je 0x45dd
movq 0x18(%r14), %rax
movq (%rax), %rdi
leaq 0x1d41(%rip), %rsi      # 0x62f9
movl $0x2, %edx
callq 0x542c
testl %eax, %eax
je 0x45dd
movq 0x18(%r14), %rax
movq (%rax), %r15
movq %rbx, %rdi
callq 0x5408
cmpb $0x2f, -0x1(%r15,%rax)
jne 0x45f3
movq %rbx, %rdi
callq 0x1030
movq 0x8(%r14), %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x51fc
movl $0x7f, 0x28(%r14)
movq 0x8(%r14), %rdx
leaq 0x1cf6(%rip), %rsi      # 0x62fc
movq %r14, %rdi
callq 0x47c0
movq %rbx, %rdi
callq 0x1030
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/get_next_line.c
// Function: add_char
char	*add_char(char *line, char buffer)
{
	char	*output;
	int		l;

	l = 0;
	while (line && line[l])
		l++;
	if (!(output = malloc((l + 2) * sizeof(char))))
		return (NULL);
	l = 0;
	while (line && line[l])
	{
		output[l] = line[l];
		l++;
	}
	output[l] = buffer;
	output[l + 1] = '\0';
	free(line);
	return (output);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
testq %rdi, %rdi
je 0x4691
movl $0x1, %eax
cmpb $0x0, -0x1(%rbx,%rax)
leaq 0x1(%rax), %rax
jne 0x4657
movl %eax, %edi
callq 0x1160
testq %rax, %rax
je 0x46a5
movq %rax, %r14
testq %rbx, %rbx
je 0x46aa
movb (%rbx), %al
testb %al, %al
je 0x46aa
xorl %ecx, %ecx
movb %al, (%r14,%rcx)
movb 0x1(%rbx,%rcx), %al
incq %rcx
testb %al, %al
jne 0x467e
movl %ecx, %eax
jmp 0x46ac
movl $0x2, %edi
callq 0x1160
movq %rax, %r14
xorl %eax, %eax
testq %r14, %r14
jne 0x46ac
xorl %r14d, %r14d
jmp 0x46be
xorl %eax, %eax
movb %bpl, (%r14,%rax)
movb $0x0, 0x1(%r14,%rax)
movq %rbx, %rdi
callq 0x1030
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/get_next_line.c
// Function: get_next_line
int		get_next_line(char **line)
{
	int		output;
	char	buffer;

	if (!(*line = malloc(sizeof(char))))
		return (-1);
	**line = '\0';
	buffer = 0;
	output = 1;
	while (output || buffer)
	{
		if ((output = read(0, &buffer, 1)) == -1)
			return (-1);
		if (buffer == '\n')
			break ;
		if (!output)
			ft_putstr_fd("\033[J", 1);
		else if (!(*line = add_char(*line, buffer)))
			return (-1);
	}
	return (output);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x1, %edi
callq 0x1160
movq %rax, (%r14)
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x4760
xorl %ecx, %ecx
movb %cl, (%rax)
leaq 0x7(%rsp), %r15
movb %cl, (%r15)
leaq 0x1c22(%rip), %r12      # 0x6320
movl $0x1, %edx
xorl %edi, %edi
movq %r15, %rsi
callq 0x10e0
movq %rax, %r13
cmpl $-0x1, %r13d
je 0x4760
movb 0x7(%rsp), %bpl
cmpb $0xa, %bpl
je 0x475d
testl %r13d, %r13d
je 0x473c
movq (%r14), %rdi
movsbl %bpl, %esi
callq 0x4644
movq %rax, (%r14)
testq %rax, %rax
jne 0x4749
jmp 0x4760
movq %r12, %rdi
movl $0x1, %esi
callq 0x5090
testl %r13d, %r13d
setne %al
testb %bpl, %bpl
setne %cl
orb %al, %cl
jne 0x46fe
xorl %ebx, %ebx
jmp 0x4760
movl %r13d, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/errors.c
// Function: print_errors
void	print_errors(t_shell *shell, char *msg, char *bin)
{
	(void)shell;
	ft_putstr_fd("minishell: ", 2);
	if (bin)
	{
		ft_putstr_fd(bin, 2);
		ft_putchar_fd(':', 2);
	}
	ft_putstr_fd(msg, 2);
	ft_putstr_fd("\n", 2);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
leaq 0x1b53(%rip), %rdi      # 0x6324
movl $0x2, %esi
callq 0x5090
testq %r14, %r14
je 0x47fc
movq %r14, %rdi
movl $0x2, %esi
callq 0x5090
movl $0x3a, %edi
movl $0x2, %esi
callq 0x502c
movq %rbx, %rdi
movl $0x2, %esi
callq 0x5090
leaq 0x180d(%rip), %rdi      # 0x601d
movl $0x2, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5090
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/clean.c
// Function: clean_matrix
void	clean_matrix(char **matrix)
{
	if (matrix)
	{
		while (*matrix)
		{
			free(*matrix);
			matrix++;
		}
	}
}

// Assembly:
testq %rdi, %rdi
je 0x484b
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x484a
addq $0x8, %rbx
callq 0x1030
movq (%rbx), %rdi
addq $0x8, %rbx
testq %rdi, %rdi
jne 0x4839
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/clean.c
// Function: clean_commands
void	clean_commands(t_shell *shell)
{
	clean_matrix(shell->commands);
	free(shell->commands);
	shell->commands = NULL;
	clean_matrix(shell->args);
	free(shell->args);
	shell->args = NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %r14
testq %r14, %r14
je 0x490f
movq (%r14), %rdi
testq %rdi, %rdi
je 0x4912
addq $0x8, %r14
callq 0x1030
movq (%r14), %rdi
addq $0x8, %r14
testq %rdi, %rdi
jne 0x48f8
movq 0x10(%rbx), %r14
jmp 0x4912
xorl %r14d, %r14d
movq %r14, %rdi
callq 0x1030
movq $0x0, 0x10(%rbx)
movq 0x18(%rbx), %r14
testq %r14, %r14
je 0x494e
movq (%r14), %rdi
testq %rdi, %rdi
je 0x4951
addq $0x8, %r14
callq 0x1030
movq (%r14), %rdi
addq $0x8, %r14
testq %rdi, %rdi
jne 0x4937
movq 0x18(%rbx), %r14
jmp 0x4951
xorl %r14d, %r14d
movq %r14, %rdi
callq 0x1030
movq $0x0, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/utils.c
// Function: ft_strdup_matrix
char	**ft_strdup_matrix(char **envp)
{
	char	**tmp_envp;
	int		l;
	int		i;

	i = 0;
	l = 0;
	while (envp[l])
		l++;
	if (!(tmp_envp = malloc((l + 1) * sizeof(char *))))
		return (NULL);
	while (*envp)
	{
		tmp_envp[i] = ft_strdup(*envp);
		envp++;
		i++;
	}
	tmp_envp[i] = NULL;
	return (tmp_envp);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorl %edi, %edi
cmpq $0x0, (%rbx,%rdi)
leaq 0x8(%rdi), %rdi
jne 0x49a0
movabsq $0x7fffffff8, %rax      # imm = 0x7FFFFFFF8
andq %rax, %rdi
callq 0x1160
movq %rax, %r14
testq %rax, %rax
je 0x49f5
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x49eb
xorl %r15d, %r15d
callq 0x51fc
movq %rax, (%r14,%r15,8)
movq 0x8(%rbx,%r15,8), %rdi
incq %r15
testq %rdi, %rdi
jne 0x49d0
movl %r15d, %eax
jmp 0x49ed
xorl %eax, %eax
movq $0x0, (%r14,%rax,8)
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/utils.c
// Function: absolute_bin_path
char	*absolute_bin_path(char *path, char *bin)
{
	char *tmp;

	tmp = ft_strjoin(path, "/");
	path = ft_strjoin(tmp, bin);
	free(tmp);
	return (path);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
leaq 0x18ee(%rip), %rsi      # 0x62fa
callq 0x523c
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x523c
movq %rax, %rbx
movq %r14, %rdi
callq 0x1030
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/utils.c
// Function: add_env
char	**add_env(char **variable, char **env, int n)
{
	char	**tmp_envp;
	int		i;

	i = 0;
	if (env[n])
		tmp_envp = realloc_matrix(env, 0);
	else
		tmp_envp = realloc_matrix(env, 1);
	tmp_envp[n] = ft_strdup(*variable);
	while (*env)
	{
		if (i != n)
			tmp_envp[i] = ft_strdup(*env);
		env++;
		i++;
	}
	if (i != n)
		tmp_envp[i] = NULL;
	else
		tmp_envp[i + 1] = NULL;
	return (tmp_envp);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r12
movslq %edx, %r13
cmpq $0x0, (%rsi,%r13,8)
je 0x4a87
movq $-0x1, %rdi
movabsq $0x100000000, %rax      # imm = 0x100000000
cmpq $0x0, 0x8(%r14,%rdi,8)
leaq 0x1(%rdi), %rdi
jne 0x4a79
jmp 0x4aa4
movq $-0x1, %rdi
movabsq $0x200000000, %rax      # imm = 0x200000000
cmpq $0x0, 0x8(%r14,%rdi,8)
leaq 0x1(%rdi), %rdi
jne 0x4a98
shlq $0x20, %rdi
addq %rax, %rdi
sarq $0x1d, %rdi
callq 0x1160
movq %rax, %r15
movq (%r12), %rdi
callq 0x51fc
movq %rax, (%r15,%r13,8)
movq (%r14), %rdi
testq %rdi, %rdi
je 0x4aef
movl %ebx, %r13d
xorl %r12d, %r12d
cmpq %r12, %r13
je 0x4ae0
callq 0x51fc
movq %rax, (%r15,%r12,8)
movq 0x8(%r14,%r12,8), %rdi
incq %r12
testq %rdi, %rdi
jne 0x4ad2
jmp 0x4af2
xorl %r12d, %r12d
leal 0x1(%rbx), %eax
cmpl %ebx, %r12d
cmovnel %r12d, %eax
movq $0x0, (%r15,%rax,8)
movq %r15, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/pipes.c
// Function: find_pipes
void			find_pipes(t_shell *shell)
{
	pid_t	pid;
	pid_t	aux_pid;
	int		p[2];
	int		it;
	int		std[2];

	it = -1;
	std[0] = dup(0);
	std[1] = dup(1);
	while (shell->commands[++it])
	{
		get_args_and_binary(shell, it);
		pipe(p);
		pid = child_pipe(shell, it, p);
		wait_child(shell, p, pid, it);
	}
	while ((aux_pid = wait(&shell->stat_loc)) > 0)
		if (aux_pid < pid)
			shell->stat_loc = WEXITSTATUS(shell->stat_loc);
	shell->stat_loc = WEXITSTATUS(shell->stat_loc);
	dup2(std[0], 0);
	dup2(std[1], 1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
xorl %edi, %edi
callq 0x1080
movl %eax, %ebp
movl $0x1, %edi
callq 0x1080
movl %eax, 0x14(%rsp)
movq 0x10(%rbx), %rax
movq (%rax), %rsi
testq %rsi, %rsi
je 0x4c1e
leaq 0x28(%rbx), %r15
xorl %r14d, %r14d
leaq 0xc(%rsp), %r12
movq %rbx, %rdi
callq 0x31d8
movq %rax, %r13
movq 0x10(%rbx), %rax
movq (%rax,%r14), %rdi
callq 0x1030
movq %r13, %rdi
callq 0x3464
movq %rax, 0x18(%rbx)
movq %r13, %rdi
callq 0x1030
movq 0x18(%rbx), %rax
movq (%rax), %rdi
callq 0x51fc
movq %rax, 0x8(%rbx)
movq %r12, %rdi
callq 0x10c0
callq 0x11b0
testl %eax, %eax
je 0x4c67
movl %eax, %r13d
movl 0x10(%rsp), %edi
callq 0x10b0
movl 0xc(%rsp), %edi
xorl %esi, %esi
callq 0x1070
movq 0x10(%rbx), %rax
cmpq $0x0, (%rax,%r14)
je 0x4bdb
movl %r13d, %edi
movq %r15, %rsi
movl $0x1, %edx
callq 0x1170
movzbl 0x29(%rbx), %eax
movl %eax, 0x28(%rbx)
movl 0xc(%rsp), %edi
callq 0x10b0
movq 0x18(%rbx), %rdi
callq 0x4824
movq 0x18(%rbx), %rdi
callq 0x1030
movq 0x8(%rbx), %rdi
callq 0x1030
movq 0x10(%rbx), %rax
movq 0x8(%rax,%r14), %rsi
addq $0x8, %r14
testq %rsi, %rsi
jne 0x4b58
jmp 0x4c1e
addq $0x28, %rbx
jmp 0x4c2f
cmpl %r13d, %eax
jge 0x4c2f
movzbl 0x1(%rbx), %eax
movl %eax, (%rbx)
movq %rbx, %rdi
callq 0x11a0
testl %eax, %eax
jg 0x4c24
movzbl 0x1(%rbx), %eax
movl %eax, (%rbx)
movl %ebp, %edi
xorl %esi, %esi
callq 0x1070
movl 0x14(%rsp), %edi
movl $0x1, %esi
callq 0x1070
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0xc(%rsp), %edi
callq 0x10b0
movq 0x10(%rbx), %rax
cmpq $0x0, 0x8(%rax,%r14)
je 0x4c8a
movl 0x10(%rsp), %edi
movl $0x1, %esi
callq 0x1070
movq %rbx, %rdi
callq 0x3f84
movq %rbx, %rdi
callq 0x4cab
movl 0x10(%rsp), %edi
callq 0x10b0
movl 0x28(%rbx), %edi
callq 0x1190
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/pipes.c
// Function: exec_arg
static void		exec_arg(t_shell *shell)
{
	char	*path;

	if (!check_builtin(shell))
	{
		path = get_path(shell);
		if (path)
		{
			if (check_permissions(shell, path))
				execve(path, shell->args, shell->env);
		}
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x1650
testl %eax, %eax
je 0x4cc3
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rbx, %rdi
callq 0x14e4
testq %rax, %rax
je 0x4cbb
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4cfc
testl %eax, %eax
je 0x4cbb
movq 0x18(%rbx), %rsi
movq 0x20(%rbx), %rdx
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1100
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/permissions.c
// Function: check_permissions
int			check_permissions(t_shell *shell, char *path)
{
	struct stat s;

	if (stat(path, &s) != -1)
	{
		if (s.st_mode & S_IFDIR)
		{
			return (set_err_message(shell, " is a directory", 126,
						shell->binary));
		}
		if (shell->is_binary == 1 && (!(s.st_mode & S_IXUSR)))
			return (set_err_message(shell, " Permission denied", 126, path));
		else if (shell->is_binary == 0 &&
				(!(s.st_mode & S_IXUSR) || !(s.st_mode & S_IRUSR)))
			return (set_err_message(shell, " Permission denied", 126, path));
		return (1);
	}
	else
		return (set_err_message(shell, " command not found", 127
								, shell->binary));
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x1130
cmpl $-0x1, %eax
je 0x4d67
movl 0x20(%rsp), %eax
btl $0xe, %eax
jb 0x4d7b
movl 0x30(%rbx), %ecx
movl %ecx, %edx
xorl $0x1, %edx
movl %eax, %esi
andl $0x40, %esi
orl %edx, %esi
je 0x4d51
testl %ecx, %ecx
setne %cl
notl %eax
testl $0x140, %eax            # imm = 0x140
sete %al
orb %cl, %al
movl $0x1, %eax
jne 0x4d97
movl $0x7e, 0x28(%rbx)
leaq 0x1324(%rip), %rsi      # 0x6083
movq %rbx, %rdi
movq %r14, %rdx
jmp 0x4d90
movq 0x8(%rbx), %rdx
movl $0x7f, 0x28(%rbx)
leaq 0x1583(%rip), %rsi      # 0x62fc
jmp 0x4d8d
movq 0x8(%rbx), %rdx
movl $0x7e, 0x28(%rbx)
leaq 0x15a3(%rip), %rsi      # 0x6330
movq %rbx, %rdi
callq 0x47c0
xorl %eax, %eax
addq $0x98, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/srcs/shlvl.c
// Function: handle_shlvl
void			handle_shlvl(t_shell *shell)
{
	char					*shlvl;
	int						lvl;
	char					*tmp;

	shlvl = get_env(shell, "SHLVL=");
	if (!shlvl)
	{
		free(shlvl);
		shlvl = "0";
	}
	lvl = (int)ft_atoi(shlvl) + 1;
	free(shlvl);
	if (lvl < 0 && lvl >= INT_MIN)
		lvl = 0;
	else if (lvl > 2000000)
	{
		shlvl_error(shell, lvl);
		lvl = 1;
	}
	shlvl = ft_itoa(lvl);
	tmp = ft_strjoin("SHLVL=", shlvl);
	ft_export(shell, tmp);
	free(tmp);
	free(shlvl);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x158d(%rip), %rsi      # 0x6340
callq 0x1db4
testq %rax, %rax
leaq 0x1585(%rip), %r15      # 0x6347
cmovneq %rax, %r15
movq %r15, %rdi
callq 0x4e98
movq %rax, %r14
movq %r15, %rdi
callq 0x1030
xorl %edi, %edi
cmpl $-0x1, %r14d
jl 0x4e5c
leal 0x1(%r14), %edi
cmpl $0x1e8480, %r14d        # imm = 0x1E8480
jl 0x4e5c
callq 0x4f68
movq %rax, %r14
leaq 0x154c(%rip), %rdi      # 0x6349
movq %rax, %rsi
callq 0x523c
movq %rax, %r15
movq %r14, %rdi
callq 0x1030
movq %r15, %rdi
callq 0x51fc
movq %rax, %r14
movq %r15, %rdi
callq 0x1030
leaq 0x152e(%rip), %rsi      # 0x6358
movq %r14, %rdi
callq 0x523c
movq %rax, %r15
movq %r14, %rdi
callq 0x1030
leaq 0x152f(%rip), %rdx      # 0x6373
movq %rbx, %rdi
movq %r15, %rsi
callq 0x47c0
movq %r15, %rdi
callq 0x1030
movl $0x1, %edi
callq 0x4f68
movq %rax, %r14
leaq 0x14d5(%rip), %rdi      # 0x6340
movq %rax, %rsi
callq 0x523c
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x26eb
movq %r15, %rdi
callq 0x1030
movq %r14, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1030
nop
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/libft/ft_atoi.c
// Function: ft_atoi
long int			ft_atoi(const char *str)
{
	long double			res;
	int					sign;
	unsigned int		i;

	res = 0;
	sign = 1;
	i = 0;
	while (str[i] == ' ' || str[i] == '\t' || str[i] == '\n' ||
			str[i] == '\r' || str[i] == '\v' || str[i] == '\f')
		i++;
	if (str[i] == '-' || str[i] == '+')
	{
		if (str[i] == '-')
			sign = -1;
		i++;
	}
	while (str[i] >= '0' && str[i] <= '9')
	{
		res = res * 10 + str[i] - '0';
		i++;
	}
	//printf("NUM: %ld", (long int)res * sign);
	return ((long double)(res * sign));
}

// Assembly:
xorl %eax, %eax
movl %eax, %ecx
movb (%rdi,%rcx), %cl
movzbl %cl, %edx
leal -0x9(%rdx), %esi
cmpl $0x5, %esi
jae 0x4eae
incl %eax
jmp 0x4e9a
cmpl $0x20, %edx
je 0x4eaa
cmpl $0x2b, %edx
je 0x4ebd
cmpl $0x2d, %edx
jne 0x4ed3
cmpb $0x2d, %cl
fld1
fld %st(0)
fchs
fxch %st(1)
fcmove %st(1), %st
fstp %st(1)
incl %eax
movb (%rdi,%rax), %cl
jmp 0x4ed5
fld1
leal -0x30(%rcx), %edx
fldz
cmpb $0x9, %dl
ja 0x4f0c
fstp %st(0)
incl %eax
fldz
movzbl %cl, %ecx
movw %cx, -0xa(%rsp)
fmuls 0x1489(%rip)            # 0x637c
fiadds -0xa(%rsp)
fadds 0x1483(%rip)            # 0x6380
movl %eax, %ecx
movb (%rdi,%rcx), %cl
leal -0x30(%rcx), %edx
incl %eax
cmpb $0xa, %dl
jb 0x4ee5
fmulp %st, %st(1)
fnstcw -0xe(%rsp)
movzwl -0xe(%rsp), %eax
orl $0xc00, %eax            # imm = 0xC00
movw %ax, -0xc(%rsp)
fldcw -0xc(%rsp)
fistpll -0x8(%rsp)
fldcw -0xe(%rsp)
movq -0x8(%rsp), %rax
retq
nop
// File: /workspace/github_c_makefile_star2_O3/vdedios[P]minishell/libft/ft_itoa.c
// Function: ft_itoa
char		*ft_itoa(int n)
{
	int		size;
	long int	aux;
	char		*num;

	aux = n;
	size = ft_size_num(aux);
	if (!(num = (char *)malloc((size + 1) * sizeof(char))))
		return (NULL);
	num[--size + 1] = '\0';
	if (aux < 0)
		aux = -aux;
	while (size >= 0)
	{
		num[size--] = (aux % 10) + '0';
		aux = aux / 10;
	}
	if (num[0] == '0' && num[1])
		num[0] = '-';
	return (num);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movslq %edi, %r14
movabsq $-0x3333333333333333, %rbx # imm = 0xCCCCCCCCCCCCCCCD
testl %r14d, %r14d
je 0x4fa8
movq %r14, %r15
shrq $0x3f, %r15
movq %r14, %rcx
negq %rcx
cmovsq %r14, %rcx
movq %rcx, %rax
mulq %rbx
shrq $0x3, %rdx
incl %r15d
cmpq $0x9, %rcx
movq %rdx, %rcx
ja 0x4f90
jmp 0x4fae
movl $0x1, %r15d
leal 0x1(%r15), %eax
movslq %eax, %rdi
callq 0x1160
movq %rax, %rcx
testq %rax, %rax
je 0x5013
movslq %r15d, %rax
movb $0x0, (%rcx,%rax)
testl %r15d, %r15d
jle 0x5005
movq %r14, %rsi
negq %rsi
cmovsq %r14, %rsi
movl %r15d, %edi
incq %rdi
movq %rsi, %rax
mulq %rbx
shrq $0x3, %rdx
leal (%rdx,%rdx), %eax
leal (%rax,%rax,4), %eax
subl %eax, %esi
orb $0x30, %sil
movb %sil, -0x2(%rcx,%rdi)
decq %rdi
movq %rdx, %rsi
cmpq $0x1, %rdi
ja 0x4fde
cmpb $0x30, (%rcx)
jne 0x5013
cmpb $0x0, 0x1(%rcx)
je 0x5013
movb $0x2d, (%rcx)
movq %rcx, %rax
popq %rbx
popq %r14
popq %r15
retq