	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sync_metadata
_sync_metadata:                         ## @sync_metadata
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_write_dirty_bitset
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_cache_device_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DMERR
LBB0_2:
	movq	%r12, %rdi
	callq	_write_discard_bitset
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_cache_device_name
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_DMERR
LBB0_4:
	movq	%r12, %rdi
	callq	_save_stats
	movq	%r12, %rdi
	callq	_write_hints
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_cache_device_name
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_DMERR
LBB0_6:
	orl	%r15d, %r14d
	xorl	%ebx, %ebx
	orl	%r13d, %r14d
	sete	%bl
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_commit
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_cache_device_name
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_DMERR
LBB0_8:
	testl	%r14d, %r14d
	sete	%al
	andb	%al, %bl
	movzbl	%bl, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: could not write dirty bitset"

L_.str.1:                               ## @.str.1
	.asciz	"%s: could not write discard bitset"

L_.str.2:                               ## @.str.2
	.asciz	"%s: could not write hints"

L_.str.3:                               ## @.str.3
	.asciz	"%s: could not write cache metadata"

	.no_dead_strip	_sync_metadata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sync_metadata
_sync_metadata:                         ; @sync_metadata
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_write_dirty_bitset
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_cache_device_name
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
LBB0_2:
	mov	x0, x19
	bl	_write_discard_bitset
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_cache_device_name
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DMERR
LBB0_4:
	mov	x0, x19
	bl	_save_stats
	mov	x0, x19
	bl	_write_hints
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_cache_device_name
	mov	x1, x0
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DMERR
LBB0_6:
	orr	w8, w20, w21
	orr	w8, w8, w22
	cmp	w8, #0
	cset	w20, eq
	mov	x0, x19
	mov	x1, x20
	bl	_commit
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_cache_device_name
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DMERR
LBB0_8:
	cmp	w21, #0
	cset	w8, eq
	and	w0, w20, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: could not write dirty bitset"

l_.str.1:                               ; @.str.1
	.asciz	"%s: could not write discard bitset"

l_.str.2:                               ; @.str.2
	.asciz	"%s: could not write hints"

l_.str.3:                               ; @.str.3
	.asciz	"%s: could not write cache metadata"

	.no_dead_strip	_sync_metadata
.subsections_via_symbols
