	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtip_block_remove
_mtip_block_remove:                     ## @mtip_block_remove
	.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
	cmpq	$0, 24(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_MTIP_PF_SVC_THD_STOP_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	32(%rbx), %rsi
	addq	$4, %rsi
	callq	_set_bit
	movq	32(%rbx), %rdi
	callq	_wake_up_interruptible
	movq	24(%rbx), %rdi
	callq	_kthread_stop
LBB0_2:
	movq	_MTIP_DDF_INIT_DONE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	8(%rbx), %rdi
	callq	_disk_to_dev
	movq	%rax, %rdi
	callq	_kobject_get
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_mtip_hw_sysfs_exit
	movq	%r14, %rdi
	callq	_kobject_put
LBB0_5:
	movq	%rbx, %rdi
	callq	_mtip_hw_debugfs_exit
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.6:
	cmpq	$0, (%rdi)
	je	LBB0_8
## %bb.7:
	callq	_del_gendisk
	jmp	LBB0_9
LBB0_8:
	callq	_put_disk
LBB0_9:
	movq	_rssd_index_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movl	16(%rbx), %esi
	movq	_rssd_index_ida@GOTPCREL(%rip), %rdi
	callq	_ida_remove
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	(%rbx), %rdi
	callq	_blk_cleanup_queue
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	%rbx, %rdi
	callq	_mtip_hw_exit
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTIP_PF_SVC_THD_STOP_BIT,4,2   ## @MTIP_PF_SVC_THD_STOP_BIT
	.comm	_MTIP_DDF_INIT_DONE_BIT,4,2     ## @MTIP_DDF_INIT_DONE_BIT
	.comm	_rssd_index_lock,4,2            ## @rssd_index_lock
	.comm	_rssd_index_ida,4,2             ## @rssd_index_ida
	.no_dead_strip	_mtip_block_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtip_block_remove
_mtip_block_remove:                     ; @mtip_block_remove
	.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, #24]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MTIP_PF_SVC_THD_STOP_BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTIP_PF_SVC_THD_STOP_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19, #32]
	add	x1, x8, #4
	bl	_set_bit
	ldr	x0, [x19, #32]
	bl	_wake_up_interruptible
	ldr	x0, [x19, #24]
	bl	_kthread_stop
LBB0_2:
Lloh3:
	adrp	x8, _MTIP_DDF_INIT_DONE_BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MTIP_DDF_INIT_DONE_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #20
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_disk_to_dev
	bl	_kobject_get
	cbz	x0, LBB0_5
; %bb.4:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_mtip_hw_sysfs_exit
	mov	x0, x20
	bl	_kobject_put
LBB0_5:
	mov	x0, x19
	bl	_mtip_hw_debugfs_exit
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_9
; %bb.6:
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.7:
	bl	_del_gendisk
	b	LBB0_9
LBB0_8:
	bl	_put_disk
LBB0_9:
Lloh6:
	adrp	x20, _rssd_index_lock@GOTPAGE
Lloh7:
	ldr	x20, [x20, _rssd_index_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock
	ldr	w1, [x19, #16]
Lloh8:
	adrp	x0, _rssd_index_ida@GOTPAGE
Lloh9:
	ldr	x0, [x0, _rssd_index_ida@GOTPAGEOFF]
	bl	_ida_remove
	mov	x0, x20
	bl	_spin_unlock
	ldr	x0, [x19]
	bl	_blk_cleanup_queue
	stp	xzr, xzr, [x19]
	mov	x0, x19
	bl	_mtip_hw_exit
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MTIP_PF_SVC_THD_STOP_BIT,4,2   ; @MTIP_PF_SVC_THD_STOP_BIT
	.comm	_MTIP_DDF_INIT_DONE_BIT,4,2     ; @MTIP_DDF_INIT_DONE_BIT
	.comm	_rssd_index_lock,4,2            ; @rssd_index_lock
	.comm	_rssd_index_ida,4,2             ; @rssd_index_ida
	.no_dead_strip	_mtip_block_remove
.subsections_via_symbols
