	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function state_store
_state_store:                           ## @state_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cmd_match
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	16(%r15), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_7
## %bb.2:
	movq	%r15, %rsi
	callq	_md_error
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_3
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cmd_match
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	cmpl	$0, (%r15)
	js	LBB0_9
LBB0_3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_4:
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.5:
	negl	%r12d
	movq	%r12, %r14
	jmp	LBB0_6
LBB0_13:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cmd_match
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	_WriteMostly@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_set_bit
	jmp	LBB0_12
LBB0_9:
	movq	16(%r15), %rbx
	movq	%r15, %rdi
	callq	_kick_rdev_from_array
	cmpq	$0, (%rbx)
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_md_update_sb
LBB0_11:
	movq	%rbx, %rdi
	callq	_md_new_event
	jmp	LBB0_12
LBB0_16:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cmd_match
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	_WriteMostly@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_clear_bit
LBB0_12:
	movl	4(%r15), %edi
	callq	_sysfs_notify_dirent_safe
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cmd_match
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	_Blocked@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_21:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cmd_match
	testq	%rax, %rax
	je	LBB0_26
## %bb.22:
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_25
## %bb.23:
	cmpq	$0, 32(%r15)
	je	LBB0_25
## %bb.24:
	movq	16(%r15), %rdi
	movq	%r15, %rsi
	callq	_md_error
LBB0_25:
	movq	_Blocked@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_BlockedBadBlocks@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	leaq	24(%r15), %rdi
	callq	_wake_up
LBB0_37:
	movq	_MD_RECOVERY_NEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r15), %rsi
	addq	$12, %rsi
	callq	_set_bit
	movq	16(%r15), %rax
	movl	8(%rax), %edi
	callq	_md_wakeup_thread
	jmp	LBB0_12
LBB0_26:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cmd_match
	testq	%rax, %rax
	je	LBB0_29
## %bb.27:
	cmpl	$-1, (%r15)
	je	LBB0_28
LBB0_29:
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cmd_match
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movq	_WriteErrorSeen@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_31:
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cmd_match
	testq	%rax, %rax
	je	LBB0_33
## %bb.32:
	movq	_WriteErrorSeen@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_28:
	movq	_In_sync@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_33:
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cmd_match
	testq	%rax, %rax
	je	LBB0_38
## %bb.34:
	cmpl	$0, (%r15)
	js	LBB0_37
## %bb.35:
	movq	_Replacement@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_37
## %bb.36:
	movq	_WantReplacement@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	jmp	LBB0_37
LBB0_38:
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cmd_match
	testq	%rax, %rax
	je	LBB0_40
