	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid5_remove_disk
_raid5_remove_disk:                     ## @raid5_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	8(%rdi), %r15
	movslq	(%rsi), %r14
	movq	48(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_print_raid5_conf
	movq	_Journal@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r13), %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	cmpq	$0, 40(%r15)
	je	LBB0_7
## %bb.2:
	leaq	32(%r15), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	leaq	28(%r15), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	24(%r15), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_32
LBB0_7:
	movq	%r14, %rax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	shlq	$4, %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %rcx
	movq	%rcx, %rdx
	cmpq	%r13, (%rax,%r14)
	je	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	cmpq	%r13, 8(%rax,%r14)
	jne	LBB0_32
## %bb.9:
	leaq	(%rax,%r14), %rdx
	addq	$8, %rdx
LBB0_10:
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%r15), %eax
	jl	LBB0_13
## %bb.11:
	movq	8(%r15), %rax
	movq	_MaxSector@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_clear_bit
LBB0_13:
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	leaq	8(%r13), %rbx
	movq	%rbx, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_16
LBB0_15:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_31:
	movq	%r15, %rdi
	callq	_print_raid5_conf
LBB0_32:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_22
## %bb.17:
	movq	(%r12), %rax
	cmpq	16(%r15), %rax
	je	LBB0_22
## %bb.18:
	movq	%r15, %rdi
	callq	_has_failed
	testl	%eax, %eax
	jne	LBB0_22
## %bb.19:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax,%r14), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	cmpq	%r13, %rax
	jne	LBB0_22
LBB0_21:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%r15), %eax
	jl	LBB0_15
LBB0_22:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	$0, (%rbx)
	movq	_RemoveSynchronized@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_23
LBB0_26:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_log_modify
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
	jmp	LBB0_27
LBB0_6:
	movq	%r15, %rdi
	callq	_log_exit
	xorl	%ebx, %ebx
	jmp	LBB0_32
LBB0_23:
	xorl	%eax, %eax
	callq	_synchronize_rcu
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_26
## %bb.24:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r13, (%rbx)
	testl	%r12d, %r12d
	je	LBB0_26
## %bb.25:
	negl	%r12d
LBB0_27:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax,%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_30
## %bb.28:
	addq	%rax, %r14
	addq	$8, %r14
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rsi, (%rbx)
	movq	_Replacement@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %rsi
	callq	_clear_bit
	xorl	%eax, %eax
	callq	_smp_mb
	movq	$0, (%r14)
	testl	%r12d, %r12d
	jne	LBB0_30
## %bb.29:
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_log_modify
	movl	%eax, %r12d
LBB0_30:
	movq	_WantReplacement@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_clear_bit
	movl	%r12d, %ebx
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_Journal,4,2                    ## @Journal
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_MaxSector,8,3                  ## @MaxSector
	.comm	_In_sync,4,2                    ## @In_sync
	.comm	_Faulty,4,2                     ## @Faulty
	.comm	_RemoveSynchronized,4,2         ## @RemoveSynchronized
	.comm	_Replacement,4,2                ## @Replacement
	.comm	_WantReplacement,4,2            ## @WantReplacement
	.no_dead_strip	_raid5_remove_disk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid5_remove_disk
