	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_stripe_clean_event
_handle_stripe_clean_event:             ## @handle_stripe_clean_event
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	je	LBB0_18
## %bb.1:
	leaq	16(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movslq	%edx, %r14
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_R5_Discard@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	$1, %ecx
	cmovnel	%ecx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	je	LBB0_17
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	decq	%r14
	movq	24(%rbx), %r15
	leaq	(%r14,%r14,2), %r13
	cmpq	$0, 16(%r15,%r13,8)
	je	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_R5_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	(%r15,%r13,8), %r12
	addq	$8, %r12
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_R5_UPTODATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_R5_Discard@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_15
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_pr_debug
	movq	_R5_Discard@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_R5_UPTODATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_clear_bit
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%r13,8), %rax
	addq	$16, %rax
	movq	(%rax), %rbx
	movq	$0, (%rax)
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%r13,8), %r15
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%r12, %rbx
	testq	%r12, %r12
	je	LBB0_14
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rsi
	movq	_STRIPE_SECTORS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rsi, %rax
	cmpq	%rax, (%rbx)
	jge	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%rbx, %rdi
	callq	_r5_next_bio
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_raid5_dec_bi_active_stripes
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_md_write_end
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, (%rcx)
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	4(%rax), %r13d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	32(%rbx), %r12d
	movq	_STRIPE_SECTORS@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_STRIPE_DEGRADED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movl	%r13d, %edi
	movl	%r12d, %esi
	movq	%r15, %rdx
	xorl	%r8d, %r8d
	callq	_bitmap_endwrite
	jmp	LBB0_16
LBB0_17:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_21
LBB0_18:
	movq	_R5_Discard@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	(%rbx), %rax
	movq	24(%rbx), %rcx
	leaq	(%rax,%rax,2), %rax
	leaq	(%rcx,%rax,8), %rsi
	addq	$8, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	movl	(%r15), %edi
	movq	(%rbx), %rax
	movq	24(%rbx), %rcx
	leaq	(%rax,%rax,2), %rax
	leaq	(%rcx,%rax,8), %rsi
	addq	$8, %rsi
	callq	_clear_bit
	movq	_R5_UPTODATE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	(%rbx), %rax
	movq	24(%rbx), %rcx
	leaq	(%rax,%rax,2), %rax
	leaq	(%rcx,%rax,8), %rsi
	addq	$8, %rsi
	callq	_clear_bit
	movl	(%r15), %edi
	movq	8(%rbx), %rax
	movq	24(%rbx), %rcx
	leaq	(%rax,%rax,2), %rax
	leaq	(%rcx,%rax,8), %rsi
	addq	$8, %rsi
	callq	_clear_bit
	movl	(%r14), %edi
	movq	8(%rbx), %rax
	movq	24(%rbx), %rcx
	leaq	(%rax,%rax,2), %rax
	leaq	(%rcx,%rax,8), %rsi
	addq	$8, %rsi
	callq	_clear_bit
	movq	_STRIPE_DISCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %r14
	movq	%r14, %rsi
	callq	_clear_bit
	movq	_STRIPE_SYNC_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	_STRIPE_HANDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
LBB0_21:
	movq	_STRIPE_FULL_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$16, %rbx
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rdi
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_23
## %bb.24:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_md_wakeup_thread               ## TAILCALL
LBB0_23:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R5_LOCKED,4,2                  ## @R5_LOCKED
	.comm	_R5_UPTODATE,4,2                ## @R5_UPTODATE
	.comm	_R5_Discard,4,2                 ## @R5_Discard
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Return write for disc %d\n"

	.comm	_STRIPE_SECTORS,8,3             ## @STRIPE_SECTORS
	.comm	_STRIPE_DEGRADED,4,2            ## @STRIPE_DEGRADED
	.comm	_STRIPE_DISCARD,4,2             ## @STRIPE_DISCARD
	.comm	_STRIPE_SYNC_REQUESTED,4,2      ## @STRIPE_SYNC_REQUESTED
	.comm	_STRIPE_HANDLE,4,2              ## @STRIPE_HANDLE
	.comm	_STRIPE_FULL_WRITE,4,2          ## @STRIPE_FULL_WRITE
	.no_dead_strip	_handle_stripe_clean_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_stripe_clean_event
_handle_stripe_clean_event:             ; @handle_stripe_clean_event
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _R5_Discard@GOTPAGE
Lloh1:
	ldr	x23, [x23, _R5_Discard@GOTPAGEOFF]
	cbz	w2, LBB0_18
; %bb.1:
	mov	x21, x3
	mov	w28, #0
	add	x8, x20, #16
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	sxtw	x23, w2
	mov	w22, #24
Lloh2:
	adrp	x24, _STRIPE_SECTORS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _STRIPE_SECTORS@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh4:
	adrp	x8, _R5_Discard@GOTPAGE
