	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slot_store
_slot_store:                            ## @slot_store
	.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	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_simple_strtoul
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	-48(%rbp), %rax
	cmpq	%rbx, %rax
	je	LBB0_9
## %bb.7:
	movb	(%rax), %al
	testb	%al, %al
	je	LBB0_2
## %bb.8:
	cmpb	$10, %al
	je	LBB0_2
	jmp	LBB0_9
LBB0_1:
	movl	$-1, %r12d
LBB0_2:
	movq	16(%r14), %rsi
	movq	8(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	cmpl	$-1, %r12d
	jne	LBB0_15
## %bb.4:
	cmpl	$-1, (%r14)
	je	LBB0_5
## %bb.11:
	cmpq	$0, 8(%rax)
	je	LBB0_9
## %bb.12:
	movq	_Blocked@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r14), %rsi
	callq	_clear_bit
	movq	16(%r14), %rdi
	movq	%r14, %rsi
	callq	_remove_and_add_spares
	cmpl	$0, (%r14)
	jns	LBB0_13
## %bb.14:
	movq	_MD_RECOVERY_NEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r14), %rsi
	addq	$16, %rsi
	callq	_set_bit
	movq	16(%r14), %rax
	movl	20(%rax), %edi
	callq	_md_wakeup_thread
	jmp	LBB0_28
LBB0_15:
	testq	%rax, %rax
	je	LBB0_25
## %bb.16:
	cmpl	$-1, (%r14)
	jne	LBB0_13
## %bb.17:
	movq	_MD_RECOVERY_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$16, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_18
LBB0_13:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_25:
	movl	(%rsi), %eax
	cmpl	%eax, %r12d
	jl	LBB0_27
## %bb.26:
	addl	4(%rsi), %eax
	cmpl	%eax, %r12d
	jge	LBB0_21
LBB0_27:
	movl	%r12d, (%r14)
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r14), %rbx
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_WriteMostly@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	movl	8(%r14), %edi
	callq	_sysfs_notify_dirent_safe
	jmp	LBB0_28
LBB0_18:
	movq	16(%r14), %rax
	movq	8(%rax), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_9
## %bb.19:
	movl	(%rax), %ecx
	cmpl	%ecx, %r12d
	jl	LBB0_22
## %bb.20:
	addl	4(%rax), %ecx
	cmpl	%ecx, %r12d
	jge	LBB0_21
LBB0_22:
	movl	%r12d, (%r14)
	movq	_In_sync@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	12(%r14), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	xorl	%ecx, %ecx
	cmpq	$1, %rax
	sbbl	%ecx, %ecx
	orl	%r12d, %ecx
	movl	%ecx, 4(%r14)
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	16(%r14), %rdi
	movq	8(%rdi), %rax
	movq	%r14, %rsi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	movl	$-1, (%r14)
	movl	%eax, %r15d
	jmp	LBB0_28
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_28:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_24:
	movl	8(%r14), %edi
	callq	_sysfs_notify_dirent_safe
	movq	16(%r14), %rdi
	movq	%r14, %rsi
	callq	_sysfs_link_rdev
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"none"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_Blocked,4,2                    ## @Blocked
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_MD_RECOVERY_NEEDED,4,2         ## @MD_RECOVERY_NEEDED
	.comm	_MD_RECOVERY_RUNNING,4,2        ## @MD_RECOVERY_RUNNING
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_In_sync,4,2                    ## @In_sync
	.comm	_Faulty,4,2                     ## @Faulty
	.comm	_WriteMostly,4,2                ## @WriteMostly
	.no_dead_strip	_slot_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slot_store
