	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CHashEncodeMsg_Open
_CHashEncodeMsg_Open:                   ## @CHashEncodeMsg_Open
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$24, (%rsi)
	jne	LBB0_1
## %bb.3:
	movl	%ecx, %r14d
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movl	16(%rsi), %edi
	callq	_CertOIDToAlgId
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %r15d
	movq	8(%rbx), %r13
	testq	%r13, %r13
	jne	LBB0_8
## %bb.6:
	movl	%r15d, %edi
	callq	_I_CryptGetDefaultCryptProv
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	%rax, %r13
	movq	_CMSG_CRYPT_RELEASE_CONTEXT_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r12d
LBB0_8:
	movl	$32, %edi
	callq	_CryptMemAlloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, %rbx
	movq	_CHashEncodeMsg_Close@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_CHashEncodeMsg_GetParam@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_CHashEncodeMsg_Update@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_CRYPT_DefaultMsgControl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_CryptMsgBase_Init
	movq	%r13, 24(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	%r13, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_CryptCreateHash
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movq	%rbx, %rdi
	callq	_CryptMsgClose
	jmp	LBB0_11
LBB0_1:
	movq	_E_INVALIDARG@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_CRYPT_E_UNKNOWN_ALGO@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	callq	_SetLastError
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E_INVALIDARG,4,2               ## @E_INVALIDARG
	.comm	_CRYPT_E_UNKNOWN_ALGO,4,2       ## @CRYPT_E_UNKNOWN_ALGO
	.comm	_CMSG_CRYPT_RELEASE_CONTEXT_FLAG,4,2 ## @CMSG_CRYPT_RELEASE_CONTEXT_FLAG
	.comm	_CHashEncodeMsg_Close,4,2       ## @CHashEncodeMsg_Close
	.comm	_CHashEncodeMsg_GetParam,4,2    ## @CHashEncodeMsg_GetParam
	.comm	_CHashEncodeMsg_Update,4,2      ## @CHashEncodeMsg_Update
	.comm	_CRYPT_DefaultMsgControl,4,2    ## @CRYPT_DefaultMsgControl
	.no_dead_strip	_CHashEncodeMsg_Open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CHashEncodeMsg_Open
_CHashEncodeMsg_Open:                   ; @CHashEncodeMsg_Open
	.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
	ldr	w8, [x1]
	cmp	w8, #24
	b.ne	LBB0_8
; %bb.1:
	mov	x20, x3
	mov	x22, x1
	mov	x21, x0
	ldr	w0, [x1, #16]
	bl	_CertOIDToAlgId
	cbz	w0, LBB0_9
; %bb.2:
	mov	x19, x0
	ldr	x22, [x22, #8]
	cbnz	x22, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_I_CryptGetDefaultCryptProv
	cbz	x0, LBB0_8
; %bb.4:
	mov	x22, x0
Lloh0:
	adrp	x8, _CMSG_CRYPT_RELEASE_CONTEXT_FLAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMSG_CRYPT_RELEASE_CONTEXT_FLAG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w21, w21, w8
LBB0_5:
	mov	w0, #32
	bl	_CryptMemAlloc
	mov	x23, x0
	cbz	x0, LBB0_12
; %bb.6:
Lloh3:
	adrp	x8, _CHashEncodeMsg_Close@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHashEncodeMsg_Close@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _CHashEncodeMsg_GetParam@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CHashEncodeMsg_GetParam@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _CHashEncodeMsg_Update@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CHashEncodeMsg_Update@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
Lloh12:
	adrp	x8, _CRYPT_DefaultMsgControl@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CRYPT_DefaultMsgControl@GOTPAGEOFF]
Lloh14:
	ldr	w6, [x8]
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	bl	_CryptMsgBase_Init
	stp	xzr, x22, [x23, #16]
	str	xzr, [x23, #8]
	mov	x0, x22
	mov	x1, x19
	mov	w2, #0
	mov	w3, #0
	mov	x4, x23
	bl	_CryptCreateHash
	cbnz	w0, LBB0_12
; %bb.7:
	mov	x0, x23
	bl	_CryptMsgClose
	b	LBB0_11
LBB0_8:
Lloh15:
	adrp	x8, _E_INVALIDARG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _E_INVALIDARG@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh17:
	adrp	x8, _CRYPT_E_UNKNOWN_ALGO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CRYPT_E_UNKNOWN_ALGO@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	bl	_SetLastError
LBB0_11:
	mov	x23, #0
LBB0_12:
	mov	x0, x23
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_E_INVALIDARG,4,2               ; @E_INVALIDARG
	.comm	_CRYPT_E_UNKNOWN_ALGO,4,2       ; @CRYPT_E_UNKNOWN_ALGO
	.comm	_CMSG_CRYPT_RELEASE_CONTEXT_FLAG,4,2 ; @CMSG_CRYPT_RELEASE_CONTEXT_FLAG
	.comm	_CHashEncodeMsg_Close,4,2       ; @CHashEncodeMsg_Close
	.comm	_CHashEncodeMsg_GetParam,4,2    ; @CHashEncodeMsg_GetParam
	.comm	_CHashEncodeMsg_Update,4,2      ; @CHashEncodeMsg_Update
	.comm	_CRYPT_DefaultMsgControl,4,2    ; @CRYPT_DefaultMsgControl
	.no_dead_strip	_CHashEncodeMsg_Open
.subsections_via_symbols