Lloh5:
	ldr	x8, [x8, _R5_Discard@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x25
	bl	_test_bit
	cmp	x0, #0
	csinc	w28, w28, wzr, eq
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	w23, LBB0_17
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	sub	x23, x23, #1
	ldr	x26, [x20, #24]
	madd	x27, x23, x22, x26
	ldr	x8, [x27, #16]!
	cbz	x8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh7:
	adrp	x8, _R5_LOCKED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _R5_LOCKED@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	madd	x8, x23, x22, x26
	add	x25, x8, #8
	mov	x1, x25
	bl	_test_bit
	cbnz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh10:
	adrp	x8, _R5_UPTODATE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _R5_UPTODATE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x25
	bl	_test_bit
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh13:
	adrp	x8, _R5_Discard@GOTPAGE
Lloh14:
	ldr	x8, [x8, _R5_Discard@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x25
	bl	_test_bit
	cbz	x0, LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_pr_debug
Lloh18:
	adrp	x8, _R5_Discard@GOTPAGE
Lloh19:
	ldr	x8, [x8, _R5_Discard@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x25
	bl	_test_and_clear_bit
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh21:
	adrp	x8, _R5_UPTODATE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _R5_UPTODATE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x25
	bl	_clear_bit
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x25, [x27]
	str	xzr, [x27]
	cbz	x25, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	madd	x27, x23, x22, x26
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x25, x26
	cbz	x26, LBB0_16
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25]
	ldr	x1, [x27]
	ldr	x9, [x24]
	add	x9, x9, x1
	cmp	x8, x9
	b.ge	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x25
	bl	_r5_next_bio
	mov	x26, x0
	mov	x0, x25
	bl	_raid5_dec_bi_active_stripes
	cbnz	w0, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x0, [x19]
	bl	_md_write_end
	ldr	x8, [x21]
	str	x8, [x25, #8]
	str	x25, [x21]
	b	LBB0_12
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	ldr	w25, [x8, #4]
	ldr	w26, [x20, #32]
	ldr	x27, [x24]
Lloh24:
	adrp	x8, _STRIPE_DEGRADED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _STRIPE_DEGRADED@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_test_bit
	cmp	x0, #0
	cset	w3, eq
	mov	x0, x25
	mov	x1, x26
	mov	x2, x27
	mov	w4, #0
	bl	_bitmap_endwrite
	b	LBB0_3
LBB0_17:
Lloh27:
	adrp	x23, _R5_Discard@GOTPAGE
Lloh28:
	ldr	x23, [x23, _R5_Discard@GOTPAGEOFF]
	cbnz	w28, LBB0_21
LBB0_18:
	ldr	w0, [x23]
	ldr	x8, [x20, #24]
	ldr	x9, [x20]
	mov	w10, #24
	madd	x8, x9, x10, x8
	add	x1, x8, #8
	bl	_test_bit
	cbz	x0, LBB0_21
; %bb.19:
	ldr	w0, [x23]
	ldr	x8, [x20, #24]
	ldr	x9, [x20]
	mov	w21, #24
	madd	x8, x9, x21, x8
	add	x1, x8, #8
	bl	_clear_bit
Lloh29:
	adrp	x22, _R5_UPTODATE@GOTPAGE
Lloh30:
	ldr	x22, [x22, _R5_UPTODATE@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	x8, [x20, #24]
	ldr	x9, [x20]
	madd	x8, x9, x21, x8
	add	x1, x8, #8
	bl	_clear_bit
	ldr	x8, [x20, #8]
	ldr	w0, [x23]
	ldr	x9, [x20, #24]
	madd	x8, x8, x21, x9
	add	x1, x8, #8
	bl	_clear_bit
	ldr	w0, [x22]
	ldr	x8, [x20, #24]
	ldr	x9, [x20, #8]
	madd	x8, x9, x21, x8
	add	x1, x8, #8
	bl	_clear_bit
Lloh31:
	adrp	x8, _STRIPE_DISCARD@GOTPAGE
Lloh32:
	ldr	x8, [x8, _STRIPE_DISCARD@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	add	x21, x20, #16
	mov	x1, x21
	bl	_clear_bit
Lloh34:
	adrp	x8, _STRIPE_SYNC_REQUESTED@GOTPAGE
Lloh35:
	ldr	x8, [x8, _STRIPE_SYNC_REQUESTED@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_21
; %bb.20:
Lloh37:
	adrp	x8, _STRIPE_HANDLE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _STRIPE_HANDLE@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
LBB0_21:
Lloh40:
	adrp	x8, _STRIPE_FULL_WRITE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _STRIPE_FULL_WRITE@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	add	x1, x20, #16
	bl	_test_and_clear_bit
	cbz	x0, LBB0_24
; %bb.22:
	add	x0, x19, #8
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_24
; %bb.23:
	ldr	x8, [x19]
	ldr	w0, [x8]
	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
	b	_md_wakeup_thread
LBB0_24:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_R5_LOCKED,4,2                  ; @R5_LOCKED
	.comm	_R5_UPTODATE,4,2                ; @R5_UPTODATE
	.comm	_R5_Discard,4,2                 ; @R5_Discard
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Return write for disc %d\n"

	.comm	_STRIPE_SECTORS,8,3             ; @STRIPE_SECTORS
	.comm	_STRIPE_DEGRADED,4,2            ; @STRIPE_DEGRADED
	.comm	_STRIPE_DISCARD,4,2             ; @STRIPE_DISCARD
	.comm	_STRIPE_SYNC_REQUESTED,4,2      ; @STRIPE_SYNC_REQUESTED
	.comm	_STRIPE_HANDLE,4,2              ; @STRIPE_HANDLE
	.comm	_STRIPE_FULL_WRITE,4,2          ; @STRIPE_FULL_WRITE
	.no_dead_strip	_handle_stripe_clean_event
.subsections_via_symbols
