	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid5_wakeup_stripe_thread
_raid5_wakeup_stripe_thread:            ## @raid5_wakeup_stripe_thread
	.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	24(%rdi), %r13
	movl	(%rdi), %ebx
	movl	%ebx, %edi
	callq	_cpu_online
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_cpu_online_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpumask_any
	movl	%eax, %ebx
	movl	%eax, (%r14)
LBB0_2:
	leaq	16(%r14), %r15
	movq	%r15, %rdi
	callq	_list_empty
	testq	%rax, %rax
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	movq	8(%r13), %r12
	movl	%ebx, %edi
	callq	_cpu_to_group
	cltq
	leaq	(%rax,%rax,2), %rbx
	leaq	(%r12,%rbx,8), %r13
	movq	%r14, %rdi
	callq	_stripe_is_lowprio
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leaq	16(,%rcx,4), %rsi
	addq	%r13, %rsi
	movq	%r15, %rdi
	callq	_list_add_tail
	incl	(%r12,%rbx,8)
	movq	%r13, 8(%r14)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_4:
	cmpl	$0, (%r13)
	je	LBB0_13
## %bb.5:
	movq	8(%r13), %r15
	movl	(%r14), %edi
	callq	_cpu_to_group
	cltq
	leaq	(%rax,%rax,2), %r12
	movq	8(%r15,%r12,8), %rdx
	movl	$1, (%rdx)
	movl	(%r14), %edi
	movq	_raid5_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$4, %rdx
	callq	_queue_work_on
	movl	(%r15,%r12,8), %eax
	movq	_MAX_STRIPE_BATCH@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %ebx
	movl	(%r13), %eax
	cmpl	$2, %eax
	jl	LBB0_12
## %bb.6:
	cmpl	$2, %ebx
	jl	LBB0_12
## %bb.7:
	leaq	(%r15,%r12,8), %r13
	addq	$8, %r13
	decl	%ebx
	movl	$12, %r15d
	movl	$2, %r12d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdx
	cmpl	$0, -4(%rdx,%r15)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, -4(%rdx,%r15)
	addq	%r15, %rdx
	movl	(%r14), %edi
	movq	_raid5_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_queue_work_on
	decl	%ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movslq	%eax, %rcx
	cmpq	%rcx, %r12
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	addq	$8, %r15
	incq	%r12
	testl	%ebx, %ebx
	jg	LBB0_8
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	16(%r13), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_md_wakeup_thread               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_online_mask,4,2            ## @cpu_online_mask
	.comm	_raid5_wq,4,2                   ## @raid5_wq
	.comm	_MAX_STRIPE_BATCH,4,2           ## @MAX_STRIPE_BATCH
	.no_dead_strip	_raid5_wakeup_stripe_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid5_wakeup_stripe_thread
_raid5_wakeup_stripe_thread:            ; @raid5_wakeup_stripe_thread
	.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	x19, x0
	ldr	x22, [x0, #24]
	ldr	w20, [x0]
	mov	x0, x20
	bl	_cpu_online
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _cpu_online_mask@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpu_online_mask@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpumask_any
	mov	x20, x0
	str	w0, [x19]
LBB0_2:
	add	x21, x19, #16
	mov	x0, x21
	bl	_list_empty
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x23, [x22, #8]
	mov	x0, x20
	bl	_cpu_to_group
	mov	w8, #24
	smaddl	x20, w0, w8, x23
	mov	x0, x19
	bl	_stripe_is_lowprio
	add	x8, x20, #16
	add	x9, x20, #20
	cmp	x0, #0
	csel	x1, x8, x9, eq
	mov	x0, x21
	bl	_list_add_tail
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	str	x20, [x19, #8]
LBB0_4:
	ldr	w8, [x22]
	cbz	w8, LBB0_13
; %bb.5:
	ldr	x24, [x22, #8]
	ldr	w0, [x19]
	bl	_cpu_to_group
	mov	x20, x0
	mov	w25, #24
	smaddl	x21, w0, w25, x24
	ldr	x2, [x21, #8]!
	mov	w8, #1
	str	w8, [x2], #4
	ldr	w0, [x19]
Lloh3:
	adrp	x23, _raid5_wq@GOTPAGE
Lloh4:
	ldr	x23, [x23, _raid5_wq@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_queue_work_on
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_12
; %bb.6:
	smull	x9, w20, w25
	ldr	w9, [x24, x9]
Lloh5:
	adrp	x10, _MAX_STRIPE_BATCH@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MAX_STRIPE_BATCH@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	sdiv	w9, w9, w10
	cmp	w9, #2
	b.lt	LBB0_12
; %bb.7:
	sub	w20, w9, #1
	mov	w24, #8
	mov	w25, #2
	mov	w26, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21]
	ldr	w10, [x9, x24]
	cbnz	w10, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x2, x9, x24
	str	w26, [x2], #4
	ldr	w0, [x19]
	ldr	w1, [x23]
	bl	_queue_work_on
	sub	w20, w20, #1
	ldr	w8, [x22]
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	x25, w8, sxtw
	b.ge	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x24, #8
	add	x25, x25, #1
	cmp	w20, #0
	b.gt	LBB0_8
LBB0_12:
	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
LBB0_13:
	ldr	x8, [x22, #16]
	ldr	w0, [x8]
	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
	b	_md_wakeup_thread
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_online_mask,4,2            ; @cpu_online_mask
	.comm	_raid5_wq,4,2                   ; @raid5_wq
	.comm	_MAX_STRIPE_BATCH,4,2           ; @MAX_STRIPE_BATCH
	.no_dead_strip	_raid5_wakeup_stripe_thread
.subsections_via_symbols
