	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_hold                        ## -- Begin function dm_hold
	.p2align	4, 0x90
_dm_hold:                               ## @dm_hold
	.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
	movq	%rdi, %rbx
	movq	__minor_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	_DMF_FREEING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	__minor_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_dm_get
	movq	__minor_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__minor_lock,4,2                ## @_minor_lock
	.comm	_DMF_FREEING,4,2                ## @DMF_FREEING
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_hold                        ; -- Begin function dm_hold
	.p2align	2
_dm_hold:                               ; @dm_hold
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, __minor_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, __minor_lock@GOTPAGEOFF]
	bl	_spin_lock
Lloh2:
	adrp	x8, _DMF_FREEING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMF_FREEING@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, __minor_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, __minor_lock@GOTPAGEOFF]
	bl	_spin_unlock
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_dm_get
Lloh10:
	adrp	x0, __minor_lock@GOTPAGE
Lloh11:
	ldr	x0, [x0, __minor_lock@GOTPAGEOFF]
	bl	_spin_unlock
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	__minor_lock,4,2                ; @_minor_lock
	.comm	_DMF_FREEING,4,2                ; @DMF_FREEING
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
