	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_hash_finish             ## -- Begin function crypto_hash_finish
	.p2align	4, 0x90
_crypto_hash_finish:                    ## @crypto_hash_finish
	.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
	movl	$-2, %ebx
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.1:
	movq	%rdi, %r15
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.4:
	cmpq	$0, 16(%r15)
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_os_free
	jmp	LBB0_22
LBB0_3:
	movq	%r15, %rdi
	callq	_os_free
	xorl	%ebx, %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_7
## %bb.8:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_13:
	cmpq	$19, (%r14)
	movq	$20, (%r14)
	jbe	LBB0_10
## %bb.14:
	leaq	8(%r15), %rdi
	callq	_sha1_done
	jmp	LBB0_12
LBB0_15:
	movq	(%r14), %rax
	cmpq	$19, %rax
	ja	LBB0_19
## %bb.16:
	movq	$20, (%r14)
	jmp	LBB0_10
LBB0_17:
	movq	(%r14), %rax
	cmpq	$15, %rax
	ja	LBB0_19
## %bb.18:
	movq	$16, (%r14)
	jmp	LBB0_10
LBB0_19:
	movq	%rax, -32(%rbp)
	leaq	4(%r15), %rdi
	leaq	-32(%rbp), %rdx
	callq	_hmac_done
	movq	_CRYPT_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.20:
	movq	-32(%rbp), %rax
	movq	%rax, (%r14)
	xorl	%r14d, %r14d
	jmp	LBB0_21
LBB0_7:
	movl	$-2, %r14d
	jmp	LBB0_21
LBB0_9:
	cmpq	$15, (%r14)
	movq	$16, (%r14)
	ja	LBB0_11
LBB0_10:
	movq	%r15, %rdi
	callq	_os_free
	movl	$-1, %ebx
	jmp	LBB0_22
LBB0_11:
	leaq	8(%r15), %rdi
	callq	_md5_done
LBB0_12:
	movq	_CRYPT_OK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	sete	%dl
	leal	(%rdx,%rdx), %r14d
	addl	$-2, %r14d
LBB0_21:
	movq	%r15, %rdi
	callq	_os_free
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_TEST_FAIL
	negq	%rax
	sbbl	%ebx, %ebx
	orl	%r14d, %ebx
	jmp	LBB0_22
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_9
	.long	L0_0_set_15
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_CRYPT_OK,4,2                   ## @CRYPT_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_hash_finish             ; -- Begin function crypto_hash_finish
	.p2align	2
_crypto_hash_finish:                    ; @crypto_hash_finish
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	cbz	x1, LBB0_6
; %bb.2:
	mov	x20, x2
	cbz	x2, LBB0_6
; %bb.3:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_os_free
LBB0_5:
	mov	w0, #-2
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_os_free
	mov	w0, #0
LBB0_7:
	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
LBB0_8:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_18
; %bb.9:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_10
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_10:
	ldr	x8, [x20]
	mov	w9, #20
	str	x9, [x20]
	cmp	x8, #19
	b.ls	LBB0_20
; %bb.11:
	add	x0, x19, #8
	bl	_sha1_done
	b	LBB0_22
LBB0_12:
	ldr	x8, [x20]
	cmp	x8, #19
	b.hi	LBB0_16
; %bb.13:
	mov	w8, #20
	str	x8, [x20]
	b	LBB0_20
LBB0_14:
	ldr	x8, [x20]
	cmp	x8, #15
	b.hi	LBB0_16
; %bb.15:
	mov	w8, #16
	str	x8, [x20]
	b	LBB0_20
LBB0_16:
	str	x8, [sp, #8]
	add	x0, x19, #4
	add	x2, sp, #8
	bl	_hmac_done
Lloh2:
	adrp	x8, _CRYPT_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CRYPT_OK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_20
; %bb.17:
	mov	w21, #0
	ldr	x8, [sp, #8]
	str	x8, [x20]
	b	LBB0_23
LBB0_18:
	mov	w21, #-2
	b	LBB0_23
LBB0_19:
	ldr	x8, [x20]
	mov	w9, #16
	str	x9, [x20]
	cmp	x8, #15
	b.hi	LBB0_21
LBB0_20:
	mov	x0, x19
	bl	_os_free
	mov	w0, #-1
	b	LBB0_7
LBB0_21:
	add	x0, x19, #8
	bl	_md5_done
LBB0_22:
Lloh5:
	adrp	x8, _CRYPT_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CRYPT_OK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mov	w9, #-2
	cmp	w0, w8
	csel	w21, wzr, w9, eq
LBB0_23:
	mov	x0, x19
	bl	_os_free
	bl	_TEST_FAIL
	cmp	x0, #0
	csinv	w0, w21, wzr, eq
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_19-LBB0_10)>>2
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_14-LBB0_10)>>2
                                        ; -- End function
	.comm	_CRYPT_OK,4,2                   ; @CRYPT_OK
.subsections_via_symbols
