	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raid5_calc_degraded            ## -- Begin function raid5_calc_degraded
	.p2align	4, 0x90
_raid5_calc_degraded:                   ## @raid5_calc_degraded
	.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, %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_rcu_read_lock
	cmpl	$0, (%r15)
	jle	LBB0_10
## %bb.1:
	xorl	%ebx, %ebx
	movq	_Faulty@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	4(%rax,%rbx,8), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	movl	(%r13), %edi
	movq	%rax, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,8), %edi
	callq	_rcu_dereference
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15), %eax
	xorl	%ecx, %ecx
	cmpl	(%r15), %eax
	setge	%cl
	addl	%ecx, %r14d
	jmp	LBB0_9
LBB0_10:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movl	4(%r15), %eax
	cmpl	(%r15), %eax
	je	LBB0_22
## %bb.11:
	xorl	%eax, %eax
	callq	_rcu_read_lock
	cmpl	$0, 4(%r15)
	jle	LBB0_21
## %bb.12:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%r12d
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	movslq	4(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_21
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	4(%rax,%rbx,8), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, %r13
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,8), %edi
	callq	_rcu_dereference
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	4(%r15), %eax
	xorl	%ecx, %ecx
	cmpl	(%r15), %eax
	setle	%cl
	addl	%ecx, %r12d
	jmp	LBB0_20
LBB0_21:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	cmpl	%r14d, %r12d
	cmovgl	%r12d, %r14d
LBB0_22:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Faulty,4,2                     ## @Faulty
	.comm	_In_sync,4,2                    ## @In_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raid5_calc_degraded            ; -- Begin function raid5_calc_degraded
	.p2align	2
_raid5_calc_degraded:                   ; @raid5_calc_degraded
	.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	x20, x0
	bl	_rcu_read_lock
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x22, #0
	mov	x23, #0
	mov	w19, #0
Lloh0:
	adrp	x24, _Faulty@GOTPAGE
Lloh1:
	ldr	x24, [x24, _Faulty@GOTPAGEOFF]
Lloh2:
	adrp	x25, _In_sync@GOTPAGE
Lloh3:
	ldr	x25, [x25, _In_sync@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w19, w19, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x20]
	add	x22, x22, #8
	cmp	x23, x8
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x22
	ldr	w0, [x8, #4]
	bl	_rcu_dereference
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	ldr	w0, [x24]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x22]
	bl	_rcu_dereference
	mov	x21, x0
	cbz	x0, LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w9, w8, [x20]
	cmp	w8, w9
	cinc	w19, w19, ge
	b	LBB0_3
LBB0_10:
	mov	w19, #0
LBB0_11:
	bl	_rcu_read_unlock
	ldp	w9, w8, [x20]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x19
	b	LBB0_25
LBB0_13:
	bl	_rcu_read_lock
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.14:
	mov	x23, #0
	mov	x24, #0
	mov	w22, #0
Lloh4:
	adrp	x25, _Faulty@GOTPAGE
Lloh5:
	ldr	x25, [x25, _Faulty@GOTPAGEOFF]
Lloh6:
	adrp	x26, _In_sync@GOTPAGE
Lloh7:
	ldr	x26, [x26, _In_sync@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	add	w22, w22, #1
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x20, #4]
	add	x23, x23, #8
	cmp	x24, x8
	b.ge	LBB0_24
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x23
	ldr	w0, [x8, #4]
	bl	_rcu_dereference
	cbz	x0, LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x21, x0
	ldr	w0, [x25]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x23]
	bl	_rcu_dereference
	mov	x21, x0
	cbz	x0, LBB0_15
LBB0_20:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w0, [x25]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_15
; %bb.21:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w0, [x26]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_16
; %bb.22:                               ;   in Loop: Header=BB0_17 Depth=1
	ldp	w9, w8, [x20]
	cmp	w8, w9
	cinc	w22, w22, le
	b	LBB0_16
LBB0_23:
	mov	w22, #0
LBB0_24:
	bl	_rcu_read_unlock
	cmp	w22, w19
	csel	w0, w22, w19, gt
LBB0_25:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_Faulty,4,2                     ; @Faulty
	.comm	_In_sync,4,2                    ; @In_sync
.subsections_via_symbols
