	.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	$24, %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	_BIO_UPTODATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r14), %rsi
	callq	_test_bit
	movl	%eax, %ebx
	movq	8(%r14), %r13
	movq	_R1BIO_BehindIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r13), %rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_test_bit
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	40(%r13), %rax
	movq	(%rax), %r12
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_find_bio_disk
	movslq	%eax, %r15
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.4:
	movq	(%r13), %rax
	movq	$0, (%rax,%r15,8)
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rax
	movq	(%rax,%r15,8), %rsi
	callq	_test_bit
	testl	%eax, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_7
## %bb.5:
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rax
	movq	(%rax,%r15,8), %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_R1BIO_Uptodate@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
LBB0_7:
	movq	8(%r12), %rax
	movq	(%rax,%r15,8), %rdi
	movl	28(%r13), %edx
	movl	32(%r13), %esi
	leaq	-64(%rbp), %rcx
	leaq	-60(%rbp), %r8
	callq	_is_badblock
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_IO_MADE_GOOD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	_R1BIO_MadeGood@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	jmp	LBB0_9
LBB0_1:
	movq	_WriteErrorSeen@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	8(%r12), %rcx
	movslq	%eax, %rbx
	movq	(%rcx,%rbx,8), %rsi
	callq	_set_bit
	movq	_WantReplacement@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_MD_RECOVERY_NEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rsi
	callq	_set_bit
LBB0_3:
	movq	_R1BIO_WriteError@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_set_bit
	xorl	%r14d, %r14d
LBB0_9:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_16
## %bb.10:
	movq	_WriteMostly@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rax
	movq	(%rax,%r15,8), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	leaq	24(%r13), %rdi
	callq	_atomic_dec
LBB0_12:
	leaq	24(%r13), %rdi
	callq	_atomic_read
	movl	%eax, %ebx
	leaq	20(%r13), %rdi
	callq	_atomic_read
	decl	%eax
	cmpl	%eax, %ebx
	jl	LBB0_16
## %bb.13:
	movq	_R1BIO_Uptodate@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movq	_R1BIO_Returned@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	8(%r13), %rdi
	movq	(%rdi), %rbx
	callq	_bio_sectors
	leaq	(%rbx,%rax), %rdx
	decq	%rdx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_pr_debug
	movq	%r13, %rdi
	callq	_call_bio_endio
LBB0_16:
	movq	(%r13), %rax
	cmpq	$0, (%rax,%r15,8)
	jne	LBB0_18
## %bb.17:
	movq	(%r12), %rsi
	movq	8(%r12), %rax
	movq	(%rax,%r15,8), %rdi
	callq	_rdev_dec_pending
LBB0_18:
	movq	%r13, %rdi
	callq	_r1_bio_write_done
	testq	%r14, %r14
	je	LBB0_20
## %bb.19:
	movq	%r14, %rdi
	callq	_bio_put
LBB0_20:
	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	_R1BIO_BehindIO,4,2             ## @R1BIO_BehindIO
	.comm	_WriteErrorSeen,4,2             ## @WriteErrorSeen
	.comm	_WantReplacement,4,2            ## @WantReplacement
	.comm	_MD_RECOVERY_NEEDED,4,2         ## @MD_RECOVERY_NEEDED
	.comm	_R1BIO_WriteError,4,2           ## @R1BIO_WriteError
	.comm	_In_sync,4,2                    ## @In_sync
	.comm	_Faulty,4,2                     ## @Faulty
	.comm	_R1BIO_Uptodate,4,2             ## @R1BIO_Uptodate
	.comm	_IO_MADE_GOOD,8,3               ## @IO_MADE_GOOD
	.comm	_R1BIO_MadeGood,4,2             ## @R1BIO_MadeGood
	.comm	_WriteMostly,4,2                ## @WriteMostly
	.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
