	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid1_end_write_request
_raid1_end_write_request:               ## @raid1_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	24(%rdi), %r13
	movq	_R1BIO_BehindIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r13), %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_test_bit
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	48(%r13), %rax
	movq	(%rax), %rbx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_find_bio_disk
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rcx
	movslq	%eax, %r12
	movq	(%rcx,%r12,8), %r15
	cmpq	$0, 16(%r14)
	je	LBB0_1
## %bb.7:
	movq	%r14, %rdi
	callq	_bio_op
	movq	_REQ_OP_DISCARD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	sete	%bl
	cmpq	$0, 16(%r14)
	je	LBB0_2
## %bb.8:
	cmpq	%rcx, %rax
	je	LBB0_2
## %bb.9:
	movq	_WriteErrorSeen@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movq	_WantReplacement@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	_MD_RECOVERY_NEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	callq	_set_bit
LBB0_11:
	movq	_FailFast@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	movq	_MD_FAILFAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_15
## %bb.13:
	movq	_WriteMostly@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movq	48(%r13), %rdi
	movq	%r15, %rsi
	callq	_md_error
LBB0_15:
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movq	(%r13), %rax
	movq	$0, (%rax,%r12,8)
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_19
	jmp	LBB0_27
LBB0_1:
	xorl	%ebx, %ebx
LBB0_2:
	movq	(%r13), %rax
	movq	$0, (%rax,%r12,8)
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_R1BIO_Uptodate@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_set_bit
LBB0_5:
	movq	32(%r13), %rdx
	movq	40(%r13), %rsi
	leaq	-80(%rbp), %rcx
	leaq	-68(%rbp), %r8
	movq	%r15, %rdi
	callq	_is_badblock
	testq	%rax, %rax
	sete	%al
	orb	%bl, %al
	jne	LBB0_18
## %bb.6:
	movq	_IO_MADE_GOOD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	movq	%rax, (%rcx,%r12,8)
	movq	_R1BIO_MadeGood@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_set_bit
LBB0_18:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_27
LBB0_19:
	movq	_WBCollisionCheck@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movq	40(%r13), %rsi
	movq	32(%r13), %rdx
	addq	%rsi, %rdx
	movq	%r15, %rdi
	callq	_remove_wb
LBB0_21:
	movq	_WriteMostly@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	leaq	24(%r13), %rdi
	callq	_atomic_dec
LBB0_23:
	leaq	24(%r13), %rdi
	callq	_atomic_read
	movl	%eax, %ebx
	leaq	20(%r13), %rdi
	callq	_atomic_read
	decl	%eax
	cmpl	%eax, %ebx
	jl	LBB0_27
## %bb.24:
	movq	_R1BIO_Uptodate@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_27
## %bb.25:
	movq	_R1BIO_Returned@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_27
## %bb.26:
	movq	8(%r13), %rdi
	movq	8(%rdi), %rbx
	callq	_bio_end_sector
	leaq	-1(%rax), %rdx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_pr_debug
	movq	%r13, %rdi
	callq	_call_bio_endio
	jmp	LBB0_27
LBB0_16:
	movq	_R1BIO_WriteError@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_set_bit
	xorl	%r14d, %r14d
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_19
LBB0_27:
	movq	(%r13), %rax
	cmpq	$0, (%rax,%r12,8)
	jne	LBB0_29
## %bb.28:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_rdev_dec_pending
LBB0_29:
	movq	%r13, %rdi
	callq	_r1_bio_write_done
	testq	%r14, %r14
	je	LBB0_31
## %bb.30:
	movq	%r14, %rdi
	callq	_bio_put
LBB0_31:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R1BIO_BehindIO,4,2             ## @R1BIO_BehindIO
	.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	_WriteMostly,4,2                ## @WriteMostly
	.comm	_Faulty,4,2                     ## @Faulty
	.comm	_R1BIO_WriteError,4,2           ## @R1BIO_WriteError
	.comm	_In_sync,4,2                    ## @In_sync
	.comm	_R1BIO_Uptodate,4,2             ## @R1BIO_Uptodate
	.comm	_IO_MADE_GOOD,8,3               ## @IO_MADE_GOOD
	.comm	_R1BIO_MadeGood,4,2             ## @R1BIO_MadeGood
	.comm	_WBCollisionCheck,4,2           ## @WBCollisionCheck
	.comm	_R1BIO_Returned,4,2             ## @R1BIO_Returned
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"raid1: behind end write sectors %llu-%llu\n"

	.no_dead_strip	_raid1_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 raid1_end_write_request
