	.file	"173578752.c"
	.intel_syntax noprefix
	.text
	.globl	EVP_PKEY_OP_SIGN
	.bss
	.align 4
	.type	EVP_PKEY_OP_SIGN, @object
	.size	EVP_PKEY_OP_SIGN, 4
EVP_PKEY_OP_SIGN:
	.zero	4
	.globl	EVP_PKEY_OP_TYPE_CRYPT
	.align 4
	.type	EVP_PKEY_OP_TYPE_CRYPT, @object
	.size	EVP_PKEY_OP_TYPE_CRYPT, 4
EVP_PKEY_OP_TYPE_CRYPT:
	.zero	4
	.globl	EVP_PKEY_OP_VERIFY
	.align 4
	.type	EVP_PKEY_OP_VERIFY, @object
	.size	EVP_PKEY_OP_VERIFY, 4
EVP_PKEY_OP_VERIFY:
	.zero	4
	.globl	RSA_DEFAULT_PRIME_NUM
	.align 4
	.type	RSA_DEFAULT_PRIME_NUM, @object
	.size	RSA_DEFAULT_PRIME_NUM, 4
RSA_DEFAULT_PRIME_NUM:
	.zero	4
	.globl	RSA_F_PKEY_RSA_CTRL
	.align 4
	.type	RSA_F_PKEY_RSA_CTRL, @object
	.size	RSA_F_PKEY_RSA_CTRL, 4
RSA_F_PKEY_RSA_CTRL:
	.zero	4
	.globl	RSA_MAX_PRIME_NUM
	.align 4
	.type	RSA_MAX_PRIME_NUM, @object
	.size	RSA_MAX_PRIME_NUM, 4
RSA_MAX_PRIME_NUM:
	.zero	4
	.globl	RSA_MIN_MODULUS_BITS
	.align 4
	.type	RSA_MIN_MODULUS_BITS, @object
	.size	RSA_MIN_MODULUS_BITS, 4
RSA_MIN_MODULUS_BITS:
	.zero	4
	.globl	RSA_PKCS1_OAEP_PADDING
	.align 4
	.type	RSA_PKCS1_OAEP_PADDING, @object
	.size	RSA_PKCS1_OAEP_PADDING, 4
RSA_PKCS1_OAEP_PADDING:
	.zero	4
	.globl	RSA_PKCS1_PADDING
	.align 4
	.type	RSA_PKCS1_PADDING, @object
	.size	RSA_PKCS1_PADDING, 4
RSA_PKCS1_PADDING:
	.zero	4
	.globl	RSA_PKCS1_PSS_PADDING
	.align 4
	.type	RSA_PKCS1_PSS_PADDING, @object
	.size	RSA_PKCS1_PSS_PADDING, 4
RSA_PKCS1_PSS_PADDING:
	.zero	4
	.globl	RSA_PSS_SALTLEN_AUTO
	.align 4
	.type	RSA_PSS_SALTLEN_AUTO, @object
	.size	RSA_PSS_SALTLEN_AUTO, 4
RSA_PSS_SALTLEN_AUTO:
	.zero	4
	.globl	RSA_PSS_SALTLEN_DIGEST
	.align 4
	.type	RSA_PSS_SALTLEN_DIGEST, @object
	.size	RSA_PSS_SALTLEN_DIGEST, 4
RSA_PSS_SALTLEN_DIGEST:
	.zero	4
	.globl	RSA_PSS_SALTLEN_MAX
	.align 4
	.type	RSA_PSS_SALTLEN_MAX, @object
	.size	RSA_PSS_SALTLEN_MAX, 4
RSA_PSS_SALTLEN_MAX:
	.zero	4
	.globl	RSA_R_BAD_E_VALUE
	.align 4
	.type	RSA_R_BAD_E_VALUE, @object
	.size	RSA_R_BAD_E_VALUE, 4
RSA_R_BAD_E_VALUE:
	.zero	4
	.globl	RSA_R_DIGEST_NOT_ALLOWED
	.align 4
	.type	RSA_R_DIGEST_NOT_ALLOWED, @object
	.size	RSA_R_DIGEST_NOT_ALLOWED, 4
RSA_R_DIGEST_NOT_ALLOWED:
	.zero	4
	.globl	RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE
	.align 4
	.type	RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE, @object
	.size	RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE, 4
RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE:
	.zero	4
	.globl	RSA_R_INVALID_MGF1_MD
	.align 4
	.type	RSA_R_INVALID_MGF1_MD, @object
	.size	RSA_R_INVALID_MGF1_MD, 4
RSA_R_INVALID_MGF1_MD:
	.zero	4
	.globl	RSA_R_INVALID_PADDING_MODE
	.align 4
	.type	RSA_R_INVALID_PADDING_MODE, @object
	.size	RSA_R_INVALID_PADDING_MODE, 4
RSA_R_INVALID_PADDING_MODE:
	.zero	4
	.globl	RSA_R_INVALID_PSS_SALTLEN
	.align 4
	.type	RSA_R_INVALID_PSS_SALTLEN, @object
	.size	RSA_R_INVALID_PSS_SALTLEN, 4
RSA_R_INVALID_PSS_SALTLEN:
	.zero	4
	.globl	RSA_R_KEY_PRIME_NUM_INVALID
	.align 4
	.type	RSA_R_KEY_PRIME_NUM_INVALID, @object
	.size	RSA_R_KEY_PRIME_NUM_INVALID, 4
RSA_R_KEY_PRIME_NUM_INVALID:
	.zero	4
	.globl	RSA_R_KEY_SIZE_TOO_SMALL
	.align 4
	.type	RSA_R_KEY_SIZE_TOO_SMALL, @object
	.size	RSA_R_KEY_SIZE_TOO_SMALL, 4
RSA_R_KEY_SIZE_TOO_SMALL:
	.zero	4
	.globl	RSA_R_MGF1_DIGEST_NOT_ALLOWED
	.align 4
	.type	RSA_R_MGF1_DIGEST_NOT_ALLOWED, @object
	.size	RSA_R_MGF1_DIGEST_NOT_ALLOWED, 4
RSA_R_MGF1_DIGEST_NOT_ALLOWED:
	.zero	4
	.globl	RSA_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE
	.align 4
	.type	RSA_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE, @object
	.size	RSA_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE, 4
RSA_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE:
	.zero	4
	.globl	RSA_R_PSS_SALTLEN_TOO_SMALL
	.align 4
	.type	RSA_R_PSS_SALTLEN_TOO_SMALL, @object
	.size	RSA_R_PSS_SALTLEN_TOO_SMALL, 4
RSA_R_PSS_SALTLEN_TOO_SMALL:
	.zero	4
	.text
	.type	pkey_rsa_ctrl, @function
