	.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	%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, %r14
	movq	%rsi, %rax
	movq	%rdi, %r12
	movq	_array_states@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_match_word
	movl	%eax, %ebx
	cmpq	$0, 32(%r12)
	je	LBB0_10
## %bb.1:
	cmpl	$138, %ebx
	je	LBB0_3
## %bb.2:
	cmpl	$134, %ebx
	jne	LBB0_10
LBB0_3:
	cmpl	$1, (%r12)
	jne	LBB0_4
LBB0_10:
	movq	%r12, %rdi
	callq	_mddev_lock
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movslq	%eax, %r14
	jmp	LBB0_44
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	addl	$-130, %ebx
	cmpl	$8, %ebx
	ja	LBB0_40
## %bb.13:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_18:
	cmpq	$0, 32(%r12)
	je	LBB0_20
## %bb.19:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_md_set_readonly
	jmp	LBB0_39
LBB0_4:
	leaq	40(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movq	%r12, %rdi
	callq	_restart_array
	cmpl	$138, %ebx
	jne	LBB0_7
## %bb.5:
	movq	_MD_SB_CHANGE_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%r12), %rsi
	callq	_clear_bit
	movl	44(%r12), %edi
	callq	_md_wakeup_thread
	leaq	24(%r12), %rdi
	callq	_wake_up
	jmp	LBB0_6
LBB0_7:
	movq	%r12, %rdi
	callq	_set_in_sync
	testl	%eax, %eax
	je	LBB0_8
LBB0_6:
	movl	16(%r12), %edi
	callq	_sysfs_notify_dirent_safe
	movq	%r15, %rdi
	callq	_spin_unlock
	jmp	LBB0_44
LBB0_21:
	cmpq	$0, 32(%r12)
	je	LBB0_29
## %bb.22:
	movl	(%r12), %eax
	cmpl	$1, %eax
	je	LBB0_25
## %bb.23:
	testl	%eax, %eax
	jne	LBB0_27
## %bb.24:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_md_set_readonly
	jmp	LBB0_26
LBB0_16:
	cmpq	$0, 32(%r12)
	je	LBB0_41
## %bb.17:
	movq	%r12, %rdi
	movl	$2, %esi
	jmp	LBB0_15
LBB0_14:
	movq	%r12, %rdi
	xorl	%esi, %esi
LBB0_15:
	xorl	%edx, %edx
	callq	_do_md_stop
	jmp	LBB0_39
LBB0_30:
	cmpq	$0, 32(%r12)
	je	LBB0_40
## %bb.31:
	movq	%r12, %rdi
	callq	_restart_array
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_45
## %bb.32:
	leaq	40(%r12), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	%r12, %rdi
	callq	_set_in_sync
	movl	%eax, %r13d
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_spin_unlock
	testl	%r13d, %r13d
	jne	LBB0_41
	jmp	LBB0_40
LBB0_33:
	cmpq	$0, 32(%r12)
	je	LBB0_36
## %bb.34:
	movq	%r12, %rdi
	callq	_restart_array
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_45
## %bb.35:
	movq	_MD_SB_CHANGE_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%r12), %rsi
	callq	_clear_bit
	leaq	24(%r12), %rdi
	callq	_wake_up
	jmp	LBB0_41
LBB0_8:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.9:
	negq	%rbx
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	%rbx, %r14
	jmp	LBB0_44
LBB0_20:
	movl	$1, (%r12)
	movl	20(%r12), %edi
	movl	$1, %esi
	jmp	LBB0_37
LBB0_29:
	movl	$2, (%r12)
	jmp	LBB0_38
LBB0_36:
	movl	$0, (%r12)
	movl	20(%r12), %edi
	xorl	%esi, %esi
LBB0_37:
	callq	_set_disk_ro
LBB0_38:
	movq	%r12, %rdi
	callq	_do_md_run
LBB0_39:
	movl	%eax, %r15d
LBB0_40:
	testl	%r15d, %r15d
	je	LBB0_41
LBB0_45:
	movq	%r12, %rdi
	callq	_mddev_unlock
	movslq	%r15d, %r14
	jmp	LBB0_44
LBB0_25:
	movq	%r12, %rdi
	callq	_restart_array
LBB0_26:
	movl	%eax, %r15d
LBB0_27:
	testl	%r15d, %r15d
	jne	LBB0_45
## %bb.28:
	movl	$2, (%r12)
	movl	20(%r12), %edi
	xorl	%esi, %esi
	callq	_set_disk_ro
LBB0_41:
	movq	8(%r12), %rax
	movq	_UNTIL_IOCTL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_43
## %bb.42:
	movq	$0, 8(%r12)
LBB0_43:
	movl	16(%r12), %edi
	callq	_sysfs_notify_dirent_safe
	movq	%r12, %rdi
	callq	_mddev_unlock
LBB0_44:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_40, LBB0_40-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_21
	.long	L0_0_set_16
	.long	L0_0_set_14
	.long	L0_0_set_30
	.long	L0_0_set_40
	.long	L0_0_set_40
	.long	L0_0_set_40
	.long	L0_0_set_33
	.end_data_region
                                        ## -- End function
	.comm	_array_states,4,2               ## @array_states
	.comm	_MD_SB_CHANGE_PENDING,4,2       ## @MD_SB_CHANGE_PENDING
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x8, x1
	mov	x20, x0
Lloh0:
	adrp	x9, _array_states@GOTPAGE
