	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function raid10_write_request
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_raid10_write_request:                  ## @raid10_write_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	40(%rdi), %r14
	callq	_mddev_is_clustered
	testq	%rax, %rax
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.1:
	movq	_md_cluster_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r15), %r14
	movq	%r15, %rdi
	callq	_bio_end_sector
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	*-88(%rbp)                      ## 8-byte Folded Reload
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_w@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEFINE_WAIT
	leaq	48(%r14), %r12
	movq	_TASK_IDLE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edx
	movq	%r12, %rdi
	movq	_w@GOTPCREL(%rip), %rsi
	callq	_prepare_to_wait
	movq	_md_cluster_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movq	_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %r13
	callq	_bio_end_sector
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	*%r14
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_schedule
	jmp	LBB0_3
LBB0_5:
	movq	_w@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_finish_wait
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_6:
	movq	(%r13), %rbx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_regular_request_wait
	movq	_MD_RECOVERY_RESHAPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	32(%r12), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	cmpq	$0, 24(%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	je	LBB0_10
## %bb.8:
	cmpq	(%r14), %rax
	jge	LBB0_13
## %bb.9:
	addq	%rbx, %rax
	movq	8(%r14), %rcx
	cmpq	%rcx, %rax
	jg	LBB0_12
	jmp	LBB0_13
LBB0_10:
	addq	%rax, %rbx
	cmpq	(%r14), %rbx
	jle	LBB0_13
## %bb.11:
	movq	8(%r14), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_13
LBB0_12:
	movq	%rcx, (%r12)
	leaq	16(%r12), %r14
	movq	_MD_SB_CHANGE_DEVS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_MD_SB_CHANGE_PENDING@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_set_mask_bits
	movl	12(%r12), %edi
	callq	_md_wakeup_thread
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	32(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_raid10_log
	movl	20(%r12), %ebx
	movl	(%r15), %edi
	movq	%r14, %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	callq	_test_bit
	xorl	%esi, %esi
	testq	%rax, %rax
	sete	%sil
	movl	%ebx, %edi
	callq	_wait_event
	movq	(%r12), %rax
	movq	%rax, (%r14)
LBB0_13:
	movq	16(%r14), %rax
	movq	_max_queued_requests@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jl	LBB0_15
## %bb.14:
	movl	12(%r12), %edi
	callq	_md_wakeup_thread
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_raid10_log
	movl	48(%r14), %edi
	movq	16(%r14), %rax
	xorl	%esi, %esi
	cmpq	(%rbx), %rax
	setl	%sil
	callq	_wait_event
LBB0_15:
	movl	$-1, 8(%r13)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_raid10_find_phys
	leaq	40(%r13), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_allow_barrier
	movslq	32(%rbx), %rdi
	movl	(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_raid10_log
	movq	%r14, %rdi
	movq	%rbx, %r14
	movq	%r12, %rsi
	callq	_md_wait_for_blocked_rdev
	movq	%rbx, %rdi
	callq	_wait_barrier
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
                                        ##     Child Loop BB0_61 Depth 2
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	(%r13), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	$0, 24(%r14)
	jle	LBB0_49
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movslq	24(%r14), %rax
	addq	$32, %r15
	movq	%rdx, %rcx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rdx
	jge	LBB0_50
LBB0_22:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r13), %rax
	movslq	(%rax,%r15), %rbx
	movq	40(%r14), %rax
	shlq	$4, %rbx
	movq	(%rax,%rbx), %rdi
	callq	_rcu_dereference
	movq	%r14, %rcx
	movq	%rax, %r14
	movq	40(%rcx), %rax
	movq	8(%rax,%rbx), %rdi
	callq	_rcu_dereference
	movq	%rax, %r13
	cmpq	%rax, %r14
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	%r13, %r12
	testq	%r14, %r14
	jne	LBB0_25
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_22 Depth=2
	xorl	%r12d, %r12d
	testq	%r14, %r14
	je	LBB0_26
LBB0_25:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	_Blocked@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r14), %rsi
	callq	_test_bit
	movq	%rax, %rdi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_51
LBB0_26:                                ##   in Loop: Header=BB0_22 Depth=2
	testq	%r12, %r12
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	_Blocked@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r12), %rsi
	callq	_test_bit
	movq	%rax, %rdi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_52
