	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtip_block_shutdown
_mtip_block_shutdown:                   ## @mtip_block_shutdown
	.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	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	24(%rbx), %rdi
	movl	8(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	16(%rbx), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_3
## %bb.2:
	callq	_del_gendisk
	movq	8(%rbx), %rdi
	callq	_blk_cleanup_queue
	jmp	LBB0_4
LBB0_3:
	callq	_put_disk
LBB0_4:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
LBB0_5:
	movq	_rssd_index_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movl	(%rbx), %esi
	movq	_rssd_index_ida@GOTPCREL(%rip), %rdi
	callq	_ida_remove
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	%rbx, %rdi
	callq	_mtip_hw_shutdown
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Shutting down %s ...\n"

	.comm	_rssd_index_lock,4,2            ## @rssd_index_lock
	.comm	_rssd_index_ida,4,2             ## @rssd_index_ida
	.no_dead_strip	_mtip_block_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtip_block_shutdown
_mtip_block_shutdown:                   ; @mtip_block_shutdown
	.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	x8, [x0, #16]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x0, [x19, #24]
	ldr	w2, [x8, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.2:
	bl	_del_gendisk
	ldr	x0, [x19, #8]
	bl	_blk_cleanup_queue
	b	LBB0_4
LBB0_3:
	bl	_put_disk
LBB0_4:
	stp	xzr, xzr, [x19, #8]
LBB0_5:
Lloh2:
	adrp	x20, _rssd_index_lock@GOTPAGE
Lloh3:
	ldr	x20, [x20, _rssd_index_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock
	ldr	w1, [x19]
Lloh4:
	adrp	x0, _rssd_index_ida@GOTPAGE
Lloh5:
	ldr	x0, [x0, _rssd_index_ida@GOTPAGEOFF]
	bl	_ida_remove
	mov	x0, x20
	bl	_spin_unlock
	mov	x0, x19
	bl	_mtip_hw_shutdown
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Shutting down %s ...\n"

	.comm	_rssd_index_lock,4,2            ; @rssd_index_lock
	.comm	_rssd_index_ida,4,2             ; @rssd_index_ida
	.no_dead_strip	_mtip_block_shutdown
.subsections_via_symbols