Lloh1:
	ldr	x9, [x9, _array_states@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_match_word
	mov	x22, x0
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_4
; %bb.1:
	cmp	w22, #138
	b.eq	LBB0_3
; %bb.2:
	cmp	w22, #134
	b.ne	LBB0_4
LBB0_3:
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_10
LBB0_4:
	mov	x0, x20
	bl	_mddev_lock
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_6
; %bb.5:
	sxtw	x19, w0
	b	LBB0_47
LBB0_6:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	sub	w8, w22, #130
	cmp	w8, #8
	b.hi	LBB0_38
; %bb.7:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_32
; %bb.9:
	mov	x0, x20
	mov	x1, #0
	bl	_md_set_readonly
	b	LBB0_37
LBB0_10:
	add	x21, x20, #40
	mov	x0, x21
	bl	_spin_lock
	mov	x0, x20
	bl	_restart_array
	cmp	w22, #138
	b.ne	LBB0_12
; %bb.11:
Lloh8:
	adrp	x8, _MD_SB_CHANGE_PENDING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MD_SB_CHANGE_PENDING@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, x20, #28
	bl	_clear_bit
	ldr	w0, [x20, #44]
	bl	_md_wakeup_thread
	add	x0, x20, #24
	bl	_wake_up
	b	LBB0_13
LBB0_12:
	mov	x0, x20
	bl	_set_in_sync
	cbz	w0, LBB0_30
LBB0_13:
	ldr	w0, [x20, #16]
	bl	_sysfs_notify_dirent_safe
LBB0_14:
	mov	x0, x21
	bl	_spin_unlock
	b	LBB0_47
LBB0_15:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_33
; %bb.16:
	ldr	w8, [x20]
	cmp	w8, #1
	b.eq	LBB0_40
; %bb.17:
	cbnz	w8, LBB0_42
; %bb.18:
	mov	x0, x20
	mov	x1, #0
	bl	_md_set_readonly
	b	LBB0_41
LBB0_19:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_44
; %bb.20:
	mov	x0, x20
	mov	w1, #2
	b	LBB0_22
LBB0_21:
	mov	x0, x20
	mov	w1, #0
LBB0_22:
	mov	x2, #0
	bl	_do_md_stop
	b	LBB0_37
LBB0_23:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_38
; %bb.24:
	mov	x0, x20
	bl	_restart_array
	mov	x21, x0
	cbnz	w0, LBB0_39
; %bb.25:
	add	x21, x20, #40
	mov	x0, x21
	bl	_spin_lock
	mov	x0, x20
	bl	_set_in_sync
	mov	x22, x0
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
	mov	x0, x21
	bl	_spin_unlock
	cbnz	w22, LBB0_44
; %bb.26:
	neg	w21, w23
	b	LBB0_38
LBB0_27:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_34
; %bb.28:
	mov	x0, x20
	bl	_restart_array
	mov	x21, x0
	cbnz	w0, LBB0_39
; %bb.29:
Lloh14:
	adrp	x8, _MD_SB_CHANGE_PENDING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MD_SB_CHANGE_PENDING@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	add	x1, x20, #28
	bl	_clear_bit
	add	x0, x20, #24
	bl	_wake_up
	b	LBB0_44
LBB0_30:
Lloh17:
	adrp	x8, _EBUSY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh19:
	ldrsw	x8, [x8]
	cbz	w8, LBB0_13
; %bb.31:
	neg	x19, x8
	b	LBB0_14
LBB0_32:
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x20, #20]
	mov	w1, #1
	b	LBB0_35
LBB0_33:
	mov	w8, #2
	str	w8, [x20]
	b	LBB0_36
LBB0_34:
	str	wzr, [x20]
	ldr	w0, [x20, #20]
	mov	w1, #0
LBB0_35:
	bl	_set_disk_ro
LBB0_36:
	mov	x0, x20
	bl	_do_md_run
LBB0_37:
	mov	x21, x0
LBB0_38:
	cbz	w21, LBB0_44
LBB0_39:
	mov	x0, x20
	bl	_mddev_unlock
	sxtw	x19, w21
	b	LBB0_47
LBB0_40:
	mov	x0, x20
	bl	_restart_array
LBB0_41:
	mov	x21, x0
LBB0_42:
	cbnz	w21, LBB0_39
; %bb.43:
	mov	w8, #2
	str	w8, [x20]
	ldr	w0, [x20, #20]
	mov	w1, #0
	bl	_set_disk_ro
LBB0_44:
	ldr	x8, [x20, #8]
Lloh20:
	adrp	x9, _UNTIL_IOCTL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _UNTIL_IOCTL@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_46
; %bb.45:
	str	xzr, [x20, #8]
LBB0_46:
	ldr	w0, [x20, #16]
	bl	_sysfs_notify_dirent_safe
	mov	x0, x20
	bl	_mddev_unlock
LBB0_47:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_19-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_23-LBB0_8)>>2
	.byte	(LBB0_38-LBB0_8)>>2
	.byte	(LBB0_38-LBB0_8)>>2
	.byte	(LBB0_38-LBB0_8)>>2
	.byte	(LBB0_27-LBB0_8)>>2
                                        ; -- End function
	.comm	_array_states,4,2               ; @array_states
	.comm	_MD_SB_CHANGE_PENDING,4,2       ; @MD_SB_CHANGE_PENDING
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UNTIL_IOCTL,8,3                ; @UNTIL_IOCTL
	.no_dead_strip	_array_state_store
.subsections_via_symbols
