	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid1_spare_active
_raid1_spare_active:                    ## @raid1_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	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	leaq	4(%r13), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	xorl	%r14d, %r14d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_17:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	subl	%ebx, (%rax)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	%r13, %rdi
	callq	_print_conf
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movslq	(%r13), %rax
	cmpq	%rax, %r14
	jge	LBB0_17
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rcx
	movq	(%rcx,%r14,8), %r12
	cltq
	addq	%r14, %rax
	movq	(%rcx,%rax,8), %r15
	testq	%r15, %r15
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_Candidate@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r15), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	movq	_MaxSector@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%r12, %r12
	je	LBB0_16
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rax
	movq	_MaxSector@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r12), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movl	8(%r12), %edi
	callq	_sysfs_notify_dirent_safe
	jmp	LBB0_16
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%r12, %r12
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r12), %rbx
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	cmpl	$1, %eax
	adcl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	movl	8(%r12), %edi
	callq	_sysfs_notify_dirent_safe
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_Candidate,4,2                  ## @Candidate
	.comm	_MaxSector,8,3                  ## @MaxSector
	.comm	_Faulty,4,2                     ## @Faulty
	.comm	_In_sync,4,2                    ## @In_sync
	.no_dead_strip	_raid1_spare_active
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid1_spare_active
_raid1_spare_active:                    ; @raid1_spare_active
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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]
	add	x0, x19, #4
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_spin_lock_irqsave
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.1:
	mov	x24, #0
	mov	w22, #0
Lloh0:
	adrp	x25, _MaxSector@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MaxSector@GOTPAGEOFF]
Lloh2:
	adrp	x26, _Faulty@GOTPAGE
Lloh3:
	ldr	x26, [x26, _Faulty@GOTPAGEOFF]
Lloh4:
	adrp	x28, _Candidate@GOTPAGE
Lloh5:
	ldr	x28, [x28, _Candidate@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	mov	w22, #0
LBB0_3:
	ldr	w8, [x20]
	sub	w8, w8, w22
	str	w8, [x20]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_print_conf
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w22, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19]
	cmp	x24, x8
	b.ge	LBB0_3
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x27, [x9, x24, lsl #3]
	add	x8, x24, w8, sxtw
	ldr	x21, [x9, x8, lsl #3]
	cbz	x21, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x28]
	add	x23, x21, #12
	mov	x1, x23
	bl	_test_bit
	cbnz	w0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x26]
	mov	x1, x23
	bl	_test_bit
	cbnz	w0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh6:
	adrp	x8, _In_sync@GOTPAGE
Lloh7:
	ldr	x8, [x8, _In_sync@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_and_set_bit
	cbz	w0, LBB0_16
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x27, LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x27]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x26]
	add	x23, x27, #12
	mov	x1, x23
	bl	_test_bit
	cbnz	w0, LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh9:
	adrp	x8, _In_sync@GOTPAGE
Lloh10:
	ldr	x8, [x8, _In_sync@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_and_set_bit
	cbnz	w0, LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w22, #1
	ldr	w0, [x27, #8]
	bl	_sysfs_notify_dirent_safe
	b	LBB0_5
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x27, LBB0_4
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh12:
	adrp	x8, _In_sync@GOTPAGE
Lloh13:
	ldr	x8, [x8, _In_sync@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	add	x23, x27, #12
	mov	x1, x23
	bl	_test_and_clear_bit
	cmp	w0, #0
	cinc	w22, w22, eq
	ldr	w0, [x26]
	mov	x1, x23
	bl	_set_bit
	ldr	w0, [x27, #8]
	bl	_sysfs_notify_dirent_safe
	b	LBB0_12
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_Candidate,4,2                  ; @Candidate
	.comm	_MaxSector,8,3                  ; @MaxSector
	.comm	_Faulty,4,2                     ; @Faulty
	.comm	_In_sync,4,2                    ; @In_sync
	.no_dead_strip	_raid1_spare_active
.subsections_via_symbols