## %bb.39:
	movq	_WantReplacement@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_40:
	leaq	L_.str.11(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cmd_match
	testq	%rax, %rax
	je	LBB0_43
## %bb.41:
	movq	16(%r15), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.42:
	movq	_Replacement@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_43:
	leaq	L_.str.12(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cmd_match
	testq	%rax, %rax
	je	LBB0_4
## %bb.44:
	movq	16(%r15), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.45:
	movq	_Replacement@GOTPCREL(%rip), %rax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"faulty"

	.comm	_Faulty,4,2                     ## @Faulty
	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.1:                               ## @.str.1
	.asciz	"remove"

L_.str.2:                               ## @.str.2
	.asciz	"writemostly"

	.comm	_WriteMostly,4,2                ## @WriteMostly
L_.str.3:                               ## @.str.3
	.asciz	"-writemostly"

L_.str.4:                               ## @.str.4
	.asciz	"blocked"

	.comm	_Blocked,4,2                    ## @Blocked
L_.str.5:                               ## @.str.5
	.asciz	"-blocked"

	.comm	_BlockedBadBlocks,4,2           ## @BlockedBadBlocks
	.comm	_MD_RECOVERY_NEEDED,4,2         ## @MD_RECOVERY_NEEDED
L_.str.6:                               ## @.str.6
	.asciz	"insync"

	.comm	_In_sync,4,2                    ## @In_sync
L_.str.7:                               ## @.str.7
	.asciz	"write_error"

	.comm	_WriteErrorSeen,4,2             ## @WriteErrorSeen
L_.str.8:                               ## @.str.8
	.asciz	"-write_error"

L_.str.9:                               ## @.str.9
	.asciz	"want_replacement"

	.comm	_Replacement,4,2                ## @Replacement
	.comm	_WantReplacement,4,2            ## @WantReplacement
L_.str.10:                              ## @.str.10
	.asciz	"-want_replacement"

L_.str.11:                              ## @.str.11
	.asciz	"replacement"

L_.str.12:                              ## @.str.12
	.asciz	"-replacement"

	.no_dead_strip	_state_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function state_store
_state_store:                           ; @state_store
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_cmd_match
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x20, #16]
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x1, x20
	bl	_md_error
Lloh5:
	adrp	x8, _Faulty@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Faulty@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_test_bit
	cbnz	x0, LBB0_17
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_cmd_match
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w8, [x20]
	tbnz	w8, #31, LBB0_11
LBB0_5:
Lloh10:
	adrp	x8, _EBUSY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
LBB0_6:
	cbz	w22, LBB0_17
; %bb.7:
	neg	w19, w22
	b	LBB0_18
LBB0_8:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_cmd_match
	cbz	x0, LBB0_14
; %bb.9:
Lloh15:
	adrp	x8, _WriteMostly@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WriteMostly@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_set_bit
	b	LBB0_17
LBB0_11:
	ldr	x21, [x20, #16]
	mov	x0, x20
	bl	_kick_rdev_from_array
	ldr	x8, [x21]
	cbz	x8, LBB0_13
; %bb.12:
	mov	x0, x21
	mov	w1, #1
	bl	_md_update_sb
LBB0_13:
	mov	x0, x21
	bl	_md_new_event
	b	LBB0_17
LBB0_14:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_cmd_match
	cbz	x0, LBB0_19
; %bb.15:
Lloh19:
	adrp	x8, _WriteMostly@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WriteMostly@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_clear_bit
LBB0_17:
	ldr	w0, [x20, #4]
	bl	_sysfs_notify_dirent_safe
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_19:
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_cmd_match
	cbz	x0, LBB0_21
; %bb.20:
Lloh23:
	adrp	x8, _Blocked@GOTPAGE
Lloh24:
	ldr	x8, [x8, _Blocked@GOTPAGEOFF]
	b	LBB0_10
LBB0_21:
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_cmd_match
	cbz	x0, LBB0_27
; %bb.22:
Lloh27:
	adrp	x8, _Faulty@GOTPAGE
Lloh28:
	ldr	x8, [x8, _Faulty@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	add	x21, x20, #8
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_25
; %bb.23:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_25
; %bb.24:
	ldr	x0, [x20, #16]
	mov	x1, x20
	bl	_md_error
LBB0_25:
Lloh30:
	adrp	x8, _Blocked@GOTPAGE
Lloh31:
	ldr	x8, [x8, _Blocked@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
Lloh33:
	adrp	x8, _BlockedBadBlocks@GOTPAGE
Lloh34:
	ldr	x8, [x8, _BlockedBadBlocks@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
	add	x0, x20, #24
	bl	_wake_up
LBB0_26:
Lloh36:
	adrp	x8, _MD_RECOVERY_NEEDED@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MD_RECOVERY_NEEDED@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ldr	x8, [x20, #16]
	add	x1, x8, #12
	bl	_set_bit
	ldr	x8, [x20, #16]
	ldr	w0, [x8, #8]
	bl	_md_wakeup_thread
	b	LBB0_17
LBB0_27:
Lloh39:
	adrp	x1, l_.str.6@PAGE
Lloh40:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_cmd_match
	cbz	x0, LBB0_29
; %bb.28:
	ldr	w8, [x20]
	cmn	w8, #1
	b.eq	LBB0_33
LBB0_29:
Lloh41:
	adrp	x1, l_.str.7@PAGE
Lloh42:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_cmd_match
	cbz	x0, LBB0_31
; %bb.30:
Lloh43:
	adrp	x8, _WriteErrorSeen@GOTPAGE
Lloh44:
	ldr	x8, [x8, _WriteErrorSeen@GOTPAGEOFF]
	b	LBB0_10
LBB0_31:
Lloh45:
	adrp	x1, l_.str.8@PAGE
Lloh46:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_cmd_match
	cbz	x0, LBB0_34
; %bb.32:
Lloh47:
	adrp	x8, _WriteErrorSeen@GOTPAGE
Lloh48:
	ldr	x8, [x8, _WriteErrorSeen@GOTPAGEOFF]
	b	LBB0_16
LBB0_33:
Lloh49:
	adrp	x8, _In_sync@GOTPAGE
Lloh50:
	ldr	x8, [x8, _In_sync@GOTPAGEOFF]
	b	LBB0_10
LBB0_34:
Lloh51:
	adrp	x1, l_.str.9@PAGE
Lloh52:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	bl	_cmd_match
	cbz	x0, LBB0_38
; %bb.35:
	ldr	w8, [x20]
	tbnz	w8, #31, LBB0_26
; %bb.36:
Lloh53:
	adrp	x8, _Replacement@GOTPAGE
Lloh54:
	ldr	x8, [x8, _Replacement@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	add	x21, x20, #8
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_26
; %bb.37:
Lloh56:
	adrp	x8, _WantReplacement@GOTPAGE
Lloh57:
	ldr	x8, [x8, _WantReplacement@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
	b	LBB0_26
LBB0_38:
Lloh59:
	adrp	x1, l_.str.10@PAGE
Lloh60:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	bl	_cmd_match
	cbz	x0, LBB0_40
; %bb.39:
Lloh61:
	adrp	x8, _WantReplacement@GOTPAGE
Lloh62:
	ldr	x8, [x8, _WantReplacement@GOTPAGEOFF]
	b	LBB0_16
LBB0_40:
Lloh63:
	adrp	x1, l_.str.11@PAGE
Lloh64:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x21
	bl	_cmd_match
	cbz	x0, LBB0_43
; %bb.41:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cbnz	x8, LBB0_5
; %bb.42:
Lloh65:
	adrp	x8, _Replacement@GOTPAGE
Lloh66:
	ldr	x8, [x8, _Replacement@GOTPAGEOFF]
	b	LBB0_10
LBB0_43:
Lloh67:
	adrp	x1, l_.str.12@PAGE
Lloh68:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x21
	bl	_cmd_match
	cbz	x0, LBB0_6
; %bb.44:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cbnz	x8, LBB0_5
; %bb.45:
Lloh69:
	adrp	x8, _Replacement@GOTPAGE
Lloh70:
	ldr	x8, [x8, _Replacement@GOTPAGEOFF]
	b	LBB0_16
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh69, Lloh70
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"faulty"

	.comm	_Faulty,4,2                     ; @Faulty
	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.1:                               ; @.str.1
	.asciz	"remove"

l_.str.2:                               ; @.str.2
	.asciz	"writemostly"

	.comm	_WriteMostly,4,2                ; @WriteMostly
l_.str.3:                               ; @.str.3
	.asciz	"-writemostly"

l_.str.4:                               ; @.str.4
	.asciz	"blocked"

	.comm	_Blocked,4,2                    ; @Blocked
l_.str.5:                               ; @.str.5
	.asciz	"-blocked"

	.comm	_BlockedBadBlocks,4,2           ; @BlockedBadBlocks
	.comm	_MD_RECOVERY_NEEDED,4,2         ; @MD_RECOVERY_NEEDED
l_.str.6:                               ; @.str.6
	.asciz	"insync"

	.comm	_In_sync,4,2                    ; @In_sync
l_.str.7:                               ; @.str.7
	.asciz	"write_error"

	.comm	_WriteErrorSeen,4,2             ; @WriteErrorSeen
l_.str.8:                               ; @.str.8
	.asciz	"-write_error"

l_.str.9:                               ; @.str.9
	.asciz	"want_replacement"

	.comm	_Replacement,4,2                ; @Replacement
	.comm	_WantReplacement,4,2            ; @WantReplacement
l_.str.10:                              ; @.str.10
	.asciz	"-want_replacement"

l_.str.11:                              ; @.str.11
	.asciz	"replacement"

l_.str.12:                              ; @.str.12
	.asciz	"-replacement"

	.no_dead_strip	_state_store
.subsections_via_symbols
