// File: /workspace/github_c_makefile_star2_O3/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 0x1e49
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 0x1e4d
incq %rbx
movslq %ecx, %r12
movq %r13, %r15
movq 0x10(%r13,%r12,8), %r13
movq 0x10(%rsp), %rax
cmpl $0x1, (%rax)
jne 0x1cf7
movq %rbx, %rdi
leaq 0xbb9f(%rip), %rsi      # 0xd872
callq 0x7d58
testl %eax, %eax
je 0x1dcc
movq %rbx, %rdi
leaq 0xaf17(%rip), %rsi      # 0xcc01
callq 0x7d58
testl %eax, %eax
je 0x1dcc
movq %rbx, %rdi
leaq 0xbb42(%rip), %rsi      # 0xd843
callq 0x7d58
testl %eax, %eax
je 0x1d83
movq %rbx, %rdi
leaq 0xa329(%rip), %rsi      # 0xc03d
callq 0x7d58
testl %eax, %eax
je 0x1d83
movq %rbx, %rdi
leaq 0xade2(%rip), %rsi      # 0xcb09
callq 0x7d58
testl %eax, %eax
je 0x1ddc
movq %rbx, %rdi
leaq 0xa31d(%rip), %rsi      # 0xc05b
callq 0x7d58
testl %eax, %eax
je 0x1ddc
movq %rbx, %rdi
leaq 0xa30c(%rip), %rsi      # 0xc061
callq 0x7d58
testl %eax, %eax
movq %r15, %r13
je 0x1d78
movq %rbx, %rdi
leaq 0xa2f8(%rip), %rsi      # 0xc063
callq 0x7d58
testl %eax, %eax
jne 0x1e68
movq 0x8(%rsp), %rax
orb $0x10, 0x8(%rax)
jmp 0x1de8
movq 0x8(%rsp), %rax
orb $0x2, 0x8(%rax)
testq %r13, %r13
jne 0x1da2
leaq 0xa2a7(%rip), %rdi      # 0xc03f
movl $0x2, %esi
callq 0x7941
leaq 0x1c(%rsp), %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x6e30
testl %eax, %eax
movq %r15, %r13
jne 0x1e68
movl 0x1c(%rsp), %edi
callq 0x1080
movq 0x8(%rsp), %rax
jmp 0x1de8
movq 0x8(%rsp), %rax
orb $0x1, 0x8(%rax)
testq %r13, %r13
jne 0x1de5
jmp 0x1e54
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 0x1e01
testb $0x1, 0x8(%rax)
jne 0x1e1a
cmpl $0x0, (%rax)
jne 0x1e30
testb $0x2, 0x8(%rax)
je 0x1e30
movq (%r13,%r12,8), %rsi
movq 0x8(%rsp), %rdi
xorl %edx, %edx
jmp 0x1e29
movq (%r13,%r12,8), %rsi
movq 0x10(%rsp), %rdi
movl $0x1, %edx
callq 0x6e30
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 0x1ca8
xorl %eax, %eax
jmp 0x1eb0
movq 0x20(%rsp), %rdx
jmp 0x1ea3
leaq 0xa1c5(%rip), %rdi      # 0xc020
movl $0x2, %esi
callq 0x7941
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 0x1e85
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 0x2738
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop