	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cms_RecipientInfo_ktri_encrypt
_cms_RecipientInfo_ktri_encrypt:        ## @cms_RecipientInfo_ktri_encrypt
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	movq	_CMS_RECIPINFO_TRANS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	8(%rsi), %r15
	movq	(%rdi), %rax
	movq	(%rax), %r13
	movq	(%r15), %r14
	testq	%r14, %r14
	je	LBB0_5
## %bb.3:
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_cms_env_asn1_ctrl
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	%r15, %rbx
	jmp	LBB0_17
LBB0_1:
	movq	_CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CMS_R_NOT_KEY_TRANSPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CMSerr
	xorl	%r12d, %r12d
	jmp	LBB0_19
LBB0_5:
	movl	12(%r15), %edi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_EVP_PKEY_CTX_new
	testq	%rax, %rax
	je	LBB0_19
## %bb.6:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_EVP_PKEY_encrypt_init
	testq	%rax, %rax
	jle	LBB0_7
LBB0_9:
	movq	_EVP_PKEY_OP_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EVP_PKEY_CTRL_CMS_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movl	$-1, %esi
	xorl	%r8d, %r8d
	movq	%rbx, %r9
	callq	_EVP_PKEY_CTX_ctrl
	movq	%r15, %rbx
	testq	%rax, %rax
	jle	LBB0_10
## %bb.11:
	movl	(%r13), %r8d
	movl	4(%r13), %ecx
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_EVP_PKEY_encrypt
	testq	%rax, %rax
	jle	LBB0_17
## %bb.12:
	movq	-48(%rbp), %rdi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.15:
	movq	%rax, %r15
	movl	(%r13), %r8d
	movl	4(%r13), %ecx
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_EVP_PKEY_encrypt
	testq	%rax, %rax
	jle	LBB0_18
## %bb.16:
	movl	8(%rbx), %edi
	movq	-48(%rbp), %rdx
	movq	%r15, %rsi
	callq	_ASN1_STRING_set0
	movl	$1, %r12d
LBB0_17:
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_10:
	movq	_CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CMS_R_CTRL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_7:
	movq	%r15, %rbx
	jmp	LBB0_8
LBB0_13:
	movq	_CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %esi
	callq	_CMSerr
LBB0_8:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
LBB0_18:
	movq	%r14, %rdi
	callq	_EVP_PKEY_CTX_free
	movq	$0, (%rbx)
	movq	%r15, %rdi
	callq	_OPENSSL_free
LBB0_19:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMS_RECIPINFO_TRANS,8,3        ## @CMS_RECIPINFO_TRANS
	.comm	_CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT,4,2 ## @CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT
	.comm	_CMS_R_NOT_KEY_TRANSPORT,4,2    ## @CMS_R_NOT_KEY_TRANSPORT
	.comm	_EVP_PKEY_OP_ENCRYPT,4,2        ## @EVP_PKEY_OP_ENCRYPT
	.comm	_EVP_PKEY_CTRL_CMS_ENCRYPT,4,2  ## @EVP_PKEY_CTRL_CMS_ENCRYPT
	.comm	_CMS_R_CTRL_ERROR,4,2           ## @CMS_R_CTRL_ERROR
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_cms_RecipientInfo_ktri_encrypt
.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_encrypt
_cms_RecipientInfo_ktri_encrypt:        ; @cms_RecipientInfo_ktri_encrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _CMS_RECIPINFO_TRANS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CMS_RECIPINFO_TRANS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x1
	ldr	x22, [x1, #8]
	ldr	x8, [x0]
	ldr	x21, [x8]
	ldr	x19, [x22]
	cbz	x19, LBB0_4
; %bb.2:
	mov	x0, x20
	mov	w1, #0
	bl	_cms_env_asn1_ctrl
	cbnz	w0, LBB0_6
	b	LBB0_12
LBB0_3:
Lloh3:
	adrp	x8, _CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _CMS_R_NOT_KEY_TRANSPORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CMS_R_NOT_KEY_TRANSPORT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_CMSerr
	mov	w21, #0
	b	LBB0_15
LBB0_4:
	ldr	w0, [x22, #12]
	mov	x1, #0
	bl	_EVP_PKEY_CTX_new
	cbz	x0, LBB0_16
; %bb.5:
	mov	x19, x0
	bl	_EVP_PKEY_encrypt_init
	cmp	x0, #1
	b.lt	LBB0_12
LBB0_6:
Lloh9:
	adrp	x8, _EVP_PKEY_OP_ENCRYPT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EVP_PKEY_OP_ENCRYPT@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _EVP_PKEY_CTRL_CMS_ENCRYPT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EVP_PKEY_CTRL_CMS_ENCRYPT@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #-1
	mov	w4, #0
	mov	x5, x20
	bl	_EVP_PKEY_CTX_ctrl
	cmp	x0, #0
	b.le	LBB0_11
; %bb.7:
	ldp	w4, w3, [x21]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, #0
	bl	_EVP_PKEY_encrypt
	cmp	x0, #1
	b.lt	LBB0_12
; %bb.8:
	ldr	x0, [sp, #8]
	bl	_OPENSSL_malloc
	mov	x20, x0
	cbz	x0, LBB0_17
; %bb.9:
	ldp	w4, w3, [x21]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_EVP_PKEY_encrypt
	cmp	x0, #1
	b.lt	LBB0_13
; %bb.10:
	ldr	w0, [x22, #8]
	ldr	x2, [sp, #8]
	mov	x1, x20
	bl	_ASN1_STRING_set0
	mov	x20, #0
	mov	w21, #1
	b	LBB0_14
LBB0_11:
Lloh15:
	adrp	x8, _CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _CMS_R_CTRL_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CMS_R_CTRL_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_CMSerr
LBB0_12:
	mov	x20, #0
LBB0_13:
	mov	w21, #0
LBB0_14:
	mov	x0, x19
	bl	_EVP_PKEY_CTX_free
	str	xzr, [x22]
	mov	x0, x20
	bl	_OPENSSL_free
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_16:
	mov	w21, #0
	b	LBB0_15
LBB0_17:
Lloh21:
	adrp	x8, _CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_CMSerr
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_CMS_RECIPINFO_TRANS,8,3        ; @CMS_RECIPINFO_TRANS
	.comm	_CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT,4,2 ; @CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT
	.comm	_CMS_R_NOT_KEY_TRANSPORT,4,2    ; @CMS_R_NOT_KEY_TRANSPORT
	.comm	_EVP_PKEY_OP_ENCRYPT,4,2        ; @EVP_PKEY_OP_ENCRYPT
	.comm	_EVP_PKEY_CTRL_CMS_ENCRYPT,4,2  ; @EVP_PKEY_CTRL_CMS_ENCRYPT
	.comm	_CMS_R_CTRL_ERROR,4,2           ; @CMS_R_CTRL_ERROR
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_cms_RecipientInfo_ktri_encrypt
.subsections_via_symbols
