	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function sync_request
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_sync_request:                          ## @sync_request
	.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	%rdi, %r12
	movq	(%rdi), %rbx
	movq	32(%rdi), %r13
	cmpq	%rsi, %rbx
	jle	LBB0_1
## %bb.7:
	movq	%rdx, %r15
	movq	%rsi, %r14
	movl	40(%r13), %edi
	xorl	%esi, %esi
	cmpl	$2, (%r13)
	setne	%sil
	callq	_wait_event
	movq	_MD_RECOVERY_RESHAPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%r12), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.34:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reshape_request                ## TAILCALL
LBB0_1:
	movq	%r12, %rdi
	callq	_unplug_slaves
	movq	_MD_RECOVERY_RESHAPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%r12), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	callq	_end_reshape
	xorl	%ecx, %ecx
	jmp	LBB0_33
LBB0_8:
	movq	16(%r12), %rax
	cmpq	8(%r13), %rax
	jl	LBB0_11
## %bb.9:
	movq	_MD_RECOVERY_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	(%r12), %rcx
	subq	%r14, %rcx
	movl	$1, (%r15)
	jmp	LBB0_33
LBB0_3:
	movq	8(%r12), %rsi
	cmpq	%rbx, %rsi
	jge	LBB0_5
## %bb.4:
	movl	24(%r12), %edi
	leaq	-48(%rbp), %rdx
	movl	$1, %ecx
	callq	_bitmap_end_sync
	jmp	LBB0_6
LBB0_11:
	movq	_MD_RECOVERY_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_18
## %bb.12:
	cmpq	$0, 32(%r13)
	jne	LBB0_18
## %bb.13:
	movl	24(%r12), %edi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	_bitmap_start_sync
	testl	%eax, %eax
	jne	LBB0_18
## %bb.14:
	movq	-48(%rbp), %rcx
	movq	_STRIPE_SECTORS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rsi, %rcx
	jge	LBB0_15
LBB0_18:
	movl	24(%r12), %edi
	movq	%r14, %rsi
	callq	_bitmap_cond_end_sync
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_get_active_stripe
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_get_active_stripe
	movq	%rax, %r15
	movl	$1, %edi
	callq	_schedule_timeout_uninterruptible
LBB0_20:
	movl	16(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_32
## %bb.21:
	movq	24(%r13), %rcx
	cmpl	$4, %eax
	jae	LBB0_23
## %bb.22:
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	jmp	LBB0_30
LBB0_5:
	movq	$0, 32(%r13)
LBB0_6:
	movl	24(%r12), %edi
	callq	_bitmap_close_sync
	xorl	%ecx, %ecx
	jmp	LBB0_33
LBB0_23:
	movl	%eax, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rsi
	movq	%rsi, %rbx
	shrq	$2, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.25:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	pxor	%xmm1, %xmm1
	xorl	%edi, %edi
	movaps	LCPI0_0(%rip), %xmm4            ## xmm4 = <1,1,u,u>
	xorps	%xmm2, %xmm2
	xorps	%xmm3, %xmm3
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdi,8), %xmm0
	movdqu	16(%rcx,%rdi,8), %xmm5
	movdqu	32(%rcx,%rdi,8), %xmm6
	movdqu	48(%rcx,%rdi,8), %xmm7
	pcmpeqq	%xmm1, %xmm0
	pcmpeqq	%xmm1, %xmm5
	pcmpeqq	%xmm1, %xmm6
	por	%xmm0, %xmm6
	pcmpeqq	%xmm1, %xmm7
	por	%xmm5, %xmm7
	pshufd	$232, %xmm6, %xmm0              ## xmm0 = xmm6[0,2,2,3]
	blendvps	%xmm0, %xmm4, %xmm2
	pshufd	$232, %xmm7, %xmm0              ## xmm0 = xmm7[0,2,2,3]
	blendvps	%xmm0, %xmm4, %xmm3
	addq	$8, %rdi
	addq	$-2, %rsi
	jne	LBB0_26
	jmp	LBB0_27
LBB0_24:
	xorps	%xmm2, %xmm2
	xorl	%edi, %edi
	xorps	%xmm3, %xmm3
