	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid1_sync_request
_raid1_sync_request:                    ## @raid1_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
	subq	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	72(%rdi), %r12
	movq	_RESYNC_SECTORS@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rdi
	callq	_sector_to_idx
	movl	%eax, %r15d
	leaq	48(%r12), %rdi
	callq	_mempool_initialized
	testl	%eax, %eax
	je	LBB0_15
LBB0_1:
	movq	(%r14), %rax
	movq	%rax, %rdx
	subq	%rbx, %rdx
	jle	LBB0_13
## %bb.2:
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	cmpq	$0, 48(%r14)
	jne	LBB0_6
## %bb.3:
	movq	16(%r14), %rax
	movq	_MaxSector@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	_MD_RECOVERY_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	leaq	40(%r14), %rsi
	callq	_test_bit
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	cmpq	$0, (%r12)
	je	LBB0_93
LBB0_6:
	movq	48(%r14), %rdi
	leaq	-80(%rbp), %rdx
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	_md_bitmap_start_sync
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	cmpq	$0, (%r12)
	jne	LBB0_9
## %bb.8:
	movq	_MD_RECOVERY_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	40(%r14), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_88
LBB0_9:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movslq	%r15d, %rdi
	shlq	$2, %rdi
	addq	40(%r12), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	$1, %edi
	callq	_schedule_timeout_uninterruptible
LBB0_11:
	movq	48(%r14), %r15
	movq	%r14, %rdi
	callq	_mddev_is_clustered
	testq	%rax, %rax
	je	LBB0_21
## %bb.12:
	movslq	(%r13), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%rax,2), %rax
	xorl	%edx, %edx
	cmpq	16(%r12), %rax
	setg	%dl
	jmp	LBB0_22
LBB0_13:
	movq	8(%r14), %rsi
	cmpq	%rax, %rsi
	jge	LBB0_17
## %bb.14:
	movq	48(%r14), %rdi
	leaq	-80(%rbp), %rdx
	movl	$1, %ecx
	callq	_md_bitmap_end_sync
	jmp	LBB0_18
LBB0_15:
	movq	%r12, %rdi
	callq	_init_resync
	testq	%rax, %rax
	jne	LBB0_23
	jmp	LBB0_1
LBB0_17:
	movq	$0, (%r12)
LBB0_18:
	movq	48(%r14), %rdi
	callq	_md_bitmap_close_sync
	movq	%r12, %rdi
	callq	_close_sync
	movq	%r14, %rdi
	callq	_mddev_is_clustered
	testq	%rax, %rax
	je	LBB0_23
## %bb.19:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
	jmp	LBB0_23
LBB0_21:
	xorl	%edx, %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_22:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_md_bitmap_cond_end_sync
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_raise_barrier
	testq	%rax, %rax
	je	LBB0_25
LBB0_23:
	xorl	%edx, %edx
LBB0_24:
	movq	%rdx, %rax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	%r12, %r15
	movq	%rbx, %r12
	movq	%r15, %rdi
	callq	_raid1_alloc_init_r1buf
	movq	%rax, %rbx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	%r14, 48(%rbx)
	movq	%r12, 40(%rbx)
	leaq	32(%rbx), %rsi
	movq	%rbx, -160(%rbp)                ## 8-byte Spill
	movq	$0, 32(%rbx)
	movq	_R1BIO_IsSync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_bit
	movq	%r12, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_align_to_barrier_unit_end
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	cmpl	$0, 24(%r15)
	movq	%r14, -128(%rbp)                ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_46
## %bb.26:
	leaq	40(%r14), %rbx
	xorl	%r15d, %r15d
	movl	$-1, -104(%rbp)                 ## 4-byte Folded Spill
	movl	$0, -84(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -88(%rbp)                   ## 4-byte Folded Spill
	movl	$-1, -92(%rbp)                  ## 4-byte Folded Spill
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%rbx, -152(%rbp)                ## 8-byte Spill
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_28 Depth=1
	incq	%r15
	movslq	24(%r12), %rax
	addq	%rax, %rax
	cmpq	%rax, %r15
	jge	LBB0_45
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax,%r15,8), %r14
	movq	32(%r12), %rax
	movq	(%rax,%r15,8), %rdi
	callq	_rcu_dereference
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r13), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_34
LBB0_30:                                ##   in Loop: Header=BB0_28 Depth=1
	movslq	24(%r12), %rax
	cmpq	%rax, %r15
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	$1, %ecx
	cmovll	%ecx, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
LBB0_31:                                ##   in Loop: Header=BB0_28 Depth=1
	cmpq	$0, (%r14)
	je	LBB0_27
## %bb.32:                              ##   in Loop: Header=BB0_28 Depth=1
	leaq	20(%r13), %rdi
	callq	_atomic_inc
	movq	(%r13), %rax
	addq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, 16(%r14)
	movl	16(%r13), %esi
	movq	%r14, %rdi
	callq	_bio_set_dev
	movq	_FailFast@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %r13
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_27
## %bb.33:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	_MD_FAILFAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_28 Depth=1
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_44
## %bb.35:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	_MaxSector@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -144(%rbp)
	movq	%r13, %rdi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	leaq	-144(%rbp), %rcx
	leaq	-116(%rbp), %r8
	callq	_is_badblock
	movq	-144(%rbp), %rcx
	testq	%rax, %rax
	je	LBB0_39