Lloh0:
	adrp	x8, _BIO_UPTODATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIO_UPTODATE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #16
	bl	_test_bit
	mov	x24, x0
	ldr	x19, [x20, #8]
Lloh3:
	adrp	x8, _R1BIO_BehindIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R1BIO_BehindIO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x21, x19, #16
	mov	x1, x21
	bl	_test_bit
	mov	x23, x0
	ldr	x8, [x19, #40]
	ldr	x25, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_find_bio_disk
	mov	x22, x0
	cbz	w24, LBB0_13
; %bb.1:
	ldr	x8, [x19]
	mov	x9, x22
	sxtw	x24, w9
	sbfiz	x9, x9, #3, #32
	str	xzr, [x8, x9]
Lloh6:
	adrp	x8, _In_sync@GOTPAGE
Lloh7:
	ldr	x8, [x8, _In_sync@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x8, [x25, #8]
	ldr	x1, [x8, x9]
	bl	_test_bit
	cbz	w0, LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _Faulty@GOTPAGE
Lloh10:
	ldr	x8, [x8, _Faulty@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x8, [x25, #8]
	ldr	x1, [x8, x24, lsl #3]
	bl	_test_bit
	cbnz	w0, LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _R1BIO_Uptodate@GOTPAGE
Lloh13:
	ldr	x8, [x8, _R1BIO_Uptodate@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
LBB0_4:
	ldr	x8, [x25, #8]
	ldr	x0, [x8, x24, lsl #3]
	ldp	w2, w1, [x19, #28]
	add	x3, sp, #12
	add	x4, sp, #8
	bl	_is_badblock
	cbz	x0, LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _IO_MADE_GOOD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IO_MADE_GOOD@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x9, [x19]
	str	x8, [x9, x24, lsl #3]
Lloh18:
	adrp	x8, _R1BIO_MadeGood@GOTPAGE
Lloh19:
	ldr	x8, [x8, _R1BIO_MadeGood@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
LBB0_6:
	cbz	w23, LBB0_16
LBB0_7:
Lloh21:
	adrp	x8, _WriteMostly@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WriteMostly@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	x8, [x25, #8]
	mov	x9, x22
	sxtw	x23, w9
	ldr	x1, [x8, w22, sxtw #3]
	bl	_test_bit
	cbz	w0, LBB0_9
; %bb.8:
	add	x0, x19, #24
	bl	_atomic_dec
LBB0_9:
	add	x0, x19, #24
	bl	_atomic_read
	mov	x22, x0
	add	x0, x19, #20
	bl	_atomic_read
	sub	w8, w0, #1
	cmp	w22, w8
	b.lt	LBB0_17
; %bb.10:
Lloh24:
	adrp	x8, _R1BIO_Uptodate@GOTPAGE
Lloh25:
	ldr	x8, [x8, _R1BIO_Uptodate@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	w0, LBB0_17
; %bb.11:
Lloh27:
	adrp	x8, _R1BIO_Returned@GOTPAGE
Lloh28:
	ldr	x8, [x8, _R1BIO_Returned@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_and_set_bit
	cbnz	w0, LBB0_17
; %bb.12:
	ldr	x0, [x19, #8]
	ldr	x21, [x0]
	bl	_bio_sectors
	add	x8, x21, x0
	sub	x2, x8, #1
Lloh30:
	adrp	x0, l_.str@PAGE
Lloh31:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_debug
	mov	x0, x19
	bl	_call_bio_endio
	b	LBB0_17
LBB0_13:
Lloh32:
	adrp	x8, _WriteErrorSeen@GOTPAGE
Lloh33:
	ldr	x8, [x8, _WriteErrorSeen@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	ldr	x8, [x25, #8]
	sbfiz	x20, x22, #3, #32
	ldr	x1, [x8, x20]
	bl	_set_bit
Lloh35:
	adrp	x8, _WantReplacement@GOTPAGE
Lloh36:
	ldr	x8, [x8, _WantReplacement@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	ldr	x8, [x25, #8]
	ldr	x1, [x8, x20]
	bl	_test_and_set_bit
	cbnz	w0, LBB0_15
; %bb.14:
Lloh38:
	adrp	x8, _MD_RECOVERY_NEEDED@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MD_RECOVERY_NEEDED@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	ldr	x1, [x25]
	bl	_set_bit
LBB0_15:
Lloh41:
	adrp	x8, _R1BIO_WriteError@GOTPAGE
Lloh42:
	ldr	x8, [x8, _R1BIO_WriteError@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
	mov	x20, #0
	cbnz	w23, LBB0_7
LBB0_16:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sxtw	x23, w22
LBB0_17:
	ldr	x8, [x19]
	ldr	x8, [x8, x23, lsl #3]
	cbnz	x8, LBB0_19
; %bb.18:
	ldp	x1, x8, [x25]
	ldr	x0, [x8, x23, lsl #3]
	bl	_rdev_dec_pending
LBB0_19:
	mov	x0, x19
	bl	_r1_bio_write_done
	cbz	x20, LBB0_21
; %bb.20:
	mov	x0, x20
	bl	_bio_put
LBB0_21:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_UPTODATE,4,2               ; @BIO_UPTODATE
	.comm	_R1BIO_BehindIO,4,2             ; @R1BIO_BehindIO
	.comm	_WriteErrorSeen,4,2             ; @WriteErrorSeen
	.comm	_WantReplacement,4,2            ; @WantReplacement
	.comm	_MD_RECOVERY_NEEDED,4,2         ; @MD_RECOVERY_NEEDED
	.comm	_R1BIO_WriteError,4,2           ; @R1BIO_WriteError
	.comm	_In_sync,4,2                    ; @In_sync
	.comm	_Faulty,4,2                     ; @Faulty
	.comm	_R1BIO_Uptodate,4,2             ; @R1BIO_Uptodate
	.comm	_IO_MADE_GOOD,8,3               ; @IO_MADE_GOOD
	.comm	_R1BIO_MadeGood,4,2             ; @R1BIO_MadeGood
	.comm	_WriteMostly,4,2                ; @WriteMostly
	.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