LBB0_27:
	testb	$1, %bl
	je	LBB0_29
## %bb.28:
	movdqu	(%rcx,%rdi,8), %xmm0
	movdqu	16(%rcx,%rdi,8), %xmm1
	xorps	%xmm4, %xmm4
	pcmpeqq	%xmm4, %xmm0
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	pcmpeqq	%xmm4, %xmm1
	pshufd	$232, %xmm1, %xmm1              ## xmm1 = xmm1[0,2,2,3]
	movaps	LCPI0_0(%rip), %xmm4            ## xmm4 = <1,1,u,u>
	blendvps	%xmm0, %xmm4, %xmm2
	movdqa	%xmm1, %xmm0
	blendvps	%xmm0, %xmm4, %xmm3
LBB0_29:
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm2, %xmm0
	blendvps	%xmm0, %xmm3, %xmm2
	movq	%xmm2, %rsi
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	setne	%bl
	cmpq	%rax, %rdx
	je	LBB0_32
LBB0_30:
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rdx,8)
	cmovel	%esi, %ebx
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_31
LBB0_32:
	movl	24(%r12), %edi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rsi
	movl	%ebx, %ecx
	callq	_bitmap_start_sync
	movq	_STRIPE_SYNC_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movq	%r15, %rdi
	callq	_handle_stripe
	movq	%r15, %rdi
	callq	_release_stripe
	movq	_STRIPE_SECTORS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_33:
	movq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	$1, (%r15)
	movq	%rcx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_16
## %bb.17:
	movq	%rcx, %rax
	cqto
	idivq	%rsi
	subq	%rdx, %rcx
	jmp	LBB0_33
LBB0_16:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
	subq	%rdx, %rcx
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_MD_RECOVERY_RESHAPE,4,2        ## @MD_RECOVERY_RESHAPE
	.comm	_MD_RECOVERY_SYNC,4,2           ## @MD_RECOVERY_SYNC
	.comm	_MD_RECOVERY_REQUESTED,4,2      ## @MD_RECOVERY_REQUESTED
	.comm	_STRIPE_SECTORS,8,3             ## @STRIPE_SECTORS
	.comm	_STRIPE_SYNC_REQUESTED,4,2      ## @STRIPE_SYNC_REQUESTED
	.no_dead_strip	_sync_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sync_request
