	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsa_cms_decrypt
_rsa_cms_decrypt:                       ## @rsa_cms_decrypt
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_CMS_RecipientInfo_get0_pkey_ctx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_CMS_RecipientInfo_ktri_get0_algs
	movl	$-1, %ebx
	testl	%eax, %eax
	je	LBB0_23
## %bb.3:
	movq	-56(%rbp), %rax
	movl	8(%rax), %edi
	callq	_OBJ_obj2nid
	movq	_NID_rsaEncryption@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	cmpl	%eax, (%rcx)
	je	LBB0_23
## %bb.4:
	movq	_NID_rsaesOaep@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_5
## %bb.6:
	movq	-56(%rbp), %rdi
	callq	_rsa_oaep_decode
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	12(%r14), %edi
	callq	_rsa_algor_to_md
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_22
## %bb.9:
	movq	%rax, %r12
	movl	8(%r14), %edi
	callq	_rsa_algor_to_md
	testq	%rax, %rax
	je	LBB0_22
## %bb.10:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%r14), %r13
	testq	%r13, %r13
	je	LBB0_11
## %bb.12:
	movl	8(%r13), %edi
	callq	_OBJ_obj2nid
	movq	_NID_pSpecified@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.15:
	movq	(%r13), %rax
	movq	(%rax), %rcx
	movq	_V_ASN1_OCTET_STRING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_16
