	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid5_finish_reshape
_raid5_finish_reshape:                  ## @raid5_finish_reshape
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	40(%rdi), %r12
	movq	_MD_RECOVERY_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	32(%r14), %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	cmpq	$0, (%r14)
	jg	LBB0_9
## %bb.2:
	leaq	24(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movq	%r12, %rdi
	callq	_raid5_calc_degraded
	movl	%eax, 28(%r14)
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	cmpq	$0, (%r14)
	js	LBB0_3
LBB0_9:
	movl	8(%r12), %eax
	movl	%eax, 24(%r14)
	movl	4(%r12), %eax
	movl	%eax, 20(%r14)
	movq	_MaxSector@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movslq	(%r12), %r15
	movq	%r15, %rbx
	shlq	$4, %rbx
	movq	_In_sync@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movslq	(%r12), %rax
	subq	(%r14), %rax
	addq	$16, %rbx
	cmpq	%r15, %rax
	jle	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movq	8(%rax,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %edi
	callq	_clear_bit
	movq	16(%r12), %rax
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rax,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %edi
	callq	_clear_bit
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MD_RECOVERY_INTR,4,2           ## @MD_RECOVERY_INTR
	.comm	_In_sync,4,2                    ## @In_sync
	.comm	_MaxSector,4,2                  ## @MaxSector
	.no_dead_strip	_raid5_finish_reshape
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid5_finish_reshape
_raid5_finish_reshape:                  ; @raid5_finish_reshape
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0, #40]
Lloh0:
	adrp	x8, _MD_RECOVERY_INTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MD_RECOVERY_INTR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #32
	bl	_test_bit
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, #0
	b.gt	LBB0_3
; %bb.2:
	add	x21, x20, #24
	mov	x0, x21
	bl	_spin_lock_irq
	mov	x0, x20
	bl	_raid5_calc_degraded
	str	w0, [x19, #28]
	mov	x0, x21
	bl	_spin_unlock_irq
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_5
LBB0_3:
	ldur	d0, [x20, #4]
	stur	d0, [x19, #20]
Lloh3:
	adrp	x8, _MaxSector@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MaxSector@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	stp	xzr, xzr, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldrsw	x21, [x20]
	lsl	x22, x21, #4
Lloh6:
	adrp	x23, _In_sync@GOTPAGE
Lloh7:
	ldr	x23, [x23, _In_sync@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	ldr	x9, [x19]
	add	x22, x22, #16
	sub	x8, x8, x9
	cmp	x8, x21
	b.le	LBB0_3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	add	x9, x8, x22
	ldr	x1, [x9, #8]
	cbz	x1, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x23]
	bl	_clear_bit
	ldr	x8, [x20, #16]
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x1, [x8, x22]
	cbz	x1, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x23]
	bl	_clear_bit
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MD_RECOVERY_INTR,4,2           ; @MD_RECOVERY_INTR
	.comm	_In_sync,4,2                    ; @In_sync
	.comm	_MaxSector,4,2                  ; @MaxSector
	.no_dead_strip	_raid5_finish_reshape
.subsections_via_symbols
