	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ecdh_cms_decrypt
_ecdh_cms_decrypt:                      ## @ecdh_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_CMS_RecipientInfo_get0_pkey_ctx
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_EVP_PKEY_CTX_get0_peerkey
	testl	%eax, %eax
	je	LBB0_2
LBB0_10:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ecdh_cms_set_shared_info
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.11:
	movq	_EC_F_ECDH_CMS_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_SHARED_INFO_ERROR@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	callq	_ECerr
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_2:
	xorl	%ebx, %ebx
	leaq	-40(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CMS_RecipientInfo_kari_get0_orig_id
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:
	movq	-40(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.4:
	movq	-32(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.5:
	movq	%r15, %rdi
	callq	_ecdh_cms_set_peerkey
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	_EC_F_ECDH_CMS_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_PEER_KEY_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_F_ECDH_CMS_DECRYPT,4,2      ## @EC_F_ECDH_CMS_DECRYPT
	.comm	_EC_R_PEER_KEY_ERROR,4,2        ## @EC_R_PEER_KEY_ERROR
	.comm	_EC_R_SHARED_INFO_ERROR,4,2     ## @EC_R_SHARED_INFO_ERROR
	.no_dead_strip	_ecdh_cms_decrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ecdh_cms_decrypt
_ecdh_cms_decrypt:                      ; @ecdh_cms_decrypt
	.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	x19, x0
	bl	_CMS_RecipientInfo_get0_pkey_ctx
	cbz	x0, LBB0_12
; %bb.1:
	mov	x20, x0
	bl	_EVP_PKEY_CTX_get0_peerkey
	cbz	w0, LBB0_4
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_ecdh_cms_set_shared_info
	cbz	w0, LBB0_9
; %bb.3:
	mov	w0, #1
	b	LBB0_12
LBB0_4:
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x19
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_CMS_RecipientInfo_kari_get0_orig_id
	cbz	w0, LBB0_12
; %bb.5:
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_11
; %bb.6:
	ldr	x2, [sp]
	cbz	x2, LBB0_11
; %bb.7:
	mov	x0, x20
	bl	_ecdh_cms_set_peerkey
	cbnz	w0, LBB0_2
; %bb.8:
Lloh0:
	adrp	x8, _EC_F_ECDH_CMS_DECRYPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EC_F_ECDH_CMS_DECRYPT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _EC_R_PEER_KEY_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EC_R_PEER_KEY_ERROR@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh5:
	adrp	x8, _EC_F_ECDH_CMS_DECRYPT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EC_F_ECDH_CMS_DECRYPT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _EC_R_SHARED_INFO_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EC_R_SHARED_INFO_ERROR@GOTPAGEOFF]
LBB0_10:
	ldr	w1, [x8]
	bl	_ECerr
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_F_ECDH_CMS_DECRYPT,4,2      ; @EC_F_ECDH_CMS_DECRYPT
	.comm	_EC_R_PEER_KEY_ERROR,4,2        ; @EC_R_PEER_KEY_ERROR
	.comm	_EC_R_SHARED_INFO_ERROR,4,2     ; @EC_R_SHARED_INFO_ERROR
	.no_dead_strip	_ecdh_cms_decrypt
.subsections_via_symbols
