	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid10_remove_disk
_raid10_remove_disk:                    ## @raid10_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	$40, %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, %r13
	movq	8(%rdi), %rdi
	movslq	(%rsi), %r15
	movq	8(%rdi), %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_print_conf
	leaq	(%r15,%r15,2), %r14
	leaq	(%r12,%r14,8), %rcx
	addq	$16, %rcx
	movq	%rcx, %rdx
	cmpq	%rbx, 16(%r12,%r14,8)
	je	LBB0_3
## %bb.1:
	movq	%r13, %rax
	xorl	%r13d, %r13d
	cmpq	%rbx, 8(%r12,%r14,8)
	jne	LBB0_19
## %bb.2:
	leaq	(%r12,%r14,8), %rdx
	addq	$8, %rdx
	movq	%rax, %r13
LBB0_3:
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	8(%rbx), %rdi
	movq	%rdi, -72(%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_18:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_print_conf
LBB0_19:
	movl	%r13d, %eax
	addq	$40, %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	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_12
## %bb.7:
	movq	(%r13), %rax
	cmpq	(%r12,%r14,8), %rax
	je	LBB0_12
## %bb.8:
	movq	8(%r12,%r14,8), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	cmpq	%rbx, %rax
	jne	LBB0_12
LBB0_10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rax), %r15d
	jge	LBB0_12
## %bb.11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$-1, %esi
	callq	_enough
	testq	%rax, %rax
	jne	LBB0_5
LBB0_12:
	movq	%r13, %r15
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movq	_RemoveSynchronized@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_13
LBB0_15:
	movq	8(%r12,%r14,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.16:
	leaq	(%r12,%r14,8), %rbx
	addq	$8, %rbx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rsi, (%rax)
	movq	_Replacement@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %rsi
	callq	_clear_bit
	xorl	%eax, %eax
	callq	_smp_mb
	movq	$0, (%rbx)
LBB0_17:
	movq	_WantReplacement@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_clear_bit
	movq	%r15, %rdi
	callq	_md_integrity_register
	movl	%eax, %r13d
	jmp	LBB0_18
LBB0_13:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_synchronize_rcu
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	jmp	LBB0_18
	.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	_raid10_remove_disk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid10_remove_disk
_raid10_remove_disk:                    ; @raid10_remove_disk
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldrsw	x24, [x1]
	ldr	x25, [x19, #8]
	mov	x0, x19
	bl	_print_conf
	mov	w8, #24
	madd	x26, x24, x8, x25
	ldr	x8, [x26, #16]!
	mov	x27, x26
	cmp	x8, x21
	b.eq	LBB0_3
; %bb.1:
	mov	w8, #24
	madd	x27, x24, x8, x25
	ldr	x8, [x27, #8]!
	cmp	x8, x21
	b.eq	LBB0_3
; %bb.2:
	mov	w20, #0
	b	LBB0_7
LBB0_3:
Lloh0:
	adrp	x8, _In_sync@GOTPAGE
Lloh1:
	ldr	x8, [x8, _In_sync@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x22, x21, #4
	mov	x1, x22
	bl	_test_bit
	cbnz	x0, LBB0_5
; %bb.4:
	add	x23, x21, #8
	mov	x0, x23
	bl	_atomic_read
	cbz	x0, LBB0_8
LBB0_5:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x19
	bl	_print_conf
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh6:
	adrp	x8, _Faulty@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Faulty@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbnz	x0, LBB0_13
; %bb.9:
	ldr	x8, [x20]
	mov	w9, #24
	mul	x9, x24, x9
	ldr	x9, [x25, x9]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.10:
	mov	w8, #24
	madd	x8, x24, x8, x25
	ldr	x8, [x8, #8]
	cmp	x8, #0
	ccmp	x8, x21, #4, ne
	b.ne	LBB0_13
; %bb.11:
	ldr	w8, [x19]
	cmp	w24, w8
	b.ge	LBB0_13
; %bb.12:
	mov	x0, x19
	mov	w1, #-1
	bl	_enough
	cbnz	x0, LBB0_5
LBB0_13:
	str	xzr, [x27]
Lloh9:
	adrp	x8, _RemoveSynchronized@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RemoveSynchronized@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_17
LBB0_14:
	mov	w8, #24
	madd	x21, x24, x8, x25
	ldr	x8, [x21, #8]!
	cbz	x8, LBB0_16
; %bb.15:
	str	x8, [x26]
Lloh12:
	adrp	x9, _Replacement@GOTPAGE
Lloh13:
	ldr	x9, [x9, _Replacement@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x9]
	add	x1, x8, #4
	bl	_clear_bit
	bl	_smp_mb
	str	xzr, [x21]
LBB0_16:
Lloh15:
	adrp	x8, _WantReplacement@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WantReplacement@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_clear_bit
	mov	x0, x20
	bl	_md_integrity_register
	mov	x20, x0
	b	LBB0_6
LBB0_17:
	bl	_synchronize_rcu
	mov	x0, x23
	bl	_atomic_read
	cbz	x0, LBB0_14
; %bb.18:
Lloh18:
	adrp	x8, _EBUSY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
	str	x21, [x27]
	b	LBB0_6
	.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
	.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	_raid10_remove_disk
.subsections_via_symbols
