	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid5_spare_active
_raid5_spare_active:                    ## @raid5_spare_active
	.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	8(%rdi), %r13
	cmpl	$0, (%r13)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movq	_MaxSector@GOTPCREL(%rip), %r12
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r14,%rbx), %rax
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %rax
	movl	(%rax), %edi
	callq	_sysfs_notify_dirent_safe
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movslq	(%r13), %rax
	addq	$16, %rbx
	cmpq	%rax, %r15
	jge	LBB0_20
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %r14
	movq	8(%r14,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rsi), %rax
	cmpq	(%r12), %rax
	jne	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$12, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r14,%rbx), %rsi
	addq	$12, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rsi), %rax
	cmpq	(%r12), %rax
	jne	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$12, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14,%rbx), %rsi
	addq	$12, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	(%r14,%rbx), %rax
	jmp	LBB0_18
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$12, %rsi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	jne	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	-44(%rbp)                       ## 4-byte Folded Spill
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$12, %rsi
	callq	_set_bit
	movq	(%r14,%rbx), %rax
	movl	8(%rax), %edi
	callq	_sysfs_notify_dirent_safe
	jmp	LBB0_12
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_20:
	leaq	4(%r13), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	%r13, %rdi
	callq	_raid5_calc_degraded
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r13, %rdi
	callq	_print_raid5_conf
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MaxSector,8,3                  ## @MaxSector
	.comm	_Faulty,4,2                     ## @Faulty
	.comm	_In_sync,4,2                    ## @In_sync
	.no_dead_strip	_raid5_spare_active
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid5_spare_active
_raid5_spare_active:                    ; @raid5_spare_active
	.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	x20, x0
	ldr	x19, [x0, #8]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.1:
	mov	x22, #0
	mov	x23, #0
	mov	w21, #0
Lloh0:
	adrp	x24, _MaxSector@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MaxSector@GOTPAGEOFF]
Lloh2:
	adrp	x25, _Faulty@GOTPAGE
Lloh3:
	ldr	x25, [x25, _Faulty@GOTPAGEOFF]
Lloh4:
	adrp	x26, _In_sync@GOTPAGE
Lloh5:
	ldr	x26, [x26, _In_sync@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x28, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x8, #8]!
	bl	_sysfs_notify_dirent_safe
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19]
	add	x22, x22, #16
	cmp	x23, x8
	b.ge	LBB0_20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x19, #8]
	add	x28, x27, x22
	ldr	x8, [x28, #8]
	cbz	x8, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x8]
	ldr	x10, [x24]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25]
	add	x1, x8, #12
	bl	_test_bit
	cbnz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x26]
	ldr	x8, [x28, #8]
	add	x1, x8, #12
	bl	_test_and_set_bit
	cbz	w0, LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x27, x22]
	cbz	x8, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x8]
	ldr	x10, [x24]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25]
	add	x1, x8, #12
	bl	_test_bit
	cbnz	w0, LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x26]
	ldr	x8, [x27, x22]
	add	x1, x8, #12
	bl	_test_and_set_bit
	cbnz	w0, LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w21, w21, #1
	ldr	x8, [x27, x22]
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x27, x22]
	cbz	x8, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x26]
	add	x1, x8, #12
	bl	_test_and_clear_bit
	cbnz	w0, LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w21, w21, #1
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x27, x22]
	cbz	x8, LBB0_2
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25]
	add	x1, x8, #12
	bl	_set_bit
	ldr	x8, [x27, x22]
	ldr	w0, [x8, #8]
	bl	_sysfs_notify_dirent_safe
	b	LBB0_2
LBB0_19:
	mov	w21, #0
LBB0_20:
	add	x22, x19, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_raid5_calc_degraded
	str	w0, [x20]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_print_raid5_conf
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MaxSector,8,3                  ; @MaxSector
	.comm	_Faulty,4,2                     ; @Faulty
	.comm	_In_sync,4,2                    ; @In_sync
	.no_dead_strip	_raid5_spare_active
.subsections_via_symbols