LBB0_28:                                ##   in Loop: Header=BB0_22 Depth=2
	testq	%r14, %r14
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	addq	$8, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_31
LBB0_30:                                ##   in Loop: Header=BB0_22 Depth=2
	xorl	%r14d, %r14d
LBB0_31:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	testq	%r12, %r12
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r12), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_34
LBB0_33:                                ##   in Loop: Header=BB0_22 Depth=2
	xorl	%r12d, %r12d
LBB0_34:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	16(%r13), %rax
	movq	%r14, %rcx
	orq	%r12, %rcx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax,%r15)
	je	LBB0_41
## %bb.35:                              ##   in Loop: Header=BB0_22 Depth=2
	testq	%r14, %r14
	je	LBB0_46
## %bb.36:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	_WriteErrorSeen@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r14), %r13
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_44
## %bb.37:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	8(%rax,%r15), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	leaq	-112(%rbp), %rcx
	leaq	-92(%rbp), %r8
	callq	_is_badblock
	testl	%eax, %eax
	js	LBB0_53
## %bb.38:                              ##   in Loop: Header=BB0_22 Depth=2
	je	LBB0_44
## %bb.39:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	-112(%rbp), %rax
	subq	%rbx, %rax
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_48
## %bb.40:                              ##   in Loop: Header=BB0_22 Depth=2
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%eax, %ecx
	cmovll	%ecx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_45
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	_R10BIO_Degraded@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_set_bit
LBB0_42:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_44:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_45:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%r13), %rax
	movq	%rcx, 24(%rax,%r15)
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_atomic_inc
LBB0_46:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	testq	%r12, %r12
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	16(%r13), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 16(%rax,%r15)
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_atomic_inc
	jmp	LBB0_20
LBB0_48:                                ##   in Loop: Header=BB0_22 Depth=2
	addl	-92(%rbp), %eax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %eax
	cmovgel	%ecx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_42
	.p2align	4, 0x90
LBB0_49:                                ##   in Loop: Header=BB0_17 Depth=1
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_56
	.p2align	4, 0x90
LBB0_50:                                ##   in Loop: Header=BB0_17 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_55
LBB0_51:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_atomic_inc
	jmp	LBB0_54
LBB0_52:                                ##   in Loop: Header=BB0_17 Depth=1
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_atomic_inc
	movq	%r13, %r14
	jmp	LBB0_54
LBB0_53:                                ##   in Loop: Header=BB0_17 Depth=1
	leaq	4(%r14), %rdi
	callq	_atomic_inc
	movq	_BlockedBadBlocks@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_set_bit
	.p2align	4, 0x90
LBB0_54:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_55:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
LBB0_56:                                ##   in Loop: Header=BB0_17 Depth=1
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	%r14, %rdi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_66
## %bb.57:                              ##   in Loop: Header=BB0_17 Depth=1
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.58:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%ebx, %r15d
	shlq	$5, %r15
	xorl	%ebx, %ebx
	jmp	LBB0_61
	.p2align	4, 0x90
LBB0_59:                                ##   in Loop: Header=BB0_61 Depth=2
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_rdev_dec_pending
LBB0_60:                                ##   in Loop: Header=BB0_61 Depth=2
	addq	$32, %rbx
	cmpq	%rbx, %r15
	je	LBB0_16
LBB0_61:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r13), %rax
	cmpq	$0, 24(%rax,%rbx)
	je	LBB0_63
## %bb.62:                              ##   in Loop: Header=BB0_61 Depth=2
	movslq	(%rax,%rbx), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	40(%rcx), %rcx
	shlq	$4, %rax
	movq	(%rcx,%rax), %rdi
	movq	%r12, %rsi
	callq	_rdev_dec_pending
	movq	16(%r13), %rax
LBB0_63:                                ##   in Loop: Header=BB0_61 Depth=2
	cmpq	$0, 16(%rax,%rbx)
	je	LBB0_60
