	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_cms_decrypt_encrypted    ## -- Begin function hx509_cms_decrypt_encrypted
	.p2align	4, 0x90
_hx509_cms_decrypt_encrypted:           ## @hx509_cms_decrypt_encrypted
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movl	%esi, %r13d
	movl	%edi, %r14d
	movq	%r9, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	leaq	-72(%rbp), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_decode_CMSEncryptedData
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rcx
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_hx509_set_error_string
	jmp	LBB0_15
LBB0_2:
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	cmpq	$0, -72(%rbp)
	je	LBB0_3
## %bb.7:
	leaq	-56(%rbp), %rdi
	callq	_der_copy_oid
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %ebx
LBB0_9:
	movl	%r14d, %edi
	callq	_hx509_clear_error_string
	jmp	LBB0_4
LBB0_3:
	movq	_HX509_CMS_NO_DATA_AVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rcx
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_hx509_set_error_string
	jmp	LBB0_4
LBB0_10:
	cmpq	$0, -64(%rbp)
	je	LBB0_11
## %bb.12:
	leaq	-64(%rbp), %rdx
	movq	-72(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movl	%r14d, %edi
	movl	%r13d, %esi
	callq	__hx509_pbe_decrypt
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_13
LBB0_4:
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.5:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.6:
	callq	_free
LBB0_14:
	leaq	-72(%rbp), %rdi
	callq	_free_CMSEncryptedData
LBB0_15:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_HX509_ALG_NOT_SUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_13:
	movq	-48(%rbp), %rax
	movq	%rax, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to decode CMSEncryptedData"

	.comm	_HX509_CMS_NO_DATA_AVAILABLE,4,2 ## @HX509_CMS_NO_DATA_AVAILABLE
L_.str.1:                               ## @.str.1
	.asciz	"No content in EncryptedData"

	.comm	_HX509_ALG_NOT_SUPP,4,2         ## @HX509_ALG_NOT_SUPP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_cms_decrypt_encrypted    ; -- Begin function hx509_cms_decrypt_encrypted
	.p2align	2
_hx509_cms_decrypt_encrypted:           ; @hx509_cms_decrypt_encrypted
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x5
	mov	x23, x4
	mov	x19, x3
	mov	x24, x2
	mov	x22, x1
	mov	x20, x0
	mov	x0, x5
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x2, sp
	mov	x0, x24
	mov	x1, x19
	mov	x3, #0
	bl	_decode_CMSEncryptedData
	cbz	w0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	bl	_hx509_set_error_string
	b	LBB0_12
LBB0_2:
	ldr	x8, [sp]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x24, sp
	add	x0, x24, #16
	mov	x1, x23
	bl	_der_copy_oid
	cbz	w0, LBB0_7
; %bb.4:
	mov	x19, x0
LBB0_5:
	mov	x0, x20
	bl	_hx509_clear_error_string
	b	LBB0_9
LBB0_6:
Lloh2:
	adrp	x8, _HX509_CMS_NO_DATA_AVAILABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HX509_CMS_NO_DATA_AVAILABLE@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
Lloh5:
	adrp	x3, l_.str.1@PAGE
Lloh6:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	bl	_hx509_set_error_string
	b	LBB0_9
LBB0_7:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_13
; %bb.8:
	add	x2, x24, #8
	ldr	x3, [sp]
	add	x4, sp, #24
	mov	x0, x20
	mov	x1, x22
	bl	__hx509_pbe_decrypt
	mov	x19, x0
	cbz	w0, LBB0_14
LBB0_9:
	ldr	x0, [sp, #24]
	cmp	w19, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_11
; %bb.10:
	bl	_free
LBB0_11:
	mov	x0, sp
	bl	_free_CMSEncryptedData
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
Lloh7:
	adrp	x8, _HX509_ALG_NOT_SUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HX509_ALG_NOT_SUPP@GOTPAGEOFF]
Lloh9:
	ldr	w19, [x8]
	b	LBB0_5
LBB0_14:
	ldr	x8, [sp, #24]
	str	x8, [x21]
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to decode CMSEncryptedData"

	.comm	_HX509_CMS_NO_DATA_AVAILABLE,4,2 ; @HX509_CMS_NO_DATA_AVAILABLE
l_.str.1:                               ; @.str.1
	.asciz	"No content in EncryptedData"

	.comm	_HX509_ALG_NOT_SUPP,4,2         ; @HX509_ALG_NOT_SUPP
.subsections_via_symbols
