	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unbind_rdev_from_array
_unbind_rdev_from_array:                ## @unbind_rdev_from_array
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_BDEVNAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	32(%rbx), %edi
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	callq	_bd_unlink_disk_holder
	leaq	36(%rbx), %rdi
	callq	_list_del_rcu
	movl	32(%rbx), %edi
	movq	%r14, %rsi
	callq	_bdevname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_debug
	movq	24(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_mddev_destroy_wb_pool
	movq	$0, 24(%rbx)
	leaq	4(%rbx), %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_remove_link
	movq	16(%rbx), %rdi
	callq	_sysfs_put
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	xorl	%eax, %eax
	callq	_synchronize_rcu
	movq	_md_delayed_delete@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_WORK
	movq	%r14, %rdi
	callq	_kobject_get
	movq	_md_misc_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_queue_work
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	leaq	-16(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BDEVNAME_SIZE,4,2              ## @BDEVNAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"md: unbind<%s>\n"

L_.str.1:                               ## @.str.1
	.asciz	"block"

	.comm	_md_delayed_delete,4,2          ## @md_delayed_delete
	.comm	_md_misc_wq,4,2                 ## @md_misc_wq
	.no_dead_strip	_unbind_rdev_from_array
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unbind_rdev_from_array
_unbind_rdev_from_array:                ; @unbind_rdev_from_array
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _BDEVNAME_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BDEVNAME_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w0, [x0, #32]
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
	bl	_bd_unlink_disk_holder
	add	x0, x19, #36
	bl	_list_del_rcu
	ldr	w0, [x19, #32]
	mov	x1, x20
	bl	_bdevname
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	x0, [x19, #24]
	mov	x1, x19
	bl	_mddev_destroy_wb_pool
	str	xzr, [x19, #24]
	add	x20, x19, #4
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_sysfs_remove_link
	ldr	x0, [x19, #16]
	bl	_sysfs_put
	stp	xzr, xzr, [x19, #8]
	bl	_synchronize_rcu
Lloh12:
	adrp	x8, _md_delayed_delete@GOTPAGE
Lloh13:
	ldr	x8, [x8, _md_delayed_delete@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_INIT_WORK
	mov	x0, x20
	bl	_kobject_get
Lloh15:
	adrp	x8, _md_misc_wq@GOTPAGE
Lloh16:
	ldr	x8, [x8, _md_misc_wq@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_queue_work
	ldur	x8, [x29, #-24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BDEVNAME_SIZE,4,2              ; @BDEVNAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"md: unbind<%s>\n"

l_.str.1:                               ; @.str.1
	.asciz	"block"

	.comm	_md_delayed_delete,4,2          ; @md_delayed_delete
	.comm	_md_misc_wq,4,2                 ; @md_misc_wq
	.no_dead_strip	_unbind_rdev_from_array
.subsections_via_symbols