## %bb.36:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	%rcx, %rax
	subq	%r12, %rax
	jle	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_28 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	jmp	LBB0_39
LBB0_38:                                ##   in Loop: Header=BB0_28 Depth=1
	addl	-116(%rbp), %eax
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	cmpl	%eax, %esi
	movl	%esi, %edx
	cmovgl	%eax, %edx
	movl	%eax, -116(%rbp)
	testl	%esi, %esi
	cmovel	%eax, %edx
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
LBB0_39:                                ##   in Loop: Header=BB0_28 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	cmpq	-48(%rbp), %rcx                 ## 8-byte Folded Reload
	jle	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	_WriteMostly@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	movl	-92(%rbp), %edi                 ## 4-byte Reload
	testl	%edi, %edi
	movl	%edi, %ecx
	cmovsl	%r15d, %ecx
	movl	-104(%rbp), %esi                ## 4-byte Reload
	testl	%esi, %esi
	movl	%esi, %edx
	cmovsl	%r15d, %edx
	testq	%rax, %rax
	cmovnel	%ecx, %edi
	movl	%edi, -92(%rbp)                 ## 4-byte Spill
	cmovel	%edx, %esi
	movl	%esi, -104(%rbp)                ## 4-byte Spill
	movq	_REQ_OP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_bio_set_op_attrs
	movq	_end_sync_read@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	incl	-52(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_31
LBB0_41:                                ##   in Loop: Header=BB0_28 Depth=1
	movq	_WriteErrorSeen@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_31
## %bb.42:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	_MD_RECOVERY_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_31
## %bb.43:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	_MD_RECOVERY_CHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_31
LBB0_44:                                ##   in Loop: Header=BB0_28 Depth=1
	movq	_REQ_OP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_bio_set_op_attrs
	movq	_end_sync_write@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	incl	-88(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_31
LBB0_45:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movl	-104(%rbp), %ecx                ## 4-byte Reload
	testl	%ecx, %ecx
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	-84(%rbp), %r13d                ## 4-byte Reload
	movl	-88(%rbp), %r15d                ## 4-byte Reload
	movl	-92(%rbp), %eax                 ## 4-byte Reload
	jns	LBB0_48
	jmp	LBB0_47
LBB0_46:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movl	$-1, %eax
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%r15d, %r15d
LBB0_47:
	movl	%eax, %ecx
LBB0_48:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_55
## %bb.49:
	testl	%r13d, %r13d
	jle	LBB0_55
## %bb.50:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	24(%r12), %eax
	movl	$1, %r14d
	testl	%eax, %eax
	jle	LBB0_72
## %bb.51:
	xorl	%ebx, %ebx
	movq	_end_sync_write@GOTPCREL(%rip), %r15
	jmp	LBB0_53
	.p2align	4, 0x90
LBB0_52:                                ##   in Loop: Header=BB0_53 Depth=1
	incq	%rbx
	leal	(%rax,%rax), %ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_72
LBB0_53:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	(%rcx), %rcx
	cmpq	(%r15), %rcx
	jne	LBB0_52
## %bb.54:                              ##   in Loop: Header=BB0_53 Depth=1
	movq	32(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	callq	_rdev_set_badblocks
	testq	%rax, %rax
	setne	%al
	testl	%r14d, %r14d
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %r14d
	movl	24(%r12), %eax
	jmp	LBB0_52
LBB0_55:
	movq	_MD_RECOVERY_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	40(%r14), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	movl	$1, %ecx
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	subl	%esi, %ecx
	xorl	%edx, %edx
	testl	%esi, %esi
	cmovlel	%edx, %ecx
	testq	%rax, %rax
	cmovel	%edx, %ecx
	cmpl	%ecx, %r15d
	je	LBB0_74
## %bb.56:
	testl	%esi, %esi
	je	LBB0_74
## %bb.57:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movl	-96(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %r13d
	movl	%ecx, %eax
	cmovll	%r13d, %eax
	testl	%r13d, %r13d
	cmovlel	%ecx, %eax
	movq	24(%r14), %rcx
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	cmpq	%rcx, %rdx
	cmovlq	%rdx, %rcx
	cltq
	addq	%r12, %rax
	cmpq	%rax, %rcx
	cmovlq	%rcx, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	$0, -80(%rbp)
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_60
	.p2align	4, 0x90
LBB0_58:                                ##   in Loop: Header=BB0_60 Depth=1
	movq	-80(%rbp), %rax
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_59:                                ##   in Loop: Header=BB0_60 Depth=1
	sarl	$9, %r15d
	movslq	%r15d, %rcx
	addq	%rcx, %rbx
	addq	%rcx, %r12
	subq	%rcx, %rax
	movq	%rax, -80(%rbp)
	incl	%r13d
	movq	_RESYNC_PAGES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r13d
	jge	LBB0_75
LBB0_60:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_70 Depth 2
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	sarl	$9, %edx
	movslq	%edx, %rdx
	addq	%r12, %rdx
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movl	%edi, %r15d
	subl	%r12d, %r15d
	shll	$9, %r15d
	cmpq	%rdi, %rdx
	cmovlel	%ecx, %r15d
	testl	%r15d, %r15d
	je	LBB0_75
## %bb.61:                              ##   in Loop: Header=BB0_60 Depth=1
	testq	%rax, %rax
	jne	LBB0_67
## %bb.62:                              ##   in Loop: Header=BB0_60 Depth=1
	movq	48(%r14), %rdi
	movq	%r12, %rsi
	leaq	-80(%rbp), %rdx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	callq	_md_bitmap_start_sync
	testl	%eax, %eax
	jne	LBB0_65
## %bb.63:                              ##   in Loop: Header=BB0_60 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	jne	LBB0_65
## %bb.64:                              ##   in Loop: Header=BB0_60 Depth=1
	movq	_MD_RECOVERY_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_75
LBB0_65:                                ##   in Loop: Header=BB0_60 Depth=1
	movl	%r15d, %eax
	sarl	$9, %eax
	movslq	%eax, %rcx
	movq	-80(%rbp), %rax
	cmpq	%rcx, %rax
	jge	LBB0_67
## %bb.66:                              ##   in Loop: Header=BB0_60 Depth=1
	movl	%eax, %r15d
	shll	$9, %r15d
	.p2align	4, 0x90
LBB0_67:                                ##   in Loop: Header=BB0_60 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, 24(%rcx)
	jle	LBB0_59
## %bb.68:                              ##   in Loop: Header=BB0_60 Depth=1
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_70
	.p2align	4, 0x90
LBB0_69:                                ##   in Loop: Header=BB0_70 Depth=2
	incq	%r14
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movslq	24(%rax), %rax
	addq	%rax, %rax
	cmpq	%rax, %r14
	jge	LBB0_58
LBB0_70:                                ##   Parent Loop BB0_60 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax,%r14,8), %rbx
	movq	%rbx, %rdi
	callq	_get_resync_pages
	cmpq	$0, (%rbx)
	je	LBB0_69
## %bb.71:                              ##   in Loop: Header=BB0_70 Depth=2
	movq	%rax, %rdi
	movl	%r13d, %esi
	callq	_resync_fetch_page
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_bio_add_page
	jmp	LBB0_69
LBB0_72:
	movq	_MD_SB_CHANGE_DEVS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	leaq	64(%rbx), %rsi
	callq	_set_bit
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	$1, (%rax)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_put_buf
	testl	%r14d, %r14d
	je	LBB0_87
## %bb.73:
	movslq	%r13d, %rdx
	jmp	LBB0_24
LBB0_74:
	movslq	%r13d, %rax
	addq	%r12, %rax
	testl	%r13d, %r13d
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	cmovgq	%rax, %rbx
	subq	%r12, %rbx
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	$1, (%rax)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_put_buf
	movq	%rbx, %rdx
	jmp	LBB0_24
LBB0_75:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, 24(%rax)
	movq	%r14, %rdi
	callq	_mddev_is_clustered
	testq	%rax, %rax
	je	LBB0_78
## %bb.76:
	addq	-48(%rbp), %r12                 ## 8-byte Folded Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%r12, 16(%rax)
	jge	LBB0_78
## %bb.77:
	movq	32(%r14), %rsi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rsi, 8(%rcx)
	movq	_CLUSTER_RESYNC_WINDOW_SECTORS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%rsi, %rdx
	movq	%rdx, 16(%rcx)
	movq	_md_cluster_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	callq	*(%rax)
LBB0_78:
	movq	_MD_RECOVERY_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_test_bit
	movq	-160(%rbp), %rdi                ## 8-byte Reload
	addq	$16, %rdi
	testq	%rax, %rax
	je	LBB0_89
## %bb.79:
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	callq	_atomic_set
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	24(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_92
## %bb.80:
	movl	$1, %ebx
	movq	_end_sync_read@GOTPCREL(%rip), %r13
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_81:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	-8(%rcx,%rbx,8), %r15
	movq	(%r15), %rcx
	cmpq	(%r13), %rcx
	jne	LBB0_85
## %bb.82:                              ##   in Loop: Header=BB0_81 Depth=1
	decl	%r14d
	movq	%r15, %rdi
	movq	%rdx, %rsi
	callq	_md_sync_acct_bio
	cmpl	$1, %r14d
	jne	LBB0_84
## %bb.83:                              ##   in Loop: Header=BB0_81 Depth=1
	movq	_MD_FAILFAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r15)
LBB0_84:                                ##   in Loop: Header=BB0_81 Depth=1
	movq	%r15, %rdi
	callq	_generic_make_request
	movl	24(%r12), %eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_85:                                ##   in Loop: Header=BB0_81 Depth=1
	leal	(%rax,%rax), %ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_24
## %bb.86:                              ##   in Loop: Header=BB0_81 Depth=1
	incq	%rbx
	testl	%r14d, %r14d
	jne	LBB0_81
	jmp	LBB0_24
LBB0_87:
	movl	56(%rbx), %eax
	movl	%eax, 28(%r12)
	movq	_MD_RECOVERY_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rbx
	movq	%rbx, %rsi
	callq	_set_bit
	jmp	LBB0_23
LBB0_88:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	$1, (%rax)
	movq	-80(%rbp), %rdx
	jmp	LBB0_24
LBB0_89:
	movl	$1, %esi
	callq	_atomic_set
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movslq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_md_sync_acct_bio
	cmpl	$1, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_91
## %bb.90:
	movq	_MD_FAILFAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%rbx)
LBB0_91:
	movq	%rbx, %rdi
	callq	_generic_make_request
LBB0_92:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_24
LBB0_93:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_RESYNC_SECTORS,4,2             ## @RESYNC_SECTORS
	.comm	_MaxSector,8,3                  ## @MaxSector
	.comm	_MD_RECOVERY_REQUESTED,4,2      ## @MD_RECOVERY_REQUESTED
	.comm	_R1BIO_IsSync,4,2               ## @R1BIO_IsSync
	.comm	_Faulty,4,2                     ## @Faulty
	.comm	_In_sync,4,2                    ## @In_sync
	.comm	_REQ_OP_WRITE,4,2               ## @REQ_OP_WRITE
	.comm	_end_sync_write,8,3             ## @end_sync_write
	.comm	_WriteMostly,4,2                ## @WriteMostly
	.comm	_REQ_OP_READ,4,2                ## @REQ_OP_READ
	.comm	_end_sync_read,8,3              ## @end_sync_read
	.comm	_WriteErrorSeen,4,2             ## @WriteErrorSeen
	.comm	_MD_RECOVERY_SYNC,4,2           ## @MD_RECOVERY_SYNC
	.comm	_MD_RECOVERY_CHECK,4,2          ## @MD_RECOVERY_CHECK
	.comm	_FailFast,4,2                   ## @FailFast
	.comm	_MD_FAILFAST,4,2                ## @MD_FAILFAST
	.comm	_MD_SB_CHANGE_DEVS,4,2          ## @MD_SB_CHANGE_DEVS
	.comm	_MD_RECOVERY_INTR,4,2           ## @MD_RECOVERY_INTR
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_RESYNC_PAGES,4,2               ## @RESYNC_PAGES
	.comm	_CLUSTER_RESYNC_WINDOW_SECTORS,8,3 ## @CLUSTER_RESYNC_WINDOW_SECTORS
	.comm	_md_cluster_ops,8,3             ## @md_cluster_ops
	.no_dead_strip	_raid1_sync_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid1_sync_request
_raid1_sync_request:                    ; @raid1_sync_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x27, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #72]
Lloh0:
	adrp	x24, _RESYNC_SECTORS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _RESYNC_SECTORS@GOTPAGEOFF]
	ldr	w23, [x24]
	mov	x0, x1
	bl	_sector_to_idx
	mov	x22, x0
	add	x0, x19, #48
	bl	_mempool_initialized
	cbz	w0, LBB0_15
LBB0_1:
	ldr	x25, [x20]
	subs	x28, x25, x21
	b.le	LBB0_13
; %bb.2:
	ldr	x8, [x20, #48]
	cbnz	x8, LBB0_6
; %bb.3:
	ldr	x8, [x20, #16]
Lloh2:
	adrp	x9, _MaxSector@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MaxSector@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
Lloh5:
	adrp	x8, _MD_RECOVERY_REQUESTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MD_RECOVERY_REQUESTED@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, x20, #40
	bl	_test_bit
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x19]
	cbz	x8, LBB0_89
LBB0_6:
	ldr	x0, [x20, #48]
	add	x2, sp, #72
	mov	x1, x21
	mov	w3, #1
	bl	_md_bitmap_start_sync
	cbnz	w0, LBB0_9
; %bb.7:
	ldr	x8, [x19]
	cbnz	x8, LBB0_9
; %bb.8:
Lloh8:
	adrp	x8, _MD_RECOVERY_REQUESTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MD_RECOVERY_REQUESTED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, x20, #40
	bl	_test_bit
	cbz	x0, LBB0_85
LBB0_9:
	ldr	x8, [x19, #40]
	add	x0, x8, w22, sxtw #2
	bl	_atomic_read
	cbz	x0, LBB0_11
; %bb.10:
	mov	w0, #1
	bl	_schedule_timeout_uninterruptible
LBB0_11:
	ldr	x22, [x20, #48]
	mov	x0, x20
	bl	_mddev_is_clustered
	cbz	x0, LBB0_19
; %bb.12:
	ldrsw	x8, [x24]
	add	x8, x21, x8, lsl #1
	ldr	x9, [x19, #16]
	cmp	x8, x9
	cset	w2, gt
	b	LBB0_20
LBB0_13:
	ldr	x1, [x20, #8]
	cmp	x1, x25
	b.ge	LBB0_16
; %bb.14:
	ldr	x0, [x20, #48]
	add	x2, sp, #72
	mov	w3, #1
	bl	_md_bitmap_end_sync
	b	LBB0_17
LBB0_15:
	mov	x0, x19
	bl	_init_resync
	cbnz	x0, LBB0_21
	b	LBB0_1
LBB0_16:
	str	xzr, [x19]
LBB0_17:
	ldr	x0, [x20, #48]
	bl	_md_bitmap_close_sync
	mov	x0, x19
	bl	_close_sync
	mov	x0, x20
	bl	_mddev_is_clustered
	mov	x28, #0
	cbz	x0, LBB0_22
; %bb.18:
	stp	xzr, xzr, [x19, #8]
	b	LBB0_22
LBB0_19:
	mov	w2, #0
LBB0_20:
	mov	x0, x22
	mov	x1, x21
	bl	_md_bitmap_cond_end_sync
	mov	x0, x19
	mov	x1, x21
	bl	_raise_barrier
	cbz	x0, LBB0_23
LBB0_21:
	mov	x28, #0
LBB0_22:
	mov	x0, x28
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_23:
	str	x25, [sp, #16]                  ; 8-byte Folded Spill
	mov	x0, x19
	bl	_raid1_alloc_init_r1buf
	mov	x22, x0
	bl	_rcu_read_lock
	stp	x21, x20, [x22, #40]
	mov	x1, x22
	str	xzr, [x1, #32]!
Lloh11:
	adrp	x8, _R1BIO_IsSync@GOTPAGE
Lloh12:
	ldr	x8, [x8, _R1BIO_IsSync@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_set_bit
	mov	x0, x21
	mov	x1, x23
	bl	_align_to_barrier_unit_end
	str	w0, [sp, #48]                   ; 4-byte Folded Spill
	ldr	w8, [x19, #24]
	cmp	w8, #0
	b.le	LBB0_44
; %bb.24:
	str	x27, [sp, #8]                   ; 8-byte Folded Spill
	mov	x23, #0
	str	xzr, [sp, #24]                  ; 8-byte Folded Spill
	mov	w25, #0
	str	wzr, [sp, #56]                  ; 4-byte Folded Spill
	add	x26, x20, #40
	mov	w8, #-1
	str	w8, [sp, #32]                   ; 4-byte Folded Spill
	mov	w8, #-1
	stp	w8, wzr, [sp, #36]              ; 8-byte Folded Spill
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19, #24]
	cmp	x23, x8, lsl #1
	b.ge	LBB0_43
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	lsl	x9, x23, #3
	ldr	x28, [x8, x9]
	ldr	x8, [x19, #32]
	ldr	x0, [x8, x9]
	bl	_rcu_dereference
	mov	x27, x0
	cbz	x0, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
Lloh14:
	adrp	x8, _Faulty@GOTPAGE
Lloh15:
	ldr	x8, [x8, _Faulty@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	add	x24, x27, #8
	mov	x1, x24
	bl	_test_bit
	cbz	x0, LBB0_32
LBB0_28:                                ;   in Loop: Header=BB0_26 Depth=1
	ldrsw	x8, [x19, #24]
	cmp	x23, x8
	csinc	w25, w25, wzr, ge
LBB0_29:                                ;   in Loop: Header=BB0_26 Depth=1
	ldr	x8, [x28]
	cbz	x8, LBB0_25
; %bb.30:                               ;   in Loop: Header=BB0_26 Depth=1
	add	x0, x27, #20
	bl	_atomic_inc
	ldr	x8, [x27]
	add	x8, x8, x21
	str	x8, [x28, #16]
	ldr	w1, [x27, #16]
	mov	x0, x28
	bl	_bio_set_dev
Lloh17:
	adrp	x8, _FailFast@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FailFast@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	add	x1, x27, #8
	bl	_test_bit
	cbz	x0, LBB0_25
; %bb.31:                               ;   in Loop: Header=BB0_26 Depth=1
Lloh20:
	adrp	x8, _MD_FAILFAST@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MD_FAILFAST@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x28, #8]
	orr	w8, w9, w8
	str	w8, [x28, #8]
	b	LBB0_25
LBB0_32:                                ;   in Loop: Header=BB0_26 Depth=1
Lloh23:
	adrp	x8, _In_sync@GOTPAGE
Lloh24:
	ldr	x8, [x8, _In_sync@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_test_bit
	cbz	x0, LBB0_42
; %bb.33:                               ;   in Loop: Header=BB0_26 Depth=1
Lloh26:
	adrp	x8, _MaxSector@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MaxSector@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	x8, [sp, #64]
	add	x3, sp, #64
	add	x4, sp, #60
	mov	x0, x27
	mov	x1, x21
	ldr	w2, [sp, #48]                   ; 4-byte Folded Reload
	bl	_is_badblock
	ldr	x8, [sp, #64]
	cbz	x0, LBB0_36
; %bb.34:                               ;   in Loop: Header=BB0_26 Depth=1
	subs	x9, x8, x21
	b.le	LBB0_38
; %bb.35:                               ;   in Loop: Header=BB0_26 Depth=1
                                        ; kill: def $w9 killed $w9 killed $x9
	str	w9, [sp, #48]                   ; 4-byte Folded Spill
LBB0_36:                                ;   in Loop: Header=BB0_26 Depth=1
	cmp	x8, x21
	b.le	LBB0_39
LBB0_37:                                ;   in Loop: Header=BB0_26 Depth=1
Lloh29:
	adrp	x8, _WriteMostly@GOTPAGE
Lloh30:
	ldr	x8, [x8, _WriteMostly@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_test_bit
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
	cmp	w9, #0
	csel	w8, w23, w9, lt
	cmp	x0, #0
	csel	w9, w9, w8, eq
	ldr	w8, [sp, #32]                   ; 4-byte Folded Reload
	cmp	w8, #0
	ccmp	x0, #0, #0, lt
	csel	w8, w23, w8, eq
	stp	w8, w9, [sp, #32]               ; 8-byte Folded Spill
Lloh32:
	adrp	x8, _REQ_OP_READ@GOTPAGE
Lloh33:
	ldr	x8, [x8, _REQ_OP_READ@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x28
	mov	w2, #0
	bl	_bio_set_op_attrs
Lloh35:
	adrp	x8, _end_sync_read@GOTPAGE
Lloh36:
	ldr	x8, [x8, _end_sync_read@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	str	x8, [x28]
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	add	w8, w8, #1
	str	w8, [sp, #56]                   ; 4-byte Folded Spill
	b	LBB0_29
LBB0_38:                                ;   in Loop: Header=BB0_26 Depth=1
	ldr	w10, [sp, #60]
	add	w9, w10, w9
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	cmp	w10, w9
	str	w9, [sp, #60]
	ccmp	w10, #0, #4, le
	csel	w10, w9, w10, eq
	str	x10, [sp, #24]                  ; 8-byte Folded Spill
	cmp	x8, x21
	b.gt	LBB0_37
LBB0_39:                                ;   in Loop: Header=BB0_26 Depth=1
Lloh38:
	adrp	x8, _WriteErrorSeen@GOTPAGE
Lloh39:
	ldr	x8, [x8, _WriteErrorSeen@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_test_bit
	cbnz	x0, LBB0_29
; %bb.40:                               ;   in Loop: Header=BB0_26 Depth=1
Lloh41:
	adrp	x8, _MD_RECOVERY_SYNC@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MD_RECOVERY_SYNC@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	mov	x1, x26
	bl	_test_bit
	cbz	x0, LBB0_29
; %bb.41:                               ;   in Loop: Header=BB0_26 Depth=1
Lloh44:
	adrp	x8, _MD_RECOVERY_CHECK@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MD_RECOVERY_CHECK@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	mov	x1, x26
	bl	_test_bit
	cbnz	x0, LBB0_29
LBB0_42:                                ;   in Loop: Header=BB0_26 Depth=1
Lloh47:
	adrp	x8, _REQ_OP_WRITE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _REQ_OP_WRITE@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	mov	x0, x28
	mov	w2, #0
	bl	_bio_set_op_attrs
Lloh50:
	adrp	x8, _end_sync_write@GOTPAGE
Lloh51:
	ldr	x8, [x8, _end_sync_write@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
	str	x8, [x28]
	ldr	w8, [sp, #40]                   ; 4-byte Folded Reload
	add	w8, w8, #1
	str	w8, [sp, #40]                   ; 4-byte Folded Spill
	b	LBB0_29
LBB0_43:
	bl	_rcu_read_unlock
	ldr	x27, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x28, [sp, #24]                  ; 8-byte Folded Reload
	ldp	w8, w23, [sp, #36]              ; 8-byte Folded Reload
	ldr	w9, [sp, #32]                   ; 4-byte Folded Reload
	tbz	w9, #31, LBB0_46
	b	LBB0_45
LBB0_44:
	bl	_rcu_read_unlock
	mov	w28, #0
	mov	w25, #0
	str	wzr, [sp, #56]                  ; 4-byte Folded Spill
	mov	w23, #0
	mov	w8, #-1
LBB0_45:
	mov	x9, x8
LBB0_46:
	str	w9, [x22]
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_53
; %bb.47:
	cmp	w28, #1
	b.lt	LBB0_53
; %bb.48:
	ldr	w8, [x19, #24]
	mov	w23, #1
	cmp	w8, #1
	b.lt	LBB0_81
; %bb.49:
	mov	x25, #0
	mov	w24, #1
Lloh53:
	adrp	x26, _end_sync_write@GOTPAGE
Lloh54:
	ldr	x26, [x26, _end_sync_write@GOTPAGEOFF]
	b	LBB0_51
LBB0_50:                                ;   in Loop: Header=BB0_51 Depth=1
	add	x25, x25, #1
	lsl	w9, w8, #1
	cmp	x25, w9, sxtw
	b.ge	LBB0_82
LBB0_51:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, #8]
	ldr	x9, [x9, x25, lsl #3]
	ldr	x9, [x9]
	ldr	x10, [x26]
	cmp	x9, x10
	b.ne	LBB0_50
; %bb.52:                               ;   in Loop: Header=BB0_51 Depth=1
	ldr	x8, [x19, #32]
	ldr	x0, [x8, x25, lsl #3]
	mov	x1, x21
	mov	x2, x28
	mov	w3, #0
	bl	_rdev_set_badblocks
	cmp	x0, #0
	ccmp	w24, #0, #4, ne
	cset	w24, ne
	ldr	w8, [x19, #24]
	b	LBB0_50
LBB0_53:
Lloh55:
	adrp	x8, _MD_RECOVERY_SYNC@GOTPAGE
Lloh56:
	ldr	x8, [x8, _MD_RECOVERY_SYNC@GOTPAGEOFF]
Lloh57:
	ldr	w0, [x8]
	add	x24, x20, #40
	mov	x1, x24
	bl	_test_bit
	mov	w8, #1
	ldr	w10, [sp, #56]                  ; 4-byte Folded Reload
	sub	w9, w8, w10
	cmp	w10, #0
	ccmp	x0, #0, #4, gt
	csel	w9, w9, wzr, ne
	cmp	w23, w9
	ccmp	w10, #0, #4, ne
	b.ne	LBB0_55
; %bb.54:
	add	x9, x21, w28, sxtw
	cmp	w28, #0
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	csel	x9, x9, x10, gt
	sub	x28, x9, x21
	str	w8, [x27]
	mov	x0, x22
	bl	_put_buf
	b	LBB0_22
LBB0_55:
	str	x24, [sp, #40]                  ; 8-byte Folded Spill
	mov	x8, #0
	mov	w24, #0
	mov	x9, x28
	mov	x28, #0
	ldr	w10, [sp, #48]                  ; 4-byte Folded Reload
	cmp	w9, w10
	ccmp	w9, #0, #4, lt
	csel	w9, w9, w10, gt
	ldr	x10, [x20, #24]
	ldr	x11, [sp, #16]                  ; 8-byte Folded Reload
	cmp	x11, x10
	csel	x10, x11, x10, lt
	add	x9, x21, w9, sxtw
	cmp	x10, x9
	csel	x9, x10, x9, lt
	str	x9, [sp, #48]                   ; 8-byte Folded Spill
	str	xzr, [sp, #72]
	b	LBB0_58
LBB0_56:                                ;   in Loop: Header=BB0_58 Depth=1
	ldr	x8, [sp, #72]
LBB0_57:                                ;   in Loop: Header=BB0_58 Depth=1
	sbfx	x9, x26, #9, #23
	add	x28, x28, x9
	add	x21, x21, x9
	sub	x8, x8, x9
	str	x8, [sp, #72]
	add	w24, w24, #1
Lloh58:
	adrp	x9, _RESYNC_PAGES@GOTPAGE
Lloh59:
	ldr	x9, [x9, _RESYNC_PAGES@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	cmp	w24, w9
	b.ge	LBB0_69
LBB0_58:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_67 Depth 2
Lloh61:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh62:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	asr	w10, w9, #9
	add	x10, x21, w10, sxtw
	ldr	x12, [sp, #48]                  ; 8-byte Folded Reload
	sub	w11, w12, w21
	lsl	w11, w11, #9
	cmp	x10, x12
	csel	w26, w11, w9, gt
	cbz	w26, LBB0_69
; %bb.59:                               ;   in Loop: Header=BB0_58 Depth=1
	cbnz	x8, LBB0_64
; %bb.60:                               ;   in Loop: Header=BB0_58 Depth=1
	ldr	x0, [x20, #48]
	add	x2, sp, #72
	mov	x1, x21
	mov	x3, x25
	bl	_md_bitmap_start_sync
	cbnz	w0, LBB0_63
; %bb.61:                               ;   in Loop: Header=BB0_58 Depth=1
	ldr	x8, [x19]
	cbnz	x8, LBB0_63
; %bb.62:                               ;   in Loop: Header=BB0_58 Depth=1
Lloh64:
	adrp	x8, _MD_RECOVERY_REQUESTED@GOTPAGE
Lloh65:
	ldr	x8, [x8, _MD_RECOVERY_REQUESTED@GOTPAGEOFF]
Lloh66:
	ldr	w0, [x8]
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	bl	_test_bit
	cbz	x0, LBB0_69
LBB0_63:                                ;   in Loop: Header=BB0_58 Depth=1
	asr	w9, w26, #9
	ldr	x8, [sp, #72]
	cmp	x8, w9, sxtw
	lsl	w9, w8, #9
	csel	w26, w26, w9, ge
LBB0_64:                                ;   in Loop: Header=BB0_58 Depth=1
	ldr	w9, [x19, #24]
	cmp	w9, #1
	b.lt	LBB0_57
; %bb.65:                               ;   in Loop: Header=BB0_58 Depth=1
	mov	x23, #0
	b	LBB0_67
LBB0_66:                                ;   in Loop: Header=BB0_67 Depth=2
	add	x23, x23, #1
	ldrsw	x8, [x19, #24]
	cmp	x23, x8, lsl #1
	b.ge	LBB0_56
LBB0_67:                                ;   Parent Loop BB0_58 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22, #8]
	ldr	x27, [x8, x23, lsl #3]
	mov	x0, x27
	bl	_get_resync_pages
	ldr	x8, [x27]
	cbz	x8, LBB0_66
; %bb.68:                               ;   in Loop: Header=BB0_67 Depth=2
	mov	x1, x24
	bl	_resync_fetch_page
	mov	x1, x0
	mov	x0, x27
	mov	x2, x26
	mov	w3, #0
	bl	_bio_add_page
	b	LBB0_66
LBB0_69:
	str	x28, [x22, #24]
	mov	x0, x20
	bl	_mddev_is_clustered
	cbz	x0, LBB0_72
; %bb.70:
	ldr	x8, [x19, #16]
	add	x9, x28, x21
	cmp	x8, x9
	b.ge	LBB0_72
; %bb.71:
	ldr	x1, [x20, #32]
Lloh67:
	adrp	x8, _CLUSTER_RESYNC_WINDOW_SECTORS@GOTPAGE
Lloh68:
	ldr	x8, [x8, _CLUSTER_RESYNC_WINDOW_SECTORS@GOTPAGEOFF]
Lloh69:
	ldr	x8, [x8]
	add	x2, x8, x1
	stp	x1, x2, [x19, #8]
Lloh70:
	adrp	x8, _md_cluster_ops@GOTPAGE
Lloh71:
	ldr	x8, [x8, _md_cluster_ops@GOTPAGEOFF]
Lloh72:
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
LBB0_72:
Lloh73:
	adrp	x8, _MD_RECOVERY_REQUESTED@GOTPAGE
Lloh74:
	ldr	x8, [x8, _MD_RECOVERY_REQUESTED@GOTPAGEOFF]
Lloh75:
	ldr	w0, [x8]
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	bl	_test_bit
	mov	x8, x0
	add	x0, x22, #16
	ldr	w25, [sp, #56]                  ; 4-byte Folded Reload
	cbz	x8, LBB0_86
; %bb.73:
	mov	x1, x25
	bl	_atomic_set
	ldr	w8, [x19, #24]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.74:
	mov	x21, #0
Lloh76:
	adrp	x23, _end_sync_read@GOTPAGE
Lloh77:
	ldr	x23, [x23, _end_sync_read@GOTPAGEOFF]
Lloh78:
	adrp	x24, _MD_FAILFAST@GOTPAGE
Lloh79:
	ldr	x24, [x24, _MD_FAILFAST@GOTPAGEOFF]
LBB0_75:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, #8]
	ldr	x20, [x9, x21, lsl #3]
	ldr	x9, [x20]
	ldr	x10, [x23]
	cmp	x9, x10
	b.ne	LBB0_79
; %bb.76:                               ;   in Loop: Header=BB0_75 Depth=1
	sub	w25, w25, #1
	mov	x0, x20
	mov	x1, x28
	bl	_md_sync_acct_bio
	cmp	w25, #1
	b.ne	LBB0_78
; %bb.77:                               ;   in Loop: Header=BB0_75 Depth=1
	ldr	w8, [x24]
	ldr	w9, [x20, #8]
	bic	w8, w9, w8
	str	w8, [x20, #8]
LBB0_78:                                ;   in Loop: Header=BB0_75 Depth=1
	mov	x0, x20
	bl	_generic_make_request
	ldr	w8, [x19, #24]
LBB0_79:                                ;   in Loop: Header=BB0_75 Depth=1
	add	x21, x21, #1
	lsl	w9, w8, #1
	cmp	x21, w9, sxtw
	b.ge	LBB0_22
; %bb.80:                               ;   in Loop: Header=BB0_75 Depth=1
	cbnz	w25, LBB0_75
	b	LBB0_22
LBB0_81:
	mov	w24, #1
LBB0_82:
Lloh80:
	adrp	x8, _MD_SB_CHANGE_DEVS@GOTPAGE
Lloh81:
	ldr	x8, [x8, _MD_SB_CHANGE_DEVS@GOTPAGEOFF]
Lloh82:
	ldr	w0, [x8]
	add	x1, x20, #64
	bl	_set_bit
	str	w23, [x27]
	mov	x0, x22
	bl	_put_buf
	cbz	w24, LBB0_84
; %bb.83:
	sxtw	x28, w28
	b	LBB0_22
LBB0_84:
	ldr	w8, [x20, #56]
	str	w8, [x19, #28]
Lloh83:
	adrp	x8, _MD_RECOVERY_INTR@GOTPAGE
Lloh84:
	ldr	x8, [x8, _MD_RECOVERY_INTR@GOTPAGEOFF]
Lloh85:
	ldr	w0, [x8]
	add	x1, x20, #40
	bl	_set_bit
	b	LBB0_21
LBB0_85:
	mov	w8, #1
	str	w8, [x27]
	ldr	x28, [sp, #72]
	b	LBB0_22
LBB0_86:
	mov	w1, #1
	bl	_atomic_set
	ldr	x8, [x22, #8]
	ldrsw	x9, [x22]
	ldr	x19, [x8, x9, lsl #3]
	mov	x0, x19
	mov	x1, x28
	bl	_md_sync_acct_bio
	cmp	w25, #1
	b.ne	LBB0_88
; %bb.87:
Lloh86:
	adrp	x8, _MD_FAILFAST@GOTPAGE
Lloh87:
	ldr	x8, [x8, _MD_FAILFAST@GOTPAGEOFF]
Lloh88:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
LBB0_88:
	mov	x0, x19
	bl	_generic_make_request
	b	LBB0_22
LBB0_89:
	mov	w8, #1
	str	w8, [x27]
	b	LBB0_22
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, 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
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.cfi_endproc
                                        ; -- End function
	.comm	_RESYNC_SECTORS,4,2             ; @RESYNC_SECTORS
	.comm	_MaxSector,8,3                  ; @MaxSector
	.comm	_MD_RECOVERY_REQUESTED,4,2      ; @MD_RECOVERY_REQUESTED
	.comm	_R1BIO_IsSync,4,2               ; @R1BIO_IsSync
	.comm	_Faulty,4,2                     ; @Faulty
	.comm	_In_sync,4,2                    ; @In_sync
	.comm	_REQ_OP_WRITE,4,2               ; @REQ_OP_WRITE
	.comm	_end_sync_write,8,3             ; @end_sync_write
	.comm	_WriteMostly,4,2                ; @WriteMostly
	.comm	_REQ_OP_READ,4,2                ; @REQ_OP_READ
	.comm	_end_sync_read,8,3              ; @end_sync_read
	.comm	_WriteErrorSeen,4,2             ; @WriteErrorSeen
	.comm	_MD_RECOVERY_SYNC,4,2           ; @MD_RECOVERY_SYNC
	.comm	_MD_RECOVERY_CHECK,4,2          ; @MD_RECOVERY_CHECK
	.comm	_FailFast,4,2                   ; @FailFast
	.comm	_MD_FAILFAST,4,2                ; @MD_FAILFAST
	.comm	_MD_SB_CHANGE_DEVS,4,2          ; @MD_SB_CHANGE_DEVS
	.comm	_MD_RECOVERY_INTR,4,2           ; @MD_RECOVERY_INTR
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_RESYNC_PAGES,4,2               ; @RESYNC_PAGES
	.comm	_CLUSTER_RESYNC_WINDOW_SECTORS,8,3 ; @CLUSTER_RESYNC_WINDOW_SECTORS
	.comm	_md_cluster_ops,8,3             ; @md_cluster_ops
	.no_dead_strip	_raid1_sync_request
.subsections_via_symbols