_sync_request:                          ; @sync_request
	.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, x0
	ldr	x21, [x0, #32]
	ldr	x23, [x0]
	cmp	x23, x1
	b.le	LBB0_3
; %bb.1:
	mov	x22, x2
	mov	x20, x1
	ldr	w0, [x21, #40]
	ldr	w8, [x21]
	cmp	w8, #2
	cset	w1, ne
	bl	_wait_event
Lloh0:
	adrp	x8, _MD_RECOVERY_RESHAPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MD_RECOVERY_RESHAPE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x23, x19, #28
	mov	x1, x23
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	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
	b	_reshape_request
LBB0_3:
	mov	x0, x19
	bl	_unplug_slaves
Lloh3:
	adrp	x8, _MD_RECOVERY_RESHAPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MD_RECOVERY_RESHAPE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #28
	bl	_test_bit
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x21
	bl	_end_reshape
	mov	x0, #0
	b	LBB0_28
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.lt	LBB0_10
; %bb.6:
Lloh6:
	adrp	x8, _MD_RECOVERY_SYNC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MD_RECOVERY_SYNC@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_bit
	cbz	x0, LBB0_10
; %bb.7:
	ldr	x8, [x19]
	sub	x0, x8, x20
	mov	w8, #1
	str	w8, [x22]
	b	LBB0_28
LBB0_8:
	ldr	x1, [x19, #8]
	cmp	x1, x23
	b.ge	LBB0_19
; %bb.9:
	ldr	w0, [x19, #24]
	add	x2, sp, #8
	mov	w3, #1
	bl	_bitmap_end_sync
	b	LBB0_20
LBB0_10:
Lloh9:
	adrp	x8, _MD_RECOVERY_REQUESTED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MD_RECOVERY_REQUESTED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_bit
Lloh12:
	adrp	x23, _STRIPE_SECTORS@GOTPAGE
Lloh13:
	ldr	x23, [x23, _STRIPE_SECTORS@GOTPAGEOFF]
	cbnz	x0, LBB0_14
; %bb.11:
	ldr	x8, [x21, #32]
	cbnz	x8, LBB0_14
; %bb.12:
	ldr	w0, [x19, #24]
	add	x2, sp, #8
	mov	x1, x20
	mov	w3, #1
	bl	_bitmap_start_sync
	cbnz	w0, LBB0_14
; %bb.13:
	ldr	x8, [sp, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ge	LBB0_29
LBB0_14:
	ldr	w0, [x19, #24]
	mov	x1, x20
	bl	_bitmap_cond_end_sync
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	bl	_get_active_stripe
	mov	x22, x0
	cbnz	x0, LBB0_16
; %bb.15:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_get_active_stripe
	mov	x22, x0
	mov	w0, #1
	bl	_schedule_timeout_uninterruptible
LBB0_16:
	ldr	w8, [x21, #16]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.17:
	ldr	x9, [x21, #24]
	cmp	w8, #8
	b.hs	LBB0_22
; %bb.18:
	mov	x10, #0
	mov	w3, #0
	b	LBB0_25
LBB0_19:
	str	xzr, [x21, #32]
LBB0_20:
	ldr	w0, [x19, #24]
	bl	_bitmap_close_sync
	mov	x0, #0
	b	LBB0_28
LBB0_21:
	mov	w3, #0
	b	LBB0_27
LBB0_22:
	and	x10, x8, #0xfffffff8
	movi.2d	v0, #0000000000000000
	add	x11, x9, #32
	movi.2s	v2, #1
	mov	x12, x10
	movi.2d	v4, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v1, #0000000000000000
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldp	q5, q6, [x11, #-32]
	ldp	q7, q16, [x11], #64
	cmeq.2d	v5, v5, #0
	xtn.2s	v5, v5
	cmeq.2d	v6, v6, #0
	xtn.2s	v6, v6
	cmeq.2d	v7, v7, #0
	xtn.2s	v7, v7
	cmeq.2d	v16, v16, #0
	xtn.2s	v16, v16
	bit.8b	v0, v2, v5
	bit.8b	v4, v2, v6
	bit.8b	v3, v2, v7
	bit.8b	v1, v2, v16
	subs	x12, x12, #8
	b.ne	LBB0_23
; %bb.24:
	cmeq.2s	v2, v0, #0
	bit.8b	v0, v4, v2
	cmeq.2s	v2, v0, #0
	bit.8b	v0, v3, v2
	cmeq.2s	v2, v0, #0
	bit.8b	v0, v1, v2
	fmov	x11, d0
	cmp	x11, #0
	cset	w3, ne
	cmp	x10, x8
	b.eq	LBB0_27
LBB0_25:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #8
	cmp	x10, #0
	csinc	w3, w3, wzr, ne
	subs	x8, x8, #1
	b.ne	LBB0_26
LBB0_27:
	ldr	w0, [x19, #24]
	add	x2, sp, #8
	mov	x1, x20
	bl	_bitmap_start_sync
Lloh14:
	adrp	x8, _STRIPE_SYNC_REQUESTED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _STRIPE_SYNC_REQUESTED@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_set_bit
	mov	x0, x22
	bl	_handle_stripe
	mov	x0, x22
	bl	_release_stripe
	ldr	x0, [x23]
LBB0_28:
	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_29:
	mov	w10, #1
	str	w10, [x22]
	sdiv	x8, x8, x9
	mul	x0, x8, x9
	b	LBB0_28
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MD_RECOVERY_RESHAPE,4,2        ; @MD_RECOVERY_RESHAPE
	.comm	_MD_RECOVERY_SYNC,4,2           ; @MD_RECOVERY_SYNC
	.comm	_MD_RECOVERY_REQUESTED,4,2      ; @MD_RECOVERY_REQUESTED
	.comm	_STRIPE_SECTORS,8,3             ; @STRIPE_SECTORS
	.comm	_STRIPE_SYNC_REQUESTED,4,2      ; @STRIPE_SYNC_REQUESTED
	.no_dead_strip	_sync_request
.subsections_via_symbols
