	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cms_RecipientInfo_kekri_encrypt
_cms_RecipientInfo_kekri_encrypt:       ## @cms_RecipientInfo_kekri_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rax
	movq	(%rsi), %rbx
	movl	8(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_6
## %bb.1:
	movq	(%rax), %rax
	movq	(%rax), %r12
	movl	(%rbx), %esi
	shll	$3, %esi
	leaq	-36(%rbp), %rdx
	callq	_AES_set_encrypt_key
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	_CMS_R_ERROR_SETTING_KEY@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r15d, %r15d
LBB0_4:
	movq	_CMS_F_CMS_RECIPIENTINFO_KEKRI_ENCRYPT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_CMSerr
	movq	%r15, %rdi
	callq	_OPENSSL_free
LBB0_5:
	leaq	-36(%rbp), %rdi
	movl	$4, %esi
	callq	_OPENSSL_cleanse
	jmp	LBB0_7
LBB0_6:
	movq	_CMS_F_CMS_RECIPIENTINFO_KEKRI_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CMS_R_NO_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CMSerr
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	(%r12), %rdi
	addq	$8, %rdi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, %r15
	movl	8(%r12), %ecx
	movq	(%r12), %r8
	leaq	-36(%rbp), %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_AES_wrap_key
	testl	%eax, %eax
	jle	LBB0_12
## %bb.10:
	movl	4(%rbx), %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_ASN1_STRING_set0
	movl	$1, %r14d
	jmp	LBB0_5
LBB0_11:
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_12:
	movq	_CMS_R_WRAP_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_CMS_F_CMS_RECIPIENTINFO_KEKRI_ENCRYPT,4,2 ## @CMS_F_CMS_RECIPIENTINFO_KEKRI_ENCRYPT
	.comm	_CMS_R_NO_KEY,4,2               ## @CMS_R_NO_KEY
	.comm	_CMS_R_ERROR_SETTING_KEY,4,2    ## @CMS_R_ERROR_SETTING_KEY
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_CMS_R_WRAP_ERROR,4,2           ## @CMS_R_WRAP_ERROR
	.no_dead_strip	_cms_RecipientInfo_kekri_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_kekri_encrypt
_cms_RecipientInfo_kekri_encrypt:       ; @cms_RecipientInfo_kekri_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
	mov	x8, x0
	ldr	x20, [x1]
	ldr	w0, [x20, #8]
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x8]
	ldr	x21, [x8]
	ldr	w8, [x20]
	lsl	w1, w8, #3
	add	x2, sp, #12
	bl	_AES_set_encrypt_key
	cbz	x0, LBB0_7
; %bb.2:
	mov	x19, #0
Lloh0:
	adrp	x8, _CMS_R_ERROR_SETTING_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMS_R_ERROR_SETTING_KEY@GOTPAGEOFF]
LBB0_3:
Lloh2:
	adrp	x9, _CMS_F_CMS_RECIPIENTINFO_KEKRI_ENCRYPT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CMS_F_CMS_RECIPIENTINFO_KEKRI_ENCRYPT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_CMSerr
	mov	x0, x19
	bl	_OPENSSL_free
	mov	w19, #0
LBB0_4:
	add	x0, sp, #12
	mov	w1, #4
	bl	_OPENSSL_cleanse
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _CMS_F_CMS_RECIPIENTINFO_KEKRI_ENCRYPT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CMS_F_CMS_RECIPIENTINFO_KEKRI_ENCRYPT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _CMS_R_NO_KEY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CMS_R_NO_KEY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_CMSerr
	mov	w19, #0
LBB0_6:
	mov	x0, x19
	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_7:
	ldr	x8, [x21]
	add	x0, x8, #8
	bl	_OPENSSL_malloc
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.8:
	ldr	w3, [x21, #8]
	ldr	x4, [x21]
	add	x0, sp, #12
	mov	x1, #0
	mov	x2, x19
	bl	_AES_wrap_key
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x2, x0
	ldr	w0, [x20, #4]
	mov	x1, x19
	bl	_ASN1_STRING_set0
	mov	w19, #1
	b	LBB0_4
LBB0_10:
Lloh11:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_3
LBB0_11:
Lloh13:
	adrp	x8, _CMS_R_WRAP_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CMS_R_WRAP_ERROR@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CMS_F_CMS_RECIPIENTINFO_KEKRI_ENCRYPT,4,2 ; @CMS_F_CMS_RECIPIENTINFO_KEKRI_ENCRYPT
	.comm	_CMS_R_NO_KEY,4,2               ; @CMS_R_NO_KEY
	.comm	_CMS_R_ERROR_SETTING_KEY,4,2    ; @CMS_R_ERROR_SETTING_KEY
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_CMS_R_WRAP_ERROR,4,2           ; @CMS_R_WRAP_ERROR
	.no_dead_strip	_cms_RecipientInfo_kekri_encrypt
.subsections_via_symbols