## %bb.64:                              ##   in Loop: Header=BB0_61 Depth=2
	movslq	(%rax,%rbx), %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	40(%rax), %rax
	shlq	$4, %r12
	movq	8(%rax,%r12), %rdi
	testq	%rdi, %rdi
	jne	LBB0_59
## %bb.65:                              ##   in Loop: Header=BB0_61 Depth=2
	xorl	%eax, %eax
	callq	_smp_mb
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	40(%rax), %rax
	movq	(%rax,%r12), %rdi
	jmp	LBB0_59
LBB0_66:
	movslq	-52(%rbp), %rax                 ## 4-byte Folded Reload
	movq	(%r13), %rbx
	cmpq	%rax, %rbx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jle	LBB0_68
## %bb.67:
	movq	%rax, (%r13)
	movq	%rax, %rbx
LBB0_68:
	movq	%r15, %rdi
	callq	_bio_sectors
	cltq
	cmpq	%rax, %rbx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jge	LBB0_70
## %bb.69:
	movl	(%r13), %esi
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	28(%r14), %rcx
	movq	%r15, %rdi
	callq	_bio_split
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_bio_chain
	movq	%r14, %rdi
	callq	_allow_barrier
	movq	%r15, %rdi
	callq	_generic_make_request
	movq	%r14, %rdi
	callq	_wait_barrier
	movq	%rbx, 32(%r13)
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
LBB0_70:
	leaq	28(%r13), %rdi
	movl	$1, %esi
	callq	_atomic_set
	movl	8(%r12), %edi
	movl	(%r13), %edx
	movl	24(%r13), %esi
	xorl	%ecx, %ecx
	callq	_md_bitmap_startwrite
	cmpl	$0, 24(%r14)
	jle	LBB0_77
## %bb.71:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_73
	.p2align	4, 0x90
LBB0_72:                                ##   in Loop: Header=BB0_73 Depth=1
	incq	%rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	24(%rax), %rax
	addq	$32, %r14
	cmpq	%rax, %rbx
	jge	LBB0_77
LBB0_73:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	cmpq	$0, 24(%rax,%r14)
	je	LBB0_75
## %bb.74:                              ##   in Loop: Header=BB0_73 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	callq	_raid10_write_one_disk
	movq	16(%r13), %rax
LBB0_75:                                ##   in Loop: Header=BB0_73 Depth=1
	cmpq	$0, 16(%rax,%r14)
	je	LBB0_72
## %bb.76:                              ##   in Loop: Header=BB0_73 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	$1, %ecx
	movl	%ebx, %r8d
	callq	_raid10_write_one_disk
	jmp	LBB0_72
LBB0_77:
	movq	%r13, %rdi
	callq	_one_write_done
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_md_cluster_ops,8,3             ## @md_cluster_ops
	.comm	_WRITE,4,2                      ## @WRITE
	.comm	_w,4,2                          ## @w
	.comm	_TASK_IDLE,4,2                  ## @TASK_IDLE
	.comm	_MD_RECOVERY_RESHAPE,4,2        ## @MD_RECOVERY_RESHAPE
	.comm	_MD_SB_CHANGE_DEVS,4,2          ## @MD_SB_CHANGE_DEVS
	.comm	_MD_SB_CHANGE_PENDING,4,2       ## @MD_SB_CHANGE_PENDING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wait reshape metadata"

	.comm	_max_queued_requests,8,3        ## @max_queued_requests
L_.str.1:                               ## @.str.1
	.asciz	"wait queued"

	.comm	_Blocked,4,2                    ## @Blocked
	.comm	_Faulty,4,2                     ## @Faulty
	.comm	_R10BIO_Degraded,4,2            ## @R10BIO_Degraded
	.comm	_WriteErrorSeen,4,2             ## @WriteErrorSeen
	.comm	_BlockedBadBlocks,4,2           ## @BlockedBadBlocks
L_.str.2:                               ## @.str.2
	.asciz	"wait rdev %d blocked"

	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
	.no_dead_strip	_raid10_write_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid10_write_request
