// File: /workspace/github_c_makefile_star2_O0/pvineet44[P]minishell/src/ms_parse_utils.c
// Function: get_files
void						get_files(char *line,\
t_minishell_meta *ms, int index)
{
	int		i;
	int		quote_bit;
	int		j;

	i = 0;
	quote_bit = 0;
	while ((j = 0) && line[i] != '\0' && ft_isalpha(line[i]))
		i++;
	while (line[i] != '\0' && ft_isspace(line[i]))
		i++;
	if (line[i] == '\0' || !ft_isredir(line[i]))
		return ;
	while (line[i] && line[i] != 26)
	{
		while (line[i] && ft_isredir(line[i]))
			ms->arg = ft_stradd(ms->arg, line[i++]);
		j = add_ms_arg(ms, index, j, 0);
		while (line[i] != '\0' && ft_isspace(line[i]))
			i++;
		i = get_file_name(line, i, &quote_bit, &ms->arg);
		j = add_ms_arg(ms, index, j, 1);
	}
	j = add_ms_arg(ms, index, j, 1);
	ms->piped_cmds->redir[index][j] = 0;
	ms->piped_cmds->files1[index][j] = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
xorl %eax, %eax
testb $0x1, %al
movb %al, -0x21(%rbp)
jne 0x46a3
jmp 0x46d3
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x21(%rbp)
je 0x46d3
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
movsbl (%rax,%rcx), %edi
callq 0x6b60
cmpl $0x0, %eax
setne %al
movb %al, -0x21(%rbp)
movb -0x21(%rbp), %al
testb $0x1, %al
jne 0x46dc
jmp 0x46e7
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x4691
jmp 0x46e9
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x22(%rbp)
je 0x4719
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
movsbl (%rax,%rcx), %edi
callq 0x6bd0
cmpl $0x0, %eax
setne %al
movb %al, -0x22(%rbp)
movb -0x22(%rbp), %al
testb $0x1, %al
jne 0x4722
jmp 0x472d
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x46e9
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0x4754
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
movsbl (%rax,%rcx), %edi
callq 0x6160
cmpl $0x0, %eax
jne 0x4759
jmp 0x48e3
jmp 0x475b
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x23(%rbp)
je 0x4786
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x1a, %eax
setne %al
movb %al, -0x23(%rbp)
movb -0x23(%rbp), %al
testb $0x1, %al
jne 0x4792
jmp 0x488c
jmp 0x4794
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x24(%rbp)
je 0x47c4
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
movsbl (%rax,%rcx), %edi
callq 0x6160
cmpl $0x0, %eax
setne %al
movb %al, -0x24(%rbp)
movb -0x24(%rbp), %al
testb $0x1, %al
jne 0x47cd
jmp 0x47fd
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x8(%rbp), %rax
movl -0x18(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x18(%rbp)
movslq %ecx, %rcx
movsbl (%rax,%rcx), %esi
callq 0x1dc0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x4794
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movl -0x20(%rbp), %edx
xorl %ecx, %ecx
callq 0x68f0
movl %eax, -0x20(%rbp)
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x25(%rbp)
je 0x4841
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
movsbl (%rax,%rcx), %edi
callq 0x6bd0
cmpl $0x0, %eax
setne %al
movb %al, -0x25(%rbp)
movb -0x25(%rbp), %al
testb $0x1, %al
jne 0x484a
jmp 0x4855
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x4811
movq -0x8(%rbp), %rdi
movl -0x18(%rbp), %esi
movq -0x10(%rbp), %rcx
addq $0x10, %rcx
leaq -0x1c(%rbp), %rdx
callq 0x4510
movl %eax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movl -0x20(%rbp), %edx
movl $0x1, %ecx
callq 0x68f0
movl %eax, -0x20(%rbp)
jmp 0x475b
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movl -0x20(%rbp), %edx
movl $0x1, %ecx
callq 0x68f0
movl %eax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rax
movq 0x18(%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x20(%rbp), %rcx
movq $0x0, (%rax,%rcx,8)
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rax
movq 0x10(%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x20(%rbp), %rcx
movq $0x0, (%rax,%rcx,8)
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)