pkey_rsa_ctrl:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	QWORD PTR -56[rbp], rcx
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -44[rbp]
	add	eax, -128
	cmp	eax, 22
	ja	.L2
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L4[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L4[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L11-.L4
	.long	.L18-.L4
	.long	.L9-.L4
	.long	.L17-.L4
	.long	.L7-.L4
	.long	.L16-.L4
	.long	.L15-.L4
	.long	.L14-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.long	.L3-.L4
	.long	.L13-.L4
	.long	.L12-.L4
	.long	.L11-.L4
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.long	.L3-.L4
	.text
.L18:
	mov	eax, DWORD PTR RSA_PKCS1_PADDING[rip]
	cmp	DWORD PTR -48[rbp], eax
	jl	.L56
	mov	eax, DWORD PTR RSA_PKCS1_PSS_PADDING[rip]
	cmp	DWORD PTR -48[rbp], eax
	jg	.L56
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -48[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	check_padding_md@PLT
	test	eax, eax
	jne	.L20
	mov	eax, 0
	jmp	.L21
.L20:
	mov	eax, DWORD PTR RSA_PKCS1_PSS_PADDING[rip]
	cmp	DWORD PTR -48[rbp], eax
	jne	.L22
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	ecx, DWORD PTR EVP_PKEY_OP_SIGN[rip]
	mov	edx, DWORD PTR EVP_PKEY_OP_VERIFY[rip]
	or	edx, ecx
	and	eax, edx
	test	eax, eax
	je	.L57
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L24
	mov	eax, 0
	call	EVP_sha1@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	jmp	.L24
.L22:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	pkey_ctx_is_pss@PLT
	test	eax, eax
	jne	.L58
.L24:
	mov	eax, DWORD PTR RSA_PKCS1_OAEP_PADDING[rip]
	cmp	DWORD PTR -48[rbp], eax
	jne	.L25
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR EVP_PKEY_OP_TYPE_CRYPT[rip]
	and	eax, edx
	test	eax, eax
	je	.L59
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L25
	mov	eax, 0
	call	EVP_sha1@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
.L25:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	eax, 1
	jmp	.L21
.L56:
	nop
	jmp	.L19
.L57:
	nop
	jmp	.L19
.L58:
	nop
	jmp	.L19
.L59:
	nop
.L19:
	mov	edx, DWORD PTR RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE[rip]
	mov	eax, DWORD PTR RSA_F_PKEY_RSA_CTRL[rip]
	mov	esi, edx
	mov	edi, eax
	call	RSAerr@PLT
	mov	eax, -2
	jmp	.L21
.L10:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 1
	jmp	.L21
.L11:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR RSA_PKCS1_PSS_PADDING[rip]
	cmp	edx, eax
	je	.L27
	mov	edx, DWORD PTR RSA_R_INVALID_PSS_SALTLEN[rip]
	mov	eax, DWORD PTR RSA_F_PKEY_RSA_CTRL[rip]
	mov	esi, edx
	mov	edi, eax
	call	RSAerr@PLT
	mov	eax, -2
	jmp	.L21
.L27:
	cmp	DWORD PTR -44[rbp], 141
	jne	.L28
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L29
.L28:
	mov	eax, DWORD PTR RSA_PSS_SALTLEN_MAX[rip]
	cmp	DWORD PTR -48[rbp], eax
	jge	.L30
	mov	eax, -2
	jmp	.L21
.L30:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rsa_pss_restricted@PLT
	test	eax, eax
	je	.L31
	mov	eax, DWORD PTR RSA_PSS_SALTLEN_AUTO[rip]
	cmp	DWORD PTR -48[rbp], eax
	jne	.L32
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR EVP_PKEY_OP_VERIFY[rip]
	cmp	edx, eax
	jne	.L32
	mov	edx, DWORD PTR RSA_R_INVALID_PSS_SALTLEN[rip]
	mov	eax, DWORD PTR RSA_F_PKEY_RSA_CTRL[rip]
	mov	esi, edx
	mov	edi, eax
	call	RSAerr@PLT
	mov	eax, -2
	jmp	.L21
.L32:
	mov	eax, DWORD PTR RSA_PSS_SALTLEN_DIGEST[rip]
	cmp	DWORD PTR -48[rbp], eax
	jne	.L33
	mov	rax, QWORD PTR -24[rbp]
	mov	ebx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	EVP_MD_size@PLT
	cmp	ebx, eax
	jg	.L34
.L33:
	cmp	DWORD PTR -48[rbp], 0
	js	.L31
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	DWORD PTR -48[rbp], eax
	jge	.L31
.L34:
	mov	edx, DWORD PTR RSA_R_PSS_SALTLEN_TOO_SMALL[rip]
	mov	eax, DWORD PTR RSA_F_PKEY_RSA_CTRL[rip]
	mov	esi, edx
	mov	edi, eax
	call	RSAerr@PLT
	mov	eax, 0
	jmp	.L21
.L31:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	DWORD PTR 12[rax], edx
.L29:
	mov	eax, 1
	jmp	.L21
.L14:
	mov	eax, DWORD PTR RSA_MIN_MODULUS_BITS[rip]
	cmp	DWORD PTR -48[rbp], eax
	jge	.L35
	mov	edx, DWORD PTR RSA_R_KEY_SIZE_TOO_SMALL[rip]
	mov	eax, DWORD PTR RSA_F_PKEY_RSA_CTRL[rip]
	mov	esi, edx
	mov	edi, eax
	call	RSAerr@PLT
	mov	eax, -2
	jmp	.L21
.L35:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	DWORD PTR 20[rax], edx
	mov	eax, 1
	jmp	.L21
.L16:
	cmp	QWORD PTR -56[rbp], 0
	je	.L36
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	BN_is_odd@PLT
	test	eax, eax
	je	.L36
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	BN_is_one@PLT
	test	eax, eax
	je	.L37
.L36:
	mov	edx, DWORD PTR RSA_R_BAD_E_VALUE[rip]
	mov	eax, DWORD PTR RSA_F_PKEY_RSA_CTRL[rip]
	mov	esi, edx
	mov	edi, eax
	call	RSAerr@PLT
	mov	eax, -2
	jmp	.L21
.L37:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rdi, rax
	call	BN_free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR 56[rax], rdx
	mov	eax, 1
	jmp	.L21
.L15:
	mov	eax, DWORD PTR RSA_DEFAULT_PRIME_NUM[rip]
	cmp	DWORD PTR -48[rbp], eax
	jl	.L38
	mov	eax, DWORD PTR RSA_MAX_PRIME_NUM[rip]
	cmp	DWORD PTR -48[rbp], eax
	jle	.L39
.L38:
	mov	edx, DWORD PTR RSA_R_KEY_PRIME_NUM_INVALID[rip]
	mov	eax, DWORD PTR RSA_F_PKEY_RSA_CTRL[rip]
	mov	esi, edx
	mov	edi, eax
	call	RSAerr@PLT
	mov	eax, -2
	jmp	.L21
.L39:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	eax, 1
	jmp	.L21
.L9:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR RSA_PKCS1_OAEP_PADDING[rip]
	cmp	edx, eax
	je	.L40
	mov	edx, DWORD PTR RSA_R_INVALID_PADDING_MODE[rip]
	mov	eax, DWORD PTR RSA_F_PKEY_RSA_CTRL[rip]
	mov	esi, edx
	mov	edi, eax
	call	RSAerr@PLT
	mov	eax, -2
	jmp	.L21
.L40:
	cmp	DWORD PTR -44[rbp], 143
	jne	.L41
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L42
.L41:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
.L42:
	mov	eax, 1
	jmp	.L21
.L12:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	check_padding_md@PLT
	test	eax, eax
	jne	.L43
	mov	eax, 0
	jmp	.L21
.L43:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rsa_pss_restricted@PLT
	test	eax, eax
	je	.L44
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	EVP_MD_type@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	EVP_MD_type@PLT
	cmp	ebx, eax
	jne	.L45
	mov	eax, 1
	jmp	.L21
.L45:
	mov	edx, DWORD PTR RSA_R_DIGEST_NOT_ALLOWED[rip]
	mov	eax, DWORD PTR RSA_F_PKEY_RSA_CTRL[rip]
	mov	esi, edx
	mov	edi, eax
	call	RSAerr@PLT
	mov	eax, 0
	jmp	.L21
.L44:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, 1
	jmp	.L21
.L6:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, 1
	jmp	.L21
.L7:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR RSA_PKCS1_PSS_PADDING[rip]
	cmp	edx, eax
	je	.L46
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR RSA_PKCS1_OAEP_PADDING[rip]
	cmp	edx, eax
	je	.L46
	mov	edx, DWORD PTR RSA_R_INVALID_MGF1_MD[rip]
	mov	eax, DWORD PTR RSA_F_PKEY_RSA_CTRL[rip]
	mov	esi, edx
	mov	edi, eax
	call	RSAerr@PLT
	mov	eax, -2
	jmp	.L21
.L46:
	cmp	DWORD PTR -44[rbp], 145
	jne	.L47
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	je	.L48
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L49
.L48:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L49
.L47:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rsa_pss_restricted@PLT
	test	eax, eax
	je	.L50
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rdi, rax
	call	EVP_MD_type@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	EVP_MD_type@PLT
	cmp	ebx, eax
	jne	.L51
	mov	eax, 1
	jmp	.L21
.L51:
	mov	edx, DWORD PTR RSA_R_MGF1_DIGEST_NOT_ALLOWED[rip]
	mov	eax, DWORD PTR RSA_F_PKEY_RSA_CTRL[rip]
	mov	esi, edx
	mov	edi, eax
	call	RSAerr@PLT
	mov	eax, 0
	jmp	.L21
.L50:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR 32[rax], rdx
.L49:
	mov	eax, 1
	jmp	.L21
.L17:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR RSA_PKCS1_OAEP_PADDING[rip]
	cmp	edx, eax
	je	.L52
	mov	edx, DWORD PTR RSA_R_INVALID_PADDING_MODE[rip]
	mov	eax, DWORD PTR RSA_F_PKEY_RSA_CTRL[rip]
	mov	esi, edx
	mov	edi, eax
	call	RSAerr@PLT
	mov	eax, -2
	jmp	.L21
.L52:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rdi, rax
	call	OPENSSL_free@PLT
	cmp	QWORD PTR -56[rbp], 0
	je	.L53
	cmp	DWORD PTR -48[rbp], 0
	jle	.L53
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	DWORD PTR 48[rax], edx
	jmp	.L54
.L53:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 40[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 48[rax], 0
.L54:
	mov	eax, 1
	jmp	.L21
.L8:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR RSA_PKCS1_OAEP_PADDING[rip]
	cmp	edx, eax
	je	.L55
	mov	edx, DWORD PTR RSA_R_INVALID_PADDING_MODE[rip]
	mov	eax, DWORD PTR RSA_F_PKEY_RSA_CTRL[rip]
	mov	esi, edx
	mov	edi, eax
	call	RSAerr@PLT
	mov	eax, -2
	jmp	.L21
.L55:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 48[rax]
	jmp	.L21
.L5:
	mov	eax, 1
	jmp	.L21
.L3:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	pkey_ctx_is_pss@PLT
	test	eax, eax
	jne	.L13
	mov	eax, 1
	jmp	.L21
.L13:
	mov	edx, DWORD PTR RSA_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE[rip]
	mov	eax, DWORD PTR RSA_F_PKEY_RSA_CTRL[rip]
	mov	esi, edx
	mov	edi, eax
	call	RSAerr@PLT
	mov	eax, -2
	jmp	.L21
.L2:
	mov	eax, -2
.L21:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	pkey_rsa_ctrl, .-pkey_rsa_ctrl
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"173578752.c"
	.text
	.comm	EVP_PKEY_OP_SIGN,4,4
	.comm	EVP_PKEY_OP_TYPE_CRYPT,4,4
	.comm	EVP_PKEY_OP_VERIFY,4,4
	.comm	RSA_DEFAULT_PRIME_NUM,4,4
	.comm	RSA_F_PKEY_RSA_CTRL,4,4
	.comm	RSA_MAX_PRIME_NUM,4,4
	.comm	RSA_MIN_MODULUS_BITS,4,4
	.comm	RSA_PKCS1_OAEP_PADDING,4,4
	.comm	RSA_PKCS1_PADDING,4,4
	.comm	RSA_PKCS1_PSS_PADDING,4,4
	.comm	RSA_PSS_SALTLEN_AUTO,4,4
	.comm	RSA_PSS_SALTLEN_DIGEST,4,4
	.comm	RSA_PSS_SALTLEN_MAX,4,4
	.comm	RSA_R_BAD_E_VALUE,4,4
	.comm	RSA_R_DIGEST_NOT_ALLOWED,4,4
	.comm	RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE,4,4
	.comm	RSA_R_INVALID_MGF1_MD,4,4
	.comm	RSA_R_INVALID_PADDING_MODE,4,4
	.comm	RSA_R_INVALID_PSS_SALTLEN,4,4
	.comm	RSA_R_KEY_PRIME_NUM_INVALID,4,4
	.comm	RSA_R_KEY_SIZE_TOO_SMALL,4,4
	.comm	RSA_R_MGF1_DIGEST_NOT_ALLOWED,4,4
	.comm	RSA_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE,4,4
	.comm	RSA_R_PSS_SALTLEN_TOO_SMALL,4,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pkey_rsa_ctrl, %function
pkey_rsa_ctrl:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	sub	r3, r3, #128
	cmp	r3, #22
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L11
	.word	.L18
	.word	.L9
	.word	.L17
	.word	.L7
	.word	.L16
	.word	.L15
	.word	.L14
	.word	.L5
	.word	.L3
	.word	.L3
	.word	.L13
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L5
	.word	.L3
	.word	.L3
.L18:
	ldr	r3, .L60
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L56
	ldr	r3, .L60+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bgt	.L56
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	check_padding_md
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	mov	r3, #0
	b	.L21
.L20:
	ldr	r3, .L60+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bne	.L22
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, .L60+8
	ldr	r1, [r3]
	ldr	r3, .L60+12
	ldr	r3, [r3]
	orr	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L57
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L24
	bl	EVP_sha1
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	b	.L24
.L22:
	ldr	r0, [fp, #-24]
	bl	pkey_ctx_is_pss
	mov	r3, r0
	cmp	r3, #0
	bne	.L58
.L24:
	ldr	r3, .L60+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bne	.L25
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, .L60+20
	ldr	r3, [r3]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L59
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L25
	bl	EVP_sha1
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3]
.L25:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #4]
	mov	r3, #1
	b	.L21
.L56:
	nop
	b	.L19
.L57:
	nop
	b	.L19
.L58:
	nop
	b	.L19
.L59:
	nop
.L19:
	ldr	r3, .L60+24
	ldr	r3, [r3]
	ldr	r2, .L60+28
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	RSAerr
	mvn	r3, #1
	b	.L21
.L10:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	mov	r3, #1
	b	.L21
.L11:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, .L60+4
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L27
	ldr	r3, .L60+24
	ldr	r3, [r3]
	ldr	r2, .L60+32
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	RSAerr
	mvn	r3, #1
	b	.L21
.L27:
	ldr	r3, [fp, #-28]
	cmp	r3, #141
	bne	.L28
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	b	.L29
.L28:
	ldr	r3, .L60+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bge	.L30
	mvn	r3, #1
	b	.L21
.L30:
	ldr	r0, [fp, #-16]
	bl	rsa_pss_restricted
	mov	r3, r0
	cmp	r3, #0
	beq	.L31
	ldr	r3, .L60+40
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bne	.L32
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, .L60+12
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L32
	ldr	r3, .L60+24
	ldr	r3, [r3]
	ldr	r2, .L60+32
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	RSAerr
	mvn	r3, #1
	b	.L21
.L32:
	ldr	r3, .L60+44
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bne	.L33
	ldr	r3, [fp, #-16]
	ldr	r4, [r3, #12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	EVP_MD_size
	mov	r3, r0
	cmp	r4, r3
	bgt	.L34
.L33:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	blt	.L31
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bge	.L31
.L34:
	ldr	r3, .L60+24
	ldr	r3, [r3]
	ldr	r2, .L60+48
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	RSAerr
	mov	r3, #0
	b	.L21
.L31:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #8]
.L29:
	mov	r3, #1
	b	.L21
.L14:
	ldr	r3, .L60+52
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bge	.L35
	ldr	r3, .L60+24
	ldr	r3, [r3]
	ldr	r2, .L60+56
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	RSAerr
	mvn	r3, #1
	b	.L21
.L35:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #16]
	mov	r3, #1
	b	.L21
.L16:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L36
	ldr	r0, [fp, #-36]
	bl	BN_is_odd
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	ldr	r0, [fp, #-36]
	bl	BN_is_one
	mov	r3, r0
	cmp	r3, #0
	beq	.L37
.L36:
	ldr	r3, .L60+24
	ldr	r3, [r3]
	ldr	r2, .L60+60
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	RSAerr
	mvn	r3, #1
	b	.L21
.L37:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #36]
	mov	r0, r3
	bl	BN_free
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-36]
	str	r2, [r3, #36]
	mov	r3, #1
	b	.L21
.L15:
	ldr	r3, .L60+64
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L38
	ldr	r3, .L60+68
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	ble	.L39
.L38:
	ldr	r3, .L60+24
	ldr	r3, [r3]
	ldr	r2, .L60+72
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	RSAerr
	mvn	r3, #1
	b	.L21
.L39:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #20]
	mov	r3, #1
	b	.L21
.L9:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, .L60+16
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L40
	ldr	r3, .L60+24
	ldr	r3, [r3]
	ldr	r2, .L60+76
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	RSAerr
	mvn	r3, #1
	b	.L21
.L40:
	ldr	r3, [fp, #-28]
	cmp	r3, #143
	bne	.L41
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	b	.L42
.L41:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-36]
	str	r2, [r3]
.L42:
	mov	r3, #1
	b	.L21
.L12:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	check_padding_md
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
	mov	r3, #0
	b	.L21
.L43:
	ldr	r0, [fp, #-16]
	bl	rsa_pss_restricted
	mov	r3, r0
	cmp	r3, #0
	beq	.L44
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	EVP_MD_type
	mov	r4, r0
	ldr	r0, [fp, #-36]
	bl	EVP_MD_type
	mov	r3, r0
	cmp	r4, r3
	bne	.L45
	mov	r3, #1
	b	.L21
.L45:
	ldr	r3, .L60+24
	ldr	r3, [r3]
	ldr	r2, .L60+80
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	RSAerr
	mov	r3, #0
	b	.L21
.L44:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-36]
	str	r2, [r3]
	mov	r3, #1
	b	.L21
.L6:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	mov	r3, #1
	b	.L21
.L7:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, .L60+4
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L46
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, .L60+16
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L46
	ldr	r3, .L60+24
	ldr	r3, [r3]
	ldr	r2, .L60+84
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	RSAerr
	mvn	r3, #1
	b	.L21
.L46:
	ldr	r3, [fp, #-28]
	cmp	r3, #145
	bne	.L47
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	beq	.L48
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	b	.L49
.L48:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	b	.L49
.L47:
	ldr	r0, [fp, #-16]
	bl	rsa_pss_restricted
	mov	r3, r0
	cmp	r3, #0
	beq	.L50
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	mov	r0, r3
	bl	EVP_MD_type
	mov	r4, r0
	ldr	r0, [fp, #-36]
	bl	EVP_MD_type
	mov	r3, r0
	cmp	r4, r3
	bne	.L51
	mov	r3, #1
	b	.L21
.L51:
	ldr	r3, .L60+24
	ldr	r3, [r3]
	ldr	r2, .L60+88
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	RSAerr
	mov	r3, #0
	b	.L21
.L50:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-36]
	str	r2, [r3, #24]
.L49:
	mov	r3, #1
	b	.L21
.L17:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, .L60+16
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L52
	ldr	r3, .L60+24
	ldr	r3, [r3]
	ldr	r2, .L60+76
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	RSAerr
	mvn	r3, #1
	b	.L21
.L52:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #28]
	mov	r0, r3
	bl	OPENSSL_free
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	ble	.L53
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-36]
	str	r2, [r3, #28]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #32]
	b	.L54
.L53:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #28]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #32]
.L54:
	mov	r3, #1
	b	.L21
.L8:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, .L60+16
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L55
	ldr	r3, .L60+24
	ldr	r3, [r3]
	ldr	r2, .L60+76
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	RSAerr
	mvn	r3, #1
	b	.L21
.L55:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #32]
	b	.L21
.L5:
	mov	r3, #1
	b	.L21
.L3:
	ldr	r0, [fp, #-24]
	bl	pkey_ctx_is_pss
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	mov	r3, #1
	b	.L21
.L13:
	ldr	r3, .L60+24
	ldr	r3, [r3]
	ldr	r2, .L60+92
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	RSAerr
	mvn	r3, #1
	b	.L21
.L2:
	mvn	r3, #1
.L21:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L61:
	.align	2
.L60:
	.word	RSA_PKCS1_PADDING
	.word	RSA_PKCS1_PSS_PADDING
	.word	EVP_PKEY_OP_SIGN
	.word	EVP_PKEY_OP_VERIFY
	.word	RSA_PKCS1_OAEP_PADDING
	.word	EVP_PKEY_OP_TYPE_CRYPT
	.word	RSA_F_PKEY_RSA_CTRL
	.word	RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE
	.word	RSA_R_INVALID_PSS_SALTLEN
	.word	RSA_PSS_SALTLEN_MAX
	.word	RSA_PSS_SALTLEN_AUTO
	.word	RSA_PSS_SALTLEN_DIGEST
	.word	RSA_R_PSS_SALTLEN_TOO_SMALL
	.word	RSA_MIN_MODULUS_BITS
	.word	RSA_R_KEY_SIZE_TOO_SMALL
	.word	RSA_R_BAD_E_VALUE
	.word	RSA_DEFAULT_PRIME_NUM
	.word	RSA_MAX_PRIME_NUM
	.word	RSA_R_KEY_PRIME_NUM_INVALID
	.word	RSA_R_INVALID_PADDING_MODE
	.word	RSA_R_DIGEST_NOT_ALLOWED
	.word	RSA_R_INVALID_MGF1_MD
	.word	RSA_R_MGF1_DIGEST_NOT_ALLOWED
	.word	RSA_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE
	.size	pkey_rsa_ctrl, .-pkey_rsa_ctrl
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
