	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cms_DigestedData_do_final      ## -- Begin function cms_DigestedData_do_final
	.p2align	4, 0x90
_cms_DigestedData_do_final:             ## @cms_DigestedData_do_final
	.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
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_EVP_MD_CTX_new
	movq	%rax, %r13
	movq	_EVP_MAX_MD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	testq	%r13, %r13
	je	LBB0_7
## %bb.1:
	movq	(%r14), %r14
	movl	8(%r14), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_cms_DigestAlgorithm_find_ctx
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	leaq	-52(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_EVP_DigestFinal_ex
	testq	%rax, %rax
	jle	LBB0_9
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.4:
	movl	-52(%rbp), %edx
	movq	(%r14), %rax
	cmpl	8(%rax), %edx
	jne	LBB0_11
## %bb.5:
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	_CMS_F_CMS_DIGESTEDDATA_DO_FINAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CMS_R_VERIFICATION_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_CMS_F_CMS_DIGESTEDDATA_DO_FINAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	callq	_CMSerr
LBB0_9:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%r13, %rdi
	callq	_EVP_MD_CTX_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	(%r14), %rdi
	movl	-52(%rbp), %edx
	movq	%r12, %rsi
	callq	_ASN1_STRING_set
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
	jmp	LBB0_13
LBB0_11:
	movq	_CMS_F_CMS_DIGESTEDDATA_DO_FINAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CMS_R_MESSAGEDIGEST_WRONG_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_12:
	movl	$1, %ebx
	jmp	LBB0_13
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_MAX_MD_SIZE,4,2            ## @EVP_MAX_MD_SIZE
	.comm	_CMS_F_CMS_DIGESTEDDATA_DO_FINAL,4,2 ## @CMS_F_CMS_DIGESTEDDATA_DO_FINAL
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_CMS_R_MESSAGEDIGEST_WRONG_LENGTH,4,2 ## @CMS_R_MESSAGEDIGEST_WRONG_LENGTH
	.comm	_CMS_R_VERIFICATION_FAILURE,4,2 ## @CMS_R_VERIFICATION_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cms_DigestedData_do_final      ; -- Begin function cms_DigestedData_do_final
	.p2align	2
_cms_DigestedData_do_final:             ; @cms_DigestedData_do_final
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_EVP_MD_CTX_new
	mov	x19, x0
Lloh3:
	adrp	x8, _EVP_MAX_MD_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_MAX_MD_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	cbz	x0, LBB0_7
; %bb.1:
	ldr	x23, [x23]
	ldr	w2, [x23, #8]
	mov	x0, x19
	mov	x1, x22
	bl	_cms_DigestAlgorithm_find_ctx
	cbz	w0, LBB0_9
; %bb.2:
	sub	x2, x29, #60
	mov	x0, x19
	mov	x1, x20
	bl	_EVP_DigestFinal_ex
	cmp	x0, #1
	b.lt	LBB0_9
; %bb.3:
	cbz	w21, LBB0_12
; %bb.4:
	ldur	w2, [x29, #-60]
	ldr	x8, [x23]
	ldr	w9, [x8, #8]
	cmp	w2, w9
	b.ne	LBB0_13
; %bb.5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_memcmp
	cbz	x0, LBB0_14
; %bb.6:
Lloh8:
	adrp	x8, _CMS_F_CMS_DIGESTEDDATA_DO_FINAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CMS_F_CMS_DIGESTEDDATA_DO_FINAL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _CMS_R_VERIFICATION_FAILURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CMS_R_VERIFICATION_FAILURE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x8, _CMS_F_CMS_DIGESTEDDATA_DO_FINAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CMS_F_CMS_DIGESTEDDATA_DO_FINAL@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x8]
	bl	_CMSerr
LBB0_9:
	mov	w20, #0
LBB0_10:
	mov	x0, x19
	bl	_EVP_MD_CTX_free
	ldur	x8, [x29, #-56]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.11:
	mov	x0, x20
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	x0, [x23]
	ldur	w2, [x29, #-60]
	mov	x1, x20
	bl	_ASN1_STRING_set
	cmp	w0, #0
	cset	w20, ne
	b	LBB0_10
LBB0_13:
Lloh21:
	adrp	x8, _CMS_F_CMS_DIGESTEDDATA_DO_FINAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CMS_F_CMS_DIGESTEDDATA_DO_FINAL@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _CMS_R_MESSAGEDIGEST_WRONG_LENGTH@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CMS_R_MESSAGEDIGEST_WRONG_LENGTH@GOTPAGEOFF]
	b	LBB0_8
LBB0_14:
	mov	w20, #1
	b	LBB0_10
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_MAX_MD_SIZE,4,2            ; @EVP_MAX_MD_SIZE
	.comm	_CMS_F_CMS_DIGESTEDDATA_DO_FINAL,4,2 ; @CMS_F_CMS_DIGESTEDDATA_DO_FINAL
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_CMS_R_MESSAGEDIGEST_WRONG_LENGTH,4,2 ; @CMS_R_MESSAGEDIGEST_WRONG_LENGTH
	.comm	_CMS_R_VERIFICATION_FAILURE,4,2 ; @CMS_R_VERIFICATION_FAILURE
.subsections_via_symbols
