	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cms_RecipientInfo_ktri_decrypt
_cms_RecipientInfo_ktri_decrypt:        ## @cms_RecipientInfo_ktri_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	(%rsi), %r13
	movq	16(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.1:
	movq	%rsi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %r14
	xorl	%r12d, %r12d
	cmpq	$0, 32(%r14)
	je	LBB0_3
## %bb.2:
	cmpl	$0, 24(%r14)
	je	LBB0_17
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_EVP_PKEY_CTX_new
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_27
## %bb.5:
	movq	%rax, %rdi
	callq	_EVP_PKEY_decrypt_init
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jle	LBB0_25
## %bb.6:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_cms_env_asn1_ctrl
	testl	%eax, %eax
	je	LBB0_25
## %bb.7:
	movq	(%r13), %rdi
	movq	_EVP_PKEY_OP_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EVP_PKEY_CTRL_CMS_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$-1, %esi
	xorl	%r8d, %r8d
	movq	%r15, %r9
	callq	_EVP_PKEY_CTX_ctrl
	testq	%rax, %rax
	jle	LBB0_22
## %bb.8:
	movq	(%r13), %rdi
	movq	8(%r13), %rax
	movl	(%rax), %r8d
	movl	4(%rax), %ecx
	xorl	%r15d, %r15d
	leaq	-56(%rbp), %rdx
	xorl	%esi, %esi
	callq	_EVP_PKEY_decrypt
	testq	%rax, %rax
	jle	LBB0_26
## %bb.9:
	movq	-56(%rbp), %rdi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_23
## %bb.10:
	movq	%rax, %r15
	movq	(%r13), %rdi
	movq	8(%r13), %rax
	movl	(%rax), %r8d
	movl	4(%rax), %ecx
	leaq	-56(%rbp), %rdx
	movq	%r15, %rsi
	callq	_EVP_PKEY_decrypt
	testq	%rax, %rax
	jle	LBB0_14
## %bb.11:
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_28
## %bb.13:
	cmpq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_28
LBB0_14:
	movq	_CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CMS_R_CMS_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CMSerr
	jmp	LBB0_26
LBB0_15:
	movq	_CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CMS_R_NO_PRIVATE_KEY@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %esi
	callq	_CMSerr
	xorl	%r12d, %r12d
	jmp	LBB0_27
LBB0_17:
	movq	16(%r14), %rax
	movl	(%rax), %edi
	callq	_EVP_get_cipherbyobj
	testq	%rax, %rax
	je	LBB0_21
## %bb.18:
	movq	%rax, %rdi
	callq	_EVP_CIPHER_key_length
	jmp	LBB0_4
LBB0_21:
	movq	_CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CMS_R_UNKNOWN_CIPHER@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_22:
	movq	_CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CMS_R_CTRL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_23:
	movq	_CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %esi
	callq	_CMSerr
LBB0_25:
	xorl	%r15d, %r15d
LBB0_26:
	movq	(%r13), %rdi
	callq	_EVP_PKEY_CTX_free
	movq	$0, (%r13)
	movq	%r15, %rdi
	callq	_OPENSSL_free
LBB0_27:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movq	(%r14), %rdi
	movq	8(%r14), %rsi
	callq	_OPENSSL_clear_free
	movq	%r15, (%r14)
	movq	-56(%rbp), %rax
	movq	%rax, 8(%r14)
	movq	(%r13), %rdi
	callq	_EVP_PKEY_CTX_free
	movq	$0, (%r13)
	movl	$1, %r12d
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT,4,2 ## @CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT
	.comm	_CMS_R_NO_PRIVATE_KEY,4,2       ## @CMS_R_NO_PRIVATE_KEY
	.comm	_CMS_R_UNKNOWN_CIPHER,4,2       ## @CMS_R_UNKNOWN_CIPHER
	.comm	_EVP_PKEY_OP_DECRYPT,4,2        ## @EVP_PKEY_OP_DECRYPT
	.comm	_EVP_PKEY_CTRL_CMS_DECRYPT,4,2  ## @EVP_PKEY_CTRL_CMS_DECRYPT
	.comm	_CMS_R_CTRL_ERROR,4,2           ## @CMS_R_CTRL_ERROR
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_CMS_R_CMS_LIB,4,2              ## @CMS_R_CMS_LIB
	.no_dead_strip	_cms_RecipientInfo_ktri_decrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cms_RecipientInfo_ktri_decrypt
_cms_RecipientInfo_ktri_decrypt:        ; @cms_RecipientInfo_ktri_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
	ldr	x22, [x1]
	ldr	x21, [x22, #16]
	cbz	x21, LBB0_14
; %bb.1:
	mov	x20, x1
	ldr	x8, [x0]
	ldr	x23, [x8]
	ldr	x8, [x23, #32]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x23, #24]
	cbz	w8, LBB0_16
LBB0_3:
	mov	x19, #0
LBB0_4:
	mov	x0, x21
	mov	x1, #0
	bl	_EVP_PKEY_CTX_new
	str	x0, [x22]
	cbz	x0, LBB0_23
; %bb.5:
	bl	_EVP_PKEY_decrypt_init
	cmp	x0, #1
	b.lt	LBB0_20
; %bb.6:
	mov	x0, x20
	mov	w1, #1
	bl	_cms_env_asn1_ctrl
	cbz	w0, LBB0_20
; %bb.7:
	ldr	x0, [x22]
Lloh0:
	adrp	x8, _EVP_PKEY_OP_DECRYPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_PKEY_OP_DECRYPT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _EVP_PKEY_CTRL_CMS_DECRYPT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_PKEY_CTRL_CMS_DECRYPT@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	w1, #-1
	mov	w4, #0
	mov	x5, x20
	bl	_EVP_PKEY_CTX_ctrl
	cmp	x0, #0
	b.le	LBB0_19
; %bb.8:
	ldp	x0, x8, [x22]
	ldp	w4, w3, [x8]
	add	x2, sp, #8
	mov	x1, #0
	bl	_EVP_PKEY_decrypt
	cmp	x0, #1
	b.lt	LBB0_20
; %bb.9:
	ldr	x0, [sp, #8]
	bl	_OPENSSL_malloc
	mov	x20, x0
	cbz	x0, LBB0_24
; %bb.10:
	ldp	x0, x8, [x22]
	ldp	w4, w3, [x8]
	add	x2, sp, #8
	mov	x1, x20
	bl	_EVP_PKEY_decrypt
	ldr	x8, [sp, #8]
	cmp	x0, #1
	ccmp	x8, #0, #4, ge
	b.eq	LBB0_13
; %bb.11:
	cbz	x19, LBB0_26
; %bb.12:
	cmp	x8, x19
	b.eq	LBB0_26
LBB0_13:
Lloh6:
	adrp	x8, _CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _CMS_R_CMS_LIB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CMS_R_CMS_LIB@GOTPAGEOFF]
	b	LBB0_25
LBB0_14:
Lloh11:
	adrp	x8, _CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _CMS_R_NO_PRIVATE_KEY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CMS_R_NO_PRIVATE_KEY@GOTPAGEOFF]
LBB0_15:
	ldr	w1, [x8]
	bl	_CMSerr
	b	LBB0_22
LBB0_16:
	ldr	x8, [x23, #16]
	ldr	w0, [x8]
	bl	_EVP_get_cipherbyobj
	cbz	x0, LBB0_18
; %bb.17:
	bl	_EVP_CIPHER_key_length
	mov	x19, x0
	b	LBB0_4
LBB0_18:
Lloh16:
	adrp	x8, _CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _CMS_R_UNKNOWN_CIPHER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CMS_R_UNKNOWN_CIPHER@GOTPAGEOFF]
	b	LBB0_15
LBB0_19:
Lloh21:
	adrp	x8, _CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _CMS_R_CTRL_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CMS_R_CTRL_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_CMSerr
LBB0_20:
	mov	x20, #0
LBB0_21:
	ldr	x0, [x22]
	bl	_EVP_PKEY_CTX_free
	str	xzr, [x22]
	mov	x0, x20
	bl	_OPENSSL_free
LBB0_22:
	mov	w0, #0
LBB0_23:
	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_24:
Lloh27:
	adrp	x8, _CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_25:
	ldr	w1, [x8]
	bl	_CMSerr
	b	LBB0_21
LBB0_26:
	ldp	x0, x1, [x23]
	bl	_OPENSSL_clear_free
	ldr	x8, [sp, #8]
	stp	x20, x8, [x23]
	ldr	x0, [x22]
	bl	_EVP_PKEY_CTX_free
	str	xzr, [x22]
	mov	w0, #1
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT,4,2 ; @CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT
	.comm	_CMS_R_NO_PRIVATE_KEY,4,2       ; @CMS_R_NO_PRIVATE_KEY
	.comm	_CMS_R_UNKNOWN_CIPHER,4,2       ; @CMS_R_UNKNOWN_CIPHER
	.comm	_EVP_PKEY_OP_DECRYPT,4,2        ; @EVP_PKEY_OP_DECRYPT
	.comm	_EVP_PKEY_CTRL_CMS_DECRYPT,4,2  ; @EVP_PKEY_CTRL_CMS_DECRYPT
	.comm	_CMS_R_CTRL_ERROR,4,2           ; @CMS_R_CTRL_ERROR
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_CMS_R_CMS_LIB,4,2              ; @CMS_R_CMS_LIB
	.no_dead_strip	_cms_RecipientInfo_ktri_decrypt
.subsections_via_symbols