_raid1_end_write_request:               ; @raid1_end_write_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x0
	ldr	x19, [x0, #24]
Lloh0:
	adrp	x8, _R1BIO_BehindIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R1BIO_BehindIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x22, x19, #16
	mov	x1, x22
	bl	_test_bit
	mov	x23, x0
	ldr	x8, [x19, #48]
	ldr	x24, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_find_bio_disk
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x24, #8]
	sxtw	x25, w0
	ldr	x21, [x8, w0, sxtw #3]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_11
; %bb.1:
	mov	x0, x20
	bl	_bio_op
Lloh3:
	adrp	x8, _REQ_OP_DISCARD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REQ_OP_DISCARD@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w26, eq
	ldr	x9, [x20, #16]
	cbz	x9, LBB0_12
; %bb.2:
	cmp	x0, x8
	b.eq	LBB0_12
; %bb.3:
Lloh6:
	adrp	x8, _WriteErrorSeen@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WriteErrorSeen@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
Lloh9:
	adrp	x8, _WantReplacement@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WantReplacement@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_and_set_bit
	cbnz	w0, LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _MD_RECOVERY_NEEDED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MD_RECOVERY_NEEDED@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x1, [x24]
	bl	_set_bit
LBB0_5:
Lloh15:
	adrp	x8, _FailFast@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FailFast@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	w0, LBB0_9
; %bb.6:
	ldr	w8, [x20]
Lloh18:
	adrp	x9, _MD_FAILFAST@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MD_FAILFAST@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
Lloh21:
	adrp	x8, _WriteMostly@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WriteMostly@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbnz	w0, LBB0_9
; %bb.8:
	ldr	x0, [x19, #48]
	mov	x1, x21
	bl	_md_error
LBB0_9:
Lloh24:
	adrp	x8, _Faulty@GOTPAGE
Lloh25:
	ldr	x8, [x8, _Faulty@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	w0, LBB0_26
; %bb.10:
	ldr	x8, [x19]
	str	xzr, [x8, x25, lsl #3]
	cbnz	w23, LBB0_18
	b	LBB0_27
LBB0_11:
	mov	w26, #0
LBB0_12:
	ldr	x8, [x19]
	str	xzr, [x8, x25, lsl #3]
Lloh27:
	adrp	x8, _In_sync@GOTPAGE
Lloh28:
	ldr	x8, [x8, _In_sync@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	w0, LBB0_15
; %bb.13:
Lloh30:
	adrp	x8, _Faulty@GOTPAGE
Lloh31:
	ldr	x8, [x8, _Faulty@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbnz	w0, LBB0_15
; %bb.14:
Lloh33:
	adrp	x8, _R1BIO_Uptodate@GOTPAGE
Lloh34:
	ldr	x8, [x8, _R1BIO_Uptodate@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_set_bit
LBB0_15:
	ldp	x2, x1, [x19, #32]
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x0, x21
	bl	_is_badblock
	cmp	x0, #0
	cset	w8, eq
	orr	w8, w8, w26
	tbnz	w8, #0, LBB0_17
; %bb.16:
Lloh36:
	adrp	x8, _IO_MADE_GOOD@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IO_MADE_GOOD@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	ldr	x9, [x19]
	str	x8, [x9, x25, lsl #3]
Lloh39:
	adrp	x8, _R1BIO_MadeGood@GOTPAGE
Lloh40:
	ldr	x8, [x8, _R1BIO_MadeGood@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_set_bit
LBB0_17:
	cbz	w23, LBB0_27
LBB0_18:
Lloh42:
	adrp	x8, _WBCollisionCheck@GOTPAGE
Lloh43:
	ldr	x8, [x8, _WBCollisionCheck@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	w0, LBB0_20
; %bb.19:
	ldp	x8, x1, [x19, #32]
	add	x2, x8, x1
	mov	x0, x21
	bl	_remove_wb
LBB0_20:
Lloh45:
	adrp	x8, _WriteMostly@GOTPAGE
Lloh46:
	ldr	x8, [x8, _WriteMostly@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	w0, LBB0_22
; %bb.21:
	add	x0, x19, #24
	bl	_atomic_dec
LBB0_22:
	add	x0, x19, #24
	bl	_atomic_read
	mov	x23, x0
	add	x0, x19, #20
	bl	_atomic_read
	sub	w8, w0, #1
	cmp	w23, w8
	b.lt	LBB0_27
; %bb.23:
Lloh48:
	adrp	x8, _R1BIO_Uptodate@GOTPAGE
Lloh49:
	ldr	x8, [x8, _R1BIO_Uptodate@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbz	w0, LBB0_27
; %bb.24:
Lloh51:
	adrp	x8, _R1BIO_Returned@GOTPAGE
Lloh52:
	ldr	x8, [x8, _R1BIO_Returned@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_and_set_bit
	cbnz	w0, LBB0_27
; %bb.25:
	ldr	x0, [x19, #8]
	ldr	x22, [x0, #8]
	bl	_bio_end_sector
	sub	x2, x0, #1
Lloh54:
	adrp	x0, l_.str@PAGE
Lloh55:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_pr_debug
	mov	x0, x19
	bl	_call_bio_endio
	b	LBB0_27
LBB0_26:
Lloh56:
	adrp	x8, _R1BIO_WriteError@GOTPAGE
Lloh57:
	ldr	x8, [x8, _R1BIO_WriteError@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_set_bit
	mov	x20, #0
	cbnz	w23, LBB0_18
LBB0_27:
	ldr	x8, [x19]
	ldr	x8, [x8, x25, lsl #3]
	cbnz	x8, LBB0_29
; %bb.28:
	ldr	x1, [x24]
	mov	x0, x21
	bl	_rdev_dec_pending
LBB0_29:
	mov	x0, x19
	bl	_r1_bio_write_done
	cbz	x20, LBB0_31
; %bb.30:
	mov	x0, x20
	bl	_bio_put
LBB0_31:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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 AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.comm	_R1BIO_BehindIO,4,2             ; @R1BIO_BehindIO
	.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	_WriteMostly,4,2                ; @WriteMostly
	.comm	_Faulty,4,2                     ; @Faulty
	.comm	_R1BIO_WriteError,4,2           ; @R1BIO_WriteError
	.comm	_In_sync,4,2                    ; @In_sync
	.comm	_R1BIO_Uptodate,4,2             ; @R1BIO_Uptodate
	.comm	_IO_MADE_GOOD,8,3               ; @IO_MADE_GOOD
	.comm	_R1BIO_MadeGood,4,2             ; @R1BIO_MadeGood
	.comm	_WBCollisionCheck,4,2           ; @WBCollisionCheck
	.comm	_R1BIO_Returned,4,2             ; @R1BIO_Returned
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"raid1: behind end write sectors %llu-%llu\n"

	.no_dead_strip	_raid1_end_write_request
.subsections_via_symbols