## %bb.17:
	movq	8(%rax), %rax
	movq	(%rax), %r13
	movq	$0, (%rax)
	movl	8(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_18
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_5:
	movq	_RSA_F_RSA_CMS_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_UNSUPPORTED_ENCRYPTION_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RSAerr
	movl	$-1, %ebx
	jmp	LBB0_23
LBB0_7:
	movq	_RSA_F_RSA_CMS_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_INVALID_OAEP_PARAMETERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RSAerr
	movl	$-1, %ebx
	jmp	LBB0_22
LBB0_11:
	xorl	%r13d, %r13d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_18:
	movq	_RSA_PKCS1_OAEP_PADDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_EVP_PKEY_CTX_set_rsa_padding
	testq	%rax, %rax
	jle	LBB0_22
## %bb.19:
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_EVP_PKEY_CTX_set_rsa_oaep_md
	testq	%rax, %rax
	jle	LBB0_22
## %bb.20:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_EVP_PKEY_CTX_set_rsa_mgf1_md
	testq	%rax, %rax
	jle	LBB0_22
## %bb.21:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_EVP_PKEY_CTX_set0_rsa_oaep_label
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setg	%cl
	leal	(%rcx,%rcx), %ebx
	decl	%ebx
	jmp	LBB0_22
LBB0_13:
	movq	_RSA_F_RSA_CMS_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_UNSUPPORTED_LABEL_SOURCE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_16:
	movq	_RSA_F_RSA_CMS_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_INVALID_LABEL@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %esi
	callq	_RSAerr
LBB0_22:
	movq	%r14, %rdi
	callq	_RSA_OAEP_PARAMS_free
LBB0_23:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NID_rsaEncryption,4,2          ## @NID_rsaEncryption
	.comm	_NID_rsaesOaep,4,2              ## @NID_rsaesOaep
	.comm	_RSA_F_RSA_CMS_DECRYPT,4,2      ## @RSA_F_RSA_CMS_DECRYPT
	.comm	_RSA_R_UNSUPPORTED_ENCRYPTION_TYPE,4,2 ## @RSA_R_UNSUPPORTED_ENCRYPTION_TYPE
	.comm	_RSA_R_INVALID_OAEP_PARAMETERS,4,2 ## @RSA_R_INVALID_OAEP_PARAMETERS
	.comm	_NID_pSpecified,8,3             ## @NID_pSpecified
	.comm	_RSA_R_UNSUPPORTED_LABEL_SOURCE,4,2 ## @RSA_R_UNSUPPORTED_LABEL_SOURCE
	.comm	_V_ASN1_OCTET_STRING,8,3        ## @V_ASN1_OCTET_STRING
	.comm	_RSA_R_INVALID_LABEL,4,2        ## @RSA_R_INVALID_LABEL
	.comm	_RSA_PKCS1_OAEP_PADDING,4,2     ## @RSA_PKCS1_OAEP_PADDING
	.no_dead_strip	_rsa_cms_decrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsa_cms_decrypt
_rsa_cms_decrypt:                       ; @rsa_cms_decrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_CMS_RecipientInfo_get0_pkey_ctx
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	bl	_CMS_RecipientInfo_ktri_get0_algs
	cbz	w0, LBB0_14
; %bb.2:
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #8]
	bl	_OBJ_obj2nid
Lloh0:
	adrp	x8, _NID_rsaEncryption@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NID_rsaEncryption@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_5
; %bb.3:
	mov	w21, #1
	b	LBB0_19
LBB0_4:
	mov	w21, #0
	b	LBB0_19
LBB0_5:
Lloh3:
	adrp	x8, _NID_rsaesOaep@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NID_rsaesOaep@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_13
; %bb.6:
	ldr	x0, [sp, #8]
	bl	_rsa_oaep_decode
	mov	x19, x0
	cbz	x0, LBB0_15
; %bb.7:
	ldr	w0, [x19, #12]
	bl	_rsa_algor_to_md
	cbz	x0, LBB0_17
; %bb.8:
	mov	x21, x0
	ldr	w0, [x19, #8]
	bl	_rsa_algor_to_md
	cbz	x0, LBB0_17
; %bb.9:
	mov	x22, x0
	ldr	x23, [x19]
	cbz	x23, LBB0_20
; %bb.10:
	ldr	w0, [x23, #8]
	bl	_OBJ_obj2nid
Lloh6:
	adrp	x8, _NID_pSpecified@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NID_pSpecified@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_25
; %bb.11:
	ldr	x8, [x23]
	ldr	x9, [x8]
Lloh9:
	adrp	x10, _V_ASN1_OCTET_STRING@GOTPAGE
Lloh10:
	ldr	x10, [x10, _V_ASN1_OCTET_STRING@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_26
; %bb.12:
	ldr	x8, [x8, #8]
	ldr	x23, [x8]
	str	xzr, [x8]
	ldr	w24, [x8, #8]
	b	LBB0_21
LBB0_13:
Lloh12:
	adrp	x8, _RSA_F_RSA_CMS_DECRYPT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RSA_F_RSA_CMS_DECRYPT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _RSA_R_UNSUPPORTED_ENCRYPTION_TYPE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RSA_R_UNSUPPORTED_ENCRYPTION_TYPE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_RSAerr
LBB0_14:
	mov	w21, #-1
	b	LBB0_19
LBB0_15:
Lloh18:
	adrp	x8, _RSA_F_RSA_CMS_DECRYPT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RSA_F_RSA_CMS_DECRYPT@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _RSA_R_INVALID_OAEP_PARAMETERS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RSA_R_INVALID_OAEP_PARAMETERS@GOTPAGEOFF]
LBB0_16:
	ldr	w1, [x8]
	bl	_RSAerr
LBB0_17:
	mov	w21, #-1
LBB0_18:
	mov	x0, x19
	bl	_RSA_OAEP_PARAMS_free
LBB0_19:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_20:
	mov	w24, #0
LBB0_21:
Lloh23:
	adrp	x8, _RSA_PKCS1_OAEP_PADDING@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RSA_PKCS1_OAEP_PADDING@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_EVP_PKEY_CTX_set_rsa_padding
	cmp	x0, #1
	b.lt	LBB0_17
; %bb.22:
	mov	x0, x20
	mov	x1, x22
	bl	_EVP_PKEY_CTX_set_rsa_oaep_md
	cmp	x0, #1
	b.lt	LBB0_17
; %bb.23:
	mov	x0, x20
	mov	x1, x21
	bl	_EVP_PKEY_CTX_set_rsa_mgf1_md
	mov	w21, #-1
	cmp	x0, #1
	b.lt	LBB0_18
; %bb.24:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	bl	_EVP_PKEY_CTX_set0_rsa_oaep_label
	cmp	x0, #1
	cneg	w21, w21, ge
	b	LBB0_18
LBB0_25:
Lloh26:
	adrp	x8, _RSA_F_RSA_CMS_DECRYPT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RSA_F_RSA_CMS_DECRYPT@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _RSA_R_UNSUPPORTED_LABEL_SOURCE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RSA_R_UNSUPPORTED_LABEL_SOURCE@GOTPAGEOFF]
	b	LBB0_16
LBB0_26:
Lloh31:
	adrp	x8, _RSA_F_RSA_CMS_DECRYPT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _RSA_F_RSA_CMS_DECRYPT@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x8, _RSA_R_INVALID_LABEL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _RSA_R_INVALID_LABEL@GOTPAGEOFF]
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_NID_rsaEncryption,4,2          ; @NID_rsaEncryption
	.comm	_NID_rsaesOaep,4,2              ; @NID_rsaesOaep
	.comm	_RSA_F_RSA_CMS_DECRYPT,4,2      ; @RSA_F_RSA_CMS_DECRYPT
	.comm	_RSA_R_UNSUPPORTED_ENCRYPTION_TYPE,4,2 ; @RSA_R_UNSUPPORTED_ENCRYPTION_TYPE
	.comm	_RSA_R_INVALID_OAEP_PARAMETERS,4,2 ; @RSA_R_INVALID_OAEP_PARAMETERS
	.comm	_NID_pSpecified,8,3             ; @NID_pSpecified
	.comm	_RSA_R_UNSUPPORTED_LABEL_SOURCE,4,2 ; @RSA_R_UNSUPPORTED_LABEL_SOURCE
	.comm	_V_ASN1_OCTET_STRING,8,3        ; @V_ASN1_OCTET_STRING
	.comm	_RSA_R_INVALID_LABEL,4,2        ; @RSA_R_INVALID_LABEL
	.comm	_RSA_PKCS1_OAEP_PADDING,4,2     ; @RSA_PKCS1_OAEP_PADDING
	.no_dead_strip	_rsa_cms_decrypt
.subsections_via_symbols
