// File: /workspace/github_c_makefile_star2_O0/rpeepz[P]ft_ssl/srcs/encode/base64.c
// Function: valid_arg
static int		valid_arg(t_parse *b64, char *arg, char *fname)
{
	int		tmp;

	if ((b64->fd_out == 1) && (!ft_strcmp(arg, "out") || !ft_strcmp(arg, "o")))
	{
		b64->flag |= F_OUT;
		if (!fname)
			ft_putstr_fd("missing argument for '-out'\n", 2);
		return (!fname ? 1 : 0);
	}
	else if (!ft_strcmp(arg, "in") || !ft_strcmp(arg, "i"))
	{
		b64->flag |= F_IN;
		if (!fname)
			ft_putstr_fd("missing argument for '-in'\n", 2);
		if (open_file_to_fd(&tmp, fname, 0))
			return (1);
		close(tmp);
	}
	else if (!ft_strcmp(arg, "d") || !ft_strcmp(arg, "-decode"))
		b64->flag |= D_FLAG;
	else if (!ft_strcmp(arg, "e") || !ft_strcmp(arg, "-encode"))
		b64->flag |= E_FLAG;
	else
		return (1);
	return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x1, 0x4(%rax)
jne 0x262f
movq -0x18(%rbp), %rdi
leaq 0x11dc3(%rip), %rsi     # 0x14370
callq 0xb8e0
cmpl $0x0, %eax
je 0x25cc
movq -0x18(%rbp), %rdi
leaq 0x115e8(%rip), %rsi     # 0x13baa
callq 0xb8e0
cmpl $0x0, %eax
jne 0x262f
movq -0x10(%rbp), %rax
movw 0x8(%rax), %cx
andw $0xfff, %cx             # imm = 0xFFF
movzwl %cx, %ecx
orl $0x1, %ecx
movw %cx, %dx
movw 0x8(%rax), %cx
andw $0xfff, %dx             # imm = 0xFFF
andw $0xf000, %cx            # imm = 0xF000
orw %dx, %cx
movw %cx, 0x8(%rax)
cmpq $0x0, -0x20(%rbp)
jne 0x260f
leaq 0x10a1b(%rip), %rdi     # 0x13020
movl $0x2, %esi
callq 0xb230
cmpq $0x0, -0x20(%rbp)
setne %dl
xorb $-0x1, %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x278d
movq -0x18(%rbp), %rdi
leaq 0x11d07(%rip), %rsi     # 0x14341
callq 0xb8e0
cmpl $0x0, %eax
je 0x2659
movq -0x18(%rbp), %rdi
leaq 0x109ee(%rip), %rsi     # 0x1303d
callq 0xb8e0
cmpl $0x0, %eax
jne 0x26c9
movq -0x10(%rbp), %rax
movw 0x8(%rax), %cx
andw $0xfff, %cx             # imm = 0xFFF
movzwl %cx, %ecx
orl $0x2, %ecx
movw %cx, %dx
movw 0x8(%rax), %cx
andw $0xfff, %dx             # imm = 0xFFF
andw $0xf000, %cx            # imm = 0xF000
orw %dx, %cx
movw %cx, 0x8(%rax)
cmpq $0x0, -0x20(%rbp)
jne 0x269c
leaq 0x109ad(%rip), %rdi     # 0x1303f
movl $0x2, %esi
callq 0xb230
movq -0x20(%rbp), %rsi
leaq -0x24(%rbp), %rdi
xorl %edx, %edx
callq 0x9ce0
cmpl $0x0, %eax
je 0x26bc
movl $0x1, -0x4(%rbp)
jmp 0x278d
movl -0x24(%rbp), %edi
callq 0x1070
jmp 0x2784
movq -0x18(%rbp), %rdi
leaq 0x113de(%rip), %rsi     # 0x13ab2
callq 0xb8e0
cmpl $0x0, %eax
je 0x26f3
movq -0x18(%rbp), %rdi
leaq 0x10972(%rip), %rsi     # 0x1305b
callq 0xb8e0
cmpl $0x0, %eax
jne 0x2720
movq -0x10(%rbp), %rax
movw 0x8(%rax), %cx
andw $0xfff, %cx             # imm = 0xFFF
movzwl %cx, %ecx
orl $0x8, %ecx
movw %cx, %dx
movw 0x8(%rax), %cx
andw $0xfff, %dx             # imm = 0xFFF
andw $0xf000, %cx            # imm = 0xF000
orw %dx, %cx
movw %cx, 0x8(%rax)
jmp 0x2782
movq -0x18(%rbp), %rdi
leaq 0x10936(%rip), %rsi     # 0x13061
callq 0xb8e0
cmpl $0x0, %eax
je 0x274a
movq -0x18(%rbp), %rdi
leaq 0x10923(%rip), %rsi     # 0x13063
callq 0xb8e0
cmpl $0x0, %eax
jne 0x2777
movq -0x10(%rbp), %rax
movw 0x8(%rax), %cx
andw $0xfff, %cx             # imm = 0xFFF
movzwl %cx, %ecx
orl $0x10, %ecx
movw %cx, %dx
movw 0x8(%rax), %cx
andw $0xfff, %dx             # imm = 0xFFF
andw $0xf000, %cx            # imm = 0xF000
orw %dx, %cx
movw %cx, 0x8(%rax)
jmp 0x2780
movl $0x1, -0x4(%rbp)
jmp 0x278d
jmp 0x2782
jmp 0x2784
jmp 0x2786
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)