	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid10_end_write_request
_raid10_end_write_request:              ## @raid10_end_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_BIO_UPTODATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_test_bit
	movl	%eax, %r13d
	movq	(%r15), %r12
	movq	24(%r12), %rax
	movq	(%rax), %rbx
	leaq	-48(%rbp), %rcx
	leaq	-44(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_find_bio_disk
	cmpl	$0, -44(%rbp)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rcx
	movslq	%eax, %r14
	movq	%r14, %rax
	shlq	$4, %rax
	movq	8(%rcx,%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.8:
	testl	%r13d, %r13d
	jne	LBB0_12
## %bb.9:
	movq	8(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_md_error
	jmp	LBB0_10
LBB0_1:
	movslq	%eax, %r14
LBB0_3:
	xorl	%eax, %eax
	callq	_smp_rmb
	movl	$0, -44(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	shlq	$4, %r14
	movq	(%rax,%r14), %rbx
	testl	%r13d, %r13d
	je	LBB0_4
LBB0_12:
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movq	_R10BIO_Uptodate@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_set_bit
LBB0_15:
	movq	8(%r12), %rax
	movslq	-48(%rbp), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	16(%rax,%rcx,8), %esi
	movl	16(%r12), %edx
	leaq	-64(%rbp), %rcx
	leaq	-60(%rbp), %r8
	movq	%rbx, %rdi
	callq	_is_badblock
	testq	%rax, %rax
	je	LBB0_10
## %bb.16:
	movq	%r15, %rdi
	callq	_bio_put
	cmpl	$0, -44(%rbp)
	movq	_IO_MADE_GOOD@GOTPCREL(%rip), %rax
	movq	8(%r12), %rcx
	movslq	-48(%rbp), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rcx,%rdx,8), %rsi
	leaq	8(%rcx,%rdx,8), %rcx
	cmoveq	%rsi, %rcx
	movq	(%rax), %rax
	movq	%rax, (%rcx)
	movq	_R10BIO_MadeGood@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_10:
	movq	%r12, %rdi
	callq	_one_write_done
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rdev_dec_pending
	jmp	LBB0_11
LBB0_4:
	movq	_WriteErrorSeen@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	movq	_WantReplacement@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_MD_RECOVERY_NEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rsi
	callq	_set_bit
LBB0_6:
	movq	_R10BIO_WriteError@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_set_bit
	movq	%r12, %rdi
	callq	_one_write_done
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIO_UPTODATE,4,2               ## @BIO_UPTODATE
	.comm	_WriteErrorSeen,4,2             ## @WriteErrorSeen
	.comm	_WantReplacement,4,2            ## @WantReplacement
	.comm	_MD_RECOVERY_NEEDED,4,2         ## @MD_RECOVERY_NEEDED
	.comm	_R10BIO_WriteError,4,2          ## @R10BIO_WriteError
	.comm	_In_sync,4,2                    ## @In_sync
	.comm	_Faulty,4,2                     ## @Faulty
	.comm	_R10BIO_Uptodate,4,2            ## @R10BIO_Uptodate
	.comm	_IO_MADE_GOOD,8,3               ## @IO_MADE_GOOD
	.comm	_R10BIO_MadeGood,4,2            ## @R10BIO_MadeGood
	.no_dead_strip	_raid10_end_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_end_write_request
_raid10_end_write_request:              ; @raid10_end_write_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	x21, x0
Lloh0:
	adrp	x8, _BIO_UPTODATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIO_UPTODATE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x21, #8
	bl	_test_bit
	mov	x23, x0
	ldr	x19, [x21]
	ldr	x8, [x19, #24]
	ldr	x20, [x8]
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_find_bio_disk
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	x8, [x20, #8]
	add	x8, x8, w0, sxtw #4
	ldr	x22, [x8, #8]
	cbz	x22, LBB0_4
; %bb.2:
	cbnz	w23, LBB0_6
; %bb.3:
	ldr	x0, [x22, #8]
	mov	x1, x22
	bl	_md_error
	b	LBB0_11
LBB0_4:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
LBB0_5:
	sxtw	x22, w0
	bl	_smp_rmb
	str	wzr, [sp, #8]
	ldr	x8, [x20, #8]
	lsl	x9, x22, #4
	ldr	x22, [x8, x9]
	cbz	w23, LBB0_12
LBB0_6:
Lloh3:
	adrp	x8, _In_sync@GOTPAGE
Lloh4:
	ldr	x8, [x8, _In_sync@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbz	w0, LBB0_9
; %bb.7:
Lloh6:
	adrp	x8, _Faulty@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Faulty@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbnz	w0, LBB0_9
; %bb.8:
Lloh9:
	adrp	x8, _R10BIO_Uptodate@GOTPAGE
Lloh10:
	ldr	x8, [x8, _R10BIO_Uptodate@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
LBB0_9:
	ldr	x8, [x19, #8]
	ldrsw	x9, [sp, #12]
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	w1, [x8, #16]
	ldr	w2, [x19, #16]
	add	x3, sp, #4
	mov	x4, sp
	mov	x0, x22
	bl	_is_badblock
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_bio_put
	ldp	w8, w11, [sp, #8]
                                        ; kill: def $w11 killed $w11 def $x11
	sxtw	x11, w11
Lloh12:
	adrp	x9, _IO_MADE_GOOD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IO_MADE_GOOD@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	x10, [x19, #8]
	mov	w12, #24
	madd	x10, x11, x12, x10
	add	x11, x10, #8
	cmp	w8, #0
	csel	x8, x10, x11, eq
	str	x9, [x8]
Lloh15:
	adrp	x8, _R10BIO_MadeGood@GOTPAGE
Lloh16:
	ldr	x8, [x8, _R10BIO_MadeGood@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
	mov	x0, x19
	bl	_one_write_done
	ldr	w1, [x20]
	mov	x0, x22
	bl	_rdev_dec_pending
	b	LBB0_16
LBB0_12:
Lloh17:
	adrp	x8, _WriteErrorSeen@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WriteErrorSeen@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_set_bit
Lloh20:
	adrp	x8, _WantReplacement@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WantReplacement@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_and_set_bit
	cbnz	w0, LBB0_14
; %bb.13:
Lloh23:
	adrp	x8, _MD_RECOVERY_NEEDED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MD_RECOVERY_NEEDED@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldr	x1, [x22, #8]
	bl	_set_bit
LBB0_14:
Lloh26:
	adrp	x8, _R10BIO_WriteError@GOTPAGE
Lloh27:
	ldr	x8, [x8, _R10BIO_WriteError@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
	mov	x0, x19
	bl	_one_write_done
LBB0_16:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_UPTODATE,4,2               ; @BIO_UPTODATE
	.comm	_WriteErrorSeen,4,2             ; @WriteErrorSeen
	.comm	_WantReplacement,4,2            ; @WantReplacement
	.comm	_MD_RECOVERY_NEEDED,4,2         ; @MD_RECOVERY_NEEDED
	.comm	_R10BIO_WriteError,4,2          ; @R10BIO_WriteError
	.comm	_In_sync,4,2                    ; @In_sync
	.comm	_Faulty,4,2                     ; @Faulty
	.comm	_R10BIO_Uptodate,4,2            ; @R10BIO_Uptodate
	.comm	_IO_MADE_GOOD,8,3               ; @IO_MADE_GOOD
	.comm	_R10BIO_MadeGood,4,2            ; @R10BIO_MadeGood
	.no_dead_strip	_raid10_end_write_request
.subsections_via_symbols
