	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdssl_hash_complete            ## -- Begin function rdssl_hash_complete
	.p2align	4, 0x90
_rdssl_hash_complete:                   ## @rdssl_hash_complete
	.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, %r14
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movl	(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_8
## %bb.2:
	testq	%r14, %r14
	je	LBB0_8
## %bb.3:
	cmpl	$0, 4(%rbx)
	je	LBB0_8
## %bb.4:
	movq	_HP_HASHVAL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rcx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_CryptGetHashParam
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%rbx), %edi
	movl	(%r15), %esi
	leaq	-28(%rbp), %rcx
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_CryptGetHashParam
	testq	%rax, %rax
	jne	LBB0_7
LBB0_6:
	xorl	%eax, %eax
	callq	_GetLastError
	movslq	%eax, %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rdssl_hash_complete %p %p\n"

	.comm	_HP_HASHVAL,4,2                 ## @HP_HASHVAL
L_.str.1:                               ## @.str.1
	.asciz	"CryptGetHashParam failed with %lx\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdssl_hash_complete            ; -- Begin function rdssl_hash_complete
	.p2align	2
_rdssl_hash_complete:                   ; @rdssl_hash_complete
	.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	x19, x1
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w0, [x20]
	cbz	w0, LBB0_7
; %bb.2:
	cbz	x19, LBB0_7
; %bb.3:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_7
; %bb.4:
Lloh0:
	adrp	x21, _HP_HASHVAL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HP_HASHVAL@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x3, sp, #12
	mov	x2, #0
	mov	w4, #0
	bl	_CryptGetHashParam
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x20]
	ldr	w1, [x21]
	add	x3, sp, #12
	mov	x2, x19
	mov	w4, #0
	bl	_CryptGetHashParam
	cbnz	x0, LBB0_9
LBB0_6:
	bl	_GetLastError
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
	str	x19, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
LBB0_8:
	bl	_error
LBB0_9:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rdssl_hash_complete %p %p\n"

	.comm	_HP_HASHVAL,4,2                 ; @HP_HASHVAL
l_.str.1:                               ; @.str.1
	.asciz	"CryptGetHashParam failed with %lx\n"

.subsections_via_symbols
