// File: /workspace/github_c_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movslq %ecx, %r14
movq 0x8(%rdi,%r14,8), %rbx
testq %rbx, %rbx
je 0x1e4e
movq %rdi, %r13
movq %rdx, 0x20(%rsp)
leal 0x1(%r14), %ebp
incq %r14
movq %rsi, 0x8(%rsp)
leaq 0x4(%rsi), %rax
movq %rax, 0x10(%rsp)
cmpb $0x2d, (%rbx)
jne 0x1e52
incq %rbx
movslq %ecx, %r12
movq %r13, %r15
movq 0x10(%r13,%r12,8), %r13
movq 0x10(%rsp), %rax
cmpl $0x1, (%rax)
jne 0x1cfc
movq %rbx, %rdi
leaq 0xbafa(%rip), %rsi      # 0xd7d2
callq 0x7644
testl %eax, %eax
je 0x1dd1
movq %rbx, %rdi
leaq 0xaf12(%rip), %rsi      # 0xcc01
callq 0x7644
testl %eax, %eax
je 0x1dd1
movq %rbx, %rdi
leaq 0xba9d(%rip), %rsi      # 0xd7a3
callq 0x7644
testl %eax, %eax
je 0x1d88
movq %rbx, %rdi
leaq 0xa324(%rip), %rsi      # 0xc03d
callq 0x7644
testl %eax, %eax
je 0x1d88
movq %rbx, %rdi
leaq 0xaddd(%rip), %rsi      # 0xcb09
callq 0x7644
testl %eax, %eax
je 0x1de1
movq %rbx, %rdi
leaq 0xa318(%rip), %rsi      # 0xc05b
callq 0x7644
testl %eax, %eax
je 0x1de1
movq %rbx, %rdi
leaq 0xa307(%rip), %rsi      # 0xc061
callq 0x7644
testl %eax, %eax
movq %r15, %r13
je 0x1d7d
movq %rbx, %rdi
leaq 0xa2f3(%rip), %rsi      # 0xc063
callq 0x7644
testl %eax, %eax
jne 0x1e6d
movq 0x8(%rsp), %rax
orb $0x10, 0x8(%rax)
jmp 0x1ded
movq 0x8(%rsp), %rax
orb $0x2, 0x8(%rax)
testq %r13, %r13
jne 0x1da7
leaq 0xa2a2(%rip), %rdi      # 0xc03f
movl $0x2, %esi
callq 0x7225
leaq 0x1c(%rsp), %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x6718
testl %eax, %eax
movq %r15, %r13
jne 0x1e6d
movl 0x1c(%rsp), %edi
callq 0x1080
movq 0x8(%rsp), %rax
jmp 0x1ded
movq 0x8(%rsp), %rax
orb $0x1, 0x8(%rax)
testq %r13, %r13
jne 0x1dea
jmp 0x1e59
movq 0x8(%rsp), %rax
orb $0x8, 0x8(%rax)
movq %r15, %r13
leal 0x2(%r12), %ebx
addq $0x2, %r12
movq 0x10(%rsp), %rcx
cmpl $0x1, (%rcx)
jne 0x1e06
testb $0x1, 0x8(%rax)
jne 0x1e1f
cmpl $0x0, (%rax)
jne 0x1e35
testb $0x2, 0x8(%rax)
je 0x1e35
movq (%r13,%r12,8), %rsi
movq 0x8(%rsp), %rdi
xorl %edx, %edx
jmp 0x1e2e
movq (%r13,%r12,8), %rsi
movq 0x10(%rsp), %rdi
movl $0x1, %edx
callq 0x6718
movl %ebx, %ebp
movl %ebp, %ecx
leal 0x1(%rcx), %ebp
movslq %ecx, %r14
movq 0x8(%r13,%r14,8), %rbx
incq %r14
testq %rbx, %rbx
jne 0x1cad
xorl %eax, %eax
jmp 0x1eb5
movq 0x20(%rsp), %rdx
jmp 0x1ea8
leaq 0xa1c0(%rip), %rdi      # 0xc020
movl $0x2, %esi
callq 0x7225
movq %r15, %r13
movl $0xffffffd6, %eax       # imm = 0xFFFFFFD6
movq 0x8(%rsp), %rcx
testb $0x2, 0x8(%rcx)
movl $0xffffffd6, %ecx       # imm = 0xFFFFFFD6
movq 0x20(%rsp), %rdx
jne 0x1e8a
movl 0x4(%rdx), %ecx
movl %ecx, 0x4(%rdx)
movq 0x8(%rsp), %rsi
movzwl 0x8(%rsi), %esi
testb $0x1, %sil
cmovel %ecx, %eax
movl %eax, 0x4(%rdx)
movq (%r13,%r14,8), %rbx
incq %rbx
movl $0x6, %edi
movq %rbx, %rsi
callq 0x2729
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq