	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_hash_to_blob
_convert_hash_to_blob:                  ## @convert_hash_to_blob
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	_FALSE@GOTPCREL(%rip), %r15
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	movl	$4, -28(%rbp)
	movq	_HP_HASHSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rcx
	movl	%r14d, %edi
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	callq	_CryptGetHashParam
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	(%rbx), %edi
	callq	_CryptMemAlloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%rbx), %ecx
	movl	%ecx, -28(%rbp)
	movq	_HP_HASHVAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-28(%rbp), %rcx
	movl	%r14d, %edi
	movq	%rax, %rdx
	xorl	%r8d, %r8d
	callq	_CryptGetHashParam
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	_TRUE@GOTPCREL(%rip), %r15
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_ERR
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	callq	_ERR
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
	callq	_ERR
	movq	8(%rbx), %rdi
	callq	_CryptMemFree
	movq	$0, 8(%rbx)
	movl	$0, (%rbx)
LBB0_8:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"called\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_HP_HASHSIZE,4,2                ## @HP_HASHSIZE
L_.str.1:                               ## @.str.1
	.asciz	"failed to get hash size\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to allocate blob memory\n"

	.comm	_HP_HASHVAL,4,2                 ## @HP_HASHVAL
L_.str.3:                               ## @.str.3
	.asciz	"failed to get hash value\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_convert_hash_to_blob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_hash_to_blob
_convert_hash_to_blob:                  ; @convert_hash_to_blob
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	cbz	x19, LBB0_8
; %bb.1:
	mov	w8, #4
	str	w8, [sp, #12]
Lloh2:
	adrp	x8, _HP_HASHSIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HP_HASHSIZE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x20
	mov	x2, x19
	mov	w4, #0
	bl	_CryptGetHashParam
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w0, [x19]
	bl	_CryptMemAlloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.3:
	mov	x2, x0
	ldr	w8, [x19]
	str	w8, [sp, #12]
Lloh5:
	adrp	x8, _HP_HASHVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HP_HASHVAL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x20
	mov	w4, #0
	bl	_CryptGetHashParam
	cbz	w0, LBB0_7
; %bb.4:
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ERR
	b	LBB0_8
LBB0_6:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_ERR
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ERR
	ldr	x0, [x19, #8]
	bl	_CryptMemFree
	str	xzr, [x19, #8]
	str	wzr, [x19]
LBB0_8:
Lloh16:
	adrp	x8, _FALSE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"called\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_HP_HASHSIZE,4,2                ; @HP_HASHSIZE
l_.str.1:                               ; @.str.1
	.asciz	"failed to get hash size\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to allocate blob memory\n"

	.comm	_HP_HASHVAL,4,2                 ; @HP_HASHVAL
l_.str.3:                               ; @.str.3
	.asciz	"failed to get hash value\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_convert_hash_to_blob
.subsections_via_symbols
