	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_clone_metadata_commit       ## -- Begin function dm_clone_metadata_commit
	.p2align	4, 0x90
_dm_clone_metadata_commit:              ## @dm_clone_metadata_commit
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	callq	_down_write
	cmpq	$0, 32(%r14)
	jne	LBB0_5
## %bb.1:
	movl	24(%r14), %edi
	callq	_dm_bm_is_read_only
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	8(%r14), %r12
	movq	16(%r14), %r15
	xorl	%ebx, %ebx
	cmpq	%r15, %r12
	sete	%bl
	movl	(%r15,%rbx,4), %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_4:
	leaq	(%r15,%rbx,4), %rbx
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, 8(%r14)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	___flush_dmap
	movl	%eax, %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_up_write
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_clone_metadata_commit       ; -- Begin function dm_clone_metadata_commit
	.p2align	2
_dm_clone_metadata_commit:              ; @dm_clone_metadata_commit
	.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
Lloh0:
	adrp	x8, _EPERM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	bl	_down_write
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_5
; %bb.1:
	ldr	w0, [x19, #24]
	bl	_dm_bm_is_read_only
	cbnz	x0, LBB0_5
; %bb.2:
	ldp	x20, x8, [x19, #8]
	cmp	x20, x8
	cset	w9, eq
	add	x22, x8, w9, uxtw #2
	ldr	w0, [x22]
	bl	_WARN_ON
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_4:
	add	x21, x19, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	str	x22, [x19, #8]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	mov	x1, x20
	bl	___flush_dmap
	mov	x20, x0
LBB0_5:
	mov	x0, x19
	bl	_up_write
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