_raid10_write_request:                  ; @raid10_write_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x2
	mov	x28, x1
	mov	x20, x0
	ldr	x21, [x0, #40]
	bl	_mddev_is_clustered
	str	x28, [sp, #16]                  ; 8-byte Folded Spill
	cbz	x0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _md_cluster_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _md_cluster_ops@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x25, [x8]
Lloh3:
	adrp	x27, _WRITE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _WRITE@GOTPAGEOFF]
	ldr	w23, [x27]
	ldr	x24, [x28]
	mov	x0, x28
	bl	_bio_end_sector
	mov	x3, x0
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	blr	x25
	cbz	x0, LBB0_6
; %bb.2:
Lloh5:
	adrp	x23, _w@GOTPAGE
Lloh6:
	ldr	x23, [x23, _w@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_DEFINE_WAIT
	add	x24, x21, #48
Lloh7:
	adrp	x28, _TASK_IDLE@GOTPAGE
Lloh8:
	ldr	x28, [x28, _TASK_IDLE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x28]
	mov	x0, x24
	mov	x1, x23
	bl	_prepare_to_wait
Lloh9:
	adrp	x8, _md_cluster_ops@GOTPAGE
Lloh10:
	ldr	x8, [x8, _md_cluster_ops@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x22, [x8]
	ldr	w25, [x27]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x26, [x0]
	bl	_bio_end_sector
	mov	x3, x0
	mov	x0, x20
	mov	x1, x25
	mov	x2, x26
	blr	x22
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_schedule
	b	LBB0_3
LBB0_5:
Lloh12:
	adrp	x1, _w@GOTPAGE
Lloh13:
	ldr	x1, [x1, _w@GOTPAGEOFF]
	mov	x0, x24
	bl	_finish_wait
	ldr	x28, [sp, #16]                  ; 8-byte Folded Reload
LBB0_6:
	ldr	x23, [x19]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x28
	mov	x3, x23
	bl	_regular_request_wait
Lloh14:
	adrp	x8, _MD_RECOVERY_RESHAPE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MD_RECOVERY_RESHAPE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	add	x1, x20, #32
	bl	_test_bit
	cbz	x0, LBB0_13
; %bb.7:
	ldr	x9, [x20, #24]
	ldr	x8, [x28]
	cbz	x9, LBB0_10
; %bb.8:
	ldr	x9, [x21]
	cmp	x8, x9
	b.ge	LBB0_13
; %bb.9:
	ldr	x9, [x21, #8]
	add	x8, x8, x23
	cmp	x8, x9
	b.gt	LBB0_12
	b	LBB0_13
LBB0_10:
	ldr	x9, [x21]
	add	x10, x8, x23
	cmp	x10, x9
	b.le	LBB0_13
; %bb.11:
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.ge	LBB0_13
LBB0_12:
	str	x9, [x20]
	add	x23, x20, #16
Lloh17:
	adrp	x8, _MD_SB_CHANGE_DEVS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MD_SB_CHANGE_DEVS@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_BIT
	mov	x24, x0
Lloh20:
	adrp	x22, _MD_SB_CHANGE_PENDING@GOTPAGE
Lloh21:
	ldr	x22, [x22, _MD_SB_CHANGE_PENDING@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_BIT
	orr	w2, w0, w24
	mov	x0, x23
	mov	w1, #0
	bl	_set_mask_bits
	ldr	w0, [x20, #12]
	bl	_md_wakeup_thread
	ldrsw	x0, [x21, #32]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_raid10_log
	ldr	w24, [x20, #20]
	ldr	w0, [x22]
	mov	x1, x23
	bl	_test_bit
	cmp	x0, #0
	cset	w1, eq
	mov	x0, x24
	bl	_wait_event
	ldr	x8, [x20]
	str	x8, [x21]
LBB0_13:
	ldr	x8, [x21, #16]
Lloh24:
	adrp	x22, _max_queued_requests@GOTPAGE
Lloh25:
	ldr	x22, [x22, _max_queued_requests@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.lt	LBB0_15
; %bb.14:
	ldr	w0, [x20, #12]
	bl	_md_wakeup_thread
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_raid10_log
	ldr	w0, [x21, #48]
	ldr	x8, [x21, #16]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w1, lt
	bl	_wait_event
LBB0_15:
	mov	w8, #-1
	str	w8, [x19, #8]
	mov	x0, x21
	mov	x1, x19
	bl	_raid10_find_phys
	add	x8, x19, #40
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x21
	bl	_allow_barrier
	ldrsw	x0, [x21, #32]
	ldr	w8, [x26]
	str	x8, [sp]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_raid10_log
	mov	x0, x26
	mov	x1, x20
	bl	_md_wait_for_blocked_rdev
	mov	x0, x21
	bl	_wait_barrier
LBB0_17:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
                                        ;     Child Loop BB0_51 Depth 2
	bl	_rcu_read_lock
	ldr	w25, [x19]
	ldr	w8, [x21, #24]
	cmp	w8, #1
	b.lt	LBB0_41
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x24, #0
	mov	x23, #0
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=2
Lloh30:
	adrp	x8, _R10BIO_Degraded@GOTPAGE
Lloh31:
	ldr	x8, [x8, _R10BIO_Degraded@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	bl	_set_bit
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=2
	add	x23, x23, #1
	ldrsw	x8, [x21, #24]
	add	x24, x24, #32
	cmp	x23, x8
	b.ge	LBB0_42
LBB0_21:                                ;   Parent Loop BB0_17 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #16]
	ldrsw	x8, [x8, x24]
	ldr	x9, [x21, #40]
	lsl	x22, x8, #4
	ldr	x0, [x9, x22]
	bl	_rcu_dereference
	mov	x26, x0
	ldr	x8, [x21, #40]
	add	x8, x8, x22
	ldr	x0, [x8, #8]
	bl	_rcu_dereference
	mov	x27, x0
	cmp	x26, x0
	csel	x22, xzr, x0, eq
	cbz	x26, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
Lloh33:
	adrp	x8, _Blocked@GOTPAGE
Lloh34:
	ldr	x8, [x8, _Blocked@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	add	x1, x26, #8
	bl	_test_bit
	bl	_unlikely
	cbnz	x0, LBB0_43
LBB0_23:                                ;   in Loop: Header=BB0_21 Depth=2
	cbz	x22, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_21 Depth=2
Lloh36:
	adrp	x8, _Blocked@GOTPAGE
Lloh37:
	ldr	x8, [x8, _Blocked@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	add	x1, x22, #8
	bl	_test_bit
	bl	_unlikely
	cbnz	x0, LBB0_44
LBB0_25:                                ;   in Loop: Header=BB0_21 Depth=2
	cbz	x26, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_21 Depth=2
Lloh39:
	adrp	x8, _Faulty@GOTPAGE
Lloh40:
	ldr	x8, [x8, _Faulty@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	add	x1, x26, #8
	bl	_test_bit
	cmp	x0, #0
	csel	x26, x26, xzr, eq
LBB0_27:                                ;   in Loop: Header=BB0_21 Depth=2
	cbz	x22, LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_21 Depth=2
Lloh42:
	adrp	x8, _Faulty@GOTPAGE
Lloh43:
	ldr	x8, [x8, _Faulty@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	add	x1, x22, #8
	bl	_test_bit
	cmp	x0, #0
	csel	x22, x22, xzr, eq
LBB0_29:                                ;   in Loop: Header=BB0_21 Depth=2
	ldr	x8, [x19, #16]
	add	x8, x8, x24
	stp	xzr, xzr, [x8, #16]
	orr	x8, x26, x22
	cbz	x8, LBB0_19
; %bb.30:                               ;   in Loop: Header=BB0_21 Depth=2
	cbz	x26, LBB0_38
; %bb.31:                               ;   in Loop: Header=BB0_21 Depth=2
Lloh45:
	adrp	x8, _WriteErrorSeen@GOTPAGE
Lloh46:
	ldr	x8, [x8, _WriteErrorSeen@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	add	x27, x26, #8
	mov	x1, x27
	bl	_test_bit
	cbz	x0, LBB0_37
; %bb.32:                               ;   in Loop: Header=BB0_21 Depth=2
	ldr	x8, [x19, #16]
	add	x8, x8, x24
	ldr	x28, [x8, #8]
	add	x3, sp, #40
	add	x4, sp, #36
	mov	x0, x26
	mov	x1, x28
	mov	x2, x25
	bl	_is_badblock
	tbnz	w0, #31, LBB0_45
; %bb.33:                               ;   in Loop: Header=BB0_21 Depth=2
	cbz	w0, LBB0_36
; %bb.34:                               ;   in Loop: Header=BB0_21 Depth=2
	ldr	x8, [sp, #40]
	subs	x8, x8, x28
	b.le	LBB0_40
; %bb.35:                               ;   in Loop: Header=BB0_21 Depth=2
	cmp	w25, w8
	csel	w25, w25, w8, lt
LBB0_36:                                ;   in Loop: Header=BB0_21 Depth=2
	ldr	x28, [sp, #16]                  ; 8-byte Folded Reload
LBB0_37:                                ;   in Loop: Header=BB0_21 Depth=2
	ldr	x8, [x19, #16]
	add	x8, x8, x24
	str	x28, [x8, #24]
	add	x0, x26, #4
	bl	_atomic_inc
LBB0_38:                                ;   in Loop: Header=BB0_21 Depth=2
	cbz	x22, LBB0_20
; %bb.39:                               ;   in Loop: Header=BB0_21 Depth=2
	ldr	x8, [x19, #16]
	add	x8, x8, x24
	str	x28, [x8, #16]
	add	x0, x22, #4
	bl	_atomic_inc
	b	LBB0_20
LBB0_40:                                ;   in Loop: Header=BB0_21 Depth=2
	ldr	w9, [sp, #36]
	add	w8, w9, w8
	cmp	w8, w25
	csel	w25, w8, w25, lt
	ldr	x28, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_20
LBB0_41:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	w23, #0
LBB0_42:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x26, #0
	b	LBB0_46
LBB0_43:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x0, x26, #4
	bl	_atomic_inc
	b	LBB0_46
LBB0_44:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x0, x22, #4
	bl	_atomic_inc
	mov	x26, x27
	b	LBB0_46
LBB0_45:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x0, x26, #4
	bl	_atomic_inc
Lloh48:
	adrp	x8, _BlockedBadBlocks@GOTPAGE
Lloh49:
	ldr	x8, [x8, _BlockedBadBlocks@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
	mov	x1, x27
	bl	_set_bit
	ldr	x28, [sp, #16]                  ; 8-byte Folded Reload
LBB0_46:                                ;   in Loop: Header=BB0_17 Depth=1
	bl	_rcu_read_unlock
	mov	x0, x26
	bl	_unlikely
	cbz	x0, LBB0_56
; %bb.47:                               ;   in Loop: Header=BB0_17 Depth=1
	cbz	w23, LBB0_16
; %bb.48:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x22, #0
	mov	w8, w23
	lsl	x23, x8, #5
	b	LBB0_51
LBB0_49:                                ;   in Loop: Header=BB0_51 Depth=2
	mov	x1, x20
	bl	_rdev_dec_pending
LBB0_50:                                ;   in Loop: Header=BB0_51 Depth=2
	add	x22, x22, #32
	cmp	x23, x22
	b.eq	LBB0_16
LBB0_51:                                ;   Parent Loop BB0_17 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #16]
	add	x9, x8, x22
	ldr	x9, [x9, #24]
	cbz	x9, LBB0_53
; %bb.52:                               ;   in Loop: Header=BB0_51 Depth=2
	ldrsw	x8, [x8, x22]
	ldr	x9, [x21, #40]
	lsl	x8, x8, #4
	ldr	x0, [x9, x8]
	mov	x1, x20
	bl	_rdev_dec_pending
	ldr	x8, [x19, #16]
LBB0_53:                                ;   in Loop: Header=BB0_51 Depth=2
	add	x9, x8, x22
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_50
; %bb.54:                               ;   in Loop: Header=BB0_51 Depth=2
	ldrsw	x24, [x8, x22]
	ldr	x8, [x21, #40]
	add	x8, x8, x24, lsl #4
	ldr	x0, [x8, #8]
	cbnz	x0, LBB0_49
; %bb.55:                               ;   in Loop: Header=BB0_51 Depth=2
	bl	_smp_mb
	ldr	x8, [x21, #40]
	lsl	x9, x24, #4
	ldr	x0, [x8, x9]
	b	LBB0_49
LBB0_56:
	sxtw	x8, w25
	ldr	x22, [x19]
	cmp	x22, x8
	b.le	LBB0_58
; %bb.57:
	str	x8, [x19]
	mov	x22, x8
LBB0_58:
	mov	x0, x28
	bl	_bio_sectors
	cmp	x22, w0, sxtw
	b.ge	LBB0_60
; %bb.59:
	ldr	w1, [x19]
Lloh51:
	adrp	x8, _GFP_NOIO@GOTPAGE
Lloh52:
	ldr	x8, [x8, _GFP_NOIO@GOTPAGEOFF]
Lloh53:
	ldr	w2, [x8]
	add	x3, x21, #28
	mov	x0, x28
	bl	_bio_split
	mov	x23, x0
	mov	x1, x28
	bl	_bio_chain
	mov	x0, x21
	bl	_allow_barrier
	mov	x0, x28
	bl	_generic_make_request
	mov	x0, x21
	bl	_wait_barrier
	str	x23, [x19, #32]
	mov	x28, x23
LBB0_60:
	add	x0, x19, #28
	mov	w1, #1
	bl	_atomic_set
	ldr	w0, [x20, #8]
	ldr	w1, [x19, #24]
	ldr	w2, [x19]
	mov	w3, #0
	bl	_md_bitmap_startwrite
	ldr	w8, [x21, #24]
	cmp	w8, #1
	b.lt	LBB0_67
; %bb.61:
	mov	x22, #0
	mov	x23, #0
	b	LBB0_63
LBB0_62:                                ;   in Loop: Header=BB0_63 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x21, #24]
	add	x22, x22, #32
	cmp	x23, x8
	b.ge	LBB0_67
LBB0_63:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x9, x8, x22
	ldr	x9, [x9, #24]
	cbz	x9, LBB0_65
; %bb.64:                               ;   in Loop: Header=BB0_63 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x28
	mov	w3, #0
	mov	x4, x23
	bl	_raid10_write_one_disk
	ldr	x8, [x19, #16]
LBB0_65:                                ;   in Loop: Header=BB0_63 Depth=1
	add	x8, x8, x22
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_62
; %bb.66:                               ;   in Loop: Header=BB0_63 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x28
	mov	w3, #1
	mov	x4, x23
	bl	_raid10_write_one_disk
	b	LBB0_62
LBB0_67:
	mov	x0, x19
	bl	_one_write_done
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_md_cluster_ops,8,3             ; @md_cluster_ops
	.comm	_WRITE,4,2                      ; @WRITE
	.comm	_w,4,2                          ; @w
	.comm	_TASK_IDLE,4,2                  ; @TASK_IDLE
	.comm	_MD_RECOVERY_RESHAPE,4,2        ; @MD_RECOVERY_RESHAPE
	.comm	_MD_SB_CHANGE_DEVS,4,2          ; @MD_SB_CHANGE_DEVS
	.comm	_MD_SB_CHANGE_PENDING,4,2       ; @MD_SB_CHANGE_PENDING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wait reshape metadata"

	.comm	_max_queued_requests,8,3        ; @max_queued_requests
l_.str.1:                               ; @.str.1
	.asciz	"wait queued"

	.comm	_Blocked,4,2                    ; @Blocked
	.comm	_Faulty,4,2                     ; @Faulty
	.comm	_R10BIO_Degraded,4,2            ; @R10BIO_Degraded
	.comm	_WriteErrorSeen,4,2             ; @WriteErrorSeen
	.comm	_BlockedBadBlocks,4,2           ; @BlockedBadBlocks
l_.str.2:                               ; @.str.2
	.asciz	"wait rdev %d blocked"

	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
	.no_dead_strip	_raid10_write_request
.subsections_via_symbols
