	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ghash_final
_ghash_final:                           ## @ghash_final
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %rax
	movq	_STATE_AAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_STATE_CIPHER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_ghash_add_pad
	movq	_STATE_INVALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_3:
	movl	8(%rbx), %edi
	shll	$3, %edi
	leaq	-64(%rbp), %r15
	movq	%r15, %rsi
	callq	_write64_be
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$32, %edx
	callq	_ghash_add
	movl	12(%rbx), %edi
	shll	$3, %edi
	movq	%r15, %rsi
	callq	_write64_be
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$32, %edx
	callq	_ghash_add
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	sete	%dil
	callq	_assert
	movl	24(%rbx), %edi
	movq	%r14, %rsi
	callq	_cf_gf128_tobytes_be
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_STATE_AAD,8,3                  ## @STATE_AAD
	.comm	_STATE_CIPHER,8,3               ## @STATE_CIPHER
	.comm	_STATE_INVALID,8,3              ## @STATE_INVALID
	.no_dead_strip	_ghash_final
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ghash_final
_ghash_final:                           ; @ghash_final
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _STATE_AAD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STATE_AAD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _STATE_CIPHER@GOTPAGE
Lloh7:
	ldr	x10, [x10, _STATE_CIPHER@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_ghash_add_pad
Lloh9:
	adrp	x8, _STATE_INVALID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STATE_INVALID@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_2:
	ldr	w8, [x20, #8]
	lsl	w0, w8, #3
	add	x1, sp, #8
	bl	_write64_be
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #32
	bl	_ghash_add
	ldr	w8, [x20, #12]
	lsl	w0, w8, #3
	add	x1, sp, #8
	bl	_write64_be
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #32
	bl	_ghash_add
	ldr	x8, [x20, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldr	w0, [x20, #24]
	mov	x1, x19
	bl	_cf_gf128_tobytes_be
	ldur	x8, [x29, #-24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_STATE_AAD,8,3                  ; @STATE_AAD
	.comm	_STATE_CIPHER,8,3               ; @STATE_CIPHER
	.comm	_STATE_INVALID,8,3              ; @STATE_INVALID
	.no_dead_strip	_ghash_final
.subsections_via_symbols
