// File: /workspace/github_c_makefile_star2_O0/rpeepz[P]ft_ssl/srcs/rsa/rsa.c
// Function: rsa_command
t_rsa			rsa_command(t_rsa_out rsa)
{
	t_rsa		gg;
	char		buf[PAGESIZE];
	__uint64_t	tmp;

	ft_bzero(&gg, sizeof(t_rsa));
	rsa.bits = 0;
	if ((rsa.flag & R_PUBIN && rsa.flag & R_DECRYPT && ft_error(19, NULL, NULL))
	|| read_key(buf, &gg, rsa.flag, rsa.type ? rsa.fd_inkey : rsa.fd_in))
		return (gg);
	tmp = gg.n;
	while (tmp && ++rsa.bits)
		tmp >>= 1;
	if (!rsa.type && rsa.flag & R_TEXT)
		rsa_text_out(rsa, gg);
	if (rsa.flag & R_MODULUS)
	{
		ft_bzero(buf, PAGESIZE);
		ft_sprintf(buf, "Modulus=%llX\n", gg.n);
		ft_putstr_fd(buf, rsa.fd_out);
	}
	if (rsa.flag & R_CHECK)
		rsa_out_options(rsa, gg, 'c');
	if (!rsa.type && !(rsa.flag & R_NOOUT))
		rsa_out_options(rsa, gg, 'o');
	return (gg);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10a0, %rsp           # imm = 0x10A0
movq %rdi, -0x1020(%rbp)
movq %rdi, %rax
movq %rax, -0x1018(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x1010(%rbp)
movl $0x48, %esi
callq 0xa600
movq -0x1010(%rbp), %rax
movl $0x0, 0x8(%rax)
movl (%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x7152
movq -0x1010(%rbp), %rax
movl (%rax), %eax
andl $0x200, %eax            # imm = 0x200
cmpl $0x0, %eax
je 0x7152
movl $0x13, %edi
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x33a0
cmpl $0x0, %eax
jne 0x71bb
movq -0x1010(%rbp), %rax
leaq -0x1000(%rbp), %rcx
movq %rcx, -0x1030(%rbp)
movl (%rax), %ecx
movl %ecx, -0x1024(%rbp)
cmpl $0x0, 0x4(%rax)
je 0x7187
movq -0x1010(%rbp), %rax
movl 0x14(%rax), %eax
movl %eax, -0x1034(%rbp)
jmp 0x7197
movq -0x1010(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, -0x1034(%rbp)
movl -0x1024(%rbp), %edx
movq -0x1020(%rbp), %rsi
movq -0x1030(%rbp), %rdi
movl -0x1034(%rbp), %ecx
callq 0x6e60
cmpl $0x0, %eax
je 0x71c0
jmp 0x73b3
movq -0x1020(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x1008(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x1008(%rbp)
movb %al, -0x1035(%rbp)
je 0x7200
movq -0x1010(%rbp), %rcx
movl 0x8(%rcx), %eax
addl $0x1, %eax
movl %eax, 0x8(%rcx)
cmpl $0x0, %eax
setne %al
movb %al, -0x1035(%rbp)
movb -0x1035(%rbp), %al
testb $0x1, %al
jne 0x720c
jmp 0x721f
movq -0x1008(%rbp), %rax
shrq %rax
movq %rax, -0x1008(%rbp)
jmp 0x71d2
movq -0x1010(%rbp), %rax
cmpl $0x0, 0x4(%rax)
jne 0x7288
movq -0x1010(%rbp), %rax
movl (%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x7288
movq -0x1010(%rbp), %rcx
movq -0x1020(%rbp), %rdx
movq 0x40(%rdx), %rsi
movq %rsp, %rax
movq %rsi, 0x58(%rax)
movups (%rdx), %xmm0
movups 0x10(%rdx), %xmm1
movups 0x20(%rdx), %xmm2
movups 0x30(%rdx), %xmm3
movups %xmm3, 0x48(%rax)
movups %xmm2, 0x38(%rax)
movups %xmm1, 0x28(%rax)
movups %xmm0, 0x18(%rax)
movq 0x10(%rcx), %rdx
movq %rdx, 0x10(%rax)
movups (%rcx), %xmm0
movups %xmm0, (%rax)
callq 0x74a0
movq -0x1010(%rbp), %rax
movl (%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x72e2
leaq -0x1000(%rbp), %rdi
movl $0x1000, %esi           # imm = 0x1000
callq 0xa600
movq -0x1020(%rbp), %rax
leaq -0x1000(%rbp), %rdi
movq 0x10(%rax), %rdx
leaq 0xcdb4(%rip), %rsi      # 0x14079
movb $0x0, %al
callq 0xb3d0
movq -0x1010(%rbp), %rax
leaq -0x1000(%rbp), %rdi
movl 0xc(%rax), %esi
callq 0xb230
movq -0x1010(%rbp), %rax
movl (%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x7343
movq -0x1010(%rbp), %rcx
movq -0x1020(%rbp), %rdx
movq 0x40(%rdx), %rsi
movq %rsp, %rax
movq %rsi, 0x58(%rax)
movups (%rdx), %xmm0
movups 0x10(%rdx), %xmm1
movups 0x20(%rdx), %xmm2
movups 0x30(%rdx), %xmm3
movups %xmm3, 0x48(%rax)
movups %xmm2, 0x38(%rax)
movups %xmm1, 0x28(%rax)
movups %xmm0, 0x18(%rax)
movq 0x10(%rcx), %rdx
movq %rdx, 0x10(%rax)
movups (%rcx), %xmm0
movups %xmm0, (%rax)
movl $0x63, %edi
callq 0x79e0
movq -0x1010(%rbp), %rax
cmpl $0x0, 0x4(%rax)
jne 0x73b1
movq -0x1010(%rbp), %rax
movl (%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
jne 0x73b1
movq -0x1010(%rbp), %rcx
movq -0x1020(%rbp), %rdx
movq 0x40(%rdx), %rsi
movq %rsp, %rax
movq %rsi, 0x58(%rax)
movups (%rdx), %xmm0
movups 0x10(%rdx), %xmm1
movups 0x20(%rdx), %xmm2
movups 0x30(%rdx), %xmm3
movups %xmm3, 0x48(%rax)
movups %xmm2, 0x38(%rax)
movups %xmm1, 0x28(%rax)
movups %xmm0, 0x18(%rax)
movq 0x10(%rcx), %rdx
movq %rdx, 0x10(%rax)
movups (%rcx), %xmm0
movups %xmm0, (%rax)
movl $0x6f, %edi
callq 0x79e0
jmp 0x73b3
movq -0x1018(%rbp), %rax
addq $0x10a0, %rsp           # imm = 0x10A0
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)