	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function array_state_store
_array_state_store:                     ## @array_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, %rax
	movq	%rdi, %r15
	movq	_EINVAL@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	subl	(%r12), %ebx
	movq	_array_states@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_match_word
                                        ## kill: def $eax killed $eax def $rax
	addl	$-130, %eax
	cmpl	$7, %eax
	ja	LBB0_33
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	cmpl	$0, 40(%r15)
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_md_set_readonly
	jmp	LBB0_32
LBB0_9:
	cmpl	$0, 40(%r15)
	je	LBB0_17
## %bb.10:
	movl	(%r15), %eax
	cmpl	$1, %eax
	je	LBB0_13
## %bb.11:
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_md_set_readonly
	jmp	LBB0_14
LBB0_4:
	cmpl	$0, 40(%r15)
	je	LBB0_34
## %bb.5:
	movq	%r15, %rdi
	movl	$2, %esi
	jmp	LBB0_3
LBB0_2:
	movq	%r15, %rdi
	xorl	%esi, %esi
LBB0_3:
	xorl	%edx, %edx
	callq	_do_md_stop
	jmp	LBB0_32
LBB0_18:
	cmpl	$0, 40(%r15)
	je	LBB0_26
## %bb.19:
	movq	%r15, %rdi
	callq	_restart_array
	leaq	44(%r15), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irq
	leaq	48(%r15), %rdi
	callq	_atomic_read
	testl	%eax, %eax
	je	LBB0_20
## %bb.24:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_25
LBB0_27:
	cmpl	$0, 40(%r15)
	je	LBB0_29
## %bb.28:
	movq	%r15, %rdi
	callq	_restart_array
	movq	_MD_CHANGE_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	36(%r15), %rsi
	callq	_clear_bit
	leaq	32(%r15), %rdi
	callq	_wake_up
	jmp	LBB0_34
LBB0_8:
	movl	$1, (%r15)
	movl	28(%r15), %edi
	movl	$1, %esi
	jmp	LBB0_30
LBB0_17:
	movl	$2, (%r15)
	jmp	LBB0_31
LBB0_26:
	xorl	%ebx, %ebx
	subl	(%r12), %ebx
	testl	%ebx, %ebx
	jne	LBB0_37
	jmp	LBB0_34
LBB0_29:
	movl	$0, (%r15)
	movl	28(%r15), %edi
	xorl	%esi, %esi
LBB0_30:
	callq	_set_disk_ro
LBB0_31:
	movq	%r15, %rdi
	callq	_do_md_run
LBB0_32:
	movl	%eax, %ebx
LBB0_33:
	testl	%ebx, %ebx
	jne	LBB0_37
LBB0_34:
	movq	16(%r15), %rax
	movq	_UNTIL_IOCTL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_36
## %bb.35:
	movq	$0, 16(%r15)
LBB0_36:
	movl	24(%r15), %edi
	callq	_sysfs_notify_dirent_safe
	movl	%r14d, %ebx
LBB0_37:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	xorl	%ebx, %ebx
	cmpl	$0, 4(%r15)
	jne	LBB0_25
## %bb.21:
	movl	$1, 4(%r15)
	cmpl	$1, 8(%r15)
	jne	LBB0_23
## %bb.22:
	movl	$0, 8(%r15)
LBB0_23:
	movq	_MD_CHANGE_CLEAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	36(%r15), %rsi
	callq	_set_bit
LBB0_25:
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	testl	%ebx, %ebx
	jne	LBB0_37
	jmp	LBB0_34
LBB0_13:
	movq	%r15, %rdi
	callq	_restart_array
LBB0_14:
	movl	%eax, %ebx
LBB0_15:
	testl	%ebx, %ebx
	jne	LBB0_37
## %bb.16:
	movl	$2, (%r15)
	movl	28(%r15), %edi
	xorl	%esi, %esi
	callq	_set_disk_ro
	jmp	LBB0_34
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_18
	.long	L0_0_set_33
	.long	L0_0_set_33
	.long	L0_0_set_27
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_array_states,4,2               ## @array_states
	.comm	_MD_CHANGE_CLEAN,4,2            ## @MD_CHANGE_CLEAN
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_MD_CHANGE_PENDING,4,2          ## @MD_CHANGE_PENDING
	.comm	_UNTIL_IOCTL,8,3                ## @UNTIL_IOCTL
	.no_dead_strip	_array_state_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function array_state_store
_array_state_store:                     ; @array_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	x8, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _EINVAL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EINVAL@GOTPAGEOFF]
	ldr	w9, [x22]
	neg	w21, w9
