	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid5_store_group_thread_cnt
_raid5_store_group_thread_cnt:          ## @raid5_store_group_thread_cnt
	.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	_PAGE_SIZE@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jbe	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movq	%rdi, %r14
	leaq	-44(%rbp), %rdx
	movq	%rsi, %rdi
	movl	$10, %esi
	callq	_kstrtouint
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	cmpl	$8193, -44(%rbp)                ## imm = 0x2001
	jb	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	callq	_mddev_lock
	testl	%eax, %eax
	jne	LBB0_19
## %bb.5:
	movq	(%r14), %r13
	testq	%r13, %r13
	je	LBB0_6
## %bb.7:
	movl	-44(%rbp), %eax
	cmpl	(%r13), %eax
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_mddev_unlock
	jmp	LBB0_18
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_16
LBB0_9:
	movq	%r14, %rdi
	callq	_mddev_suspend
	movq	16(%r13), %r15
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	movq	_raid5_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_flush_workqueue
LBB0_11:
	movl	-44(%rbp), %esi
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-72(%rbp), %r8
	movq	%r13, %rdi
	callq	_alloc_thread_groups
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	leaq	8(%r13), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irq
	movl	-52(%rbp), %eax
	movl	%eax, 4(%r13)
	movl	-48(%rbp), %eax
	movl	%eax, (%r13)
	movq	-72(%rbp), %rax
	movq	%rax, 16(%r13)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irq
	testq	%r15, %r15
	je	LBB0_14
## %bb.13:
	movq	(%r15), %rdi
	callq	_kfree
LBB0_14:
	movq	%r15, %rdi
	callq	_kfree
LBB0_15:
	movq	%r14, %rdi
	callq	_mddev_resume
LBB0_16:
	movq	%r14, %rdi
	callq	_mddev_unlock
	testl	%r12d, %r12d
	je	LBB0_18
## %bb.17:
	movl	%r12d, %ebx
LBB0_18:
	movl	%ebx, %eax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_raid5_wq,4,2                   ## @raid5_wq
	.no_dead_strip	_raid5_store_group_thread_cnt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid5_store_group_thread_cnt
_raid5_store_group_thread_cnt:          ; @raid5_store_group_thread_cnt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ls	LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	add	x2, sp, #28
	mov	x0, x1
	mov	w1, #10
	bl	_kstrtouint
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w8, [sp, #28]
	cmp	w8, #2, lsl #12                 ; =8192
	b.ls	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	add	sp, sp, #96
	ret
LBB0_5:
	mov	x0, x20
	bl	_mddev_lock
	cbnz	w0, LBB0_4
; %bb.6:
	ldr	x22, [x20]
	cbz	x22, LBB0_9
; %bb.7:
	ldr	w8, [sp, #28]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x20
	bl	_mddev_unlock
	b	LBB0_19
LBB0_9:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_17
LBB0_10:
	mov	x0, x20
	bl	_mddev_suspend
	ldr	x21, [x22, #16]
	cbz	x21, LBB0_12
; %bb.11:
Lloh9:
	adrp	x8, _raid5_wq@GOTPAGE
Lloh10:
	ldr	x8, [x8, _raid5_wq@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_flush_workqueue
LBB0_12:
	ldr	w1, [sp, #28]
	add	x2, sp, #12
	add	x3, sp, #8
	add	x4, sp, #16
	mov	x0, x22
	bl	_alloc_thread_groups
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.13:
	add	x24, x22, #8
	mov	x0, x24
	bl	_spin_lock_irq
	ldp	w9, w8, [sp, #8]
	stp	w9, w8, [x22]
	ldr	x8, [sp, #16]
	str	x8, [x22, #16]
	mov	x0, x24
	bl	_spin_unlock_irq
	cbz	x21, LBB0_15
; %bb.14:
	ldr	x0, [x21]
	bl	_kfree
LBB0_15:
	mov	x0, x21
	bl	_kfree
LBB0_16:
	mov	x0, x20
	bl	_mddev_resume
LBB0_17:
	mov	x0, x20
	bl	_mddev_unlock
	cbz	w23, LBB0_19
; %bb.18:
	mov	w19, w23
LBB0_19:
	mov	x0, x19
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_raid5_wq,4,2                   ; @raid5_wq
	.no_dead_strip	_raid5_store_group_thread_cnt
.subsections_via_symbols
