	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __dm_destroy
___dm_destroy:                          ## @__dm_destroy
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_might_sleep
	movq	__minor_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movq	_MINOR_ALLOCED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_dm_disk
	movl	%eax, %edi
	callq	_disk_devt
	movl	%eax, %edi
	callq	_MINOR
	movq	__minor_idr@GOTPCREL(%rip), %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_idr_replace
	movq	_DMF_FREEING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %rsi
	callq	_set_bit
	movq	%r15, %rdi
	callq	_spin_unlock
	movl	8(%rbx), %edi
	callq	_blk_set_queue_dying
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_dm_get_live_table
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_dm_suspended_md
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_dm_table_presuspend_targets
	movq	%r12, %rdi
	callq	_dm_table_postsuspend_targets
LBB0_2:
	movl	-36(%rbp), %esi
	movq	%rbx, %rdi
	callq	_dm_put_live_table
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_atomic_read
	testl	%r14d, %r14d
	je	LBB0_5
	.p2align	4, 0x90
## %bb.3:
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_msleep
	movq	%rbx, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_7
LBB0_5:
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_dm_device_name
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_atomic_read
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_DMWARN
LBB0_7:
	movq	%rbx, %rdi
	callq	_dm_sysfs_exit
	movq	%rbx, %rdi
	callq	___unbind
	movl	%eax, %edi
	callq	_dm_table_destroy
	movq	%rbx, %rdi
	callq	_free_dev
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__minor_lock,4,2                ## @_minor_lock
	.comm	__minor_idr,4,2                 ## @_minor_idr
	.comm	_MINOR_ALLOCED,4,2              ## @MINOR_ALLOCED
	.comm	_DMF_FREEING,4,2                ## @DMF_FREEING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Forcibly removing mapped_device still in use! (%d users)"

	.no_dead_strip	___dm_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __dm_destroy
___dm_destroy:                          ; @__dm_destroy
	.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	x20, x1
	mov	x19, x0
	bl	_might_sleep
Lloh0:
	adrp	x21, __minor_lock@GOTPAGE
Lloh1:
	ldr	x21, [x21, __minor_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock
Lloh2:
	adrp	x8, _MINOR_ALLOCED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MINOR_ALLOCED@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_dm_disk
	bl	_disk_devt
	bl	_MINOR
	mov	x2, x0
Lloh5:
	adrp	x0, __minor_idr@GOTPAGE
Lloh6:
	ldr	x0, [x0, __minor_idr@GOTPAGEOFF]
	mov	x1, x22
	bl	_idr_replace
Lloh7:
	adrp	x8, _DMF_FREEING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DMF_FREEING@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, x19, #12
	bl	_set_bit
	mov	x0, x21
	bl	_spin_unlock
	ldr	w0, [x19, #8]
	bl	_blk_set_queue_dying
	add	x21, x19, #4
	mov	x0, x21
	bl	_mutex_lock
	add	x1, sp, #12
	mov	x0, x19
	bl	_dm_get_live_table
	mov	x22, x0
	mov	x0, x19
	bl	_dm_suspended_md
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_dm_table_presuspend_targets
	mov	x0, x22
	bl	_dm_table_postsuspend_targets
LBB0_2:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_dm_put_live_table
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	bl	_atomic_read
	cbz	w20, LBB0_5
; %bb.3:
	cbz	x0, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_msleep
	mov	x0, x19
	bl	_atomic_read
	cbnz	x0, LBB0_4
	b	LBB0_7
LBB0_5:
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_dm_device_name
	mov	x20, x0
	mov	x0, x19
	bl	_atomic_read
	mov	x2, x0
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DMWARN
LBB0_7:
	mov	x0, x19
	bl	_dm_sysfs_exit
	mov	x0, x19
	bl	___unbind
	bl	_dm_table_destroy
	mov	x0, x19
	bl	_free_dev
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	__minor_lock,4,2                ; @_minor_lock
	.comm	__minor_idr,4,2                 ; @_minor_idr
	.comm	_MINOR_ALLOCED,4,2              ; @MINOR_ALLOCED
	.comm	_DMF_FREEING,4,2                ; @DMF_FREEING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Forcibly removing mapped_device still in use! (%d users)"

	.no_dead_strip	___dm_destroy
.subsections_via_symbols