Lloh2:
	adrp	x9, _array_states@GOTPAGE
Lloh3:
	ldr	x9, [x9, _array_states@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_match_word
	sub	w8, w0, #130
	cmp	w8, #7
	b.hi	LBB0_24
; %bb.1:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x20, #40]
	cbz	w8, LBB0_17
; %bb.3:
	mov	x0, x20
	mov	x1, #0
	bl	_md_set_readonly
	b	LBB0_23
LBB0_4:
	ldr	w8, [x20, #40]
	cbz	w8, LBB0_18
; %bb.5:
	ldr	w8, [x20]
	cmp	w8, #1
	b.eq	LBB0_35
; %bb.6:
	cbnz	w8, LBB0_37
; %bb.7:
	mov	x0, x20
	mov	x1, #0
	bl	_md_set_readonly
	b	LBB0_36
LBB0_8:
	ldr	w8, [x20, #40]
	cbz	w8, LBB0_25
; %bb.9:
	mov	x0, x20
	mov	w1, #2
	b	LBB0_11
LBB0_10:
	mov	x0, x20
	mov	w1, #0
LBB0_11:
	mov	x2, #0
	bl	_do_md_stop
	b	LBB0_23
LBB0_12:
	ldr	w8, [x20, #40]
	cbz	w8, LBB0_19
; %bb.13:
	mov	x0, x20
	bl	_restart_array
	add	x22, x20, #44
	mov	x0, x22
	bl	_spin_lock_irq
	add	x0, x20, #48
	bl	_atomic_read
	cbz	w0, LBB0_29
; %bb.14:
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_34
LBB0_15:
	ldr	w8, [x20, #40]
	cbz	w8, LBB0_20
; %bb.16:
	mov	x0, x20
	bl	_restart_array
Lloh10:
	adrp	x8, _MD_CHANGE_PENDING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MD_CHANGE_PENDING@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x1, x20, #36
	bl	_clear_bit
	add	x0, x20, #32
	bl	_wake_up
	b	LBB0_25
LBB0_17:
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x20, #28]
	mov	w1, #1
	b	LBB0_21
LBB0_18:
	mov	w8, #2
	str	w8, [x20]
	b	LBB0_22
LBB0_19:
	ldr	w8, [x22]
	neg	w21, w8
	cbnz	w21, LBB0_28
	b	LBB0_25
LBB0_20:
	str	wzr, [x20]
	ldr	w0, [x20, #28]
	mov	w1, #0
LBB0_21:
	bl	_set_disk_ro
LBB0_22:
	mov	x0, x20
	bl	_do_md_run
LBB0_23:
	mov	x21, x0
LBB0_24:
	cbnz	w21, LBB0_28
LBB0_25:
	ldr	x8, [x20, #16]
Lloh13:
	adrp	x9, _UNTIL_IOCTL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _UNTIL_IOCTL@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_27
; %bb.26:
	str	xzr, [x20, #16]
LBB0_27:
	ldr	w0, [x20, #24]
	bl	_sysfs_notify_dirent_safe
	mov	x21, x19
LBB0_28:
	mov	x0, x21
	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_29:
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_33
; %bb.30:
	mov	w8, #1
	str	w8, [x20, #4]
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.ne	LBB0_32
; %bb.31:
	str	wzr, [x20, #8]
LBB0_32:
Lloh16:
	adrp	x8, _MD_CHANGE_CLEAN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MD_CHANGE_CLEAN@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	add	x1, x20, #36
	bl	_set_bit
LBB0_33:
	mov	w21, #0
LBB0_34:
	mov	x0, x22
	bl	_spin_unlock_irq
	cbnz	w21, LBB0_28
	b	LBB0_25
LBB0_35:
	mov	x0, x20
	bl	_restart_array
LBB0_36:
	mov	x21, x0
LBB0_37:
	cbnz	w21, LBB0_28
; %bb.38:
	mov	w8, #2
	str	w8, [x20]
	ldr	w0, [x20, #28]
	mov	w1, #0
	bl	_set_disk_ro
	b	LBB0_25
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_24-LBB0_2)>>2
	.byte	(LBB0_24-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_array_states,4,2               ; @array_states
	.comm	_MD_CHANGE_CLEAN,4,2            ; @MD_CHANGE_CLEAN
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_MD_CHANGE_PENDING,4,2          ; @MD_CHANGE_PENDING
	.comm	_UNTIL_IOCTL,8,3                ; @UNTIL_IOCTL
	.no_dead_strip	_array_state_store
.subsections_via_symbols
