	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_cache_metadata_set_needs_check ## -- Begin function dm_cache_metadata_set_needs_check
	.p2align	4, 0x90
_dm_cache_metadata_set_needs_check:     ## @dm_cache_metadata_set_needs_check
	.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	%rdi, %rbx
	callq	_WRITE_LOCK
	movq	_NEEDS_CHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_superblock_lock
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DMERR
	jmp	LBB0_3
LBB0_2:
	movq	-32(%rbp), %rdi
	callq	_dm_block_data
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_cpu_to_le32
	movl	%eax, (%r15)
	movq	-32(%rbp), %rdi
	callq	_dm_bm_unlock
LBB0_3:
	movq	%rbx, %rdi
	callq	_WRITE_UNLOCK
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NEEDS_CHECK,4,2                ## @NEEDS_CHECK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't read superblock"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_cache_metadata_set_needs_check ; -- Begin function dm_cache_metadata_set_needs_check
	.p2align	2
_dm_cache_metadata_set_needs_check:     ; @dm_cache_metadata_set_needs_check
	.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, x0
	bl	_WRITE_LOCK
Lloh0:
	adrp	x8, _NEEDS_CHECK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NEEDS_CHECK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
	add	x1, sp, #8
	mov	x0, x19
	bl	_superblock_lock
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
	b	LBB0_3
LBB0_2:
	ldr	x0, [sp, #8]
	bl	_dm_block_data
	mov	x21, x0
	ldr	w0, [x19]
	bl	_cpu_to_le32
	str	w0, [x21]
	ldr	x0, [sp, #8]
	bl	_dm_bm_unlock
LBB0_3:
	mov	x0, x19
	bl	_WRITE_UNLOCK
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NEEDS_CHECK,4,2                ; @NEEDS_CHECK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't read superblock"

.subsections_via_symbols
