	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msb_remove
_msb_remove:                            ## @msb_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_memstick_get_drvdata
	movq	%rax, %rbx
	cmpl	$0, 24(%rax)
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_msb_stop
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_dbg
	leaq	20(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	$1, (%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	8(%rbx), %rdi
	callq	_blk_mq_start_hw_queues
	movl	4(%rbx), %edi
	callq	_del_gendisk
	movq	8(%rbx), %rdi
	callq	_blk_cleanup_queue
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_blk_mq_free_tag_set
	movq	$0, 8(%rbx)
	movq	_msb_disk_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_msb_data_clear
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	4(%rbx), %edi
	callq	_msb_disk_release
	movq	%r14, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memstick_set_drvdata           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Removing the disk device"

	.comm	_msb_disk_lock,4,2              ## @msb_disk_lock
	.no_dead_strip	_msb_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msb_remove
_msb_remove:                            ; @msb_remove
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	bl	_memstick_get_drvdata
	mov	x20, x0
	ldr	w8, [x0, #24]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_msb_stop
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
	add	x21, x20, #20
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	x0, [x20, #8]
	bl	_blk_mq_start_hw_queues
	ldr	w0, [x20, #4]
	bl	_del_gendisk
	ldr	x0, [x20, #8]
	bl	_blk_cleanup_queue
	add	x0, x20, #16
	bl	_blk_mq_free_tag_set
	str	xzr, [x20, #8]
Lloh2:
	adrp	x21, _msb_disk_lock@GOTPAGE
Lloh3:
	ldr	x21, [x21, _msb_disk_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x20
	bl	_msb_data_clear
	mov	x0, x21
	bl	_mutex_unlock
	ldr	w0, [x20, #4]
	bl	_msb_disk_release
	mov	x0, x19
	mov	x1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_memstick_set_drvdata
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Removing the disk device"

	.comm	_msb_disk_lock,4,2              ; @msb_disk_lock
	.no_dead_strip	_msb_remove
.subsections_via_symbols
