	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid1_end_read_request
_raid1_end_read_request:                ## @raid1_end_read_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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	8(%rdi), %r15d
	movq	(%rdi), %r14
	movq	(%r14), %rdi
	movq	24(%r14), %rax
	movq	8(%rax), %r13
	movq	16(%r13), %rax
	movq	(%rax,%rdi,8), %rbx
	movq	%r14, %rsi
	callq	_update_head_pos
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.2:
	movq	_FailFast@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%rbx), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_R1BIO_FailFast@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r14), %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_8
LBB0_4:
	leaq	8(%r13), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	24(%r14), %rax
	movl	(%rax), %eax
	movl	(%r13), %ecx
	cmpl	%ecx, %eax
	je	LBB0_10
## %bb.5:
	decl	%ecx
	cmpl	%ecx, %eax
	jne	LBB0_7
## %bb.6:
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
LBB0_10:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_1:
	movq	_R1BIO_Uptodate@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r14), %rsi
	callq	_set_bit
LBB0_11:
	movq	%r14, %rdi
	callq	_raid_end_bio_io
	movl	4(%r13), %esi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.12:
	movq	%rbx, %rdi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rdev_dec_pending               ## TAILCALL
LBB0_7:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
LBB0_8:
	movq	%rsp, %rbx
	movq	_BDEVNAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	4(%r13), %edi
	callq	_mdname
	movl	%eax, %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_bdevname
	movq	16(%r14), %rcx
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_pr_err_ratelimited
	movq	_R1BIO_ReadError@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r14), %rsi
	callq	_set_bit
	movq	%r14, %rdi
	callq	_reschedule_retry
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.13:
	movq	%rbx, %rsp
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_R1BIO_Uptodate,4,2             ## @R1BIO_Uptodate
	.comm	_FailFast,4,2                   ## @FailFast
	.comm	_R1BIO_FailFast,4,2             ## @R1BIO_FailFast
	.comm	_In_sync,4,2                    ## @In_sync
	.comm	_BDEVNAME_SIZE,4,2              ## @BDEVNAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"md/raid1:%s: %s: rescheduling sector %llu\n"

	.comm	_R1BIO_ReadError,4,2            ## @R1BIO_ReadError
	.no_dead_strip	_raid1_end_read_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_read_request
_raid1_end_read_request:                ; @raid1_end_read_request
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	w21, [x0, #8]
	ldr	x19, [x0]
	ldr	x8, [x19, #24]
	ldr	x23, [x8, #8]
	ldr	x8, [x23, #16]
	ldr	x0, [x19]
	ldr	x20, [x8, x0, lsl #3]
	mov	x1, x19
	bl	_update_head_pos
	cbz	w21, LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _FailFast@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FailFast@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x21, x20, #4
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _R1BIO_FailFast@GOTPAGE
Lloh7:
	ldr	x8, [x8, _R1BIO_FailFast@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbnz	x0, LBB0_11
LBB0_3:
	add	x22, x23, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.4:
	sub	w9, w9, #1
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.5:
Lloh9:
	adrp	x8, _In_sync@GOTPAGE
Lloh10:
	ldr	x8, [x8, _In_sync@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_10
LBB0_6:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	b	LBB0_8
LBB0_7:
Lloh12:
	adrp	x8, _R1BIO_Uptodate@GOTPAGE
Lloh13:
	ldr	x8, [x8, _R1BIO_Uptodate@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_set_bit
LBB0_8:
	mov	x0, x19
	bl	_raid_end_bio_io
	ldr	w1, [x23, #4]
	ldur	x8, [x29, #-56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.9:
	mov	x0, x20
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rdev_dec_pending
LBB0_10:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
LBB0_11:
	mov	x24, sp
Lloh18:
	adrp	x8, _BDEVNAME_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BDEVNAME_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	mov	x9, x8
Lloh21:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh22:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	w0, [x23, #4]
	bl	_mdname
	mov	x22, x0
	ldr	w0, [x20]
	mov	x1, x21
	bl	_bdevname
	mov	x2, x0
	ldr	x3, [x19, #16]
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_pr_err_ratelimited
Lloh25:
	adrp	x8, _R1BIO_ReadError@GOTPAGE
Lloh26:
	ldr	x8, [x8, _R1BIO_ReadError@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_set_bit
	mov	x0, x19
	bl	_reschedule_retry
	ldur	x8, [x29, #-56]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	sp, x24
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_R1BIO_Uptodate,4,2             ; @R1BIO_Uptodate
	.comm	_FailFast,4,2                   ; @FailFast
	.comm	_R1BIO_FailFast,4,2             ; @R1BIO_FailFast
	.comm	_In_sync,4,2                    ; @In_sync
	.comm	_BDEVNAME_SIZE,4,2              ; @BDEVNAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"md/raid1:%s: %s: rescheduling sector %llu\n"

	.comm	_R1BIO_ReadError,4,2            ; @R1BIO_ReadError
	.no_dead_strip	_raid1_end_read_request
.subsections_via_symbols
