	.file	"extr_rsa_ameth.c_rsa_cms_verify.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rsa_cms_verify, @function
rsa_cms_verify:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	CMS_SignerInfo_get0_pkey_ctx@PLT
	xor	ecx, ecx
	xor	edx, edx
	xor	esi, esi
	lea	r8, 16[rsp]
	mov	rdi, rbp
	mov	r12, rax
	call	CMS_SignerInfo_get0_algs@PLT
	mov	rax, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR [rax]
	call	OBJ_obj2nid@PLT
	cmp	DWORD PTR EVP_PKEY_RSA_PSS[rip], eax
	je	.L11
	mov	rdi, r12
	mov	ebp, eax
	call	pkey_ctx_is_pss@PLT
	test	rax, rax
	jne	.L12
	cmp	DWORD PTR NID_rsaEncryption[rip], ebp
	mov	eax, 1
	je	.L1
	lea	rdx, 12[rsp]
	xor	esi, esi
	mov	edi, ebp
	call	OBJ_find_sigid_algs@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	je	.L1
	mov	eax, DWORD PTR NID_rsaEncryption[rip]
	cmp	DWORD PTR 12[rsp], eax
	sete	al
	movzx	eax, al
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L13
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdx, QWORD PTR 16[rsp]
	xor	ecx, ecx
	mov	rsi, r12
	xor	edi, edi
	call	rsa_pss_to_ctx@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, DWORD PTR RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE[rip]
	mov	edi, DWORD PTR RSA_F_RSA_CMS_VERIFY[rip]
	call	RSAerr@PLT
	xor	eax, eax
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rsa_cms_verify, .-rsa_cms_verify
	.comm	RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE,4,4
	.comm	RSA_F_RSA_CMS_VERIFY,4,4
	.comm	NID_rsaEncryption,4,4
	.comm	EVP_PKEY_RSA_PSS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_rsa_ameth.c_rsa_cms_verify.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rsa_cms_verify, %function
rsa_cms_verify:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L15
	sub	sp, sp, #28
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r4, r0
	bl	CMS_SignerInfo_get0_pkey_ctx
	mov	r3, #0
	add	lr, sp, #16
	mov	r2, r3
	mov	r1, r3
	str	lr, [sp]
	mov	r5, r0
	mov	r0, r4
	bl	CMS_SignerInfo_get0_algs
	ldr	r3, [sp, #16]
	ldr	r0, [r3]
	bl	OBJ_obj2nid
	ldr	r3, .L15+4
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L12
	mov	r4, r0
	mov	r0, r5
	bl	pkey_ctx_is_pss
	subs	r1, r0, #0
	bne	.L13
	ldr	r5, .L15+8
	ldr	r3, [r5]
	cmp	r3, r4
	moveq	r0, #1
	beq	.L1
	mov	r0, r4
	add	r2, sp, #12
	bl	OBJ_find_sigid_algs
	cmp	r0, #0
	ldrne	r0, [sp, #12]
	ldrne	r3, [r5]
	subne	r0, r0, r3
	clzne	r0, r0
	lsrne	r0, r0, #5
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, pc}
.L12:
	mov	r3, #0
	mov	r1, r5
	mov	r0, r3
	ldr	r2, [sp, #16]
	bl	rsa_pss_to_ctx
	b	.L1
.L13:
	ldr	r2, .L15+12
	ldr	r3, .L15+16
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	RSAerr
	mov	r0, #0
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	EVP_PKEY_RSA_PSS
	.word	NID_rsaEncryption
	.word	RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE
	.word	RSA_F_RSA_CMS_VERIFY
	.size	rsa_cms_verify, .-rsa_cms_verify
	.comm	RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE,4,4
	.comm	RSA_F_RSA_CMS_VERIFY,4,4
	.comm	NID_rsaEncryption,4,4
	.comm	EVP_PKEY_RSA_PSS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
