	.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, %r12
	movq	16(%rdi), %r14
	movq	24(%r14), %rax
	movq	(%rax), %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_bio_op
	movq	_REQ_OP_DISCARD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%r13b
	jmp	LBB0_3
LBB0_2:
	xorl	%r13d, %r13d
LBB0_3:
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_find_bio_disk
	cmpl	$0, -48(%rbp)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.4:
	movq	8(%rbx), %rcx
	movslq	%eax, %r15
	movq	%r15, %rax
	shlq	$4, %rax
	movq	8(%rcx,%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.5:
	cmpq	$0, 8(%r12)
	sete	%al
	orb	%r13b, %al
	jne	LBB0_9
## %bb.6:
	movq	8(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_md_error
	xorl	%r12d, %r12d
	jmp	LBB0_21
LBB0_7:
	movslq	%eax, %r15
LBB0_8:
	xorl	%eax, %eax
	callq	_smp_rmb
	movl	$0, -48(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	shlq	$4, %r15
	movq	(%rax,%r15), %rbx
	cmpq	$0, 8(%r12)
	sete	%al
	orb	%r13b, %al
	je	LBB0_14
LBB0_9:
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	_R10BIO_Uptodate@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
LBB0_12:
	movq	8(%r14), %rax
	movslq	-44(%rbp), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	16(%rax,%rcx,8), %esi
	movl	16(%r14), %edx
	leaq	-64(%rbp), %rcx
	leaq	-60(%rbp), %r8
	movq	%rbx, %rdi
	callq	_is_badblock
	testq	%rax, %rax
	sete	%al
	orb	%r13b, %al
	je	LBB0_23
## %bb.13:
	movq	%r14, %rdi
	callq	_one_write_done
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rdev_dec_pending
	jmp	LBB0_29
LBB0_14:
	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_16
## %bb.15:
	movq	_MD_RECOVERY_NEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rsi
	callq	_set_bit
LBB0_16:
	movq	_FailFast@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	_MD_FAILFAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_19
## %bb.18:
	movq	8(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_md_error
LBB0_19:
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_25
## %bb.20:
	movq	8(%r14), %rax
	movslq	-44(%rbp), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	$0, (%rax,%rcx,8)
LBB0_21:
	movq	%r14, %rdi
	callq	_one_write_done
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rdev_dec_pending
	testq	%r12, %r12
	je	LBB0_29
## %bb.22:
	movq	%r12, %rdi
	callq	_bio_put
	jmp	LBB0_29
LBB0_23:
	movq	%r12, %rdi
	callq	_bio_put
	cmpl	$0, -48(%rbp)
	je	LBB0_26
## %bb.24:
	movq	_IO_MADE_GOOD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r14), %rcx
	movslq	-44(%rbp), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movq	%rax, 8(%rcx,%rdx,8)
	jmp	LBB0_27
LBB0_25:
	movq	_R10BIO_WriteError@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_26:
	movq	_IO_MADE_GOOD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r14), %rcx
	movslq	-44(%rbp), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movq	%rax, (%rcx,%rdx,8)
LBB0_27:
	movq	_R10BIO_MadeGood@GOTPCREL(%rip), %rax
LBB0_28:
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movq	%r14, %rdi
	callq	_one_write_done
LBB0_29:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REQ_OP_DISCARD,8,3             ## @REQ_OP_DISCARD
	.comm	_WriteErrorSeen,4,2             ## @WriteErrorSeen
	.comm	_WantReplacement,4,2            ## @WantReplacement
	.comm	_MD_RECOVERY_NEEDED,4,2         ## @MD_RECOVERY_NEEDED
	.comm	_FailFast,4,2                   ## @FailFast
	.comm	_MD_FAILFAST,4,2                ## @MD_FAILFAST
	.comm	_Faulty,4,2                     ## @Faulty
	.comm	_R10BIO_WriteError,4,2          ## @R10BIO_WriteError
	.comm	_In_sync,4,2                    ## @In_sync
	.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	x20, x0
	ldp	x8, x19, [x0, #8]
	ldr	x9, [x19, #24]
	ldr	x21, [x9]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_bio_op
Lloh0:
	adrp	x8, _REQ_OP_DISCARD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REQ_OP_DISCARD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w23, eq
	b	LBB0_3
LBB0_2:
	mov	w23, #0
LBB0_3:
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_find_bio_disk
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_8
; %bb.4:
	ldr	x8, [x21, #8]
	add	x8, x8, w0, sxtw #4
	ldr	x22, [x8, #8]
	cbz	x22, LBB0_7
; %bb.5:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w8, eq
	orr	w8, w8, w23
	tbnz	w8, #0, LBB0_9
; %bb.6:
	ldr	x0, [x22, #8]
	mov	x1, x22
	bl	_md_error
	mov	x20, #0
	b	LBB0_21
LBB0_7:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
LBB0_8:
	sxtw	x22, w0
	bl	_smp_rmb
	str	wzr, [sp, #8]
	ldr	x8, [x21, #8]
	lsl	x9, x22, #4
	ldr	x22, [x8, x9]
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w8, eq
	orr	w8, w8, w23
	tbz	w8, #0, LBB0_14
LBB0_9:
Lloh3:
	adrp	x8, _In_sync@GOTPAGE
Lloh4:
	ldr	x8, [x8, _In_sync@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_12
; %bb.10:
Lloh6:
	adrp	x8, _Faulty@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Faulty@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbnz	x0, LBB0_12
; %bb.11:
Lloh9:
	adrp	x8, _R10BIO_Uptodate@GOTPAGE
Lloh10:
	ldr	x8, [x8, _R10BIO_Uptodate@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
LBB0_12:
	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
	cmp	x0, #0
	cset	w8, eq
	orr	w8, w8, w23
	tbz	w8, #0, LBB0_23
; %bb.13:
	mov	x0, x19
	bl	_one_write_done
	ldr	w1, [x21]
	mov	x0, x22
	bl	_rdev_dec_pending
	b	LBB0_29
LBB0_14:
Lloh12:
	adrp	x8, _WriteErrorSeen@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WriteErrorSeen@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_set_bit
Lloh15:
	adrp	x8, _WantReplacement@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WantReplacement@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_and_set_bit
	cbnz	w0, LBB0_16
; %bb.15:
Lloh18:
	adrp	x8, _MD_RECOVERY_NEEDED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MD_RECOVERY_NEEDED@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	x1, [x22, #8]
	bl	_set_bit
LBB0_16:
Lloh21:
	adrp	x8, _FailFast@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FailFast@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_19
; %bb.17:
	ldr	w8, [x20]
Lloh24:
	adrp	x9, _MD_FAILFAST@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MD_FAILFAST@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.18:
	ldr	x0, [x22, #8]
	mov	x1, x22
	bl	_md_error
LBB0_19:
Lloh27:
	adrp	x8, _Faulty@GOTPAGE
Lloh28:
	ldr	x8, [x8, _Faulty@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_25
; %bb.20:
	ldr	x8, [x19, #8]
	ldrsw	x9, [sp, #12]
	mov	w10, #24
	mul	x9, x9, x10
	str	xzr, [x8, x9]
LBB0_21:
	mov	x0, x19
	bl	_one_write_done
	ldr	w1, [x21]
	mov	x0, x22
	bl	_rdev_dec_pending
	cbz	x20, LBB0_29
; %bb.22:
	mov	x0, x20
	bl	_bio_put
	b	LBB0_29
LBB0_23:
	mov	x0, x20
	bl	_bio_put
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_26
; %bb.24:
Lloh30:
	adrp	x8, _IO_MADE_GOOD@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IO_MADE_GOOD@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	ldrsw	x10, [sp, #12]
	mov	w11, #24
	madd	x9, x10, x11, x9
	str	x8, [x9, #8]
	b	LBB0_27
LBB0_25:
Lloh33:
	adrp	x8, _R10BIO_WriteError@GOTPAGE
Lloh34:
	ldr	x8, [x8, _R10BIO_WriteError@GOTPAGEOFF]
	b	LBB0_28
LBB0_26:
Lloh35:
	adrp	x8, _IO_MADE_GOOD@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IO_MADE_GOOD@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	ldrsw	x10, [sp, #12]
	mov	w11, #24
	mul	x10, x10, x11
	str	x8, [x9, x10]
LBB0_27:
Lloh38:
	adrp	x8, _R10BIO_MadeGood@GOTPAGE
Lloh39:
	ldr	x8, [x8, _R10BIO_MadeGood@GOTPAGEOFF]
LBB0_28:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
	mov	x0, x19
	bl	_one_write_done
LBB0_29:
	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 AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_REQ_OP_DISCARD,8,3             ; @REQ_OP_DISCARD
	.comm	_WriteErrorSeen,4,2             ; @WriteErrorSeen
	.comm	_WantReplacement,4,2            ; @WantReplacement
	.comm	_MD_RECOVERY_NEEDED,4,2         ; @MD_RECOVERY_NEEDED
	.comm	_FailFast,4,2                   ; @FailFast
	.comm	_MD_FAILFAST,4,2                ; @MD_FAILFAST
	.comm	_Faulty,4,2                     ; @Faulty
	.comm	_R10BIO_WriteError,4,2          ; @R10BIO_WriteError
	.comm	_In_sync,4,2                    ; @In_sync
	.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
