	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsa_cms_verify
_rsa_cms_verify:                        ## @rsa_cms_verify
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_CMS_SignerInfo_get0_pkey_ctx
	movq	%rax, %r14
	leaq	-40(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_CMS_SignerInfo_get0_algs
	movq	-40(%rbp), %rax
	movl	(%rax), %edi
	callq	_OBJ_obj2nid
	movl	%eax, %ebx
	movq	_EVP_PKEY_RSA_PSS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_2
## %bb.1:
	movq	-40(%rbp), %rdx
	xorl	%edi, %edi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_rsa_pss_to_ctx
	movl	%eax, %r14d
	jmp	LBB0_8
LBB0_2:
	movq	%r14, %rdi
	callq	_pkey_ctx_is_pss
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_RSA_F_RSA_CMS_VERIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RSAerr
LBB0_7:
	xorl	%r14d, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_NID_rsaEncryption@GOTPCREL(%rip), %r15
	movl	$1, %r14d
	cmpl	(%r15), %ebx
	je	LBB0_8
## %bb.5:
	leaq	-28(%rbp), %rdx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_OBJ_find_sigid_algs
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	-28(%rbp), %eax
	cmpl	(%r15), %eax
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_PKEY_RSA_PSS,4,2           ## @EVP_PKEY_RSA_PSS
	.comm	_RSA_F_RSA_CMS_VERIFY,4,2       ## @RSA_F_RSA_CMS_VERIFY
	.comm	_RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE,4,2 ## @RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE
	.comm	_NID_rsaEncryption,4,2          ## @NID_rsaEncryption
	.no_dead_strip	_rsa_cms_verify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsa_cms_verify
_rsa_cms_verify:                        ; @rsa_cms_verify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_CMS_SignerInfo_get0_pkey_ctx
	mov	x19, x0
	mov	x4, sp
	mov	x0, x20
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_CMS_SignerInfo_get0_algs
	ldr	x8, [sp]
	ldr	w0, [x8]
	bl	_OBJ_obj2nid
Lloh0:
	adrp	x8, _EVP_PKEY_RSA_PSS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_PKEY_RSA_PSS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	x2, [sp]
	mov	x0, #0
	mov	x1, x19
	mov	x3, #0
	bl	_rsa_pss_to_ctx
	b	LBB0_9
LBB0_2:
	mov	x20, x0
	mov	x0, x19
	bl	_pkey_ctx_is_pss
	cbz	x0, LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _RSA_F_RSA_CMS_VERIFY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RSA_F_RSA_CMS_VERIFY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_RSAerr
LBB0_4:
	mov	w0, #0
	b	LBB0_9
LBB0_5:
Lloh9:
	adrp	x19, _NID_rsaEncryption@GOTPAGE
Lloh10:
	ldr	x19, [x19, _NID_rsaEncryption@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w20, w8
	b.eq	LBB0_8
; %bb.6:
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, #0
	bl	_OBJ_find_sigid_algs
	cbz	x0, LBB0_4
; %bb.7:
	ldr	w8, [sp, #12]
	ldr	w9, [x19]
	cmp	w8, w9
	b.ne	LBB0_4
LBB0_8:
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_PKEY_RSA_PSS,4,2           ; @EVP_PKEY_RSA_PSS
	.comm	_RSA_F_RSA_CMS_VERIFY,4,2       ; @RSA_F_RSA_CMS_VERIFY
	.comm	_RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE,4,2 ; @RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE
	.comm	_NID_rsaEncryption,4,2          ; @NID_rsaEncryption
	.no_dead_strip	_rsa_cms_verify
.subsections_via_symbols
