	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function envelopedData_parser
_envelopedData_parser:                  ## @envelopedData_parser
	.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	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movl	%edi, %r12d
	leaq	-44(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r15, %rdi
	callq	__hx509_collector_get_lock
	movl	%eax, %edi
	callq	__hx509_lock_unlock_certs
	subq	$8, %rsp
	leaq	-56(%rbp), %r10
	movl	%r12d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	movq	%r13, %r8
	xorl	%r9d, %r9d
	pushq	%r10
	leaq	-44(%rbp), %rax
	pushq	%rax
	pushq	$0
	callq	_hx509_cms_unenvelope
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	_HX509_ERROR_APPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	%r12d, %edi
	movl	%ebx, %edx
	callq	_hx509_set_error_string
	movl	%ebx, %r14d
	jmp	LBB0_5
LBB0_2:
	movq	_asn1_oid_id_pkcs7_data@GOTPCREL(%rip), %rsi
	leaq	-44(%rbp), %rdi
	callq	_der_heim_oid_cmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movl	-56(%rbp), %ecx
	movl	-52(%rbp), %edx
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_parse_safe_content
	movl	%eax, %r14d
LBB0_4:
	leaq	-56(%rbp), %rdi
	callq	_der_free_octet_string
	leaq	-44(%rbp), %rdi
	callq	_der_free_oid
LBB0_5:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HX509_ERROR_APPEND,4,2         ## @HX509_ERROR_APPEND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PKCS12 failed to unenvelope"

	.comm	_asn1_oid_id_pkcs7_data,4,2     ## @asn1_oid_id_pkcs7_data
	.no_dead_strip	_envelopedData_parser
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function envelopedData_parser
_envelopedData_parser:                  ; @envelopedData_parser
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x20
	bl	__hx509_collector_get_lock
	bl	__hx509_lock_unlock_certs
	mov	x1, x0
	add	x8, sp, #24
	str	x8, [sp]
	add	x7, sp, #20
	mov	x0, x19
	mov	w2, #0
	mov	x3, x22
	mov	x4, x21
	mov	x5, #0
	mov	w6, #0
	bl	_hx509_cms_unenvelope
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _HX509_ERROR_APPEND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HX509_ERROR_APPEND@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_hx509_set_error_string
	b	LBB0_6
LBB0_2:
Lloh5:
	adrp	x1, _asn1_oid_id_pkcs7_data@GOTPAGE
Lloh6:
	ldr	x1, [x1, _asn1_oid_id_pkcs7_data@GOTPAGEOFF]
	add	x0, sp, #20
	bl	_der_heim_oid_cmp
	cbz	x0, LBB0_4
; %bb.3:
	mov	w21, #0
	b	LBB0_5
LBB0_4:
	ldp	w3, w2, [sp, #24]
	mov	x0, x19
	mov	x1, x20
	bl	_parse_safe_content
	mov	x21, x0
LBB0_5:
	add	x0, sp, #24
	bl	_der_free_octet_string
	add	x0, sp, #20
	bl	_der_free_oid
LBB0_6:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HX509_ERROR_APPEND,4,2         ; @HX509_ERROR_APPEND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PKCS12 failed to unenvelope"

	.comm	_asn1_oid_id_pkcs7_data,4,2     ; @asn1_oid_id_pkcs7_data
	.no_dead_strip	_envelopedData_parser
.subsections_via_symbols
