// File: /workspace/github_c_makefile_star2_O0/rpeepz[P]ft_ssl/srcs/standard/rand.c
// Function: parse_rand
int				parse_rand(char **av, t_ssl *ssl, int *bytes, int i)
{
	while (av[++i])
	{
		if (av[i][0] == '-')
		{
			if (valid_rand_arg(av, ssl, &i, av[i + 1]))
				return (ssl->fd[1] == -1 ? opt_desciption(ssl->type) :\
				ft_error(6, &av[i][1], ssl));
		}
		else if (!ft_isdigit(av[i][0]))
			return (ft_error(6, av[i], ssl));
		else if (*bytes || (ssl->flag & RAND_BASE64 && ssl->flag & HEX))
		{
			ft_putstr_fd(E_MANY, 2);
			return (opt_desciption(ssl->type) && (*bytes = 1));
		}
		else
			*bytes = ft_atoi(av[i]);
	}
	if (!*bytes || (ssl->flag & RAND_BASE64 && ssl->flag & HEX))
	{
		ssl->flag & RAND_BASE64 && ssl->flag & HEX ?\
		ft_putstr_fd(E_MANY, 2) : 0;
		return (1 && !(*bytes = 0));
	}
	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 0x6155
movq -0x10(%rbp), %rax
movslq -0x24(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x6089
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rax
movl -0x24(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rcx
leaq -0x24(%rbp), %rdx
callq 0x61e0
cmpl $0x0, %eax
je 0x6084
movq -0x18(%rbp), %rax
cmpl $-0x1, 0x10(%rax)
jne 0x6058
movq -0x18(%rbp), %rax
movl 0x8(%rax), %edi
callq 0x2c70
movl %eax, -0x28(%rbp)
jmp 0x6079
movq -0x10(%rbp), %rax
movslq -0x24(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
addq $0x1, %rsi
movq -0x18(%rbp), %rdx
movl $0x6, %edi
callq 0x33a0
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x61c9
jmp 0x6150
movq -0x10(%rbp), %rax
movslq -0x24(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl (%rax), %edi
callq 0xa4f0
cmpl $0x0, %eax
jne 0x60c4
movq -0x10(%rbp), %rax
movslq -0x24(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -0x18(%rbp), %rdx
movl $0x6, %edi
callq 0x33a0
movl %eax, -0x4(%rbp)
jmp 0x61c9
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x60eb
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x6133
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x6133
leaq 0xdccf(%rip), %rdi      # 0x13dc1
movl $0x2, %esi
callq 0xb230
movq -0x18(%rbp), %rax
movl 0x8(%rax), %edi
callq 0x2c70
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x29(%rbp)
je 0x6123
movq -0x20(%rbp), %rax
movl $0x1, (%rax)
movb $0x1, %al
movb %al, -0x29(%rbp)
movb -0x29(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x4(%rbp)
jmp 0x61c9
movq -0x10(%rbp), %rax
movslq -0x24(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0xa0a0
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, (%rax)
jmp 0x614e
jmp 0x6150
jmp 0x5fe7
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x617c
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x61c2
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x61c2
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x61ad
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x61ad
leaq 0xdc20(%rip), %rdi      # 0x13dc1
movl $0x2, %esi
callq 0xb230
jmp 0x61af
jmp 0x61af
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x61c9
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)