_raid5_remove_disk:                     ; @raid5_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	x22, x0
	ldr	x19, [x0, #8]
	mov	x20, x1
	ldrsw	x25, [x20], #4
	ldr	x26, [x19, #48]
	mov	x0, x19
	bl	_print_raid5_conf
Lloh0:
	adrp	x8, _Journal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Journal@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_6
; %bb.2:
	add	x0, x19, #32
	bl	_atomic_read
	cbnz	x0, LBB0_5
; %bb.3:
	add	x0, x19, #28
	bl	_atomic_read
	cbnz	x0, LBB0_5
; %bb.4:
	add	x0, x19, #24
	bl	_atomic_read
	cbz	x0, LBB0_24
LBB0_5:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_16
LBB0_6:
	add	x24, x26, x25, lsl #4
	ldr	x8, [x24]
	mov	x27, x24
	cmp	x8, x21
	b.eq	LBB0_9
; %bb.7:
	mov	x27, x24
	ldr	x8, [x27, #8]!
	cmp	x8, x21
	b.eq	LBB0_9
; %bb.8:
	mov	w21, #0
	b	LBB0_16
LBB0_9:
	ldr	w8, [x19]
Lloh6:
	adrp	x23, _In_sync@GOTPAGE
Lloh7:
	ldr	x23, [x23, _In_sync@GOTPAGEOFF]
	cmp	w25, w8
	b.lt	LBB0_12
; %bb.10:
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _MaxSector@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MaxSector@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	ldr	w0, [x23]
	mov	x1, x20
	bl	_clear_bit
LBB0_12:
	ldr	w0, [x23]
	mov	x1, x20
	bl	_test_bit
	cbnz	x0, LBB0_14
; %bb.13:
	add	x23, x21, #8
	mov	x0, x23
	bl	_atomic_read
	cbz	x0, LBB0_17
LBB0_14:
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_15:
	mov	x0, x19
	bl	_print_raid5_conf
LBB0_16:
	mov	x0, x21
	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_17:
Lloh14:
	adrp	x8, _Faulty@GOTPAGE
Lloh15:
	ldr	x8, [x8, _Faulty@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbnz	x0, LBB0_22
; %bb.18:
	ldr	x8, [x22]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.19:
	mov	x0, x19
	bl	_has_failed
	cbnz	w0, LBB0_22
; %bb.20:
	add	x8, x26, x25, lsl #4
	ldr	x8, [x8, #8]
	cmp	x8, #0
	ccmp	x8, x21, #4, ne
	b.ne	LBB0_22
; %bb.21:
	ldr	w8, [x19]
	cmp	w25, w8
	b.lt	LBB0_14
LBB0_22:
	str	xzr, [x27]
Lloh17:
	adrp	x8, _RemoveSynchronized@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RemoveSynchronized@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_25
LBB0_23:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_log_modify
	mov	x21, x0
	cbnz	w0, LBB0_15
	b	LBB0_28
LBB0_24:
	mov	x0, x19
	bl	_log_exit
	mov	w21, #0
	b	LBB0_16
LBB0_25:
	bl	_synchronize_rcu
	mov	x0, x23
	bl	_atomic_read
	cbz	x0, LBB0_23
; %bb.26:
Lloh20:
	adrp	x8, _EBUSY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	x21, [x27]
	cbz	w8, LBB0_23
; %bb.27:
	neg	w21, w8
LBB0_28:
	add	x22, x26, x25, lsl #4
	ldr	x8, [x22, #8]!
	cbz	x8, LBB0_31
; %bb.29:
	str	x8, [x24]
Lloh23:
	adrp	x9, _Replacement@GOTPAGE
Lloh24:
	ldr	x9, [x9, _Replacement@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x9]
	add	x1, x8, #4
	bl	_clear_bit
	bl	_smp_mb
	str	xzr, [x22]
	cbnz	w21, LBB0_31
; %bb.30:
	ldr	x1, [x24]
	mov	x0, x19
	mov	w2, #1
	bl	_log_modify
	mov	x21, x0
LBB0_31:
Lloh26:
	adrp	x8, _WantReplacement@GOTPAGE
Lloh27:
	ldr	x8, [x8, _WantReplacement@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_Journal,4,2                    ; @Journal
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_MaxSector,8,3                  ; @MaxSector
	.comm	_In_sync,4,2                    ; @In_sync
	.comm	_Faulty,4,2                     ; @Faulty
	.comm	_RemoveSynchronized,4,2         ; @RemoveSynchronized
	.comm	_Replacement,4,2                ; @Replacement
	.comm	_WantReplacement,4,2            ; @WantReplacement
	.no_dead_strip	_raid5_remove_disk
.subsections_via_symbols
