	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_bound_rdev
_add_bound_rdev:                        ## @add_bound_rdev
	.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
	movq	8(%rdi), %rbx
	movq	_Journal@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r14), %rsi
	callq	_test_bit
	movl	%eax, %r15d
	movq	32(%rbx), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	testl	%r15d, %r15d
	je	LBB0_7
LBB0_2:
	movq	_super_types@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*(%rax,%rcx,8)
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_mddev_suspend
	movq	32(%rbx), %rax
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*(%rax)
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_mddev_resume
	testl	%r15d, %r15d
	je	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	callq	_md_kick_rdev_from_array
	jmp	LBB0_10
LBB0_3:
	movq	32(%rbx), %rax
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*(%rax)
	movl	%eax, %r15d
	testl	%r15d, %r15d
	jne	LBB0_6
LBB0_7:
	movl	(%r14), %edi
	callq	_sysfs_notify_dirent_safe
	movq	_MD_SB_CHANGE_DEVS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%rbx), %rsi
	callq	_set_bit
	cmpq	$0, 16(%rbx)
	je	LBB0_9
## %bb.8:
	movq	_MD_RECOVERY_RECOVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %rsi
	callq	_set_bit
LBB0_9:
	movq	_MD_RECOVERY_NEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %rsi
	callq	_set_bit
	movq	%rbx, %rdi
	callq	_md_new_event
	movl	8(%rbx), %edi
	callq	_md_wakeup_thread
	xorl	%r15d, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Journal,4,2                    ## @Journal
	.comm	_super_types,8,3                ## @super_types
	.comm	_MD_SB_CHANGE_DEVS,4,2          ## @MD_SB_CHANGE_DEVS
	.comm	_MD_RECOVERY_RECOVER,4,2        ## @MD_RECOVERY_RECOVER
	.comm	_MD_RECOVERY_NEEDED,4,2         ## @MD_RECOVERY_NEEDED
	.no_dead_strip	_add_bound_rdev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_bound_rdev
_add_bound_rdev:                        ; @add_bound_rdev
	.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	x20, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _Journal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Journal@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #4
	bl	_test_bit
	ldr	x8, [x19, #32]
	ldr	w8, [x8, #8]
	cmp	w8, #0
	ccmp	w0, #0, #0, ne
	b.eq	LBB0_5
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _super_types@GOTPAGE
Lloh4:
	ldr	x8, [x8, _super_types@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	cbz	w21, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_mddev_suspend
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	x21, x0
	mov	x0, x19
	bl	_mddev_resume
	cbz	w21, LBB0_5
LBB0_3:
	mov	x0, x20
	bl	_md_kick_rdev_from_array
	b	LBB0_8
LBB0_4:
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	x21, x0
	cbnz	w21, LBB0_3
LBB0_5:
	ldr	w0, [x20]
	bl	_sysfs_notify_dirent_safe
Lloh6:
	adrp	x8, _MD_SB_CHANGE_DEVS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MD_SB_CHANGE_DEVS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_set_bit
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.6:
Lloh9:
	adrp	x8, _MD_RECOVERY_RECOVER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MD_RECOVERY_RECOVER@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, x19, #12
	bl	_set_bit
LBB0_7:
Lloh12:
	adrp	x8, _MD_RECOVERY_NEEDED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MD_RECOVERY_NEEDED@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	add	x1, x19, #12
	bl	_set_bit
	mov	x0, x19
	bl	_md_new_event
	ldr	w0, [x19, #8]
	bl	_md_wakeup_thread
	mov	w21, #0
LBB0_8:
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_Journal,4,2                    ; @Journal
	.comm	_super_types,8,3                ; @super_types
	.comm	_MD_SB_CHANGE_DEVS,4,2          ; @MD_SB_CHANGE_DEVS
	.comm	_MD_RECOVERY_RECOVER,4,2        ; @MD_RECOVERY_RECOVER
	.comm	_MD_RECOVERY_NEEDED,4,2         ; @MD_RECOVERY_NEEDED
	.no_dead_strip	_add_bound_rdev
.subsections_via_symbols
