	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hash_sync
_hash_sync:                             ## @hash_sync
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	movq	(%rdi), %rbx
	cmpl	$0, 16(%rbx)
	je	LBB0_10
## %bb.5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	___buf_free
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:
	movq	%rbx, %rdi
	callq	_flush_meta
	testq	%rax, %rax
	jne	LBB0_3
## %bb.7:
	movl	(%rbx), %edi
	cmpl	$-1, %edi
	je	LBB0_9
## %bb.8:
	callq	__fsync
	testq	%rax, %rax
	jne	LBB0_3
LBB0_9:
	movq	$0, 8(%rbx)
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_ERROR,4,2                      ## @ERROR
	.no_dead_strip	_hash_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hash_sync
_hash_sync:                             ; @hash_sync
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x1, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _errno@GOTPAGE
Lloh4:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
LBB0_2:
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	cbz	x0, LBB0_2
; %bb.5:
	ldr	x19, [x0]
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_11
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	___buf_free
	cbnz	x0, LBB0_2
; %bb.7:
	mov	x0, x19
	bl	_flush_meta
	cbnz	x0, LBB0_2
; %bb.8:
	ldr	w0, [x19]
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.9:
	bl	__fsync
	cbnz	x0, LBB0_2
LBB0_10:
	mov	w0, #0
	str	xzr, [x19, #8]
	b	LBB0_3
LBB0_11:
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_ERROR,4,2                      ; @ERROR
	.no_dead_strip	_hash_sync
.subsections_via_symbols
