	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CDecodeMsg_FinalizeHashedContent
_CDecodeMsg_FinalizeHashedContent:      ## @CDecodeMsg_FinalizeHashedContent
	.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	%rdi, %rbx
	movl	$0, -44(%rbp)
	movq	_CMSG_HASH_ALGORITHM_PARAM@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	xorl	%r15d, %r15d
	leaq	-44(%rbp), %r12
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_CryptMsgGetParam
	movl	-44(%rbp), %edi
	callq	_CryptMemAlloc
	movq	%rax, %r14
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%rax, %rcx
	movq	%r12, %r8
	callq	_CryptMsgGetParam
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	callq	_CertOIDToAlgId
	movl	%eax, %r15d
LBB0_2:
	movl	20(%rbx), %edi
	testl	%edi, %edi
	jne	LBB0_6
## %bb.3:
	movl	%r15d, %edi
	callq	_I_CryptGetDefaultCryptProv
	movl	%eax, 20(%rbx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %edi
	movq	_CMSG_CRYPT_RELEASE_CONTEXT_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 16(%rbx)
	jmp	LBB0_6
LBB0_4:
	xorl	%edi, %edi
LBB0_6:
	xorl	%r12d, %r12d
	movl	%r15d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_CryptCreateHash
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	_CMSG_DETACHED_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	je	LBB0_9
## %bb.8:
	movl	12(%rbx), %esi
	movl	%esi, -52(%rbp)
	movl	8(%rbx), %edx
	movl	%edx, -56(%rbp)
	jmp	LBB0_12
LBB0_9:
	movl	4(%rbx), %edi
	movq	_CMSG_CONTENT_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	callq	_ContextPropertyList_FindProperty
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %esi
LBB0_12:
	movl	(%rbx), %edi
	xorl	%ecx, %ecx
	callq	_CryptHashData
	movq	%rax, %r12
LBB0_13:
	movq	%r14, %rdi
	callq	_CryptMemFree
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%r12d, %r12d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_CMSG_HASH_ALGORITHM_PARAM,4,2  ## @CMSG_HASH_ALGORITHM_PARAM
	.comm	_CMSG_CRYPT_RELEASE_CONTEXT_FLAG,4,2 ## @CMSG_CRYPT_RELEASE_CONTEXT_FLAG
	.comm	_CMSG_DETACHED_FLAG,4,2         ## @CMSG_DETACHED_FLAG
	.comm	_CMSG_CONTENT_PARAM,4,2         ## @CMSG_CONTENT_PARAM
	.no_dead_strip	_CDecodeMsg_FinalizeHashedContent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CDecodeMsg_FinalizeHashedContent
_CDecodeMsg_FinalizeHashedContent:      ; @CDecodeMsg_FinalizeHashedContent
	.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	x20, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x21, _CMSG_HASH_ALGORITHM_PARAM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CMSG_HASH_ALGORITHM_PARAM@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x4, sp, #12
	mov	w2, #0
	mov	x3, #0
	bl	_CryptMsgGetParam
	ldr	w0, [sp, #12]
	bl	_CryptMemAlloc
	mov	x19, x0
	ldr	w1, [x21]
	add	x4, sp, #12
	mov	x0, x20
	mov	w2, #0
	mov	x3, x19
	bl	_CryptMsgGetParam
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_CertOIDToAlgId
	mov	x21, x0
	ldr	w0, [x20, #20]
	cbnz	w0, LBB0_5
	b	LBB0_3
LBB0_2:
	mov	w21, #0
	ldr	w0, [x20, #20]
	cbnz	w0, LBB0_5
LBB0_3:
	mov	x0, x21
	bl	_I_CryptGetDefaultCryptProv
	str	w0, [x20, #20]
	cbz	w0, LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _CMSG_CRYPT_RELEASE_CONTEXT_FLAG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMSG_CRYPT_RELEASE_CONTEXT_FLAG@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	bic	w8, w9, w8
	str	w8, [x20, #16]
LBB0_5:
	mov	x1, x21
	mov	w2, #0
	mov	w3, #0
	mov	x4, x20
	bl	_CryptCreateHash
	cbz	x0, LBB0_11
; %bb.6:
	ldr	w8, [x20, #16]
Lloh5:
	adrp	x9, _CMSG_DETACHED_FLAG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CMSG_DETACHED_FLAG@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldp	w2, w1, [x20, #8]
	stp	w2, w1, [sp]
	b	LBB0_10
LBB0_8:
	ldr	w0, [x20, #4]
Lloh8:
	adrp	x8, _CMSG_CONTENT_PARAM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CMSG_CONTENT_PARAM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ContextPropertyList_FindProperty
	cbz	x0, LBB0_11
; %bb.9:
	ldp	w2, w1, [sp]
LBB0_10:
	ldr	w0, [x20]
	mov	w3, #0
	bl	_CryptHashData
	mov	x20, x0
	b	LBB0_12
LBB0_11:
	mov	x20, #0
LBB0_12:
	mov	x0, x19
	bl	_CryptMemFree
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CMSG_HASH_ALGORITHM_PARAM,4,2  ; @CMSG_HASH_ALGORITHM_PARAM
	.comm	_CMSG_CRYPT_RELEASE_CONTEXT_FLAG,4,2 ; @CMSG_CRYPT_RELEASE_CONTEXT_FLAG
	.comm	_CMSG_DETACHED_FLAG,4,2         ; @CMSG_DETACHED_FLAG
	.comm	_CMSG_CONTENT_PARAM,4,2         ; @CMSG_CONTENT_PARAM
	.no_dead_strip	_CDecodeMsg_FinalizeHashedContent
.subsections_via_symbols