_slot_store:                            ; @slot_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	add	x1, sp, #8
	mov	x0, x22
	mov	w2, #10
	bl	_simple_strtoul
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [sp, #8]
	cmp	x8, x22
	b.eq	LBB0_17
; %bb.2:
	ldrb	w8, [x8]
	cmp	w8, #0
	ccmp	w8, #10, #4, ne
	b.eq	LBB0_4
	b	LBB0_17
LBB0_3:
	mov	w21, #-1
LBB0_4:
	ldr	x8, [x20, #16]
	ldr	x9, [x8, #8]
	cmp	x9, #0
	ccmn	w21, #1, #0, ne
	b.eq	LBB0_13
; %bb.5:
	cbz	x9, LBB0_18
; %bb.6:
	ldr	w9, [x20]
	cmn	w9, #1
	b.ne	LBB0_16
; %bb.7:
Lloh2:
	adrp	x9, _MD_RECOVERY_RUNNING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MD_RECOVERY_RUNNING@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
	add	x1, x8, #16
	bl	_test_bit
	cbnz	x0, LBB0_16
; %bb.8:
	ldr	x8, [x20, #16]
	ldr	x9, [x8, #8]
	ldr	x9, [x9]
	cbz	x9, LBB0_17
; %bb.9:
	ldr	w9, [x8]
	cmp	w21, w9
	b.lt	LBB0_11
; %bb.10:
	ldr	w8, [x8, #4]
	add	w8, w8, w9
	cmp	w21, w8
	b.ge	LBB0_23
LBB0_11:
	str	w21, [x20]
Lloh5:
	adrp	x23, _In_sync@GOTPAGE
Lloh6:
	ldr	x23, [x23, _In_sync@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x22, x20, #12
	mov	x1, x22
	bl	_test_bit
	cmp	x0, #0
	csinv	w8, w21, wzr, ne
	str	w8, [x20, #4]
	ldr	w0, [x23]
	mov	x1, x22
	bl	_clear_bit
	ldr	x0, [x20, #16]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	mov	x1, x20
	blr	x8
	cbz	w0, LBB0_26
; %bb.12:
	mov	w8, #-1
	str	w8, [x20]
	mov	x19, x0
	b	LBB0_25
LBB0_13:
	ldr	w8, [x20]
	cmn	w8, #1
	b.eq	LBB0_21
; %bb.14:
	ldr	x8, [x9, #8]
	cbz	x8, LBB0_17
; %bb.15:
Lloh7:
	adrp	x8, _Blocked@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Blocked@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, x20, #12
	bl	_clear_bit
	ldr	x0, [x20, #16]
	mov	x1, x20
	bl	_remove_and_add_spares
	ldr	w8, [x20]
	tbnz	w8, #31, LBB0_22
LBB0_16:
Lloh10:
	adrp	x8, _EBUSY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_24
LBB0_17:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_24
LBB0_18:
	ldr	w9, [x8]
	cmp	w21, w9
	b.lt	LBB0_20
; %bb.19:
	ldr	w8, [x8, #4]
	add	w8, w8, w9
	cmp	w21, w8
	b.ge	LBB0_23
LBB0_20:
	str	w21, [x20]
Lloh14:
	adrp	x8, _Faulty@GOTPAGE
Lloh15:
	ldr	x8, [x8, _Faulty@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	add	x21, x20, #12
	mov	x1, x21
	bl	_clear_bit
Lloh17:
	adrp	x8, _WriteMostly@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WriteMostly@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
Lloh20:
	adrp	x8, _In_sync@GOTPAGE
Lloh21:
	ldr	x8, [x8, _In_sync@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
	ldr	w0, [x20, #8]
	bl	_sysfs_notify_dirent_safe
	b	LBB0_25
LBB0_21:
Lloh23:
	adrp	x8, _EEXIST@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
	b	LBB0_24
LBB0_22:
Lloh25:
	adrp	x8, _MD_RECOVERY_NEEDED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MD_RECOVERY_NEEDED@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldr	x8, [x20, #16]
	add	x1, x8, #16
	bl	_set_bit
	ldr	x8, [x20, #16]
	ldr	w0, [x8, #20]
	bl	_md_wakeup_thread
	b	LBB0_25
LBB0_23:
Lloh28:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
LBB0_24:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_25:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
LBB0_26:
	ldr	w0, [x20, #8]
	bl	_sysfs_notify_dirent_safe
	ldr	x0, [x20, #16]
	mov	x1, x20
	bl	_sysfs_link_rdev
	b	LBB0_25
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"none"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_Blocked,4,2                    ; @Blocked
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_MD_RECOVERY_NEEDED,4,2         ; @MD_RECOVERY_NEEDED
	.comm	_MD_RECOVERY_RUNNING,4,2        ; @MD_RECOVERY_RUNNING
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_In_sync,4,2                    ; @In_sync
	.comm	_Faulty,4,2                     ; @Faulty
	.comm	_WriteMostly,4,2                ; @WriteMostly
	.no_dead_strip	_slot_store
.subsections_via_symbols
