	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid1_remove_disk
_raid1_remove_disk:                     ## @raid1_remove_disk
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r12
	movslq	(%rsi), %r15
	movq	16(%r12), %r14
	cmpq	%rsi, (%r14,%r15,8)
	je	LBB0_2
## %bb.1:
	movslq	(%r12), %rax
	leaq	(%r14,%rax,8), %r14
LBB0_2:
	movq	%r12, %rdi
	callq	_print_conf
	xorl	%r13d, %r13d
	cmpq	%rbx, (%r14,%r15,8)
	jne	LBB0_16
## %bb.3:
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %r13
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	8(%rbx), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_16:
	movq	%r12, %rdi
	callq	_print_conf
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpq	8(%r12), %rax
	je	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
	cmpl	(%r12), %eax
	jl	LBB0_5
LBB0_9:
	movq	$0, (%r14,%r15,8)
	movq	_RemoveSynchronized@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_10
LBB0_12:
	movq	16(%r12), %rax
	movslq	(%r12), %rcx
	addq	%r15, %rcx
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.13:
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_freeze_array
	leaq	8(%rbx), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_14
## %bb.17:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movq	%r12, %rdi
	callq	_unfreeze_array
	jmp	LBB0_16
LBB0_10:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_synchronize_rcu
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movq	%rbx, (%r14,%r15,8)
	jmp	LBB0_16
LBB0_14:
	movq	_Replacement@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %rsi
	callq	_clear_bit
	movq	%rbx, (%r14,%r15,8)
	movq	16(%r12), %rax
	movslq	(%r12), %rcx
	addq	%r15, %rcx
	movq	$0, (%rax,%rcx,8)
	movq	%r12, %rdi
	callq	_unfreeze_array
LBB0_15:
	movq	_WantReplacement@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_clear_bit
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_md_integrity_register
	movl	%eax, %r13d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_In_sync,4,2                    ## @In_sync
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_Faulty,4,2                     ## @Faulty
	.comm	_RemoveSynchronized,4,2         ## @RemoveSynchronized
	.comm	_Replacement,4,2                ## @Replacement
	.comm	_WantReplacement,4,2            ## @WantReplacement
	.no_dead_strip	_raid1_remove_disk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid1_remove_disk
_raid1_remove_disk:                     ; @raid1_remove_disk
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x20, x0
	ldr	x19, [x0, #16]
	ldrsw	x24, [x1]
	ldr	x25, [x19, #16]
	ldr	x8, [x25, x24, lsl #3]
	cmp	x8, x1
	b.eq	LBB0_2
; %bb.1:
	ldrsw	x8, [x19]
	add	x25, x25, x8, lsl #3
LBB0_2:
	mov	x0, x19
	bl	_print_conf
	ldr	x8, [x25, x24, lsl #3]
	cmp	x8, x22
	b.eq	LBB0_4
; %bb.3:
	mov	w20, #0
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _In_sync@GOTPAGE
Lloh1:
	ldr	x8, [x8, _In_sync@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x21, x22, #4
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_6
; %bb.5:
	add	x23, x22, #8
	mov	x0, x23
	bl	_atomic_read
	cbz	x0, LBB0_8
LBB0_6:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x19
	bl	_print_conf
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh6:
	adrp	x8, _Faulty@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Faulty@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_11
; %bb.9:
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.10:
	ldr	w8, [x20, #8]
	ldr	w9, [x19]
	cmp	w8, w9
	b.lt	LBB0_6
LBB0_11:
	str	xzr, [x25, x24, lsl #3]
Lloh9:
	adrp	x8, _RemoveSynchronized@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RemoveSynchronized@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_15
LBB0_12:
	ldr	x8, [x19, #16]
	ldr	w9, [x19]
	add	w9, w9, w24
	ldr	x22, [x8, w9, sxtw #3]
	cbz	x22, LBB0_18
; %bb.13:
	mov	x0, x19
	mov	w1, #0
	bl	_freeze_array
	add	x0, x22, #8
	bl	_atomic_read
	cbz	x0, LBB0_17
; %bb.14:
Lloh12:
	adrp	x8, _EBUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
	mov	x0, x19
	bl	_unfreeze_array
	b	LBB0_7
LBB0_15:
	bl	_synchronize_rcu
	mov	x0, x23
	bl	_atomic_read
	cbz	x0, LBB0_12
; %bb.16:
Lloh15:
	adrp	x8, _EBUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w20, w8
	str	x22, [x25, x24, lsl #3]
	b	LBB0_7
LBB0_17:
Lloh18:
	adrp	x8, _Replacement@GOTPAGE
Lloh19:
	ldr	x8, [x8, _Replacement@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	add	x1, x22, #4
	bl	_clear_bit
	str	x22, [x25, x24, lsl #3]
	ldr	x8, [x19, #16]
	ldr	w9, [x19]
	add	w9, w9, w24
	str	xzr, [x8, w9, sxtw #3]
	mov	x0, x19
	bl	_unfreeze_array
LBB0_18:
Lloh21:
	adrp	x8, _WantReplacement@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WantReplacement@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
	mov	x0, x20
	bl	_md_integrity_register
	mov	x20, x0
	b	LBB0_7
	.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
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_In_sync,4,2                    ; @In_sync
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_Faulty,4,2                     ; @Faulty
	.comm	_RemoveSynchronized,4,2         ; @RemoveSynchronized
	.comm	_Replacement,4,2                ; @Replacement
	.comm	_WantReplacement,4,2            ; @WantReplacement
	.no_dead_strip	_raid1_remove_disk
.subsections_via_symbols
