	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cleanup_mapped_device
_cleanup_mapped_device:                 ## @cleanup_mapped_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	64(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_destroy_workqueue
LBB0_2:
	leaq	60(%rbx), %rdi
	callq	_bioset_exit
	leaq	56(%rbx), %rdi
	callq	_bioset_exit
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_kill_dax
	movq	48(%rbx), %rdi
	callq	_put_dax
	movq	$0, 48(%rbx)
LBB0_4:
	cmpq	$0, 40(%rbx)
	je	LBB0_6
## %bb.5:
	movq	__minor_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	40(%rbx), %rax
	movq	$0, (%rax)
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	40(%rbx), %rdi
	callq	_del_gendisk
	movq	40(%rbx), %rdi
	callq	_put_disk
LBB0_6:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_blk_cleanup_queue
LBB0_8:
	leaq	24(%rbx), %rdi
	callq	_cleanup_srcu_struct
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_bdput
	movq	$0, 16(%rbx)
LBB0_10:
	leaq	8(%rbx), %rdi
	callq	_mutex_destroy
	leaq	4(%rbx), %rdi
	callq	_mutex_destroy
	movq	%rbx, %rdi
	callq	_mutex_destroy
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dm_mq_cleanup_mapped_device    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__minor_lock,4,2                ## @_minor_lock
	.no_dead_strip	_cleanup_mapped_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cleanup_mapped_device
_cleanup_mapped_device:                 ; @cleanup_mapped_device
	.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
	ldr	x0, [x0, #64]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_destroy_workqueue
LBB0_2:
	add	x0, x19, #60
	bl	_bioset_exit
	add	x0, x19, #56
	bl	_bioset_exit
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_kill_dax
	ldr	x0, [x19, #48]
	bl	_put_dax
	str	xzr, [x19, #48]
LBB0_4:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_6
; %bb.5:
Lloh0:
	adrp	x20, __minor_lock@GOTPAGE
Lloh1:
	ldr	x20, [x20, __minor_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock
	ldr	x8, [x19, #40]
	str	xzr, [x8]
	mov	x0, x20
	bl	_spin_unlock
	ldr	x0, [x19, #40]
	bl	_del_gendisk
	ldr	x0, [x19, #40]
	bl	_put_disk
LBB0_6:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_blk_cleanup_queue
LBB0_8:
	add	x0, x19, #24
	bl	_cleanup_srcu_struct
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_bdput
	str	xzr, [x19, #16]
LBB0_10:
	add	x0, x19, #8
	bl	_mutex_destroy
	add	x0, x19, #4
	bl	_mutex_destroy
	mov	x0, x19
	bl	_mutex_destroy
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dm_mq_cleanup_mapped_device
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	__minor_lock,4,2                ; @_minor_lock
	.no_dead_strip	_cleanup_mapped_device
.subsections_via_symbols
