// File: /workspace/github_c_makefile_star2_O0/rpeepz[P]ft_ssl/srcs/encode/base64.c
// Function: parse_b64
int				parse_b64(char **av, t_parse *b64, t_ssl *ssl, int i)
{
	while ((av[++i]))
	{
		if (av[i][0] == '-')
		{
			if (valid_arg(b64, &av[i][1], av[i + 1]))
			{
				ssl->flag = b64->flag & F_IN ? -42 : ssl->flag;
				ssl->flag = b64->flag & F_OUT ? -42 : ssl->flag;
				return (ft_error(6, &av[i][1], ssl));
			}
			else if (b64->fd_out == 1 && b64->flag & F_OUT)
				open_file_to_fd((int*)&b64->fd_out, av[++i], 1);
			else if ((!b64->fd_in) && (b64->flag & F_IN))
				open_file_to_fd((int*)&b64->fd_in, av[++i], 0);
		}
		else
			return (ft_error(6, av[i], ssl));
	}
	return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movq -0x10(%rbp), %rax
movl -0x24(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, -0x24(%rbp)
movslq %ecx, %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0x256f
movq -0x10(%rbp), %rax
movslq -0x24(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x254b
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movslq -0x24(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
addq $0x1, %rsi
movq -0x10(%rbp), %rax
movl -0x24(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdx
callq 0x2580
cmpl $0x0, %eax
je 0x24bd
movq -0x18(%rbp), %rax
movw 0x8(%rax), %ax
andw $0xfff, %ax             # imm = 0xFFF
movzwl %ax, %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x244e
movl $0xffffffd6, %eax       # imm = 0xFFFFFFD6
movl %eax, -0x28(%rbp)
jmp 0x2458
movq -0x20(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x18(%rbp), %rax
movw 0x8(%rax), %ax
andw $0xfff, %ax             # imm = 0xFFF
movzwl %ax, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x2483
movl $0xffffffd6, %eax       # imm = 0xFFFFFFD6
movl %eax, -0x2c(%rbp)
jmp 0x248d
movq -0x20(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x10(%rbp), %rax
movslq -0x24(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
addq $0x1, %rsi
movq -0x20(%rbp), %rdx
movl $0x6, %edi
callq 0x33a0
movl %eax, -0x4(%rbp)
jmp 0x2576
movq -0x18(%rbp), %rax
cmpl $0x1, 0x4(%rax)
jne 0x2506
movq -0x18(%rbp), %rax
movw 0x8(%rax), %ax
andw $0xfff, %ax             # imm = 0xFFF
movzwl %ax, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x2506
movq -0x18(%rbp), %rdi
addq $0x4, %rdi
movq -0x10(%rbp), %rax
movl -0x24(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, -0x24(%rbp)
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rsi
movl $0x1, %edx
callq 0x9ce0
jmp 0x2547
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x2545
movq -0x18(%rbp), %rax
movw 0x8(%rax), %ax
andw $0xfff, %ax             # imm = 0xFFF
movzwl %ax, %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x2545
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movl -0x24(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, -0x24(%rbp)
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rsi
xorl %edx, %edx
callq 0x9ce0
jmp 0x2547
jmp 0x2549
jmp 0x256a
movq -0x10(%rbp), %rax
movslq -0x24(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -0x20(%rbp), %rdx
movl $0x6, %edi
callq 0x33a0
movl %eax, -0x4(%rbp)
jmp 0x2576
jmp 0x23c7
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nop